Possible to export movie file?
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!
Not using Direct3D no, unless DirectShow has something: No.
But there's bound to be some free library out there for it :)
But there's bound to be some free library out there for it :)
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.
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.
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.
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.
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement