Sign in to follow this  

Possible to export movie file?

This topic is 3038 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Quick question: is there any way to save out some sort of movie file (.wmv, .avi, etc.) from a DirectX app? I'd like to post some high quality videos of what I'm working on up on YouTube, and don't want to have to use Fraps or something to accomplish that. Thanks!

Share this post


Link to post
Share on other sites
The most straight forward way would be to save each frame into a file, then use some movie making program to make a video from it.
This will probably only work if you have some sort of replay system, as the game will be unplayable while rendering and writing to disk unless you have a very fast PC.

Share this post


Link to post
Share on other sites
Windows has a few different built in ways to write movies. Video for Windows (VfW) can be used to write AVI files via the AVIfile functions. However, there's an upper limit of 2GB size for files. You can also use DirectShow to create video files. It's a bit more involved than using VfW.

Share this post


Link to post
Share on other sites
Quote:
Original post by Konfusius
The most straight forward way would be to save each frame into a file, then use some movie making program to make a video from it.

Since AVI only serves as a container, you could easily use those bitmaps to create an AVI video file (see also SiCrane's links). But if uncompressed, I don't know if size is going to be a problem for you.

Share this post


Link to post
Share on other sites
Quote:
Original post by Konfusius
The most straight forward way would be to save each frame into a file, then use some movie making program to make a video from it.

Be careful if you do this. On NTFS, the directory structure is a tree structure that doesn't behave too happily when you perform a large series of consecutive rightmost insertions.

Share this post


Link to post
Share on other sites

This topic is 3038 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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