[FFmpeg-user] RTSP/H.264 stream - errors, smearing

Keith Thelen thelen at keyc.com
Fri Nov 4 18:01:43 EET 2016


Hello all!

I have a couple of Pelco ES5230 cameras, which I’m trying to capture video from. But I’m having a couple problems: one, I get lots of errors (as below) mentioning the SEI has been truncated; and two, after a few minutes I’ll notice the bottom half of the picture will frequently appear “smeared”. Any ideas?


user at host$ ffmpeg -i rtsp://10.12.1.71/stream1 -vcodec copy /tmp/output.ts
ffmpeg version 3.1.3-static http://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.4.1 (Debian 5.4.1-1) 20160803
  configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libwebp --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg --enable-libopus --enable-libass --enable-gnutls --enable-libvidstab --enable-libsoxr --enable-frei0r --enable-libfribidi --disable-indev=sndio --disable-outdev=sndio --enable-librtmp --enable-libmfx --enable-libzimg --cc=gcc-5
  libavutil      55. 28.100 / 55. 28.100
  libavcodec     57. 48.101 / 57. 48.101
  libavformat    57. 41.100 / 57. 41.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 47.100 /  6. 47.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  1.100 /  2.  1.100
  libpostproc    54.  0.100 / 54.  0.100
[h264 @ 0x49bd8c0] SEI type 5 size 360 truncated at 160
[h264 @ 0x49bd8c0] SEI type 5 size 360 truncated at 159
[h264 @ 0x49bd8c0] SEI type 5 size 360 truncated at 160
[h264 @ 0x49bd8c0] SEI type 5 size 360 truncated at 159
[h264 @ 0x49bd8c0] SEI type 5 size 360 truncated at 160
[h264 @ 0x49bd8c0] SEI type 5 size 360 truncated at 159
[h264 @ 0x49bd8c0] SEI type 5 size 360 truncated at 160
[h264 @ 0x49bd8c0] SEI type 5 size 360 truncated at 159
[h264 @ 0x49bd8c0] SEI type 5 size 360 truncated at 160
[h264 @ 0x49bd8c0] SEI type 5 size 360 truncated at 159
[h264 @ 0x49bd8c0] SEI type 5 size 360 truncated at 160
[h264 @ 0x49bd8c0] SEI type 5 size 360 truncated at 159
[h264 @ 0x49bd8c0] SEI type 5 size 360 truncated at 160
[h264 @ 0x49bd8c0] SEI type 5 size 360 truncated at 159
[h264 @ 0x49bd8c0] SEI type 5 size 360 truncated at 160
[h264 @ 0x49bd8c0] SEI type 5 size 360 truncated at 159
[h264 @ 0x49bd8c0] SEI type 5 size 360 truncated at 160
[h264 @ 0x49bd8c0] SEI type 5 size 360 truncated at 159
[h264 @ 0x49bd8c0] SEI type 5 size 360 truncated at 160
[h264 @ 0x49bd8c0] SEI type 5 size 360 truncated at 159
[h264 @ 0x49bd8c0] SEI type 5 size 360 truncated at 160
[h264 @ 0x49bd8c0] SEI type 5 size 360 truncated at 159
[h264 @ 0x49bd8c0] SEI type 5 size 360 truncated at 160
[h264 @ 0x49bd8c0] SEI type 5 size 360 truncated at 159
[h264 @ 0x49bd8c0] SEI type 5 size 360 truncated at 160
    Last message repeated 15 times
[h264 @ 0x49bd8c0] SEI type 5 size 352 truncated at 160
    Last message repeated 1 times
[h264 @ 0x49bd8c0] SEI type 5 size 360 truncated at 160
    Last message repeated 2 times
Input #0, rtsp, from 'rtsp://10.12.1.71/stream1':
  Metadata:
    title           : Session streamed by "Pelco Streaming Server"
    comment         : stream1
  Duration: N/A, start: 0.307822, bitrate: N/A
    Stream #0:0: Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 30 fps, 29.83 tbr, 90k tbn, 60 tbc
[mpegts @ 0x4a186c0] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
Output #0, mpegts, to '/tmp/output.ts':
  Metadata:
    title           : Session streamed by "Pelco Streaming Server"
    comment         : stream1
    encoder         : Lavf57.41.100
    Stream #0:0: Video: h264, yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 30 fps, 29.83 tbr, 90k tbn, 90k tbc
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[NULL @ 0x49bd8c0] SEI type 5 size 360 truncated at 160
    Last message repeated 16 times
frame=   45 fps=0.0 q=-1.0 size=    1123kB time=00:00:01.27 bitrate=7232.1kbits/[NULL @ 0x49bd8c0] SEI type 5 size 360 truncated at 160
    Last message repeated 7 times
[NULL @ 0x49bd8c0] SEI type 5 size 352 truncated at 160
    Last message repeated 1 times
[NULL @ 0x49bd8c0] SEI type 5 size 360 truncated at 160
    Last message repeated 5 times
frame=   61 fps= 57 q=-1.0 size=    1554kB time=00:00:01.80 bitrate=7041.5kbits/[NULL @ 0x49bd8c0] SEI type 5 size 360 truncated at 160
    Last message repeated 15 times
frame=   77 fps= 48 q=-1.0 size=    1856kB time=00:00:02.34 bitrate=6490.1kbits/[NULL @ 0x49bd8c0] SEI type 5 size 360 truncated at 160
    Last message repeated 5 times
[NULL @ 0x49bd8c0] SEI type 5 size 352 truncated at 160
    Last message repeated 1 times
[NULL @ 0x49bd8c0] SEI type 5 size 360 truncated at 160
    Last message repeated 6 times
frame=   92 fps= 43 q=-1.0 size=    2262kB time=00:00:02.84 bitrate=6517.0kbits/[NULL @ 0x49bd8c0] SEI type 5 size 360 truncated at 160
    Last message repeated 5 times
[NULL @ 0x49bd8c0] SEI type 5 size 368 truncated at 160
[NULL @ 0x49bd8c0] SEI type 5 size 360 truncated at 160
    Last message repeated 9 times
frame=  109 fps= 41 q=-1.0 size=    2575kB time=00:00:03.41 bitrate=6183.1kbits/[NULL @ 0x49bd8c0] SEI type 5 size 360 truncated at 160
    Last message repeated 3 times
[NULL @ 0x49bd8c0] SEI type 5 size 352 truncated at 160
    Last message repeated 1 times
[NULL @ 0x49bd8c0] SEI type 5 size 360 truncated at 160
    Last message repeated 9 times
frame=  125 fps= 39 q=-1.0 size=    3012kB time=00:00:03.94 bitrate=6252.3kbits/[NULL @ 0x49bd8c0] SEI type 5 size 360 truncated at 160
    Last message repeated 14 times
frame=  140 fps= 38 q=-1.0 size=    3288kB time=00:00:04.44 bitrate=6056.4kbits/[NULL @ 0x49bd8c0] SEI type 5 size 360 truncated at 160
    Last message repeated 2 times
[NULL @ 0x49bd8c0] SEI type 5 size 352 truncated at 160
    Last message repeated 1 times
[NULL @ 0x49bd8c0] SEI type 5 size 360 truncated at 160
    Last message repeated 9 times
frame=  155 fps= 37 q=-1.0 size=    3707kB time=00:00:04.94 bitrate=6137.0kbits/[NULL @ 0x49bd8c0] SEI type 5 size 360 truncated at 160
    Last message repeated 9 times
frame=  165 fps= 36 q=-1.0 Lsize=    3894kB time=00:00:05.28 bitrate=6039.3kbits/s speed=1.16x    
video:3594kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 8.356318%





-----
Keith Thelen
KEYC News 12
thelen at keyc.com
(507) 246-2030



More information about the ffmpeg-user mailing list