[FFmpeg-user] grayscale video streaming in ffmpeg
Carl Eugen Hoyos
cehoyos at ag.or.at
Wed Sep 12 13:15:22 CEST 2012
Carl Eugen Hoyos <cehoyos <at> ag.or.at> writes:
> 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).
I fixed muxing mjpeg in swf, but that does not help with your
original problem: There is no video codec supported in swf
that allows to encode gray - you can only set u and v to the
appropriate values.
Carl Eugen
More information about the ffmpeg-user
mailing list