Video recording script for FFmpeg
Posted: Fri Dec 23, 2011 5:46 am
I'm making a new topic for this since it's buried at the end of the mjpeg topic.
This script will make an H.264 encoded video using FFmpeg. It can also create lossless huffyuv coded videos with a minor edit in the script.
Download it here: ffmpeg4mxsim.zip
To use it:
1. Unzip it somewhere.
2. Open the folder where you unzipped ffmpeg4mxsim.zip.
3. Start up MX Sim, put it in windowed mode and quit.
4. Double click "mxavi".
5. The game should now start running in a 640x480 window with the video going into "nosound.avi". Now play whatever demo you want to turn into an AVI and quit.
6. Once you quit MX Sim the script will multiplex the sound and video into a new file named "video.avi".
If you want to use the command line instead, do this:
1. Start up MX Sim, put it in windowed mode and quit.
2. Open a command prompt. (start/run and type "cmd.exe")
3. Type "CD c:\wherever\you\unzipped\ffmpeg4mxsim".
4. Type "mxavi".
5. The game should now start running in a 640x480 window with the video going into "nosound.avi". Now play whatever demo you want to turn into an AVI and quit.
6. Once you quit MX Sim the script will multiplex the sound and video into a new file named "video.avi".
If you have MX Simulator installed somewhere besides "c:\Program Files\MX Simulator" or "c:\Program Files (x86)\MX Simulator" you will have to edit the path in "mxavi.bat".
If you want lossless edit the script changing "libx264" to "huffyuv". Be prepared for huge files.
To use the resulting videos, you may need to install some extra codecs. Here are some links:
x264vfw: http://x264vfw.sourceforge.net/
huffyuv: http://neuron2.net/www.math.berkeley.ed ... ffyuv.html
ffdshow: http://sourceforge.net/projects/ffdshow ... 0releases/
Thanks to yzmxer for testing this!
This script will make an H.264 encoded video using FFmpeg. It can also create lossless huffyuv coded videos with a minor edit in the script.
Download it here: ffmpeg4mxsim.zip
To use it:
1. Unzip it somewhere.
2. Open the folder where you unzipped ffmpeg4mxsim.zip.
3. Start up MX Sim, put it in windowed mode and quit.
4. Double click "mxavi".
5. The game should now start running in a 640x480 window with the video going into "nosound.avi". Now play whatever demo you want to turn into an AVI and quit.
6. Once you quit MX Sim the script will multiplex the sound and video into a new file named "video.avi".
If you want to use the command line instead, do this:
1. Start up MX Sim, put it in windowed mode and quit.
2. Open a command prompt. (start/run and type "cmd.exe")
3. Type "CD c:\wherever\you\unzipped\ffmpeg4mxsim".
4. Type "mxavi".
5. The game should now start running in a 640x480 window with the video going into "nosound.avi". Now play whatever demo you want to turn into an AVI and quit.
6. Once you quit MX Sim the script will multiplex the sound and video into a new file named "video.avi".
If you have MX Simulator installed somewhere besides "c:\Program Files\MX Simulator" or "c:\Program Files (x86)\MX Simulator" you will have to edit the path in "mxavi.bat".
If you want lossless edit the script changing "libx264" to "huffyuv". Be prepared for huge files.
To use the resulting videos, you may need to install some extra codecs. Here are some links:
x264vfw: http://x264vfw.sourceforge.net/
huffyuv: http://neuron2.net/www.math.berkeley.ed ... ffyuv.html
ffdshow: http://sourceforge.net/projects/ffdshow ... 0releases/
Thanks to yzmxer for testing this!