[gameprogrammer] Re: Adding video to game
- From: Scott Harper <lareon@xxxxxxxxxxx>
- To: gameprogrammer@xxxxxxxxxxxxx
- Date: Wed, 25 Apr 2007 17:37:33 -0600
On 4/23/07, Chris Nystrom <cnystrom@xxxxxxxxx> wrote: You probably
want smpeg (http://icculus.org/smpeg/).
Chris
I want to render the vedio in my game, so I need a library that can
open the vedio file and render it to the screen, not a seprate
program to render it, just like DirectShow, but I'm not using
DirectX at all, or the Engine I'm working in isn't using DirectX,
it's use OpenGL, and it didn't come with any library that can
render any vedio file, so what I have to do? or what library I can
use?
I clicked the link, and the first thing it said was "smpeg is an mpeg
decoding library", which is what you're looking for, right? You'll
just have to look at the examples to figure out how it works. Or
find tutorials or something, as the website looks like it has the
source code and samples and that's it. ^_^
For a project I'm working on (non-game, so I'll be brief), I use
OpenGL (with SDL) and ffmpeg to get video to screen, and it works
pretty well (though ffmpeg is rather difficult to learn, it's simple-
ish once you've figured it out). The slowest part is (obviously)
decoding the video. FWIW, I got very significant performance
improvement after moving the video read/decode to a different thread.
Anyway, if you need something simpler (ffmpeg will play mast any
video file out there) smpeg looks like a keen choice.
-- Scott
---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html
- References:
- [gameprogrammer] Adding video to game
- From: Husam Zakaria
- [gameprogrammer] Re: Adding video to game
- From: Chris Nystrom
- [gameprogrammer] Re: Adding video to game
- From: Husam Zakaria
Other related posts:
- » [gameprogrammer] Adding video to game
- » [gameprogrammer] Re: Adding video to game
- » [gameprogrammer] Re: Adding video to game
- » [gameprogrammer] Re: Adding video to game
- » [gameprogrammer] Re: Adding video to game
ChrisI want to render the vedio in my game, so I need a library that can open the vedio file and render it to the screen, not a seprate program to render it, just like DirectShow, but I'm not using DirectX at all, or the Engine I'm working in isn't using DirectX, it's use OpenGL, and it didn't come with any library that can render any vedio file, so what I have to do? or what library I can use?
- [gameprogrammer] Adding video to game
- From: Husam Zakaria
- [gameprogrammer] Re: Adding video to game
- From: Chris Nystrom
- [gameprogrammer] Re: Adding video to game
- From: Husam Zakaria