Sign in to follow this  
Storyyeller

video generation

Recommended Posts

Storyyeller    215
How can you write a program to generate videos? Obviously all the codec stuff is really complicated, so I'm looking for a (preferably C or C++) library where you can give it the pixel and sound data and it encodes a video for you. I tried FFMpeg but I couldn't figure out how to use it.

Share this post


Link to post
Share on other sites
Ashaman73    13715
I guess, that you don't want to write your own video capturing tool, do you want to record a video from your game ? For the latter the best solution would be a video capturing tool like [url="http://taksi.sourceforge.net/"]taksi[/url]. The other,simple solution would be to write just images and use ffmpeg to create a video from this images. There should be enough tutorials about making movies from images by using ffmpeg , here's [url="http://electron.mit.edu/%7Egsteele/ffmpeg/"]one[/url].

Share this post


Link to post
Share on other sites
Storyyeller    215
The problem is that dumping all the frames to disk as raw bitmaps takes up way to much space. And SDL has no way to save pngs. So the only feasible way to do things is with in memory compression. There also doesn't appear to be any easy way to dump audio data. Anyway, I'm very surprised at the apparent lack of video encoding libraries. You'd think that this would be a relatively common task.

Also, Taski doesn't support audio.

Share this post


Link to post
Share on other sites
Ashaman73    13715
[quote name='Storyyeller' timestamp='1312816841' post='4846206']
The problem is that dumping all the frames to disk as raw bitmaps takes up way to much space. And SDL has no way to save pngs. So the only feasible way to do things is with in memory compression. There also doesn't appear to be any easy way to dump audio data. Anyway, I'm very surprised at the apparent lack of video encoding libraries. You'd think that this would be a relatively common task.
[/quote]
Nobody wants to integrate it directly in their games. All use some kind of capturing software. Taksi is only a open source solution, a very good, partly free and commercial version is [url="http://www.fraps.com/"]FRAPS[/url]. When recording ingame videos you often use almost none compression, because it steals too much performance and quality. The basic idea is to create some small, high quality clips (memory intensive) and cut them in a video editing tool and export them to your desired, compressed video format.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this