[FFmpeg-devel] [PATCH] libavformat/riffenc: handle gray8 format for uncompressed avi

Michael Niedermayer michael at niedermayer.cc
Fri Aug 20 21:15:33 EEST 2021


On Thu, Aug 19, 2021 at 12:07:33PM +0800, rui.jiang wrote:
> add palette data in avi header when the input data is raw gray8 pixel data and the output data is 8bit uncompressed avi video
> 
> Signed-off-by: rui.jiang <229135609 at qq.com>
> ---
>  libavformat/riffenc.c | 9 +++++++++
>  1 file changed, 9 insertions(+)

breaks rawvideo in ffv1

./ffmpeg  -f rawvideo -framerate 2 -s 192x144 -pix_fmt gray -i video.raw -vcodec ffv1  -y  test.avi && ./ffmpeg -i test.avi -f null -
...
[ffv1 @ 0x5636115c9f40] Invalid version in global header
Stream mapping:
  Stream #0:0 -> #0:0 (ffv1 (native) -> wrapped_avframe (native))
Error while opening decoder for input stream #0:0 : Invalid data found when processing input


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Let us carefully observe those good qualities wherein our enemies excel us
and endeavor to excel them, by avoiding what is faulty, and imitating what
is excellent in them. -- Plutarch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20210820/dfa89fb2/attachment.sig>


More information about the ffmpeg-devel mailing list