Theora

Share your helpful Urho3D code snippets, samples and tutorials here.

Theora

PostPosted by codingmonkey » 29 Jul 2016, 09:04

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

REPO: https://github.com/MonkeyFirst/Urho3DTheora/



* previous CPU color decoding was removed
* last version have only OpenGL shader for GPU color decoding
Last edited by codingmonkey on 29 Jul 2016, 22:06, edited 1 time in total.
User avatar
codingmonkey
Have many posts
Have many posts
 
Posts: 517
Joined: 21 Oct 2014, 19:26
Location: Russian Federation, Novosibirsk

Re: Theora

PostPosted by sabotage3d » 29 Jul 2016, 09:27

Nice work. I am thinking of doing the same for OpenCV.
User avatar
sabotage3d
Have many posts
Have many posts
 
Posts: 515
Joined: 25 Oct 2014, 13:26

Re: Theora

PostPosted by Modanung » 29 Jul 2016, 11:33

Cool! :D
for (Person* p : people)
ΞΞΞΞp->StopUsingWindows("https://www.linuxmint.com");
User avatar
Modanung
Active user
Active user
 
Posts: 171
Joined: 22 Jan 2015, 14:53
Location: The Netherlands

Re: Theora

PostPosted by Mike » 29 Jul 2016, 17:56

Awesome :P
User avatar
Mike
Moderator
Moderator
 
Posts: 353
Joined: 16 Jan 2014, 20:35
Location: France

Re: Theora

PostPosted by codingmonkey » 29 Jul 2016, 22:14

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

I am thinking of doing the same for OpenCV.
computer vison + urho3d you mean? for what ?
User avatar
codingmonkey
Have many posts
Have many posts
 
Posts: 517
Joined: 21 Oct 2014, 19:26
Location: Russian Federation, Novosibirsk

Re: Theora

PostPosted by Enhex » 30 Jul 2016, 00:25

Nice work.
Could be very useful for games, playing intro's, cut-scenes, and such.
User avatar
Enhex
Most active user
Most active user
 
Posts: 325
Joined: 31 Dec 2014, 12:23

Re: Theora

PostPosted by codingmonkey » 30 Jul 2016, 07:29

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
User avatar
codingmonkey
Have many posts
Have many posts
 
Posts: 517
Joined: 21 Oct 2014, 19:26
Location: Russian Federation, Novosibirsk

Re: Theora

PostPosted by TheSHEEEP » 03 Aug 2016, 10:52

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.
User avatar
TheSHEEEP
Have some posts
Have some posts
 
Posts: 27
Joined: 21 Jul 2016, 09:07
Location: Finland

Re: Theora

PostPosted by miz » 07 Dec 2016, 16:44

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:

Code: Select all
((BorderImage*)GetSubsystem<UI>()->GetRoot()->GetChild(String("tvwindow"))->GetChild(String("tv Y")))->SetTexture(outputTexture[i])


At the bottom of UpdatePlaneTextures(). This works. (I've taken away the code that renders it to a material in the scene)
User avatar
miz
Have some posts
Have some posts
 
Posts: 40
Joined: 28 Sep 2015, 09:24


Return to Code Exchange

Who is online

Users browsing this forum: No registered users and 0 guests

cron