Got Theora movie support in Torque :)
by intangir · in Torque Game Engine · 03/01/2005 (2:54 pm) · 36 replies
I got theora movies to play in torque! :)
i wrote a new GuiTheoraCtrl which is kinda like GuiAviBitmapCtrl, except it plays Theora video files, and it does it using another class: TheoraTexture which i wrote (you should be able to use it anywhere you can use a TextureHandle/Object (for 3d models even!)
Next im working on a way to render a sprite(billboard) using the TheoraTexture, already ive changed the fxFoiliageReplicator(cause its one of the only ways to do 2d sprites in game) to use my TheoraTextures
(this would be a pretty great feature in torque2d too)
What is theora? its a license free, open source, crossplatform compatible video format thats comparable to more popular formats (DivX,Mpeg4,etc)
im using SDL, OGG, and Theora Libraries
http://www.soulfire.cc/misc/theoratorque.avi
i wrote a new GuiTheoraCtrl which is kinda like GuiAviBitmapCtrl, except it plays Theora video files, and it does it using another class: TheoraTexture which i wrote (you should be able to use it anywhere you can use a TextureHandle/Object (for 3d models even!)
Next im working on a way to render a sprite(billboard) using the TheoraTexture, already ive changed the fxFoiliageReplicator(cause its one of the only ways to do 2d sprites in game) to use my TheoraTextures
(this would be a pretty great feature in torque2d too)
What is theora? its a license free, open source, crossplatform compatible video format thats comparable to more popular formats (DivX,Mpeg4,etc)
im using SDL, OGG, and Theora Libraries
http://www.soulfire.cc/misc/theoratorque.avi
About the author
#22
03/10/2006 (5:17 am)
Thanks Stefan. I did.
#23
03/10/2006 (5:46 am)
BTW I just added a zip called Theora goodies, in contains and exe that will convert avi into ogg. it also has windows media player codex for ogg. If anyone has more recent versions feel free to update the files
#24
03/10/2006 (7:21 am)
Anthony, where did you post the zip?
#25
03/23/2006 (12:47 pm)
When I tried to load the above theora movie in GuiTheoraCtrl it just hangs, anyone else experiencing this problem? I am running windows xp tge 1.4
#26
03/23/2006 (12:55 pm)
Which video are you having trouble with? The one included with 1.4?
#27
http://www.soulfire.cc/misc/theoratorque.avi
I just realized one thing, do I need to download the theora lib seprately?
03/23/2006 (1:00 pm)
This one:http://www.soulfire.cc/misc/theoratorque.avi
I just realized one thing, do I need to download the theora lib seprately?
#28
03/23/2006 (1:20 pm)
That is an AVI file, not a theora file. You will need to download any conversion tools to move from a format such as MPEG-2 to Theora.
#29
it seems that the movie only gets played once and then it doesn't loop, how do I tell it to loop?
03/23/2006 (1:36 pm)
Thanks David,it seems that the movie only gets played once and then it doesn't loop, how do I tell it to loop?
#31
03/23/2006 (2:53 pm)
Actually besides looping I have a bigger problem, I have the theoraplayer inside a tab page, and I want the movie to play when the user clicks on the tab, how can this be done? where should I invoke player.setFile("")?
#32
05/01/2006 (8:44 am)
So when will you be posting the new "loops / restarts / changes movies smoothly" code :) im eager to try it out.
#33
G:\Fraps>ffmpeg2theora-0.13 torqueDemo.avi
Input #0, avi, from 'torqueDemo.avi':
Duration: 00:00:14.7, start: 0.000000, bitrate: 138790 kb/s
Stream #0.0: Video: FPS1, 1024x768, 30.00 fps
Stream #0.1: Audio: pcm_s16le, 44100 Hz, stereo, 1411 kb/s
Resize: 1024x768 => 320x240
0:00:14.76 audio: 84kbps video: 0kbps
06/16/2006 (3:23 pm)
I am using ffmpeg2theora exe to convert and avi file to ogg, but only the sound part of the avi gets converted, the video part failed. any idea? here's the log:G:\Fraps>ffmpeg2theora-0.13 torqueDemo.avi
Input #0, avi, from 'torqueDemo.avi':
Duration: 00:00:14.7, start: 0.000000, bitrate: 138790 kb/s
Stream #0.0: Video: FPS1, 1024x768, 30.00 fps
Stream #0.1: Audio: pcm_s16le, 44100 Hz, stereo, 1411 kb/s
Resize: 1024x768 => 320x240
0:00:14.76 audio: 84kbps video: 0kbps
#34
06/16/2006 (3:32 pm)
What coded did you use to create the AVI? Try to convert the AVI to an MPEG first. And then to Theora.
#35
I'll try avi to mpeg first. do you know any freeware that does this?
thanks
06/16/2006 (3:34 pm)
I used fraps to capture an avi from the torque game. I'll try avi to mpeg first. do you know any freeware that does this?
thanks
#36
05/16/2007 (9:34 am)
Is it possible to get the video to seek? I need finer control of the video than just play/pause/stop
Torque Owner Stefan Lundmark