Carl Eugen Hoyos <[email protected]> added the comment:

Two samples uploaded to samples/V-codecs/qnap. Attached patch improves the
situation for video (audio is really missing with libavformat).
file reports:
RIFF (little-endian) data, AVI, 352 x 288, 30.00 fps, video:
(Current FFmpeg reports the size as 94x1819440243)

Works fine with mplayer -demuxer avi -vc +ffodivx (no artefacts, A/V in sync):
...
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO:  []  0x0  0bpp  30.000 fps  1012.9 kbps (123.6 kbyte/s)
==========================================================================
Forced video codec: +ffodivx
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 8000 Hz, 1 ch, s16le, 128.0 kbit/100.00% (ratio: 16000->16000)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)

The following two lines are printed for every few frames:
[mpeg4 @ 0x89a20a0]header damaged
Error while decoding frame!

----------
status: new -> open
substatus: new -> open

________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/issue2324>
________________________________________________
Index: libavformat/riff.c
===================================================================
--- libavformat/riff.c	(Revision 25569)
+++ libavformat/riff.c	(Arbeitskopie)
@@ -82,6 +82,7 @@
     { CODEC_ID_MPEG4,        MKTAG('U', 'L', 'D', 'X') },
     { CODEC_ID_MPEG4,        MKTAG('G', 'E', 'O', 'V') },
     { CODEC_ID_MPEG4,        MKTAG('S', 'I', 'P', 'P') }, /* Samsung SHR-6040 */
+    { CODEC_ID_MPEG4,        0x0038                    }, /* qnap */
     { CODEC_ID_MSMPEG4V3,    MKTAG('M', 'P', '4', '3') },
     { CODEC_ID_MSMPEG4V3,    MKTAG('D', 'I', 'V', '3') },
     { CODEC_ID_MSMPEG4V3,    MKTAG('M', 'P', 'G', '3') },

Reply via email to