[FFmpeg-user] grayscale video streaming in ffmpeg

Marc Elliott elliott2w1 at gmail.com
Wed Sep 12 18:43:24 CEST 2012


Ok, I get what you're saying.  I don't have to use .swf.  I can use
any type of video output.  How do you take advantaget of the -pix_fmt
flag in ffmpeg in order to specify the pixel formats GRAY8, GRAY16LE,
and GRAY16BE?  There has to be someway to implement these commands,
right?

Thanks again for your input.

On 9/12/12, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:
> 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
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>


More information about the ffmpeg-user mailing list