Video recording script for FFmpeg
Video recording script for FFmpeg
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!
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.
Re: Video recording script for FFmpeg
Stability:
jlv wrote: You can do some fairly tame whips with it set to 95, but to really get it sideways you need to set it under 60.
-
- Posts: 33
- Joined: Wed Aug 17, 2011 9:04 pm
- Team: Rockstar Mx1 Suzuki
- Location: finland
Re: Video recording script for FFmpeg
this won't work for me dos window pops up and shut dow immediately. any help ?
-
- Posts: 33
- Joined: Wed Aug 17, 2011 9:04 pm
- Team: Rockstar Mx1 Suzuki
- Location: finland
Re: Video recording script for FFmpeg
do anybody know how to fix this problem ? im on windows 7 64bit
Re: Video recording script for FFmpeg
Run it from the command line so you can see the error messages.
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.
Re: Video recording script for FFmpeg
haha wow, When I record it records HORRIBLY!.. I get 4 FPS but then I watched the video and it was perfect, why does this happen? Also, if you are having problems with it just download the version where you do not use command prompt then open um command prompt and drag the files into and it will do it for you 


Re: Video recording script for FFmpeg
Yeah I know that,
ahah, It just lags really bad, and when I watch the video in the folder it looks perfect.


Re: Video recording script for FFmpeg
It's just kinda annoying, it's be weird when I go to record it, so even though it'll be smooth, clear shot's the may be bad due to the lag, if I'm using follow and other functions.

Re: Video recording script for FFmpeg
If you want it to record in real time you'll need a faster PC. The nice thing about not recording in real time is the video will be perfect no matter how slow your PC is.
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.
Re: Video recording script for FFmpeg
Alright, what if I get a better graphics card like a GTX570 and/or a better processor? Should I get both or which one?

Re: Video recording script for FFmpeg
I have an HP Touchsmart 520t with the 2nd generation Intel® Core™ i3 processor2 and Intel HD Graphics Family. It works extremely well with mxs and also this video recorder. I somehow have little to no lagg.
