Opened 13 years ago

Closed 12 years ago

Last modified 7 years ago

#285 closed defect (fixed)

RTSP h264 video stream always reports corrupted macroblock

Reported by: bovine Owned by: Michael Niedermayer
Priority: normal Component: avformat
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

I am trying to convert a RTSP h264 video stream from a "Geovision" IP camera to any other format but ffmpeg always sees errors in the video data. The resulting video only shows the first few lines of each frame.

I've captured a few seconds of video (~4MB) to a file using the "openRTSP" utility. Unfortunately, your ftp server at upload.ffmpeg.org currently appears to be offline, so it is here:
http://www.bovine.net/~jlawson/exchange/bovine-video-H264-1

bovine:~>ffmpeg -i bovine-video-H264-1 -y -vcodec mjpeg -an record.mjpeg

FFmpeg version 0.6.3, Copyright (c) 2000-2010 the FFmpeg developers

built on Jun 14 2011 01:06:02 with gcc 4.2.1 20070719 [FreeBSD]
configuration: --prefix=/usr/local --mandir=/usr/local/man --enable-shared --enable-gpl --enable-postproc --enable-avfilter --enable-avfilter-lavf --enable-pthreads --enable-x11grab --enable-memalign-hack --cc=cc --extra-cflags=-msse -I/usr/local/include/vorbis -I/usr/local/include --extra-ldflags=-L/usr/local/lib --extra-libs=-pthread --disable-debug --enable-runtime-cpudetect --disable-indev=alsa --disable-outdev=alsa --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libdirac --disable-libfaac --enable-libfaad --enable-libfaadbin --disable-libgsm --disable-libmp3lame --disable-libopenjpeg --enable-libschroedinger --disable-ffplay --disable-libspeex --enable-libtheora --disable-vaapi --disable-vdpau --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid
libavutil 50.15. 1 / 50.15. 1
libavcodec 52.72. 2 / 52.72. 2
libavformat 52.64. 2 / 52.64. 2
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 1.19. 0 / 1.19. 0
libswscale 0.11. 0 / 0.11. 0
libpostproc 51. 2. 0 / 51. 2. 0

[h264 @ 0x80460db10]corrupted macroblock 100 12 (total_coeff=-1)
[h264 @ 0x80460db10]error while decoding MB 100 12
[h264 @ 0x80460db10]concealing 6093 DC, 6093 AC, 6093 MV errors
[h264 @ 0x80460db10]illegal POC type 4
[h264 @ 0x80460db10]missing picture in access unit
[h264 @ 0x804622010]Estimating duration from bitrate, this may be inaccurate

Seems stream 0 codec frame rate differs from container frame rate: 15.00 (15/1) -> 7.50 (15/2)
Input #0, h264, from 'video-H264-1':

Duration: N/A, bitrate: N/A

Stream #0.0: Video: h264, yuv420p, 2048x1944, 7.50 fps, 7.50 tbr, 1200k tbn, 15 tbc

Output #0, mjpeg, to 'record.mjpeg':

Metadata:

encoder : Lavf52.64.2
Stream #0.0: Video: mjpeg, yuvj420p, 2048x1944, q=2-31, 200 kb/s, 90k tbn, 7.50 tbc

Stream mapping:

Stream #0.0 -> #0.0

Press [q] to stop encoding
[h264 @ 0x80460db10]corrupted macroblock 100 12 (total_coeff=-1)
[h264 @ 0x80460db10]error while decoding MB 100 12
[h264 @ 0x80460db10]concealing 6093 DC, 6093 AC, 6093 MV errors
[h264 @ 0x80460db10]Invalid level prefix
[h264 @ 0x80460db10]error while decoding MB 45 14
[h264 @ 0x80460db10]concealing 5892 DC, 5892 AC, 5892 MV errors
[h264 @ 0x80460db10]concealing 5847 DC, 5847 AC, 5847 MV errors
[h264 @ 0x80460db10]concealing 5840 DC, 5840 AC, 5840 MV errors
[h264 @ 0x80460db10]corrupted macroblock 92 14 (total_coeff=-1)
[h264 @ 0x80460db10]error while decoding MB 92 14
[h264 @ 0x80460db10]concealing 5845 DC, 5845 AC, 5845 MV errors
frame= 5 fps= 0 q=5.8 size= 1162kB time=0.67 bitrate=14283.1kbits/s M[h264 @ 0x80460db10]corrupted macroblock 101 12 (total_coeff=-1)
[h264 @ 0x80460db10]error while decoding MB 101 12
[h264 @ 0x80460db10]concealing 6092 DC, 6092 AC, 6092 MV errors
[h264 @ 0x80460db10]Invalid level prefix
[h264 @ 0x80460db10]error while decoding MB 39 14
[h264 @ 0x80460db10]concealing 5898 DC, 5898 AC, 5898 MV errors
[h264 @ 0x80460db10]corrupted macroblock 80 14 (total_coeff=-1)
[h264 @ 0x80460db10]error while decoding MB 80 14
[h264 @ 0x80460db10]concealing 5857 DC, 5857 AC, 5857 MV errors
[h264 @ 0x80460db10]illegal reordering_of_pic_nums_idc
[h264 @ 0x80460db10]decode_slice_header error
[h264 @ 0x80460db10]concealing 5846 DC, 5846 AC, 5846 MV errors
frame= 9 fps= 7 q=16.7 size= 1744kB time=1.20 bitrate=11902.6kbits/s
M[h264 @ 0x80460db10]corrupted macroblock 94 14 (total_coeff=-1)
[h264 @ 0x80460db10]error while decoding MB 94 14
[h264 @ 0x80460db10]concealing 5843 DC, 5843 AC, 5843 MV errors
[h264 @ 0x80460db10]concealing 6087 DC, 6087 AC, 6087 MV errors
[h264 @ 0x80460db10]corrupted macroblock 54 14 (total_coeff=-1)
[h264 @ 0x80460db10]error while decoding MB 54 14
[h264 @ 0x80460db10]concealing 13819 DC, 13819 AC, 13819 MV errors
frame= 12 fps= 7 q=24.8 size= 2052kB time=1.60 bitrate=10504.5kbits/s M[h264 @ 0x80460db10]concealing 7680 DC, 7680 AC, 7680 MV errors
[h264 @ 0x80460db10]negative number of zero coeffs at 91 14
[h264 @ 0x80460db10]error while decoding MB 91 14
[h264 @ 0x80460db10]concealing 5846 DC, 5846 AC, 5846 MV errors
[h264 @ 0x80460db10]negative number of zero coeffs at 90 14
[h264 @ 0x80460db10]error while decoding MB 90 14
[h264 @ 0x80460db10]concealing 5847 DC, 5847 AC, 5847 MV errors
[h264 @ 0x80460db10]Invalid level prefix
[h264 @ 0x80460db10]error while decoding MB 91 14
[h264 @ 0x80460db10]concealing 5846 DC, 5846 AC, 5846 MV errors
frame= 16 fps= 7 q=24.8 size= 2444kB time=2.13 bitrate=9383.7kbits/s
M[h264 @ 0x80460db10]concealing 6091 DC, 6091 AC, 6091 MV errors
[h264 @ 0x80460db10]concealing 5888 DC, 5888 AC, 5888 MV errors
[h264 @ 0x80460db10]concealing 5801 DC, 5801 AC, 5801 MV errors
[h264 @ 0x80460db10]cbp too large (4294967295) at 93 14
[h264 @ 0x80460db10]error while decoding MB 93 14
[h264 @ 0x80460db10]concealing 5844 DC, 5844 AC, 5844 MV errors
frame= 20 fps= 7 q=24.8 size= 2826kB time=2.67 bitrate=8682.8kbits/s M[h264 @ 0x80460db10]corrupted macroblock 93 14 (total_coeff=-1)
[h264 @ 0x80460db10]error while decoding MB 93 14
[h264 @ 0x80460db10]concealing 13780 DC, 13780 AC, 13780 MV errors
[h264 @ 0x80460db10]illegal POC type 4
[h264 @ 0x80460db10]concealing 7680 DC, 7680 AC, 7680 MV errors
[h264 @ 0x80460db10]Invalid level prefix
[h264 @ 0x80460db10]error while decoding MB 100 12
[h264 @ 0x80460db10]concealing 6093 DC, 6093 AC, 6093 MV errors
frame= 23 fps= 7 q=24.8 size= 3109kB time=3.07 bitrate=8304.3kbits/s
M[h264 @ 0x80460db10]corrupted macroblock 41 14 (total_coeff=-1)
[h264 @ 0x80460db10]error while decoding MB 41 14
[h264 @ 0x80460db10]concealing 5896 DC, 5896 AC, 5896 MV errors
[h264 @ 0x80460db10]corrupted macroblock 84 14 (total_coeff=-1)
[h264 @ 0x80460db10]error while decoding MB 84 14
[h264 @ 0x80460db10]concealing 5853 DC, 5853 AC, 5853 MV errors
[h264 @ 0x80460db10]corrupted macroblock 90 14 (total_coeff=-1)
[h264 @ 0x80460db10]error while decoding MB 90 14
[h264 @ 0x80460db10]concealing 5847 DC, 5847 AC, 5847 MV errors
[h264 @ 0x80460db10]concealing 5842 DC, 5842 AC, 5842 MV errors
frame= 27 fps= 7 q=24.8 size= 3494kB time=3.60 bitrate=7951.4kbits/s M[h264 @ 0x80460db10]corrupted macroblock 99 12 (total_coeff=-1)
[h264 @ 0x80460db10]error while decoding MB 99 12
[h264 @ 0x80460db10]concealing 6094 DC, 6094 AC, 6094 MV errors
[h264 @ 0x80460db10]corrupted macroblock 51 14 (total_coeff=-1)
[h264 @ 0x80460db10]error while decoding MB 51 14
[h264 @ 0x80460db10]concealing 5886 DC, 5886 AC, 5886 MV errors
[h264 @ 0x80460db10]Invalid level prefix
[h264 @ 0x80460db10]error while decoding MB 90 14
[h264 @ 0x80460db10]concealing 5847 DC, 5847 AC, 5847 MV errors
[h264 @ 0x80460db10]Invalid level prefix
[h264 @ 0x80460db10]error while decoding MB 92 14
[h264 @ 0x80460db10]concealing 5845 DC, 5845 AC, 5845 MV errors
frame= 31 fps= 7 q=24.8 size= 3884kB time=4.13 bitrate=7698.5kbits/s
M[h264 @ 0x80460db10]negative number of zero coeffs at 91 14
[h264 @ 0x80460db10]error while decoding MB 91 14
[h264 @ 0x80460db10]concealing 5846 DC, 5846 AC, 5846 MV errors
[h264 @ 0x80460db10]top block unavailable for requested intra4x4 mode -1 at 2 0
[h264 @ 0x80460db10]error while decoding MB 2 0
[h264 @ 0x80460db10]concealing 7680 DC, 7680 AC, 7680 MV errors
[h264 @ 0x80460db10]missing picture in access unit
frame= 33 fps= 6 q=24.8 Lsize= 4075kB time=4.40 bitrate=7587.8kbits/s
video:4075kB audio:0kB global headers:0kB muxing overhead 0.000000%

Change History (23)

comment:1 by Carl Eugen Hoyos, 13 years ago

Please test latest git head (the version you are using is ancient, sorry if the download page does not make this clear).

comment:2 by bovine, 13 years ago

I still have the same problem with the latest ffmpeg and libh264 from git:

bovine:~>ffmpeg -i bovine-video-H264-1 -y -vcodec mjpeg -an record.mjpeg
ffmpeg version git-N-30845-gbde8055, Copyright (c) 2000-2011 the FFmpeg developers
  built on Jun 18 2011 12:14:58 with gcc 4.2.1 20070719  [FreeBSD]
  configuration: --prefix=/usr/local --mandir=/usr/local/man --enable-shared --enable-gpl --enable-postproc --enable-avfilter --enable-pthreads --enable-x11grab --enable-memalign-hack --cc=cc --extra-cflags='-msse -I/usr/local/include/vorbis -I/usr/local/include' --extra-ldflags='-L/usr/local/lib ' --extra-libs=-pthread --disable-debug --enable-runtime-cpudetect --disable-indev=alsa --disable-outdev=alsa --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-libdirac --disable-libfaac --disable-frei0r --disable-libgsm --enable-libmp3lame --disable-libopencv --disable-libopenjpeg --enable-libschroedinger --disable-ffplay --disable-libspeex --enable-libtheora --disable-vaapi --disable-vdpau --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid
  libavutil    51.  9. 0 / 51.  9. 0
  libavcodec   53.  7. 0 / 53.  7. 0
  libavformat  53.  4. 0 / 53.  4. 0
  libavdevice  53.  1. 1 / 53.  1. 1
  libavfilter   2. 18. 0 /  2. 18. 0
  libswscale    0. 14. 1 /  0. 14. 1
  libpostproc  51.  2. 0 / 51.  2. 0
[h264 @ 0x804c0db20] corrupted macroblock 100 12 (total_coeff=-1)
[h264 @ 0x804c0db20] error while decoding MB 100 12
[h264 @ 0x804c0db20] concealing 6093 DC, 6093 AC, 6093 MV errors
[h264 @ 0x804c0db20] Invalid level prefix
[h264 @ 0x804c0db20] error while decoding MB 45 14
[h264 @ 0x804c0db20] concealing 5892 DC, 5892 AC, 5892 MV errors
[h264 @ 0x804c0db20] concealing 5847 DC, 5847 AC, 5847 MV errors
[h264 @ 0x804c0db20] concealing 5840 DC, 5840 AC, 5840 MV errors
[h264 @ 0x804c0db20] corrupted macroblock 92 14 (total_coeff=-1)
[h264 @ 0x804c0db20] error while decoding MB 92 14
[h264 @ 0x804c0db20] concealing 5845 DC, 5845 AC, 5845 MV errors
[h264 @ 0x804c0db20] corrupted macroblock 101 12 (total_coeff=-1)
[h264 @ 0x804c0db20] error while decoding MB 101 12
[h264 @ 0x804c0db20] concealing 6092 DC, 6092 AC, 6092 MV errors
[h264 @ 0x804c0db20] illegal POC type 4
[h264 @ 0x804c18c20] Estimating duration from bitrate, this may be inaccurate

Seems stream 0 codec frame rate differs from container frame rate: 15.00 (15/1) -> 7.50 (15/2)
Input #0, h264, from 'bovine-video-H264-1':
  Duration: N/A, bitrate: N/A
    Stream #0.0: Video: h264 (High), yuvj420p, 2048x1944, 7.50 fps, 7.50 tbr, 1200k tbn, 15 tbc
[buffer @ 0x804c2a180] w:2048 h:1944 pixfmt:yuvj420p tb:1/1000000 sar:0/1 sws_param:
Output #0, mjpeg, to 'record.mjpeg':
  Metadata:
    encoder         : Lavf53.4.0
    Stream #0.0: Video: mjpeg, yuvj420p, 2048x1944, q=2-31, 200 kb/s, 90k tbn, 7.50 tbc
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop, [?] for help
[h264 @ 0x804c0db20] corrupted macroblock 100 12 (total_coeff=-1)
[h264 @ 0x804c0db20] error while decoding MB 100 12
[h264 @ 0x804c0db20] concealing 6093 DC, 6093 AC, 6093 MV errors
[h264 @ 0x804c0db20] Invalid level prefix
[h264 @ 0x804c0db20] error while decoding MB 45 14
[h264 @ 0x804c0db20] concealing 5892 DC, 5892 AC, 5892 MV errors
[h264 @ 0x804c0db20] concealing 5847 DC, 5847 AC, 5847 MV errors
[h264 @ 0x804c0db20] concealing 5840 DC, 5840 AC, 5840 MV errors
[h264 @ 0x804c0db20] corrupted macroblock 92 14 (total_coeff=-1)
[h264 @ 0x804c0db20] error while decoding MB 92 14
[h264 @ 0x804c0db20] concealing 5845 DC, 5845 AC, 5845 MV errors
[h264 @ 0x804c0db20] corrupted macroblock 101 12 (total_coeff=-1)
[h264 @ 0x804c0db20] error while decoding MB 101 12
[h264 @ 0x804c0db20] concealing 6092 DC, 6092 AC, 6092 MV errors
[h264 @ 0x804c0db20] Invalid level prefix time=00:00:00.80 bitrate=13348.1kbits/s
[h264 @ 0x804c0db20] error while decoding MB 39 14
[h264 @ 0x804c0db20] concealing 5898 DC, 5898 AC, 5898 MV errors
[h264 @ 0x804c0db20] corrupted macroblock 80 14 (total_coeff=-1)
[h264 @ 0x804c0db20] error while decoding MB 80 14
[h264 @ 0x804c0db20] concealing 5857 DC, 5857 AC, 5857 MV errors
[h264 @ 0x804c0db20] illegal reordering_of_pic_nums_idc
[h264 @ 0x804c0db20] decode_slice_header error
[h264 @ 0x804c0db20] concealing 5846 DC, 5846 AC, 5846 MV errors
[h264 @ 0x804c0db20] corrupted macroblock 94 14 (total_coeff=-1)
[h264 @ 0x804c0db20] error while decoding MB 94 14
[h264 @ 0x804c0db20] concealing 5843 DC, 5843 AC, 5843 MV errors
[h264 @ 0x804c0db20] concealing 6087 DC, 6087 AC, 6087 MV errors
[h264 @ 0x804c0db20] corrupted macroblock 54 14 (total_coeff=-1)ate=10632.6kbits/s
[h264 @ 0x804c0db20] error while decoding MB 54 14
[h264 @ 0x804c0db20] concealing 13819 DC, 13819 AC, 13819 MV errors
[h264 @ 0x804c0db20] concealing 7680 DC, 7680 AC, 7680 MV errors
[h264 @ 0x804c0db20] negative number of zero coeffs at 91 14
[h264 @ 0x804c0db20] error while decoding MB 91 14
[h264 @ 0x804c0db20] concealing 5846 DC, 5846 AC, 5846 MV errors
[h264 @ 0x804c0db20] negative number of zero coeffs at 90 14
[h264 @ 0x804c0db20] error while decoding MB 90 14
[h264 @ 0x804c0db20] concealing 5847 DC, 5847 AC, 5847 MV errors
[h264 @ 0x804c0db20] Invalid level prefixB time=00:00:02.00 bitrate=9345.4kbits/s
[h264 @ 0x804c0db20] error while decoding MB 91 14
[h264 @ 0x804c0db20] concealing 5846 DC, 5846 AC, 5846 MV errors
[h264 @ 0x804c0db20] concealing 6091 DC, 6091 AC, 6091 MV errors
[h264 @ 0x804c0db20] concealing 5888 DC, 5888 AC, 5888 MV errors
[h264 @ 0x804c0db20] concealing 5801 DC, 5801 AC, 5801 MV errors
[h264 @ 0x804c0db20] cbp too large (4294967295) at 93 14
[h264 @ 0x804c0db20] error while decoding MB 93 14
[h264 @ 0x804c0db20] concealing 5844 DC, 5844 AC, 5844 MV errors
[h264 @ 0x804c0db20] corrupted macroblock 93 14 (total_coeff=-1)ate=8450.6kbits/s
[h264 @ 0x804c0db20] error while decoding MB 93 14
[h264 @ 0x804c0db20] concealing 13780 DC, 13780 AC, 13780 MV errors
[h264 @ 0x804c0db20] illegal POC type 4
[h264 @ 0x804c0db20] concealing 7680 DC, 7680 AC, 7680 MV errors
[h264 @ 0x804c0db20] Invalid level prefix
[h264 @ 0x804c0db20] error while decoding MB 100 12
[h264 @ 0x804c0db20] concealing 6093 DC, 6093 AC, 6093 MV errors
[h264 @ 0x804c0db20] corrupted macroblock 41 14 (total_coeff=-1)
[h264 @ 0x804c0db20] error while decoding MB 41 14
[h264 @ 0x804c0db20] concealing 5896 DC, 5896 AC, 5896 MV errors
[h264 @ 0x804c0db20] corrupted macroblock 84 14 (total_coeff=-1)ate=7985.6kbits/s
[h264 @ 0x804c0db20] error while decoding MB 84 14
[h264 @ 0x804c0db20] concealing 5853 DC, 5853 AC, 5853 MV errors
[h264 @ 0x804c0db20] corrupted macroblock 90 14 (total_coeff=-1)
[h264 @ 0x804c0db20] error while decoding MB 90 14
[h264 @ 0x804c0db20] concealing 5847 DC, 5847 AC, 5847 MV errors
[h264 @ 0x804c0db20] concealing 5842 DC, 5842 AC, 5842 MV errors
[h264 @ 0x804c0db20] corrupted macroblock 99 12 (total_coeff=-1)
[h264 @ 0x804c0db20] error while decoding MB 99 12
[h264 @ 0x804c0db20] concealing 6094 DC, 6094 AC, 6094 MV errors
[h264 @ 0x804c0db20] corrupted macroblock 51 14 (total_coeff=-1)
[h264 @ 0x804c0db20] error while decoding MB 51 14
[h264 @ 0x804c0db20] concealing 5886 DC, 5886 AC, 5886 MV errors
[h264 @ 0x804c0db20] Invalid level prefixB time=00:00:03.86 bitrate=7607.6kbits/s
[h264 @ 0x804c0db20] error while decoding MB 90 14
[h264 @ 0x804c0db20] concealing 5847 DC, 5847 AC, 5847 MV errors
[h264 @ 0x804c0db20] Invalid level prefix
[h264 @ 0x804c0db20] error while decoding MB 92 14
[h264 @ 0x804c0db20] concealing 5845 DC, 5845 AC, 5845 MV errors
[h264 @ 0x804c0db20] negative number of zero coeffs at 91 14
[h264 @ 0x804c0db20] error while decoding MB 91 14
[h264 @ 0x804c0db20] concealing 5846 DC, 5846 AC, 5846 MV errors
[h264 @ 0x804c0db20] top block unavailable for requested intra4x4 mode -1 at 2 0
[h264 @ 0x804c0db20] error while decoding MB 2 0
[h264 @ 0x804c0db20] concealing 7680 DC, 7680 AC, 7680 MV errors
frame=   33 fps=  8 q=24.8 Lsize=    3966kB time=00:00:04.40 bitrate=7384.5kbits/s
video:3966kB audio:0kB global headers:0kB muxing overhead 0.000000%
bovine:~>

comment:3 by burek, 13 years ago

I'm getting the same results:

$ ffmpeg -i Downloads/bovine-video-H264-1 
ffmpeg version git-N-30845-gbde8055, Copyright (c) 2000-2011 the FFmpeg developers
  built on Jun 18 2011 23:44:20 with gcc 4.6.1 20110526 (prerelease)
  configuration: --enable-static --enable-gpl --enable-nonfree --enable-postproc --enable-runtime-cpudetect --enable-bzlib --enable-libfaac --enable-libopenjpeg --enable-libx264 --enable-zlib --enable-libaacplus
  libavutil    51.  9. 0 / 51.  9. 0
  libavcodec   53.  7. 0 / 53.  7. 0
  libavformat  53.  4. 0 / 53.  4. 0
  libavdevice  53.  1. 1 / 53.  1. 1
  libavfilter   2. 18. 0 /  2. 18. 0
  libswscale    0. 14. 1 /  0. 14. 1
  libpostproc  51.  2. 0 / 51.  2. 0
[h264 @ 0xa31d200] corrupted macroblock 100 12 (total_coeff=-1)
[h264 @ 0xa31d200] error while decoding MB 100 12
[h264 @ 0xa31d200] concealing 6093 DC, 6093 AC, 6093 MV errors
[h264 @ 0xa31d200] Invalid level prefix
[h264 @ 0xa31d200] error while decoding MB 45 14
[h264 @ 0xa31d200] concealing 5892 DC, 5892 AC, 5892 MV errors
[h264 @ 0xa31d200] concealing 5847 DC, 5847 AC, 5847 MV errors
[h264 @ 0xa31d200] concealing 5840 DC, 5840 AC, 5840 MV errors
[h264 @ 0xa31d200] corrupted macroblock 92 14 (total_coeff=-1)
[h264 @ 0xa31d200] error while decoding MB 92 14
[h264 @ 0xa31d200] concealing 5845 DC, 5845 AC, 5845 MV errors
[h264 @ 0xa31d200] corrupted macroblock 101 12 (total_coeff=-1)
[h264 @ 0xa31d200] error while decoding MB 101 12
[h264 @ 0xa31d200] concealing 6092 DC, 6092 AC, 6092 MV errors
[h264 @ 0xa31d200] illegal POC type 4
[h264 @ 0xa31b340] Estimating duration from bitrate, this may be inaccurate

Seems stream 0 codec frame rate differs from container frame rate: 15.00 (15/1) -> 7.50 (15/2)
Input #0, h264, from 'Downloads/bovine-video-H264-1':
  Duration: N/A, bitrate: N/A
    Stream #0.0: Video: h264 (High), yuvj420p, 2048x1944, 7.50 fps, 7.50 tbr, 1200k tbn, 15 tbc
At least one output file must be specified

comment:4 by Carl Eugen Hoyos, 13 years ago

Please test ffmpeg -i rtsp://... -qscale 10 out.avi, I don't think the captured file can be played ("001" missing between the slices, iirc).

comment:5 by andrewc, 13 years ago

I believe I've hit a related (if not identical) bug with "Geovision GV-FE420" (which almost caused me to lose my sanity). When viewing an rtsp stream (in zoneminder) via ffmpeg, the output is corrupted in almost every frame after the first. VLC displays ok, but disconnects after 20-40 minutes. I currently have a ticket open with Geovision, so far they have been responsive but we haven't gotten very far into resolving this issue.

openRTSP dumped the RTSP stream ok, where as ffmpeg (head compile 5 days ago) generated a lot of errors to stderr/stdout.

I will perform the test recommended by cehoyos, and post the results tomorrow. Alternatively, if you believe this to be unrelated, I will open another ticket.

comment:6 by bovine, 13 years ago

cehoyos, I have run your requested command (with extra logging verbosity) to capture some new video and there are still many decoding errors.

andrewc, in fact my camera is also a "Geovision GV-FE420" fisheye camera. Are these log error messages similar to what you see?

ffmpeg -v 9 -loglevel 99 -i rtsp://admin:admin@192.168.1.71:8554/CH001.sdp -qscale 10 bovine-qscale10-out5.avi

ffmpeg version git-N-30845-gbde8055, Copyright (c) 2000-2011 the FFmpeg developers
  built on Jun 18 2011 12:14:58 with gcc 4.2.1 20070719  [FreeBSD]
  configuration: --prefix=/usr/local --mandir=/usr/local/man --enable-shared --enable-gpl --enable-postproc --enable-avfilter --enable-pthreads --enable-x11grab --enable-memalign-hack --cc=cc --extra-cflags='-msse -I/usr/local/include/vorbis -I/usr/local/include' --extra-ldflags='-L/usr/local/lib ' --extra-libs=-pthread --disable-debug --enable-runtime-cpudetect --disable-indev=alsa --disable-outdev=alsa --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-libdirac --disable-libfaac --disable-frei0r --disable-libgsm --enable-libmp3lame --disable-libopencv --disable-libopenjpeg --enable-libschroedinger --disable-ffplay --disable-libspeex --enable-libtheora --disable-vaapi --disable-vdpau --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid
  libavutil    51.  9. 0 / 51.  9. 0
  libavcodec   53.  7. 0 / 53.  7. 0
  libavformat  53.  4. 0 / 53.  4. 0
  libavdevice  53.  1. 1 / 53.  1. 1
  libavfilter   2. 18. 0 /  2. 18. 0
  libswscale    0. 14. 1 /  0. 14. 1
  libpostproc  51.  2. 0 / 51.  2. 0
[rtsp @ 0x804c18c20] SDP:
v=0
o=QTSS_Play_List 1308671958393419 1 IN IP4 192.168.1.71
s=streamed by the GeoVision Rtsp Server
i=CH001.sdp
t=0 0
a=type:broadcast
a=control:*
a=range:npt=0-
a=x-qt-text-nam:streamed by the GeoVision Rtsp Server
a=x-qt-text-inf:CH001.sdp
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
b=AS:51200
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;profile-level-id=640032;sprop-parameter-sets=Z2QAMq2EBUViuKxUdCAqKxXFYqOhAVFYrisVHQgKisVxWKjoQFRWK4rFR0ICorFcVio6ECSFITk8nyfk/k/J8nm5s00IEkKQnJ5Pk/J/J+T5PNzZprQBAAevyypAAAD6AAAOphgQAAAgL78AAAQF9+ve+F4RCNQ=,aM48sA==
a=control:track1
m=audio 0 RTP/AVP 97
c=IN IP4 0.0.0.0
b=AS:500
a=rtpmap:97 MPEG4-GENERIC/16000
a=fmtp:97 streamtype=5;profile-level-id=1;mode=AAC-hbr;sizelength=13;indexlength=3;indexdeltalength=3;config=1408
a=control:track2

[rtsp @ 0x804c18c20] video codec set to: h264
[NULL @ 0x804c0e020] RTP Packetization Mode: 1
[NULL @ 0x804c0e020] RTP Profile IDC: 64 Profile IOP: 0 Level: 32
[NULL @ 0x804c0e020] Extradata set to 0x804c4c1a0 (size: 129)!audio codec set to: aac
[rtsp @ 0x804c18c20] audio samplerate set to: 16000
[rtsp @ 0x804c18c20] audio channels set to: 1
[rtsp @ 0x804c18c20] hello state=0
[h264 @ 0x804c0e020] Unsupported bit depth: 0
[h264 @ 0x804c0e020] Missing reference picture
[h264 @ 0x804c0e020] decode_slice_header error
[h264 @ 0x804c0e020] Missing reference picture
[h264 @ 0x804c0e020] decode_slice_header error
[h264 @ 0x804c0e020] concealing 15616 DC, 15616 AC, 15616 MV errors
[h264 @ 0x804c0e020] out of range intra chroma pred mode at 104 5
[h264 @ 0x804c0e020] error while decoding MB 104 5
[h264 @ 0x804c0e020] concealing 14665 DC, 14665 AC, 14665 MV errors
[h264 @ 0x804c0e020] no picture
[h264 @ 0x804c0e020] P sub_mb_type 14 out of range at 77 3
[h264 @ 0x804c0e020] error while decoding MB 77 3
[h264 @ 0x804c0e020] P sub_mb_type 14 out of range at 103 110
[h264 @ 0x804c0e020] error while decoding MB 103 110
[h264 @ 0x804c0e020] concealing 8494 DC, 8494 AC, 8494 MV errors
[h264 @ 0x804c0e020] no picture
[h264 @ 0x804c0e020] P sub_mb_type 32 out of range at 110 4
[h264 @ 0x804c0e020] error while decoding MB 110 4
[h264 @ 0x804c0e020] mb_type 30 in I slice too large at 84 80
[h264 @ 0x804c0e020] error while decoding MB 84 80
[h264 @ 0x804c0e020] Missing reference picture
[h264 @ 0x804c0e020] decode_slice_header error
[h264 @ 0x804c0e020] concealing 12448 DC, 12448 AC, 12448 MV errors
[udp @ 0x804c30120] circular_buffer: OVERRUN
[h264 @ 0x804c0e020] out of range intra chroma pred mode at 55 90
[h264 @ 0x804c0e020] error while decoding MB 55 90
[h264 @ 0x804c0e020] concealing 11514 DC, 11514 AC, 11514 MV errors
[rtsp @ 0x804c18c20] All info found
[rtsp @ 0x804c18c20] Estimating duration from bitrate, this may be inaccurate

Seems stream 0 codec frame rate differs from container frame rate: 15.00 (15/1) -> 7.50 (15/2)
Input #0, rtsp, from 'rtsp://admin:admin@192.168.1.71:8554/CH001.sdp':
  Metadata:
    title           : streamed by the GeoVision Rtsp Server
    comment         : CH001.sdp
  Duration: N/A, start: 0.991625, bitrate: N/A
    Stream #0.0, 22, 1/90000: Video: h264 (High), yuvj420p, 2048x1944, 1/15, 7.50 fps, 7.50 tbr, 90k tbn, 15 tbc
    Stream #0.1, 2, 1/16000: Audio: aac, 16000 Hz, mono, s16
Incompatible pixel format 'yuvj420p' for codec 'mpeg4', auto-selecting format 'yuv420p'
[buffer @ 0x804c2dbc0] w:2048 h:1944 pixfmt:yuvj420p tb:1/1000000 sar:0/1 sws_param:
[ffsink @ 0x804c2db40] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'out'
[scale @ 0x804c2dae0] w:2048 h:1944 fmt:yuvj420p -> w:2048 h:1944 fmt:yuv420p flags:0x4
Output #0, avi, to 'bovine-qscale10-out5.avi':
  Metadata:
    INAM            : streamed by the GeoVision Rtsp Server
    ICMT            : CH001.sdp
    ISFT            : Lavf53.4.0
    Stream #0.0, 0, 2/15: Video: mpeg4, yuv420p, 2048x1944, 2/15, q=2-31, 200 kb/s, 7.50 tbn, 7.50 tbc
    Stream #0.1, 0, 9/125: Audio: mp2, 16000 Hz, mono, s16, 64 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop, [?] for help
[h264 @ 0x804c0e020] Missing reference picture
[h264 @ 0x804c0e020] decode_slice_header error
[h264 @ 0x804c0e020] Missing reference picture
[h264 @ 0x804c0e020] decode_slice_header error
[h264 @ 0x804c0e020] concealing 15616 DC, 15616 AC, 15616 MV errors
[h264 @ 0x804c0e020] out of range intra chroma pred mode at 104 5
[h264 @ 0x804c0e020] error while decoding MB 104 5
[h264 @ 0x804c0e020] concealing 14665 DC, 14665 AC, 14665 MV errors
[h264 @ 0x804c0e020] no picture
[h264 @ 0x804c0e020] P sub_mb_type 14 out of range at 77 3
[h264 @ 0x804c0e020] error while decoding MB 77 3
[h264 @ 0x804c0e020] P sub_mb_type 14 out of range at 103 110
[h264 @ 0x804c0e020] error while decoding MB 103 110
[h264 @ 0x804c0e020] concealing 8494 DC, 8494 AC, 8494 MV errors
[h264 @ 0x804c0e020] no picture
[h264 @ 0x804c0e020] P sub_mb_type 32 out of range at 110 4
[h264 @ 0x804c0e020] error while decoding MB 110 4
[h264 @ 0x804c0e020] mb_type 30 in I slice too large at 84 80
[h264 @ 0x804c0e020] error while decoding MB 84 80
[h264 @ 0x804c0e020] Missing reference picture
[h264 @ 0x804c0e020] decode_slice_header error
[h264 @ 0x804c0e020] concealing 12448 DC, 12448 AC, 12448 MV errors
frame=    1 fps=  0 q=10.0 size=      10kB time=00:00:00.07 bitrate=1174.2kbits/s    
[h264 @ 0x804c0e020] out of range intra chroma pred mode at 55 90
[h264 @ 0x804c0e020] error while decoding MB 55 90
[h264 @ 0x804c0e020] concealing 11514 DC, 11514 AC, 11514 MV errors
[h264 @ 0x804c0e020] P sub_mb_type 7 out of range at 121 32
[h264 @ 0x804c0e020] error while decoding MB 121 32
[h264 @ 0x804c0e020] concealing 11448 DC, 11448 AC, 11448 MV errors
frame=    4 fps=  4 q=10.0 size=      10kB time=00:00:00.07 bitrate=1174.2kbits/s    
*** drop!
*** drop!
*** drop!
*** drop!
*** drop!
*** drop!
frame=    9 fps=  6 q=10.0 size=      10kB time=00:00:00.07 bitrate=1174.2kbits/s dup=0 drop=6    
*** drop!
*** drop!
[h264 @ 0x804c0e020] concealing 4447 DC, 4447 AC, 4447 MV errors
*** drop!
[h264 @ 0x804c0e020] mb_type 82 in I slice too large at 34 50
[h264 @ 0x804c0e020] error while decoding MB 34 50
[h264 @ 0x804c0e020] Missing reference picture
[h264 @ 0x804c0e020] decode_slice_header error
[h264 @ 0x804c0e020] Missing reference picture
[h264 @ 0x804c0e020] decode_slice_header error
[h264 @ 0x804c0e020] concealing 9231 DC, 9231 AC, 9231 MV errors
frame=   13 fps=  6 q=10.0 size=      10kB time=00:00:00.07 bitrate=1174.2kbits/s dup=0 drop=9    
[h264 @ 0x804c0e020] corrupted macroblock 23 80 (total_coeff=-1)
[h264 @ 0x804c0e020] error while decoding MB 23 80
[h264 @ 0x804c0e020] concealing 5146 DC, 5146 AC, 5146 MV errors
*** drop!
[h264 @ 0x804c0e020] mb_type 57 in I slice too large at 92 29
[h264 @ 0x804c0e020] error while decoding MB 92 29
[h264 @ 0x804c0e020] concealing 11861 DC, 11861 AC, 11861 MV errors
frame=   15 fps=  6 q=10.0 size=      10kB time=00:00:00.07 bitrate=1174.2kbits/s dup=0 drop=10    
[h264 @ 0x804c0e020] Frame num gap 3 1
[h264 @ 0x804c0e020] corrupted macroblock 96 80 (total_coeff=-1)
[h264 @ 0x804c0e020] error while decoding MB 96 80
[h264 @ 0x804c0e020] concealing 5329 DC, 5329 AC, 5329 MV errors
[h264 @ 0x804c0e020] Frame num gap 3 1
[h264 @ 0x804c0e020] no picture
[h264 @ 0x804c0e020] concealing 5299 DC, 5299 AC, 5299 MV errors
[h264 @ 0x804c0e020] Frame num gap 1 15
[h264 @ 0x804c0e020] no picture
[h264 @ 0x804c0e020] corrupted macroblock 81 116 (total_coeff=-1)
[h264 @ 0x804c0e020] error while decoding MB 81 116
[h264 @ 0x804c0e020] concealing 8416 DC, 8416 AC, 8416 MV errors
frame=   18 fps=  5 q=10.0 size=      10kB time=00:00:00.07 bitrate=1174.2kbits/s dup=0 drop=10    
[h264 @ 0x804c0e020] no picture
[h264 @ 0x804c0e020] mb_type 429 in P slice too large at 94 63
[h264 @ 0x804c0e020] error while decoding MB 94 63
[h264 @ 0x804c0e020] concealing 7507 DC, 7507 AC, 7507 MV errors
[h264 @ 0x804c0e020] out of range intra chroma pred mode at 109 30
[h264 @ 0x804c0e020] error while decoding MB 109 30
[h264 @ 0x804c0e020] concealing 11716 DC, 11716 AC, 11716 MV errors
[h264 @ 0x804c0e020] Frame num gap 3 1
[h264 @ 0x804c0e020] P sub_mb_type 15 out of range at 7 64
[h264 @ 0x804c0e020] error while decoding MB 7 64
[h264 @ 0x804c0e020] concealing 7466 DC, 7466 AC, 7466 MV errors
frame=   20 fps=  5 q=10.0 size=      10kB time=00:00:00.07 bitrate=1174.2kbits/s dup=0 drop=10    
[h264 @ 0x804c0e020] corrupted macroblock 58 80 (total_coeff=-1)
[h264 @ 0x804c0e020] error while decoding MB 58 80
[h264 @ 0x804c0e020] concealing 13047 DC, 13047 AC, 13047 MV errors
[h264 @ 0x804c0e020] Frame num gap 3 1
[h264 @ 0x804c0e020] concealing 7680 DC, 7680 AC, 7680 MV errors
frame=   22 fps=  5 q=10.0 size=      10kB time=00:00:00.07 bitrate=1174.2kbits/s dup=0 drop=10    
[h264 @ 0x804c0e020] out of range intra chroma pred mode at 98 78
[h264 @ 0x804c0e020] error while decoding MB 98 78
[h264 @ 0x804c0e020] Missing reference picture
[h264 @ 0x804c0e020] decode_slice_header error
[h264 @ 0x804c0e020] concealing 13263 DC, 13263 AC, 13263 MV errors
[h264 @ 0x804c0e020] corrupted macroblock 95 10 (total_coeff=-1)
[h264 @ 0x804c0e020] error while decoding MB 95 10
[h264 @ 0x804c0e020] Missing reference picture
[h264 @ 0x804c0e020] decode_slice_header error
[h264 @ 0x804c0e020] Missing reference picture
[h264 @ 0x804c0e020] decode_slice_header error
[h264 @ 0x804c0e020] concealing 14290 DC, 14290 AC, 14290 MV errors
[h264 @ 0x804c0e020] negative number of zero coeffs at 87 39
[h264 @ 0x804c0e020] error while decoding MB 87 39
[h264 @ 0x804c0e020] concealing 10586 DC, 10586 AC, 10586 MV errors
frame=   25 fps=  5 q=10.0 size=      10kB time=00:00:00.07 bitrate=1174.2kbits/s dup=0 drop=10    
[h264 @ 0x804c0e020] Frame num gap 3 1
[h264 @ 0x804c0e020] no picture
[h264 @ 0x804c0e020] concealing 15360 DC, 15360 AC, 15360 MV errors
[h264 @ 0x804c0e020] cbp too large (119) at 94 11
[h264 @ 0x804c0e020] error while decoding MB 94 11
[h264 @ 0x804c0e020] concealing 14163 DC, 14163 AC, 14163 MV errors
[h264 @ 0x804c0e020] concealing 15360 DC, 15360 AC, 15360 MV errors
frame=   27 fps=  5 q=10.0 size=      10kB time=00:00:00.07 bitrate=1174.2kbits/s dup=0 drop=10    
[h264 @ 0x804c0e020] P sub_mb_type 14 out of range at 9 64
[h264 @ 0x804c0e020] error while decoding MB 9 64
[h264 @ 0x804c0e020] concealing 7464 DC, 7464 AC, 7464 MV errors
*** drop!
[h264 @ 0x804c0e020] mb_type 27 in I slice too large at 41 2
[h264 @ 0x804c0e020] error while decoding MB 41 2
[h264 @ 0x804c0e020] Missing reference picture
[h264 @ 0x804c0e020] decode_slice_header error
[h264 @ 0x804c0e020] concealing 15368 DC, 15368 AC, 15368 MV errors
[h264 @ 0x804c0e020] mb_type 51 in P slice too large at 66 95
[h264 @ 0x804c0e020] error while decoding MB 66 95
[h264 @ 0x804c0e020] concealing 3439 DC, 3439 AC, 3439 MV errors
[h264 @ 0x804c0e020] out of range intra chroma pred mode at 93 88
[h264 @ 0x804c0e020] error while decoding MB 93 88
[h264 @ 0x804c0e020] concealing 4308 DC, 4308 AC, 4308 MV errors
frame=   30 fps=  5 q=10.0 size=      10kB time=00:00:00.07 bitrate=1174.2kbits/s dup=0 drop=11    
[h264 @ 0x804c0e020] concealing 3362 DC, 3362 AC, 3362 MV errors
[h264 @ 0x804c0e020] Frame num gap 2 0
[h264 @ 0x804c0e020] no picture
[h264 @ 0x804c0e020] concealing 1941 DC, 1941 AC, 1941 MV errors
[h264 @ 0x804c0e020] Frame num gap 4 2
[h264 @ 0x804c0e020] cbp too large (62) at 29 50
[h264 @ 0x804c0e020] error while decoding MB 29 50
[h264 @ 0x804c0e020] concealing 8980 DC, 8980 AC, 8980 MV errors
*** drop!
[h264 @ 0x804c0e020] out of range intra chroma pred mode at 96 27
[h264 @ 0x804c0e020] error while decoding MB 96 27
[h264 @ 0x804c0e020] concealing 12113 DC, 12113 AC, 12113 MV errors
*** drop!
frame=   33 fps=  5 q=10.0 size=      10kB time=00:00:00.07 bitrate=1174.2kbits/s dup=0 drop=13    
[h264 @ 0x804c0e020] out of range intra chroma pred mode at 38 56
[h264 @ 0x804c0e020] error while decoding MB 38 56
[h264 @ 0x804c0e020] mb_type 39 in P slice too large at 93 91
[h264 @ 0x804c0e020] error while decoding MB 93 91
[h264 @ 0x804c0e020] concealing 4447 DC, 4447 AC, 4447 MV errors
*** drop!
[h264 @ 0x804c0e020] out of range intra chroma pred mode at 111 16
[h264 @ 0x804c0e020] error while decoding MB 111 16
[h264 @ 0x804c0e020] Missing reference picture
[h264 @ 0x804c0e020] decode_slice_header error
[h264 @ 0x804c0e020] Missing reference picture
[h264 @ 0x804c0e020] decode_slice_header error
[h264 @ 0x804c0e020] concealing 13506 DC, 13506 AC, 13506 MV errors
[h264 @ 0x804c0e020] P sub_mb_type 19 out of range at 46 10
[h264 @ 0x804c0e020] error while decoding MB 46 10
[h264 @ 0x804c0e020] concealing 14083 DC, 14083 AC, 14083 MV errors
frame=   37 fps=  5 q=10.0 size=      10kB time=00:00:00.07 bitrate=1174.2kbits/s dup=0 drop=14    
[h264 @ 0x804c0e020] concealing 7936 DC, 7936 AC, 7936 MV errors
*** drop!
[h264 @ 0x804c0e020] out of range intra chroma pred mode at 59 4
[h264 @ 0x804c0e020] error while decoding MB 59 4
[h264 @ 0x804c0e020] concealing 15094 DC, 15094 AC, 15094 MV errors
[h264 @ 0x804c0e020] Frame num gap 3 1
[h264 @ 0x804c0e020] concealing 7936 DC, 7936 AC, 7936 MV errors
frame=   41 fps=  5 q=10.0 size=      10kB time=00:00:00.07 bitrate=1174.2kbits/s dup=0 drop=15    
[h264 @ 0x804c0e020] concealing 15465 DC, 15465 AC, 15465 MV errors
*** drop!
[h264 @ 0x804c0e020] corrupted macroblock 99 13 (total_coeff=-1)
[h264 @ 0x804c0e020] error while decoding MB 99 13
[h264 @ 0x804c0e020] concealing 13902 DC, 13902 AC, 13902 MV errors
[h264 @ 0x804c0e020] negative number of zero coeffs at 102 42
[h264 @ 0x804c0e020] error while decoding MB 102 42
[h264 @ 0x804c0e020] concealing 10187 DC, 10187 AC, 10187 MV errors
frame=   43 fps=  5 q=10.0 size=      10kB time=00:00:00.07 bitrate=1174.2kbits/s dup=0 drop=16    
[h264 @ 0x804c0e020] Frame num gap 4 2
[h264 @ 0x804c0e020] concealing 14658 DC, 14658 AC, 14658 MV errors
[h264 @ 0x804c0e020] negative number of zero coeffs at 20 44
[h264 @ 0x804c0e020] error while decoding MB 20 44
[h264 @ 0x804c0e020] concealing 10013 DC, 10013 AC, 10013 MV errors
*** drop!
frame=   44 fps=  5 q=10.0 size=      10kB time=00:00:00.07 bitrate=1174.2kbits/s dup=0 drop=17    
[h264 @ 0x804c0e020] concealing 7680 DC, 7680 AC, 7680 MV errors
[h264 @ 0x804c0e020] concealing 12112 DC, 12112 AC, 12112 MV errors
frame=   47 fps=  5 q=10.0 size=      10kB time=00:00:00.07 bitrate=1174.2kbits/s dup=0 drop=17    
[h264 @ 0x804c0e020] mb_type 54 in I slice too large at 63 75
[h264 @ 0x804c0e020] error while decoding MB 63 75
[h264 @ 0x804c0e020] concealing 13682 DC, 13682 AC, 13682 MV errors
[h264 @ 0x804c0e020] Frame num gap 2 0
[h264 @ 0x804c0e020] concealing 5517 DC, 5517 AC, 5517 MV errors
*** drop!
frame=   49 fps=  5 q=10.0 size=      10kB time=00:00:00.07 bitrate=1174.2kbits/s dup=0 drop=18    
[h264 @ 0x804c0e020] Frame num gap 1 15
[h264 @ 0x804c0e020] no picture
[h264 @ 0x804c0e020] concealing 15360 DC, 15360 AC, 15360 MV errors
[h264 @ 0x804c0e020] no picture
[h264 @ 0x804c0e020] mb_type 31 in P slice too large at 29 49
[h264 @ 0x804c0e020] error while decoding MB 29 49
[h264 @ 0x804c0e020] concealing 9364 DC, 9364 AC, 9364 MV errors
frame=   49 fps=  4 q=10.0 size=      10kB time=00:00:00.07 bitrate=1174.2kbits/s dup=0 drop=18    
[h264 @ 0x804c0e020] cbp too large (4294967295) at 21 69
[h264 @ 0x804c0e020] error while decoding MB 21 69
[h264 @ 0x804c0e020] concealing 6556 DC, 6556 AC, 6556 MV errors
[h264 @ 0x804c0e020] out of range intra chroma pred mode at 94 16
[h264 @ 0x804c0e020] error while decoding MB 94 16
[h264 @ 0x804c0e020] concealing 13523 DC, 13523 AC, 13523 MV errors
[h264 @ 0x804c0e020] Frame num gap 4 2
[h264 @ 0x804c0e020] concealing 8921 DC, 8921 AC, 8921 MV errors
frame=   52 fps=  4 q=10.0 size=      10kB time=00:00:00.07 bitrate=1174.2kbits/s dup=0 drop=18    
[h264 @ 0x804c0e020] Frame num gap 1 15
[h264 @ 0x804c0e020] no picture
[h264 @ 0x804c0e020] corrupted macroblock 35 62 (total_coeff=-1)
[h264 @ 0x804c0e020] error while decoding MB 35 62
[h264 @ 0x804c0e020] concealing 0 DC, 0 AC, 0 MV errors
[h264 @ 0x804c0e020] out of range intra chroma pred mode at 56 9
[h264 @ 0x804c0e020] error while decoding MB 56 9
[h264 @ 0x804c0e020] Missing reference picture
[h264 @ 0x804c0e020] decode_slice_header error
[h264 @ 0x804c0e020] concealing 14457 DC, 14457 AC, 14457 MV errors
[h264 @ 0x804c0e020] corrupted macroblock 28 69 (total_coeff=-1)
[h264 @ 0x804c0e020] error while decoding MB 28 69
[h264 @ 0x804c0e020] concealing 6805 DC, 6805 AC, 6805 MV errors
[h264 @ 0x804c0e020] out of range intra chroma pred mode at 106 30
[h264 @ 0x804c0e020] error while decoding MB 106 30
[h264 @ 0x804c0e020] concealing 11719 DC, 11719 AC, 11719 MV errors
frame=   56 fps=  4 q=10.0 size=      10kB time=00:00:00.07 bitrate=1174.2kbits/s dup=0 drop=18    
[h264 @ 0x804c0e020] Frame num gap 4 2
[h264 @ 0x804c0e020] out of range intra chroma pred mode at 96 16
[h264 @ 0x804c0e020] error while decoding MB 96 16
[h264 @ 0x804c0e020] concealing 13521 DC, 13521 AC, 13521 MV errors
*** drop!
[h264 @ 0x804c0e020] Frame num gap 4 2
[h264 @ 0x804c0e020] concealing 109 DC, 109 AC, 109 MV errors
[h264 @ 0x804c0e020] out of range intra chroma pred mode at 17 18
[h264 @ 0x804c0e020] error while decoding MB 17 18
[h264 @ 0x804c0e020] concealing 13344 DC, 13344 AC, 13344 MV errors
frame=   59 fps=  4 q=10.0 size=      10kB time=00:00:00.07 bitrate=1174.2kbits/s dup=0 drop=19    
[h264 @ 0x804c0e020] Frame num gap 4 2
[h264 @ 0x804c0e020] out of range intra chroma pred mode at 47 19
[h264 @ 0x804c0e020] error while decoding MB 47 19
[h264 @ 0x804c0e020] concealing 13186 DC, 13186 AC, 13186 MV errors
*** drop!
[h264 @ 0x804c0e020] Frame num gap 4 2
[h264 @ 0x804c0e020] concealing 1434 DC, 1434 AC, 1434 MV errors
[h264 @ 0x804c0e020] corrupted macroblock 80 20 (total_coeff=-1)
[h264 @ 0x804c0e020] error while decoding MB 80 20
[h264 @ 0x804c0e020] concealing 13025 DC, 13025 AC, 13025 MV errors
frame=   62 fps=  4 q=10.0 size=      10kB time=00:00:00.07 bitrate=1174.2kbits/s dup=0 drop=20    
[h264 @ 0x804c0e020] Frame num gap 4 2
[h264 @ 0x804c0e020] P sub_mb_type 5 out of range at 100 106
[h264 @ 0x804c0e020] error while decoding MB 100 106
[h264 @ 0x804c0e020] concealing 1997 DC, 1997 AC, 1997 MV errors
[h264 @ 0x804c0e020] out of range intra chroma pred mode at 96 21
[h264 @ 0x804c0e020] error while decoding MB 96 21
[h264 @ 0x804c0e020] concealing 12881 DC, 12881 AC, 12881 MV errors
*** drop!
[h264 @ 0x804c0e020] mb_type 56 in I slice too large at 87 21
[h264 @ 0x804c0e020] error while decoding MB 87 21
[h264 @ 0x804c0e020] concealing 4954 DC, 4954 AC, 4954 MV errors
frame=   64 fps=  4 q=10.0 size=      10kB time=00:00:00.07 bitrate=1174.2kbits/s dup=0 drop=21    
[h264 @ 0x804c0e020] corrupted macroblock 86 27 (total_coeff=-1)
[h264 @ 0x804c0e020] error while decoding MB 86 27
[h264 @ 0x804c0e020] concealing 12123 DC, 12123 AC, 12123 MV errors
*** drop!
[h264 @ 0x804c0e020] Frame num gap 4 2
[h264 @ 0x804c0e020] negative number of zero coeffs at 105 16
[h264 @ 0x804c0e020] error while decoding MB 105 16
[h264 @ 0x804c0e020] concealing 13512 DC, 13512 AC, 13512 MV errors
frame=   67 fps=  4 q=10.0 size=      10kB time=00:00:00.07 bitrate=1174.2kbits/s dup=0 drop=22    
[h264 @ 0x804c0e020] out of range intra chroma pred mode at 32 50
[h264 @ 0x804c0e020] error while decoding MB 32 50
[h264 @ 0x804c0e020] concealing 9233 DC, 9233 AC, 9233 MV errors
[h264 @ 0x804c0e020] out of range intra chroma pred mode at 58 50
[h264 @ 0x804c0e020] error while decoding MB 58 50
[h264 @ 0x804c0e020] concealing 9207 DC, 9207 AC, 9207 MV errors
[h264 @ 0x804c0e020] Frame num gap 3 1
[h264 @ 0x804c0e020] corrupted macroblock 43 88 (total_coeff=-1)
[h264 @ 0x804c0e020] error while decoding MB 43 88
[h264 @ 0x804c0e020] concealing 4358 DC, 4358 AC, 4358 MV errors
frame=   71 fps=  4 q=10.0 size=      10kB time=00:00:00.07 bitrate=1174.2kbits/s dup=0 drop=22    
*** drop!
[h264 @ 0x804c0e020] out of range intra chroma pred mode at 23 50
[h264 @ 0x804c0e020] error while decoding MB 23 50
[h264 @ 0x804c0e020] concealing 1306 DC, 1306 AC, 1306 MV errors
*** drop!
[h264 @ 0x804c0e020] P sub_mb_type 32 out of range at 91 27
[h264 @ 0x804c0e020] error while decoding MB 91 27
[h264 @ 0x804c0e020] concealing 12118 DC, 12118 AC, 12118 MV errors
frame=   73 fps=  4 q=10.0 size=      10kB time=00:00:00.07 bitrate=1174.2kbits/s dup=0 drop=24    
*** drop!
[h264 @ 0x804c0e020] P sub_mb_type 10 out of range at 109 79
[h264 @ 0x804c0e020] error while decoding MB 109 79
[h264 @ 0x804c0e020] concealing 5444 DC, 5444 AC, 5444 MV errors
[h264 @ 0x804c0e020] negative number of zero coeffs at 38 50
[h264 @ 0x804c0e020] error while decoding MB 38 50
[h264 @ 0x804c0e020] concealing 9227 DC, 9227 AC, 9227 MV errors
*** drop!
frame=   74 fps=  4 q=10.0 size=      10kB time=00:00:00.07 bitrate=1174.2kbits/s dup=0 drop=26    
[h264 @ 0x804c0e020] Frame num gap 3 1
[h264 @ 0x804c0e020] concealing 5142 DC, 5142 AC, 5142 MV errors
[h264 @ 0x804c0e020] Frame num gap 2 0
[h264 @ 0x804c0e020] no picture
[h264 @ 0x804c0e020] corrupted macroblock 42 113 (total_coeff=-1)
[h264 @ 0x804c0e020] error while decoding MB 42 113
[h264 @ 0x804c0e020] concealing 903 DC, 903 AC, 903 MV errors
[h264 @ 0x804c0e020] no picture
[h264 @ 0x804c0e020] concealing 5973 DC, 5973 AC, 5973 MV errors
[h264 @ 0x804c0e020] out of range intra chroma pred mode at 101 29
[h264 @ 0x804c0e020] error while decoding MB 101 29
[h264 @ 0x804c0e020] mb_type 44 in I slice too large at 55 75
[h264 @ 0x804c0e020] error while decoding MB 55 75
[h264 @ 0x804c0e020] concealing 9926 DC, 9926 AC, 9926 MV errors
frame=   77 fps=  4 q=10.0 size=      10kB time=00:00:00.07 bitrate=1174.2kbits/s dup=0 drop=26    
[h264 @ 0x804c0e020] Frame num gap 3 1
[h264 @ 0x804c0e020] concealing 4361 DC, 4361 AC, 4361 MV errors
[h264 @ 0x804c0e020] Frame num gap 2 0
[h264 @ 0x804c0e020] no picture
[h264 @ 0x804c0e020] mb_type 4892 in P slice too large at 20 109
[h264 @ 0x804c0e020] error while decoding MB 20 109
[h264 @ 0x804c0e020] concealing 1693 DC, 1693 AC, 1693 MV errors
[h264 @ 0x804c0e020] no picture
[h264 @ 0x804c0e020] out of range intra chroma pred mode at 34 79
[h264 @ 0x804c0e020] error while decoding MB 34 79
[h264 @ 0x804c0e020] concealing 5519 DC, 5519 AC, 5519 MV errors
[h264 @ 0x804c0e020] out of range intra chroma pred mode at 98 28
[h264 @ 0x804c0e020] error while decoding MB 98 28
[h264 @ 0x804c0e020] concealing 11983 DC, 11983 AC, 11983 MV errors
frame=   80 fps=  4 q=10.0 size=      10kB time=00:00:00.07 bitrate=1174.2kbits/s dup=0 drop=26    
[h264 @ 0x804c0e020] Frame num gap 3 1
[h264 @ 0x804c0e020] concealing 5346 DC, 5346 AC, 5346 MV errors
[h264 @ 0x804c0e020] Frame num gap 3 1
[h264 @ 0x804c0e020] no picture
[h264 @ 0x804c0e020] corrupted macroblock 99 81 (total_coeff=-1)
[h264 @ 0x804c0e020] error while decoding MB 99 81
[h264 @ 0x804c0e020] concealing 5198 DC, 5198 AC, 5198 MV errors
[h264 @ 0x804c0e020] Frame num gap 1 15
[h264 @ 0x804c0e020] no picture
[h264 @ 0x804c0e020] concealing 15360 DC, 15360 AC, 15360 MV errors
frame=   83 fps=  4 q=10.0 size=      10kB time=00:00:00.07 bitrate=1174.2kbits/s dup=0 drop=26    
[h264 @ 0x804c0e020] no picture
    Last message repeated 1 times
[h264 @ 0x804c0e020] mb_type 55 in P slice too large at 9 60
[h264 @ 0x804c0e020] error while decoding MB 9 60
[h264 @ 0x804c0e020] concealing 7976 DC, 7976 AC, 7976 MV errors
[h264 @ 0x804c0e020] negative number of zero coeffs at 15 1
[h264 @ 0x804c0e020] error while decoding MB 15 1
[h264 @ 0x804c0e020] concealing 15522 DC, 15522 AC, 15522 MV errors
frame=   84 fps=  4 q=10.0 size=      10kB time=00:00:00.07 bitrate=1174.2kbits/s dup=0 drop=26    
[h264 @ 0x804c0e020] concealing 13032 DC, 13032 AC, 13032 MV errors
[h264 @ 0x804c0e020] Frame num gap 4 2
[h264 @ 0x804c0e020] out of range intra chroma pred mode at 66 5
[h264 @ 0x804c0e020] error while decoding MB 66 5
[h264 @ 0x804c0e020] concealing 14959 DC, 14959 AC, 14959 MV errors
frame=   86 fps=  4 q=10.0 size=      10kB time=00:00:00.07 bitrate=1174.2kbits/s dup=0 drop=26    
[h264 @ 0x804c0e020] out of range intra chroma pred mode at 37 50
[h264 @ 0x804c0e020] error while decoding MB 37 50
[h264 @ 0x804c0e020] concealing 9228 DC, 9228 AC, 9228 MV errors
*** drop!
[h264 @ 0x804c0e020] negative number of zero coeffs at 30 50
[h264 @ 0x804c0e020] error while decoding MB 30 50
[h264 @ 0x804c0e020] concealing 9235 DC, 9235 AC, 9235 MV errors
frame=   87 fps=  4 q=10.0 size=      10kB time=00:00:00.07 bitrate=1174.2kbits/s dup=0 drop=27    
[h264 @ 0x804c0e020] Frame num gap 4 2
[h264 @ 0x804c0e020] out of range intra chroma pred mode at 106 17
[h264 @ 0x804c0e020] error while decoding MB 106 17
[h264 @ 0x804c0e020] concealing 13383 DC, 13383 AC, 13383 MV errors
*** drop!
[h264 @ 0x804c0e020] Frame num gap 3 1
[h264 @ 0x804c0e020] concealing 1682 DC, 1682 AC, 1682 MV errors
[h264 @ 0x804c0e020] cbp too large (49) at 100 95
[h264 @ 0x804c0e020] error while decoding MB 100 95
[h264 @ 0x804c0e020] concealing 3405 DC, 3405 AC, 3405 MV errors
*** drop!
frame=   89 fps=  4 q=10.0 size=      10kB time=00:00:00.07 bitrate=1174.2kbits/s dup=0 drop=29    
[h264 @ 0x804c0e020] Frame num gap 3 1
[h264 @ 0x804c0e020] no picture
[h264 @ 0x804c0e020] out of range intra chroma pred mode at 62 109
[h264 @ 0x804c0e020] error while decoding MB 62 109
[h264 @ 0x804c0e020] concealing 1395 DC, 1395 AC, 1395 MV errors
[h264 @ 0x804c0e020] out of range intra chroma pred mode at 74 15
[h264 @ 0x804c0e020] error while decoding MB 74 15
[h264 @ 0x804c0e020] Missing reference picture
[h264 @ 0x804c0e020] decode_slice_header error
[h264 @ 0x804c0e020] concealing 13671 DC, 13671 AC, 13671 MV errors
[h264 @ 0x804c0e020] cbp too large (53) at 95 63
[h264 @ 0x804c0e020] error while decoding MB 95 63
[h264 @ 0x804c0e020] concealing 7506 DC, 7506 AC, 7506 MV errors
frame=   92 fps=  4 q=10.0 size=      10kB time=00:00:00.07 bitrate=1174.2kbits/s dup=0 drop=29    
[h264 @ 0x804c0e020] negative number of zero coeffs at 3 32
[h264 @ 0x804c0e020] error while decoding MB 3 32
[h264 @ 0x804c0e020] out of range intra chroma pred mode at 110 72
[h264 @ 0x804c0e020] error while decoding MB 110 72
[h264 @ 0x804c0e020] concealing 9969 DC, 9969 AC, 9969 MV errors
[h264 @ 0x804c0e020] Frame num gap 4 2
[h264 @ 0x804c0e020] mb_type 28 in I slice too large at 86 16
[h264 @ 0x804c0e020] error while decoding MB 86 16
[h264 @ 0x804c0e020] concealing 13531 DC, 13531 AC, 13531 MV errors
*** drop!
frame=   94 fps=  4 q=10.0 size=      10kB time=00:00:00.07 bitrate=1174.2kbits/s dup=0 drop=30    
[h264 @ 0x804c0e020] Frame num gap 3 1
[h264 @ 0x804c0e020] concealing 630 DC, 630 AC, 630 MV errors
[h264 @ 0x804c0e020] mb_type 57 in P slice too large at 4 96
[h264 @ 0x804c0e020] error while decoding MB 4 96
[h264 @ 0x804c0e020] concealing 3373 DC, 3373 AC, 3373 MV errors
*** drop!
[h264 @ 0x804c0e020] Frame num gap 3 1
[h264 @ 0x804c0e020] no picture
[h264 @ 0x804c0e020] concealing 1006 DC, 1006 AC, 1006 MV errors
[h264 @ 0x804c0e020] corrupted macroblock 85 91 (total_coeff=-1)
[h264 @ 0x804c0e020] error while decoding MB 85 91
[h264 @ 0x804c0e020] concealing 3676 DC, 3676 AC, 3676 MV errors
frame=   96 fps=  4 q=10.0 Lsize=    2996kB time=00:00:00.14 bitrate=170445.8kbits/s dup=0 drop=31    
video:2980kB audio:1kB global headers:0kB muxing overhead 0.500105%

The resulting ~3MB file is hosted at http://www.bovine.net/~jlawson/exchange/bovine-qscale10-out5.avi

comment:7 by andrewc, 13 years ago

bovine, yes pretty much the same errors. I've recompiled ffmpeg from head and tried again, same result shown below:

I have just acquired a GV-MFD110 and that seems to work ok. So the issue is possibly specific to the GV-FE420.

fbadmin@zoneminder-test3:/tmp$ ffmpeg -v 9 -loglevel 99 -i rtsp://admin:admin@192.168.88.242:8554/CH001.sdp -qscale 10 fisbhburn-qscale10-out1.avi
ffmpeg version N-30935-g86824c1, Copyright (c) 2000-2011 the FFmpeg developers
  built on Jun 22 2011 11:43:58 with gcc 4.5.2
  configuration: --enable-gpl --enable-shared --enable-pthreads
  libavutil    51.  9. 1 / 51.  9. 1
  libavcodec   53.  7. 0 / 53.  7. 0
  libavformat  53.  4. 0 / 53.  4. 0
  libavdevice  53.  1. 1 / 53.  1. 1
  libavfilter   2. 23. 0 /  2. 23. 0
  libswscale    2.  0. 0 /  2.  0. 0
  libpostproc  51.  2. 0 / 51.  2. 0
[rtsp @ 0x16a4400] SDP:
v=0
o=QTSS_Play_List 1308703864405654 1 IN IP4 192.168.88.242
s=streamed by the GeoVision Rtsp Server
i=CH001.sdp
t=0 0
a=type:broadcast
a=control:*
a=range:npt=0-
a=x-qt-text-nam:streamed by the GeoVision Rtsp Server
a=x-qt-text-inf:CH001.sdp
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
b=AS:51200
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;profile-level-id=640032;sprop-parameter-sets=Z2QAMq2EBUViuKxUdCAqKxXFYqOhAVFYrisVHQgKisVxWKjoQFRWK4rFR0ICorFcVio6ECSFITk8nyfk/k/J8nm5s00IEkKQnJ5Pk/J/J+T5PNzZprQBAAevyypAAAD6AAAF3BgQAAAgL78AAAQF9+ve+F4RCNQ=,aM48sA==
a=control:track1
m=audio 0 RTP/AVP 97
c=IN IP4 0.0.0.0
b=AS:500
a=rtpmap:97 MPEG4-GENERIC/16000
a=fmtp:97 streamtype=5;profile-level-id=1;mode=AAC-hbr;sizelength=13;indexlength=3;indexdeltalength=3;config=1408
a=control:track2

[rtsp @ 0x16a4400] video codec set to: h264
[NULL @ 0x16a85a0] RTP Packetization Mode: 1
[NULL @ 0x16a85a0] RTP Profile IDC: 64 Profile IOP: 0 Level: 32
[NULL @ 0x16a85a0] Extradata set to 0x16a8d00 (size: 129)!audio codec set to: aac
[rtsp @ 0x16a4400] audio samplerate set to: 16000
[rtsp @ 0x16a4400] audio channels set to: 1
[rtsp @ 0x16a4400] hello state=0
[h264 @ 0x16a85a0] Unsupported bit depth: 0
[h264 @ 0x16a85a0] Frame num gap 2 0
[h264 @ 0x16a85a0] mb_type 35 in P slice too large at 82 63
[h264 @ 0x16a85a0] error while decoding MB 82 63
[h264 @ 0x16a85a0] top block unavailable for requested intra4x4 mode -1 at 88 60
[h264 @ 0x16a85a0] error while decoding MB 88 60
[h264 @ 0x16a85a0] Missing reference picture
[h264 @ 0x16a85a0] decode_slice_header error
[h264 @ 0x16a85a0] concealing 15321 DC, 15321 AC, 15321 MV errors
[h264 @ 0x16a85a0] out of range intra chroma pred mode at 30 3
[h264 @ 0x16a85a0] error while decoding MB 30 3
[h264 @ 0x16a85a0] Missing reference picture
[h264 @ 0x16a85a0] decode_slice_header error
[h264 @ 0x16a85a0] Missing reference picture
[h264 @ 0x16a85a0] decode_slice_header error
[h264 @ 0x16a85a0] concealing 14995 DC, 14995 AC, 14995 MV errors
[h264 @ 0x16a85a0] negative number of zero coeffs at 67 9
[h264 @ 0x16a85a0] error while decoding MB 67 9
[h264 @ 0x16a85a0] top block unavailable for requested intra mode at 87 60
[h264 @ 0x16a85a0] error while decoding MB 87 60
[h264 @ 0x16a85a0] concealing 14152 DC, 14152 AC, 14152 MV errors
[h264 @ 0x16a85a0] Frame num gap 2 0
[h264 @ 0x16a85a0] P sub_mb_type 31 out of range at 42 11
[h264 @ 0x16a85a0] error while decoding MB 42 11
[h264 @ 0x16a85a0] concealing 13959 DC, 13959 AC, 13959 MV errors
[h264 @ 0x16a85a0] no picture
[h264 @ 0x16a85a0] out of range intra chroma pred mode at 85 9
[h264 @ 0x16a85a0] error while decoding MB 85 9
[h264 @ 0x16a85a0] concealing 14172 DC, 14172 AC, 14172 MV errors
[h264 @ 0x16a85a0] mb_type 55 in P slice too large at 55 10
[h264 @ 0x16a85a0] error while decoding MB 55 10
[h264 @ 0x16a85a0] P sub_mb_type 15 out of range at 108 62
[h264 @ 0x16a85a0] error while decoding MB 108 62
[h264 @ 0x16a85a0] P sub_mb_type 10 out of range at 111 62
[h264 @ 0x16a85a0] error while decoding MB 111 62
[h264 @ 0x16a85a0] P sub_mb_type 7 out of range at 76 79
[h264 @ 0x16a85a0] error while decoding MB 76 79
[h264 @ 0x16a85a0] concealing 11615 DC, 11615 AC, 11615 MV errors
^C

comment:8 by bovine, 13 years ago

andrewc: offtopic, but i see you are also trying to use zoneminder! In case you have not figured it out yet, zm currently only supports Basic authentication for RTSP, but the GV-FE420 seems to require Digest authentication. I am in the process of trying to patch zm. (I don't understand why zm didn't just use libavformat for RTSP/RTP since they are already using other parts of ffmpeg.)

in reply to:  7 comment:9 by Carl Eugen Hoyos, 13 years ago

I have just acquired a GV-MFD110 and that seems to work ok.

Does playing a captured file work for this model?

comment:10 by andrewc, 13 years ago

bovine: thanks for the heads up. I didn't realise that digest auth was being used (and that zoneminder doesn't support it)! I sidetracked the issue, by using the 'ffmpeg' option in zoneminder to grab the stream.

Does playing a captured file work for this model?

cehoyos, my earlier description of 'seems to work ok' wasn't very specific. Let me elaborate: It seems to be working fine in zoneminder. I can see the stream in my webbrowser, although there are the occasional visual glitches (every 5 or 10 minutes, somewhat random), which look like they resolve when a keyframe comes along, so I suspect the decoding is not 100% reliable. I think the glitches are more prevalent around areas of motion and when there is more motion being captured.

I tried dumping the stream again (and again... and again) and everytime the result was a slightly different set of errors.

Run 1: I cancelled after a 10-20 seconds:

fbadmin@zoneminder-test3:/tmp$ ffmpeg -v 9 -loglevel 99 -i rtsp://admin:admin@192.168.88.241:8554/CH001.sdp -qscale 10 /tmp/fisburn.avi
ffmpeg version N-30935-g86824c1, Copyright (c) 2000-2011 the FFmpeg developers
  built on Jun 22 2011 11:43:58 with gcc 4.5.2
  configuration: --enable-gpl --enable-shared --enable-pthreads
  libavutil    51.  9. 1 / 51.  9. 1
  libavcodec   53.  7. 0 / 53.  7. 0
  libavformat  53.  4. 0 / 53.  4. 0
  libavdevice  53.  1. 1 / 53.  1. 1
  libavfilter   2. 23. 0 /  2. 23. 0
  libswscale    2.  0. 0 /  2.  0. 0
  libpostproc  51.  2. 0 / 51.  2. 0
[rtsp @ 0x863400] SDP:
v=0
o=QTSS_Play_List 1308703668637544 1 IN IP4 192.168.88.241
s=streamed by the GeoVision Rtsp Server
i=CH001.sdp
t=0 0
a=tool:LIVE555 Streaming Media v2010.01.22
a=type:broadcast
a=control:*
a=range:npt=0-
a=x-qt-text-nam:streamed by the GeoVision Rtsp Server
a=x-qt-text-inf:CH001.sdp
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
b=AS:500
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;profile-level-id=674000;sprop-parameter-sets=Z0IAHukBQHsgAA==,aM44gAA=
a=control:track1
m=audio 0 RTP/AVP 0
c=IN IP4 0.0.0.0
b=AS:500
a=control:track2

[rtsp @ 0x863400] video codec set to: h264
[NULL @ 0x8674a0] RTP Packetization Mode: 1
[NULL @ 0x8674a0] RTP Profile IDC: 67 Profile IOP: 40 Level: 0
[NULL @ 0x8674a0] Extradata set to 0x867b00 (size: 21)!hello state=0
[h264 @ 0x8674a0] Unsupported bit depth: 0
[h264 @ 0x8674a0] no picture
[h264 @ 0x8674a0] corrupted macroblock 37 7 (total_coeff=-1)
[h264 @ 0x8674a0] error while decoding MB 37 7
[h264 @ 0x8674a0] concealing 932 DC, 932 AC, 932 MV errors
[h264 @ 0x8674a0] Frame num gap 2 0
[h264 @ 0x8674a0] Frame num gap 6 4
[h264 @ 0x8674a0] no picture
[h264 @ 0x8674a0] Frame num gap 10 8
[h264 @ 0x8674a0] no picture
[h264 @ 0x8674a0] Frame num gap 1 15
[h264 @ 0x8674a0] Frame num gap 3 1
[h264 @ 0x8674a0] Frame num gap 12 10
[h264 @ 0x8674a0] Frame num gap 6 4

NB, /tmp/fishburn.avi was not created! (I'm not quite sure why, I would have expected at least an empty file) and this was the first time I received the _corrupted macroblock_ error with this cam.

Run 2: Bombed out after a few seconds

fbadmin@zoneminder-test3:/tmp$ ffmpeg -v 9 -loglevel 99 -i rtsp://admin:admin@192.168.88.241:8554/CH001.sdp -qscale 10 /tmp/fisburn.avi
ffmpeg version N-30935-g86824c1, Copyright (c) 2000-2011 the FFmpeg developers
  built on Jun 22 2011 11:43:58 with gcc 4.5.2
  configuration: --enable-gpl --enable-shared --enable-pthreads
  libavutil    51.  9. 1 / 51.  9. 1
  libavcodec   53.  7. 0 / 53.  7. 0
  libavformat  53.  4. 0 / 53.  4. 0
  libavdevice  53.  1. 1 / 53.  1. 1
  libavfilter   2. 23. 0 /  2. 23. 0
  libswscale    2.  0. 0 /  2.  0. 0
  libpostproc  51.  2. 0 / 51.  2. 0
[rtsp @ 0x8d2400] SDP:
v=0
o=QTSS_Play_List 1308703668637544 1 IN IP4 192.168.88.241
s=streamed by the GeoVision Rtsp Server
i=CH001.sdp
t=0 0
a=tool:LIVE555 Streaming Media v2010.01.22
a=type:broadcast
a=control:*
a=range:npt=0-
a=x-qt-text-nam:streamed by the GeoVision Rtsp Server
a=x-qt-text-inf:CH001.sdp
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
b=AS:500
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;profile-level-id=674000;sprop-parameter-sets=Z0IAHukBQHsgAA==,aM44gAA=
a=control:track1
m=audio 0 RTP/AVP 0
c=IN IP4 0.0.0.0
b=AS:500
a=control:track2

[rtsp @ 0x8d2400] video codec set to: h264
[NULL @ 0x8d64a0] RTP Packetization Mode: 1
[NULL @ 0x8d64a0] RTP Profile IDC: 67 Profile IOP: 40 Level: 0
[NULL @ 0x8d64a0] Extradata set to 0x8d6b00 (size: 21)!hello state=0
[h264 @ 0x8d64a0] Unsupported bit depth: 0
[h264 @ 0x8d64a0] Missing reference picture
[h264 @ 0x8d64a0] decode_slice_header error
[h264 @ 0x8d64a0] concealing 1200 DC, 1200 AC, 1200 MV errors
[h264 @ 0x8d64a0] Frame num gap 4 2
[h264 @ 0x8d64a0] no picture
[h264 @ 0x8d64a0] Frame num gap 1 15
[h264 @ 0x8d64a0] no picture
    Last message repeated 1 times
[h264 @ 0x8d64a0] Frame num gap 1 15
[h264 @ 0x8d64a0] no picture
[h264 @ 0x8d64a0] Frame num gap 3 1
[h264 @ 0x8d64a0] no picture
    Last message repeated 1 times
[rtsp @ 0x8d2400] All info found
[rtsp @ 0x8d2400] Estimating duration from bitrate, this may be inaccurate

Seems stream 0 codec frame rate differs from container frame rate: 180000.00 (180000/1) -> 90000.00 (180000/2)
Input #0, rtsp, from 'rtsp://admin:admin@192.168.88.241:8554/CH001.sdp':
  Metadata:
    title           : streamed by the GeoVision Rtsp Server
    comment         : CH001.sdp
  Duration: N/A, start: 3.639189, bitrate: N/A
    Stream #0.0, 255, 1/90000: Video: h264 (Baseline), yuv420p, 640x480, 1/180000, 90k tbr, 90k tbn, 180k tbc
    Stream #0.1, 1, 1/8000: Audio: pcm_mulaw, 8000 Hz, 1 channels, s16, 64 kb/s
[buffer @ 0xad8d80] w:640 h:480 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param:
[NULL @ 0x8d1e60] Requested sampling rate unsupported using closest supported (16000)
[mpeg4 @ 0x8d7800] removing common factors from framerate
[mpeg4 @ 0x8d7800] timebase 1/90000 not supported by MPEG 4 standard, the maximum admitted value for the timebase denominator is 65535
Output #0, avi, to '/tmp/fisburn.avi':
    Stream #0.0, 0, 1/90000: Video: mpeg4, yuv420p, 640x480, 1/90000, q=2-31, 200 kb/s, 90k tbn, 90k tbc
    Stream #0.1, 0, 1/90000: Audio: mp2, 16000 Hz, 1 channels, s16, 64 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Error while opening encoder for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height

Run 3: Bombed out

fbadmin@zoneminder-test3:/tmp$ ffmpeg -v 9 -loglevel 99 -i rtsp://admin:admin@192.168.88.241:8554/CH001.sdp -qscale 10 /tmp/fisburn.avi
ffmpeg version N-30935-g86824c1, Copyright (c) 2000-2011 the FFmpeg developers
  built on Jun 22 2011 11:43:58 with gcc 4.5.2
  configuration: --enable-gpl --enable-shared --enable-pthreads
  libavutil    51.  9. 1 / 51.  9. 1
  libavcodec   53.  7. 0 / 53.  7. 0
  libavformat  53.  4. 0 / 53.  4. 0
  libavdevice  53.  1. 1 / 53.  1. 1
  libavfilter   2. 23. 0 /  2. 23. 0
  libswscale    2.  0. 0 /  2.  0. 0
  libpostproc  51.  2. 0 / 51.  2. 0
[rtsp @ 0x25df400] SDP:
v=0
o=QTSS_Play_List 1308703668637544 1 IN IP4 192.168.88.241
s=streamed by the GeoVision Rtsp Server
i=CH001.sdp
t=0 0
a=tool:LIVE555 Streaming Media v2010.01.22
a=type:broadcast
a=control:*
a=range:npt=0-
a=x-qt-text-nam:streamed by the GeoVision Rtsp Server
a=x-qt-text-inf:CH001.sdp
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
b=AS:500
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;profile-level-id=674000;sprop-parameter-sets=Z0IAHukBQHsgAA==,aM44gAA=
a=control:track1
m=audio 0 RTP/AVP 0
c=IN IP4 0.0.0.0
b=AS:500
a=control:track2

[rtsp @ 0x25df400] video codec set to: h264
[NULL @ 0x25e34a0] RTP Packetization Mode: 1
[NULL @ 0x25e34a0] RTP Profile IDC: 67 Profile IOP: 40 Level: 0
[NULL @ 0x25e34a0] Extradata set to 0x25e3b00 (size: 21)!hello state=0
[h264 @ 0x25e34a0] Unsupported bit depth: 0
[h264 @ 0x25e34a0] Frame num gap 2 0
[h264 @ 0x25e34a0] no picture
[h264 @ 0x25e34a0] Frame num gap 6 4
[h264 @ 0x25e34a0] Frame num gap 13 11
[h264 @ 0x25e34a0] no picture
[h264 @ 0x25e34a0] Frame num gap 2 0
[h264 @ 0x25e34a0] corrupted macroblock 26 14 (total_coeff=-1)
[h264 @ 0x25e34a0] error while decoding MB 26 14
[h264 @ 0x25e34a0] concealing 663 DC, 663 AC, 663 MV errors
[h264 @ 0x25e34a0] Frame num gap 3 1
[h264 @ 0x25e34a0] Frame num gap 1 15
[h264 @ 0x25e34a0] Frame num gap 13 11
[udp @ 0x25e13a0] circular_buffer: OVERRUN
[rtsp @ 0x25df400] Probe buffer size limit 5000000 reached
[rtsp @ 0x25df400] Estimating duration from bitrate, this may be inaccurate

Seems stream 0 codec frame rate differs from container frame rate: 180000.00 (180000/1) -> 90000.00 (180000/2)
Input #0, rtsp, from 'rtsp://admin:admin@192.168.88.241:8554/CH001.sdp':
  Metadata:
    title           : streamed by the GeoVision Rtsp Server
    comment         : CH001.sdp
  Duration: N/A, start: 3.700900, bitrate: N/A
    Stream #0.0, 1206, 1/90000: Video: h264 (Baseline), yuv420p, 640x480, 1/180000, 90k tbr, 90k tbn, 180k tbc
    Stream #0.1, 0, 1/8000: Audio: pcm_mulaw, 8000 Hz, 1 channels, s16, 64 kb/s
[buffer @ 0x27ed560] w:640 h:480 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param:
[NULL @ 0x27518a0] Requested sampling rate unsupported using closest supported (16000)
[mpeg4 @ 0x25e5480] removing common factors from framerate
[mpeg4 @ 0x25e5480] timebase 1/90000 not supported by MPEG 4 standard, the maximum admitted value for the timebase denominator is 65535
Output #0, avi, to '/tmp/fisburn.avi':
    Stream #0.0, 0, 1/90000: Video: mpeg4, yuv420p, 640x480, 1/90000, q=2-31, 200 kb/s, 90k tbn, 90k tbc
    Stream #0.1, 0, 1/90000: Audio: mp2, 16000 Hz, 1 channels, s16, 64 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Error while opening encoder for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height

So it looks like the same issue as the Fisheye cam. Perhaps the issue is not as pronounced in zoneminder because of differences in resolution, framerate etc.

comment:11 by Kelvin, 13 years ago

I got the same problem using Axis P1311/P5534-E/Q1755 latest v5.2 firmware

ffplay rtsp://xxx.xxx.xxx.xxx/axis-media/media.amp

will see lots of errors (see below), the display image is partially corrupt.
This happens even in the same sub-net without UDP blocking. But if I use

ffplay rtsp://xxx.xxx.xxx.xxx/axis-media/media.amp?http
ffplay rtsp://xxx.xxx.xxx.xxx/axis-media/media.amp?tcp

it works fine.

Worst of all, my program will crash at
av_close_input_file(ic);
whenever the error occurs. Try to catch the crash with _set_se_translator
fail either.

If you need login to reproduce the bug please send me email.


ffplay version N-31329-g58257ea, Copyright (c) 2003-2011 the FFmpeg developers

built on Jul 8 2011 22:29:12 with gcc 4.6.1
configuration: --disable-static --enable-shared --disable-outdev=sdl --enable-

gpl --enable-version3 --enable-memalign-hack --enable-runtime-cpudetect --enable
-avisynth --enable-bzlib --enable-frei0r --enable-libopencore-amrnb --enable-lib
opencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable
-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enabl
e-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs

--enable-libxvid --enable-zlib

libavutil 51. 11. 0 / 51. 11. 0
libavcodec 53. 7. 0 / 53. 7. 0
libavformat 53. 5. 0 / 53. 5. 0
libavdevice 53. 2. 0 / 53. 2. 0
libavfilter 2. 24. 3 / 2. 24. 3
libswscale 2. 0. 0 / 2. 0. 0
libpostproc 51. 2. 0 / 51. 2. 0

[h264 @ 01F8F5A0] negative number of zero coeffs at 16 12
[h264 @ 01F8F5A0] error while decoding MB 16 12
[h264 @ 01F8F5A0] concealing 753 DC, 753 AC, 753 MV errors
[h264 @ 01F8F5A0] Invalid level prefix
[h264 @ 01F8F5A0] error while decoding MB 10 2
[h264 @ 01F8F5A0] concealing 1159 DC, 1159 AC, 1159 MV errors
[h264 @ 01F8F5A0] cbp too large (4294967295) at 3 3
[h264 @ 01F8F5A0] error while decoding MB 3 3
[h264 @ 01F8F5A0] concealing 1126 DC, 1126 AC, 1126 MV errors
[h264 @ 01F8F5A0] Invalid level prefix
[h264 @ 01F8F5A0] error while decoding MB 2 4
[h264 @ 01F8F5A0] concealing 1087 DC, 1087 AC, 1087 MV errors
[h264 @ 01F8F5A0] out of range intra chroma pred mode at 9 5
[h264 @ 01F8F5A0] error while decoding MB 9 5
[h264 @ 01F8F5A0] concealing 1040 DC, 1040 AC, 1040 MV errors
[h264 @ 01F8F5A0] cbp too large (4294967295) at 8 5
[h264 @ 01F8F5A0] error while decoding MB 8 5
[h264 @ 01F8F5A0] concealing 1041 DC, 1041 AC, 1041 MV errors
[rtsp @ 01F8A780] Estimating duration from bitrate, this may be inaccurate
Input #0, rtsp, from 'rtsp://xxx.xxx.xxx.xxx/axis-media/media.amp':

Metadata:

title : Media Presentation

Duration: N/A, start: 1.026878, bitrate: N/A

Stream #0.0: Video: h264 (Baseline), yuvj420p, 640x480 [PAR 1:1 DAR 4:3], 90

k tbr, 90k tbn, 180k tbc
[buffersink @ 0204FF80] auto-inserting filter 'auto-inserted scaler 0' between t
he filter 'src' and the filter 'out'
[scale @ 01F8F2A0] w:640 h:480 fmt:yuvj420p -> w:640 h:480 fmt:yuv420p flags:0x4

[h264 @ 01F8F5A0] negative number of zero coeffs at 16 12
[h264 @ 01F8F5A0] error while decoding MB 16 12
[h264 @ 01F8F5A0] concealing 753 DC, 753 AC, 753 MV errors
[h264 @ 01F8F5A0] Invalid level prefix 0KB vq= 16KB sq= 0B f=0/0
[h264 @ 01F8F5A0] error while decoding MB 10 2
[h264 @ 01F8F5A0] concealing 1159 DC, 1159 AC, 1159 MV errors
[h264 @ 01F8F5A0] cbp too large (4294967295) at 3 3
[h264 @ 01F8F5A0] error while decoding MB 3 3
[h264 @ 01F8F5A0] concealing 1126 DC, 1126 AC, 1126 MV errors
[h264 @ 01F8F5A0] Invalid level prefix
[h264 @ 01F8F5A0] error while decoding MB 2 4
[h264 @ 01F8F5A0] concealing 1087 DC, 1087 AC, 1087 MV errors
[h264 @ 01F8F5A0] out of range intra chroma pred mode at 9 50/0
[h264 @ 01F8F5A0] error while decoding MB 9 5
[h264 @ 01F8F5A0] concealing 1040 DC, 1040 AC, 1040 MV errors
[h264 @ 01F8F5A0] cbp too large (4294967295) at 8 5 0B f=0/0
[h264 @ 01F8F5A0] error while decoding MB 8 5
[h264 @ 01F8F5A0] concealing 1041 DC, 1041 AC, 1041 MV errors
[h264 @ 01F8F5A0] Invalid level prefixq= 138KB sq= 0B f=0/0
[h264 @ 01F8F5A0] error while decoding MB 1 5
[h264 @ 01F8F5A0] concealing 1048 DC, 1048 AC, 1048 MV errors
[h264 @ 01F8F5A0] out of range intra chroma pred mode at 37 160
[h264 @ 01F8F5A0] error while decoding MB 37 16
[h264 @ 01F8F5A0] concealing 572 DC, 572 AC, 572 MV errors
[h264 @ 01F8F5A0] P sub_mb_type 4 out of range at 32 4 0B f=0/0

comment:12 by Luke Clemens, 13 years ago

Hey I'm pretty sure I figured out why these RTP streams are getting corrupted when in UDP mode (which is the way RTP was intended to function!). If you set the loglevel to debug, and then set the queue size (max_delay), and do a very simple loop like:

while (1) {

av_read_frame(ctx, pkt);

}

then you'll see errors like:

[mpeg4 @ 0037b6a0] RTP: missed 3 packets
[pcm_mulaw @ 0037d980] RTP: missed 5 packets
[mpeg4 @ 0037b6a0] RTP: missed 1 packets
[mpeg4 @ 0037b6a0] RTP: missed 1 packets
[mpeg4 @ 0037b6a0] RTP: missed 2 packets
[mpeg4 @ 0037b6a0] RTP: missed 1 packets
[mpeg4 @ 0037b6a0] RTP: missed 3 packets
[mpeg4 @ 0037b6a0] RTP: missed 1 packets
[pcm_mulaw @ 0037d980] RTP: missed 3 packets
[mpeg4 @ 0037b6a0] RTP: missed 1 packets
[mpeg4 @ 0037b6a0] RTP: missed 1 packets
[mpeg4 @ 0037b6a0] RTP: missed 4 packets

You can also get the above errors plus the mpeg4 decoding errors that you guys are seeing by using ffplay. The mpeg4 errors will be red, and the rtp missed packets will be yellow. Here's an example using a camera in Boston:

ffplay -max_delay 50000 -sync video -loglevel debug rtsp://128.197.178.104/mpeg4/media.amp

Much older version of ffmpeg didn't have this problem, however they instead had a different problem where they would timeout after a couple of minutes because they weren't responding to a ping or something.

Ok so now for the "solution"...

The problem is in libavformat/udp.c . Someone added code that uses a pthread and a circular buffer when reading from a udp socket. There is a bug in that code - I don't know exactly where. The circular buffer/thread code is only executed if pthreads are enabled. So if pthreads are disabled, then the "backup" code runs. If you comment out the sections within HAVE_PTHREADS, magic happens... no more mpeg4 macroblock/missing packet errors!!!

I don't know how important that circular buffer/thread code is. Most of us probably don't want to disable pthreads for everything just to fix this one problem. Do we really need this circular buffer code since it seems to work fine without it? Or should we try and fix it? I'm a noob when it comes to the code in udp.c, so fixing it would be a lot easier for someone more familiar with it.

--luke

comment:13 by Carl Eugen Hoyos, 13 years ago

Could you test if this problem is still reproducible with latest git head?

comment:14 by Kelvin, 13 years ago

I just try the build from 7/31/2011, it no longer crash at
av_close_input_file()

that's great. However decoding UDP packet still got the same error
and corrupt images.

Another problem I have is rtsp:// doesn't support any port number other than 80
for tcp and udp (http works fine). e.g.

rtsp://xxx.xxx.xxx.xxx:8080/axis-media/media.amp?tcp
will return
[rtsp @ 0057B0E0] CSeq 1 expected, 0 received.
[rtsp @ 0057B0E0] method OPTIONS failed: 501 Not Implemented
[rtsp @ 0057B0E0] Date: Wed, 03 Aug 2011 19:18:56 GMT
Accept-Ranges: bytes
Connection: close
Content-Type: text/html; charset=ISO-8859-1

rtsp://xxx.xxx.xxx.xxx:8080/axis-media/media.amp?tcp : Invalid data found when processing input

in reply to:  14 ; comment:15 by Michael Niedermayer, 13 years ago

Replying to uscgraphics:

I just try the build from 7/31/2011, it no longer crash at
av_close_input_file()

that's great. However decoding UDP packet still got the same error
and corrupt images.

That means packets are lost somewhere, it can be a bug in ffmpeg but could as well be your network loosing packets, RTP/UDP (compared to RTP/TCP) is not a reliable transport
What makes you belive the issue remaining is not just occasional packet loss?

Another problem I have

Please open a seperate ticket for that

in reply to:  15 comment:16 by Kelvin, 13 years ago

Replying to michael:

Replying to uscgraphics:

I just try the build from 7/31/2011, it no longer crash at
av_close_input_file()

that's great. However decoding UDP packet still got the same error
and corrupt images.

That means packets are lost somewhere, it can be a bug in ffmpeg but could as well be your network loosing packets, RTP/UDP (compared to RTP/TCP) is not a reliable transport
What makes you belive the issue remaining is not just occasional packet loss?

Because it happen in my local network with a router connect 1 computer and 1 camera.
Please see Ph0t0n comment above.

Another problem I have

Please open a seperate ticket for that

Ticket 419 is open.

comment:17 by Dmitriy, 12 years ago

andrewc: I am using "Geovision GV-FE420" and have same problem. Can you tell how you solved it?

comment:18 by Michael Niedermayer, 12 years ago

The original problem was a problem in the interaction between the udp and rtp code this has been fixed months ago, there has been another smaller bugfix in the udp code recently.
And i cannot reproduce any further problems with random rtsp streams
If someone still has issues it might make sense to open a new ticket because these likely are not what this ticket was about. Not every rt*p issue is the same ...

comment:19 by Luke Clemens, 12 years ago

michael is correct - something has definitely been fixed. i just tried git version 2c44aed (from 2011-11-21) and i no longer get errors when using the camera on my local network.

With the cameras on the public internet (like the one in the link from my previous post), errors still occur and I'm guessing it's due to dropped packets. on my 40mbit internet connection at home it gets an error once a minute or so, and on my slow connection at work the error rate is hundreds per minute. the errors that display due to dropped packets are nearly identical to the errors that came from that bug that is now fixed. there's not much that can be done about dropped UDP/RTP packets except perhaps wait longer and buffer more, but even then, that's probably not going to help much.

vlc handles dropped packets differently than ffplay. i think they do more buffering (well you can set the buffer size), and they also drop the entire frame instead of passing a corrupted packet to the decoder. so instead of getting mpeg4 errors and visual artifacts, you get lower frame rates.

in my opinion, live rtsp/rtp over the public internet is too unreliable to be useful. with tcp visual quality is better, but then you get high latency which make video conferencing and live ptz cameras useless. it's fine on a local gigabit network, but for internet that's not blazing fast, good luck!

to whomever fixed the udp/rtp bug: hell yeah, you rock!!!!

draku1a - if you're still having problems after making sure you have the latest version of libav, use wireshark or something and check to make sure your network is reliable. if you're using a fast local network that doesn't drop packets then i have no idea what's going on!

comment:20 by Carl Eugen Hoyos, 12 years ago

Component: FFmpegavformat
Resolution: fixed
Status: newclosed

Thank you for the confirmation, if you find other bugs, please open a new ticket!

comment:21 by andrewc, 12 years ago

It seems for me at least this issue is not fully resolved with Geovision GV-FE420.

However there does seem to be a workaround. If you've got a GV-FE420 and are still having issues with frame corruption (as I am with ffmpeg 0.10.2) then try prepending ?tcp to the RTSP URL.

eg:

Source Path: rtsp://admin:admin@##.##.##.##:8554/CH001.sdp?tcp (or whatever your username/password is.)

The "?tcp" suffix is an argument parsed and recognized by ffmpeg to not use udp, which currently tends to cause frame corruption due to udp read buffer bug.

From http://www.zoneminder.com/wiki/index.php?title=Geovision.

So far it seems to be working for me. Although I still need to test the cam with higher frame rates, which I can only do tomorrow when onsite.

Last edited 12 years ago by andrewc (previous) (diff)

comment:22 by Roger Pack, 11 years ago

maybe rtsp should default to tcp, these corruptions seem to confuse... ?

comment:23 by Luke Clemens, 7 years ago

I did some online research today because I am still seeing similar errors. Back in 2011 a fix to the UDP code was contributed that made a huge improvement, but I don't think it's completely fixed. I have run quite a few streams now that exhibit a slight "smearing" issue. It appears to occur in higher resolution videos and whenever a network connection isn't absolutely pristine.

The reason I believe ffmpeg's RTSP UDP mode is still broken is because other libraries are able to play the streams without the issues. VLC for instance uses Lib555. I have found several groups online that solved the issue by switching to a different RTSP library. The majority of people seem to be solving it by switching to TCP, but that pretty much defeats the whole purpose of RTSP and it increases latency.

Note: See TracTickets for help on using tickets.