[MPlayer-users] Rawvideo output option ignored when using mencoder programatically

Marlon Smith marlon.smith10 at gmail.com
Mon Mar 12 05:44:42 CET 2012


Hi everyone,

I'm using mencoder with the -of rawvideo switch to create a raw h.264
stream.  On the command line, it works perfectly using this command:

C:\Users\Marlon\Documents\mplayer>mencoder.exe input.mov -nosound -of
rawvideo -ofps 30 -vf harddup -ovc x264 -x264encopts bframes=0 -o
output.264

However when I run it programmatically, mencoder seems to ignore that
rawvideo option and instead write a lavf format output.  I'm using a
QProcess, and passing it these arguments:

QStringList arguments;
arguments << input_filename << "-nosound" << "-of" << "rawvideo" <<
"-ofps" << "30" << "-vf" << "harddup" << "-ovc" << "x264" <<
"-x264encopts" << "bframes=0" << "-o" << output_filename;

I've compared the standard and error output from mencoder for both cases
and it looks exactly the same.  I don't know what to do!  If anyone has
an idea it would be much appreciated!

Thanks

Marlon


More information about the MPlayer-users mailing list