[FFmpeg-devel] [PATCH v9] lavc/rawdec: Remove monowhite switching code for 1 bpp AVI without a palette

Mats Peterson matsp888 at yahoo.com
Fri Feb 12 12:31:56 CET 2016


On 02/12/2016 12:02 PM, Mats Peterson wrote:
> On 02/12/2016 11:26 AM, Mats Peterson wrote:
>> Now handles non-standard 8 bpp raw AVI files created with "-vcodec
>> rawvideo" that contain the palette at the end of each frame, like nut.
>>
>> 8 bpp raw QuickTime files created with "-vcodec rawvideo" won't work
>> quite right, because they contain a palette both in the video sample
>> description and at the end of each frame, which currently causes the
>> stride to be calculated incorrectly. They are hugely non-standard anyway.
>>
>
> Furthermore, the strides of AVI and QuickTime files created with
> "-vcodec rawvide" are not according to standards. That's not my problem,
> though.
>
> Mats
>

And with this patch applied, the only way to create a standards 
compliant 1 bpp raw AVI or QuickTime file from an existing compliant AVI 
or QuickTime file is to use "-vcodec copy", since "-vcodec rawvideo" 
will produce a file with incorrect stride.

Mats



More information about the ffmpeg-devel mailing list