Game Development Community

Theora and iT2D 1.5

by Matthew Wilmot · in iTorque 2D · 09/28/2011 (4:30 am) · 3 replies

I've been interested in added a video to my iT2D project and noticed that theora is no longer included in the source files for iT2D while it is in T2D will Theora be included in the 1.5 build or are there any plans to enable video playback in iT2D.

If there's already another way to do it then I'd be thankful for any information.

#1
09/28/2011 (6:10 am)
@Matthew - Theora and the OGG format is not compatible with iOS. However, you can play fullscreen movies using the native formats. Just read this doc.
#2
09/28/2011 (4:13 pm)
For a recent project i was able to compile and link in the ogg and vorbis libraries with the ogg StreamSource & AudioBuffer code to play ogg sound effects with no problems.

I would however advise against compiling in and using theora as the decoder is notoriously slow on iOS devices.
#3
10/01/2011 (10:00 am)
its not notoriously slow at least I wouldn't call it notoriously slow.

Its just not hardware backed up and beside the ipad2 you have no multicore cpu so the remaining cpu time for anything but the movie is not there.
Beyond the 320x240 range becomes very high pretty fast as cpu decompression on hq movies is a thing even desktop computers failed to do until recently (a pentium 4 on its best days died somewhere around a 800x600 movies with full load and thats quite a tad faster than what you have on iOS devices when it comes to math performance, just to get you an idea).

So yeah use the native iOS movies, they are run on a dedicated hw decoder chip and basically leave the cpu alone for anything but the data streaming and thus run very cpu light