[FFmpeg-devel] [PATCH v3] lavc/rawdec: Use AV_PIX_FMT_PAL8 for 1-bit raw AVI video

Mats Peterson matsp888 at yahoo.com
Fri Jan 22 13:26:42 CET 2016

On 01/22/2016 12:45 PM, Michael Niedermayer wrote:
> this patch breaks encoding 1bpp raw video
> ./ffmpeg -i matrixbench_mpeg2.mpg -pix_fmt monow -vframes 10 -vcodec rawvideo testw.avi
> ./ffplay testw.avi
> also the change to the line alignment belongs in a seperate
> patch.

Yes, thank you for the reminder. If I'm not completely out in the blue, 
it seems as if the lines in the file produced by the above command are 
aligned on 2-byte boundaries, while in other cases they are aligned on 
4-byte boundaries. Why this discrepance? And is there a way to find out 
what alignment the incoming data uses?


More information about the ffmpeg-devel mailing list