Game Development Community

Theora video questions

by Richard Preziosi · in Torque Game Engine · 11/16/2009 (5:07 am) · 7 replies

So I made up all my intro videos in After Effects, and converted to .ogg. Problem is, all my videos lag horribly, is this a common problem or am I doing something wrong. It appears like it's almost directly tied to the screen size of the video. I've been forced to use a laggy 800 x 600 instead of a game crashing 1280 x 720.

Also I've been using ffmpeg2Theora, but the quality is horrible, I've messed with the quality setting, set it to 10, but my video still ends up looking too pixilated. I understand I'm going from sometimes a 3 gig file to a 2.5 mb file or so, but is there a different converter that will get me a little better quality. I mean 3mb is nothing for today's computers, would seem like I could have a 100mb file and it would stream just fine.

#1
11/16/2009 (7:02 am)
The Theora player really has a good deal of issues. Bad synchronization, loads of frame dropping, and being just slow overall are only some of them.

I had recently been contracted to fix it for a company releasing a game on TGB and could ask them if I can package the changes up as a resource. However, these do require a fair bit of C++ heavy-lifting.

ffmpeg2Theora uses its own implementation of Theora AFAIK. I'd rather use some other encoder that's directly based on the Xiph libraries. AFAIK, VLC can encode Theora videos from any of its supported input formats.
#2
11/16/2009 (7:31 am)
That would be awesome if they would let you do that. Have you actually been successful at getting it to perform better to a noticeable degree?

If you're not allowed to release it, has anyone else incorporated any different video decoders, I could stand for about 10% loss in quality for 0% loss in frames through a different format.
#3
11/16/2009 (7:46 am)

Yep, according to their testing (which has been pretty thorough from what I can tell), it's performing pretty well with playback being smooth and frame dropping being well-bounded except if you go down really low on the hardware spectrum.

As another improvement, the SSE2 transcoder I wrote for T3D could easily be plugged into this which easily cuts the cost for this expensive step in half.

Email is out. I let you know when I have heard back from them.
#4
11/16/2009 (10:23 am)
Thanks a bunch Rene will be exciting if they'll let you release it.
#5
01/19/2010 (3:47 pm)

Okay, got the kind permission to release this as a resource. Thanks to Virtual Prophecy Entertainment.

Will bundle this up and post it in the next couple of days. Be warned though that this is pretty tough stuff and requires some serious messing around with the C++ code.
#6
01/20/2010 (4:02 am)
Sounds great!
#7
01/22/2010 (5:39 pm)

Ok, resource is now online here.