[MEncoder-users] Create NULL fourcc for AVI

Matt Hirsch matthew.hirsch at gmail.com
Fri Feb 22 21:10:01 CET 2008


I want to force mencoder to put a null fourcc tag (binary 0) in the
header of an avi file. I don't see how I can specify a null string to
-ffourcc. Giving no argument causes mencoder to use the default fourcc
string. What is the best way to do this with mencoder?

More details: I have a rawbgr32 avi file that I want to convert to
rawbgr24 so that I can import it into matlab. To change the format I
use this command:

mencoder input_bgr32.avi -ovc raw -of avi -o output_bgr24.avi -vf
format=bgr24,flip

The fourcc tag is " RGB" in output_bgr24.avi. Matlab, for whatever
reason, will only read the video if the fourcc tag is null
(0x00000000, not the characters "null"). One solution that works is to
zero the " RGB" string in the AVI header in hexedit, but I'd like to
be able to do it on the mencoder command line so I can script this.

Thanks for any help,
Matt



More information about the MEncoder-users mailing list