Theora video playback


Hi folks!
There is my adaptation for Urho3D of the Orange’s example with Theora playback on textures

  • previous CPU color decoding was removed
  • last version have only OpenGL shader for GPU color decoding

Video playback example

Nice work. I am thinking of doing the same for OpenCV.


Cool! :smiley:


Awesome :stuck_out_tongue:


Thanks )
I guess it still working only for the one movie, that i testing. So there are a lot of work in future

[quote]I am thinking of doing the same for OpenCV.
[/quote]computer vison + urho3d you mean? for what ?


Nice work.
Could be very useful for games, playing intro’s, cut-scenes, and such.


Yes, that’s is common case of usage.

Previously I’m also locking on FFmpeg, but i suppose it has bad licence for urho3d ? (GPL)

Theora has BSD licence


FFmpeg itself is LGPL, which is fine as long as you link dynamically.
Some libraries that FFmpeg can be built with (most known, x264) are GPL licensed.
But if you have full control of assets, there is no reason not to use OGG video / theora instead.


Firstly, nice work!

Secondly, I’m trying to make this work in a BorderImage but having trouble converting properly to RGB from YUV. Any idea how i could do this? At the moment I’ve got the black and white from the Y element of the video displaying on a BorderImage by doing:

At the bottom of UpdatePlaneTextures(). This works. (I’ve taken away the code that renders it to a material in the scene)