[FFmpeg-user] Artefacts when recording an rtsp stream

lucian orasanu o_lucian at yahoo.com
Sat Jul 13 09:41:12 CEST 2013


Good day,

I'am trayng to record an stream from an hikvision DS=2CD2032-I, with command "ffmpeg -i rtsp://37.43.41.213/h264/ch1/main/av_stream test.avi"
but i see allot of errors like"


[h264 @ 0x163a380] error while decoding MB 47 39, bytestream (-5)
[h264 @ 0x163a380] Cannot use next picture in error concealment
[h264 @ 0x163a380] concealing 482 DC, 482 AC, 482 MV errors in P frame
RTP: missed 10 packets31.0 size=    6055kB time=00:03:31.36 bitrate= 234.7kbits/s dup=0 drop=5    
[h264 @ 0x15aa9a0] RTP: missed 12 packets

and

[h264 @ 0x163a380] concealing 2136 DC, 2136 AC, 2136 MV errors in I frame
[h264 @ 0x15aa9a0] RTP: missed 4 packets
[h264 @ 0x163a380] error while decoding MB 63 17, bytestream (-11)


this is the start of recording:

ffmpeg version 2.0 Copyright (c) 2000-2013 the FFmpeg developers
  built on Jul 12 2013 21:57:15 with gcc 4.6.3 (Gentoo 4.6.3 p1.11, pie-0.5.2)
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-march=core2 -O2 -pipe' --extra-cflags='-march=core2 -O2 -pipe' --extra-cxxflags='-march=core2 -O2 -pipe' --disable-static --enable-gpl --enable-postproc --enable-avfilter --enable-avresample --disable-stripping --enable-nonfree --enable-version3 --enable-nonfree --disable-indev=alsa --disable-indev=oss --disable-indev=jack --disable-outdev=alsa --disable-outdev=oss --disable-outdev=sdl --enable-version3 --enable-bzlib --enable-runtime-cpudetect --disable-debug --disable-doc --disable-gnutls --enable-hardcoded-tables --enable-iconv --enable-network --enable-openssl --disable-ffplay --disable-vaapi --disable-vdpau --enable-zlib --enable-libvo-aacenc --disable-libvo-amrwbenc --enable-libmp3lame --disable-libfdk-aac --disable-libaacplus
 --enable-libfaac --enable-libtheora --disable-libtwolame --disable-  libavutil      52. 38.100 / 52. 38.100
  libavcodec     55. 18.102 / 55. 18.102
  libavformat    55. 12.100 / 55. 12.100
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 79.101 /  3. 79.101
  libavresample   1.  1.  0 /  1.  1.  0
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
[h264 @ 0x200e9a0] RTP: missed 4 packets
[h264 @ 0x200e9a0] RTP: missed 9 packets
[h264 @ 0x200e9a0] RTP: missed 4 packets
[h264 @ 0x200e9a0] RTP: missed 2 packets
[h264 @ 0x200e9a0] RTP: missed 3 packets
    Last message repeated 1 times
[h264 @ 0x200e9a0] RTP: missed 5 packets
    Last message repeated 1 times
[h264 @ 0x200e9a0] RTP: missed 9 packets
[h264 @ 0x200e9a0] RTP: missed 8 packets
    Last message repeated 1 times
[h264 @ 0x200e9a0] RTP: missed 3 packets
[h264 @ 0x200e9a0] left block unavailable for requested intra4x4 mode -1 at 0 18
[h264 @ 0x200e9a0] error while decoding MB 0 18, bytestream (15159)
[h264 @ 0x200e9a0] concealing 2209 DC, 2209 AC, 2209 MV errors in I frame
[h264 @ 0x200e9a0] RTP: missed 6 packets
[h264 @ 0x200e9a0] RTP: missed 2 packets
[h264 @ 0x200e9a0] RTP: missed 10 packets
[h264 @ 0x200e9a0] RTP: missed 8 packets
[h264 @ 0x200e9a0] RTP: missed 9 packets
[h264 @ 0x200e9a0] RTP: missed 11 packets
[h264 @ 0x200e9a0] RTP: missed 2 packets
    Last message repeated 1 times
[h264 @ 0x200e9a0] RTP: missed 1 packets
[h264 @ 0x200e9a0] RTP: missed 9 packets
[h264 @ 0x200e9a0] RTP: missed 7 packets
[h264 @ 0x200e9a0] RTP: missed 6 packets
[h264 @ 0x200e9a0] concealing 2142 DC, 2142 AC, 2142 MV errors in I frame
[h264 @ 0x200e9a0] RTP: missed 1 packets
[h264 @ 0x200e9a0] RTP: missed 6 packets
[h264 @ 0x200e9a0] RTP: missed 40 packets
[h264 @ 0x200e9a0] RTP: missed 42 packets
[h264 @ 0x200e9a0] RTP: missed 79 packets
[h264 @ 0x200e9a0] RTP: missed 9 packets
[h264 @ 0x200e9a0] RTP: missed 8 packets
[h264 @ 0x200e9a0] RTP: missed 9 packets
[h264 @ 0x200e9a0] RTP: missed 6 packets
[h264 @ 0x200e9a0] RTP: missed 16 packets
[h264 @ 0x200e9a0] RTP: missed 39 packets
[h264 @ 0x200e9a0] RTP: missed 23 packets
[h264 @ 0x200e9a0] RTP: missed 5 packets
[h264 @ 0x200e9a0] RTP: missed 1 packets
Input #0, rtsp, from 'rtsp://37.43.41.213/h264/ch1/main/av_stream':
  Metadata:
    title           : Media Presentation
  Duration: N/A, start: 0.520133, bitrate: N/A
    Stream #0:0: Video: h264 (Main), yuv420p, 1280x720, 25 fps, 25 tbr, 90k tbn, 50 tbc



And the image is very distorsioned, allot of bad mackrobloks. here is an sample
http://zm.realfield.ro/test.avi


My observation is that with ffmpeg 0.7 is working beter than 2.0

can this be fixed??
camera is online and who wants can make an test!


More information about the ffmpeg-user mailing list