[FFmpeg-devel] [PATCH] avformat/riffenc: fix handling monowhite when pix_fmt is not set

Mats Peterson matsp888 at yahoo.com
Tue Feb 23 19:06:03 CET 2016


On 02/23/2016 06:50 PM, Mats Peterson wrote:
> On 02/23/2016 05:23 PM, Michael Niedermayer wrote:
>>> 2. You say that demuxers might not set the pixel format. This is on
>>> the muxing side though. Isn't the pixel format always set when
>>> muxing?
>>
>> theres no guratee that its set for the muxer
>> there could be demuxer -> muxer with no decoder as well but thats
>> not the only case, it could just be that the application doesnt
>> set it, its not written in the API that the application has to set it
>>
>>
>
> Perhaps so, but for raw uncompressed video, as long as you only have one
> collective 'raw ' fourcc for it, it's crucial to know the pixel format,
> whether it's RGB, grayscale or YUV for example.
>

YUV doesn't belong to the 'raw ' fourcc category whatsoever in 
QuickTime, yet FFmpeg will use that fourcc for raw YUV in spite of that, 
so there has to be some way to detect it at least, and then there's only 
the pixel format to refer to, as far as I know.

Mats



More information about the ffmpeg-devel mailing list