[FFmpeg-user] grayscale video streaming in ffmpeg

Carl Eugen Hoyos cehoyos at ag.or.at
Tue Sep 11 22:34:41 CEST 2012


Marc Elliott <elliott2w1 <at> gmail.com> writes:

> 3 [volta]/home/student/elliott> ffmpeg/ffmpeg -qmin 2 -qmax 31 
> -s 320x240 -f rawvideo -flags gray -pix_fmt:output gray -an 
> -i testvideo_1000f.raw output.swf

> I am fairly new to FFMPEG and I am afraid I am using either the wrong
> syntax or the wrong parameters in my command line. For some reason,
> the format of the output is yuv420p.

The default video codec for swf is flv1 (Sorenson Video) and 
this codec only support yuv420p. You can try -vcodec mjpeg but 
this seems to have problems (I don't know if they are expected).

Carl Eugen



More information about the ffmpeg-user mailing list