Game Development Community

Windows AVI Video Playback

by Danny Koo · in Torque Game Builder · 06/27/2005 (9:42 pm) · 12 replies

Has anyone succesfully tried porting some sample Video Playback codes from Torque SDK to Torque 2D? I tried numerous ways and unable to. However, I know how to incorporate Direct Show onto some basic directX C++ codes, but I have no experience in modify Torque 2D for these. Any suggestions?

#1
06/28/2005 (7:34 am)
I don't have the links, but if you search for video, guibitmap, mpeq, and flash, you'll find a couple of resources for implementing it in TGE. These can be adapted to T2D as well. Since you're not concerned with cross-platform capabilities, the DirectShow resources would probably be best (unless you plan a port down the road, at which point flash and audio syncing would be best).
#2
06/28/2005 (5:21 pm)
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=7826

I still can't get that to work with T2D.... I'm going to try one more time tonight.
#3
06/28/2005 (8:36 pm)
Good news everyone, I successfully modified Todd's GuiAviBitmapCtrl w/ DirectShow event support into T2D! Now you can play AVI files in T2D (sorry, windows only..hehehe)

Woohoo! I will promise you all that I add a resource for T2D GuiAviBitmapCtrl!
#4
06/29/2005 (6:49 am)
Good to see you got it working. I implemented the Flash resource (in TGE) back when Thomas was first working on it. Then I realized that nothing I was working on had a need for it. But it's always good to keep up with useful resources.
#6
05/03/2007 (4:55 pm)
Sorry to bump an ancient thread but I was wondering how exactly to use this functionality. I don't have access to the TGE forums since I own the TGB/T2D and not the TGE so every time I do a search on how to use this guy I get results in the TGE forums I am not allowed to look at. Any ideas? I recompiled everything just fine and checked out the source code but I can't seem to figure out how to get it to do anything. Any ideas? Thanks a lot.
#7
05/04/2007 (4:11 pm)
Playing AVI files seems kind of silly when we have support for ogg theora built into the engine. Wouldn't you agree? Theora files are smaller and of decent quality. Plus if you use them there's no need to add unofficial engine patches... just my 2c
#8
05/04/2007 (4:14 pm)
That makes so much sense it hurts.
#9
05/12/2007 (7:45 pm)
Wait...

We need to do interstitial movies between levels. We noticed some stuff in the codebase about AVI that was commented out, but putting that back it it doesn't seem to want to play any AVIs we have.

So Ogg Theora is built in, eh? And can I play a movie on a textture or full screen? Basically we need fullscreen movies to play.
#10
05/16/2007 (9:34 am)
Is it possible to get the video to seek? Either theora or avi, athough theora is prefered. I need finer control of the video than just play/pause/stop
#11
07/04/2008 (3:13 am)
Yeah i m also searching the same patch.is it possible to get the theora video to seek?
#12
07/31/2008 (11:48 am)
Yup. Check out

http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=13846