Theora Video in 1.7.1
by Resana · in Hardware Issues · 08/02/2008 (10:06 am) · 10 replies
Hi.
Theroa video player is absent in tgea 1.7
if anybody work at this problem, please help me.
Theroa video player is absent in tgea 1.7
if anybody work at this problem, please help me.
About the author
#2
You should be able to build it with the audio disabled with a few changes if that's all you need. But if you need audio you'll have to wait a bit longer.
Sorry.
08/20/2008 (12:55 pm)
The problem that i know of is that the new SFX system doesn't allow for streaming audio from the Theora player. There might be other issues i'm not aware of, but thats the biggie AFAIK.You should be able to build it with the audio disabled with a few changes if that's all you need. But if you need audio you'll have to wait a bit longer.
Sorry.
#3
Our game needs to play video with sound. ...
Hope that someone can add the video playback back. Or if there are some hints for adding the video playback is appreciate too.
08/20/2008 (9:46 pm)
Thanks for the quick reply.Our game needs to play video with sound. ...
Hope that someone can add the video playback back. Or if there are some hints for adding the video playback is appreciate too.
#4
The XAudio system would be the easiest to do this with. You'll have to cast the SFXDevice pointer to SFXXAudio2Device and use it to allocate an IXAudio2SourceVoice which you can then pump the decompressed PCM data into it. It won't be pretty, but it will work... XAudio is really easy to work with.
Else you'll just have to wait a bit for it. I have the start of a new streaming interface working which i'll try to get it into the next point release. There is no official release date for that just yet.
08/20/2008 (10:03 pm)
The only option at the moment is to hack it in yourself. The XAudio system would be the easiest to do this with. You'll have to cast the SFXDevice pointer to SFXXAudio2Device and use it to allocate an IXAudio2SourceVoice which you can then pump the decompressed PCM data into it. It won't be pretty, but it will work... XAudio is really easy to work with.
Else you'll just have to wait a bit for it. I have the start of a new streaming interface working which i'll try to get it into the next point release. There is no official release date for that just yet.
#5
I resolve it temporary with simple script solution.
- play frames with 25 ms delay . ( change bitmap ).
when frame size is equal about 640 x 480 in .JPG format with good compress, the movie play smoothly in today computers at any cases.
this lite method has some good result:
- you can easily put your demo or introduction in game pack file and run it easily.
- easily play, pause, stop, fullscreen and resize video.
don't forget to use canvas.repaint(), its strongly increase frame rate .
08/21/2008 (9:26 am)
Thanks for replies.I resolve it temporary with simple script solution.
- play frames with 25 ms delay . ( change bitmap ).
when frame size is equal about 640 x 480 in .JPG format with good compress, the movie play smoothly in today computers at any cases.
this lite method has some good result:
- you can easily put your demo or introduction in game pack file and run it easily.
- easily play, pause, stop, fullscreen and resize video.
don't forget to use canvas.repaint(), its strongly increase frame rate .
#6
The old version torque engine can play movie. I tried to use the old movie playback code in 1.7.1. But the new SFX system does not have the streaming function, I cannot just cut the movie playback code from the old version and add to the new version. Is it possible to bypass the SFX and use the old streaming system?
I like the new features of TGEA, so I probably won't use the old version that has movie playback. Is it possible to tell the GG people to increase the priority of movie playback function? So that we can all enjoy this function as earlier as possible.
As the movie playback works on old version, it is a pity that the new version cannot.
08/24/2008 (9:07 pm)
Thanks for replies.The old version torque engine can play movie. I tried to use the old movie playback code in 1.7.1. But the new SFX system does not have the streaming function, I cannot just cut the movie playback code from the old version and add to the new version. Is it possible to bypass the SFX and use the old streaming system?
I like the new features of TGEA, so I probably won't use the old version that has movie playback. Is it possible to tell the GG people to increase the priority of movie playback function? So that we can all enjoy this function as earlier as possible.
As the movie playback works on old version, it is a pity that the new version cannot.
#7
I need this function too! Any good news about a fix for Theora in the new coming TGEA 1.8?
As far i can understand, it is a sound problem , right?
thank you for your time!
sorry for my english:)
11/14/2008 (4:26 pm)
HI!I need this function too! Any good news about a fix for Theora in the new coming TGEA 1.8?
As far i can understand, it is a sound problem , right?
thank you for your time!
sorry for my english:)
#8
11/14/2008 (4:39 pm)
I have to agree with this, my game has opening scene movies and cutscene movies, This would seem like something that after howm any versions someone made a decision to leave it out, go fix it yourself? I mean I am all for the upgrades, But something like getting video and playback for the demo rec? These are the standard items that are in need of fixing. Even if its in a another format. Anyone come up with a solution, is it becuase of a license change from Theora? any suggestions ?
#9
04/04/2009 (9:03 pm)
has there been any fixes for this in 1.8.1?
#10
04/05/2009 (7:04 am)
Working on it (www.garagegames.com/community/forums/viewthread/87519). Already have the video working, need to add the streaming...
Torque Owner Bartholomew IU
#pragma warning ("TheoraPlayer is currently disabled. It needs theora libs.")
Why the player is disabled? Is it the theora lib license problem? I need video playback, should I add the theora lib and re-enable the code?