Page 1 of 8

Video recording script for FFmpeg

Posted: Fri Dec 23, 2011 5:46 am
by jlv
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!

Re: Video recording script for FFmpeg

Posted: Sat Feb 25, 2012 3:16 pm
by Anarch
How can I use this with hidden hud?

Re: Video recording script for FFmpeg

Posted: Sat Feb 25, 2012 3:24 pm
by Vellu

Re: Video recording script for FFmpeg

Posted: Tue Feb 28, 2012 10:32 am
by thetomiiix
this won't work for me dos window pops up and shut dow immediately. any help ?

Re: Video recording script for FFmpeg

Posted: Wed Mar 14, 2012 11:20 am
by thetomiiix
do anybody know how to fix this problem ? im on windows 7 64bit

Re: Video recording script for FFmpeg

Posted: Wed Mar 14, 2012 9:28 pm
by jlv
Run it from the command line so you can see the error messages.

Re: Video recording script for FFmpeg

Posted: Wed Mar 14, 2012 10:36 pm
by hughes
Thanks Jlv, really needed this. Works great also.

Re: Video recording script for FFmpeg

Posted: Thu Mar 15, 2012 12:27 am
by ehm24
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

Posted: Thu Mar 15, 2012 12:33 am
by hughes
Ehm, it's made the record demos and playbacks.

Re: Video recording script for FFmpeg

Posted: Thu Mar 15, 2012 1:10 am
by ehm24
Yeah I know that, :roll: ahah, It just lags really bad, and when I watch the video in the folder it looks perfect.

Re: Video recording script for FFmpeg

Posted: Thu Mar 15, 2012 1:23 am
by hughes
Hmm....

Re: Video recording script for FFmpeg

Posted: Thu Mar 15, 2012 2:28 am
by ehm24
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

Posted: Thu Mar 15, 2012 3:31 am
by jlv
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.

Re: Video recording script for FFmpeg

Posted: Thu Mar 15, 2012 4:30 am
by ehm24
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

Posted: Thu Mar 15, 2012 4:43 am
by hughes
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.