ffplay/ffprobe now seems to recognize my file On Tue, Oct 8, 2024 at 3:03 PM Andrew Randrianasulu <randrianas...@gmail.com> wrote:
> I was experimenting with mencoder > > taskset -c 0 qemu-i386 -cpu pentium /usr/bin/mencoder -ovc nuv -oac copy > raw.avi -o nuv.avi -of avi -noodml > > and it created interesting avi file. > > ffprobe -i nuv.avi > > [avi @ 0x8e124c0] Could not find codec parameters for stream 0 (Video: > none (NUV1 / 0x3156554E), none, 320x240, 724 kb/s): unknown codec > > I think ff_codec_bmp_tags_unofficial in libavformat/riff.c can be extended > with AV_CODEC_ID_NUV and fourcc NUV1 > > what do you think? ;) >
From 9bc167893466062f9b5f59be6ebc68c96557cbf7 Mon Sep 17 00:00:00 2001 From: Andrew Randrianasulu <randrianas...@gmail.com> Date: Tue, 8 Oct 2024 16:04:04 +0300 Subject: [PATCH] avformat: add NUV1 to unofficial bmp tags, so NUV1 in AVI works. --- libavformat/riff.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/riff.c b/libavformat/riff.c index ca81b4837a..55e32eb984 100644 --- a/libavformat/riff.c +++ b/libavformat/riff.c @@ -513,6 +513,7 @@ const AVCodecTag ff_codec_bmp_tags[] = { const AVCodecTag ff_codec_bmp_tags_unofficial[] = { { AV_CODEC_ID_HEVC, MKTAG('H', 'E', 'V', 'C') }, { AV_CODEC_ID_HEVC, MKTAG('H', '2', '6', '5') }, + { AV_CODEC_ID_NUV, MKTAG('N', 'U', 'V', '1') }, { AV_CODEC_ID_NONE, 0 } }; -- 2.46.2
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".