[FFmpeg-trac] #5505(undetermined:new): segfault during segmentation of a RTSP stream on raspbian

FFmpeg trac at avcodec.org
Tue May 3 13:51:25 CEST 2016


#5505: segfault during segmentation of a RTSP stream on raspbian
-------------------------------------+-------------------------------------
             Reporter:  plegal       |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:
  undetermined                       |  unspecified
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug: ffmpeg crash on the second chunk when I try to segment
 a RTSP stream from a camera. The first chunk is OK. The second is 0 size.:
 {{{
 # ls -l
 total 24152
 -rw-r--r-- 1 root root 3792557 mai    3 13:46 capture-000.mp4
 -rw-r--r-- 1 root root       0 mai    3 13:46 capture-001.mp4
 }}}

 If I strace the same command line : nosegfault...

 How to reproduce:
 {{{
 ffmpeg -v 9 -loglevel 99 -y -i rtsp://192.168.0.13:554/ -vcodec copy -an
 -f segment -segment_time 15 -segment_format m4v "capture-%03d.mp4"
 ffmpeg version 0.8.17-6:0.8.17-2+rpi1, Copyright (c) 2000-2014 the Libav
 developers
   built on Mar 18 2016 02:11:55 with gcc 4.6.3
   configuration: --arch=arm --enable-pthreads --enable-runtime-cpudetect
 --extra-version='6:0.8.17-2+rpi1' --libdir=/usr/lib/arm-linux-gnueabihf
 --prefix=/usr --disable-yasm --disable-protocol=concat --enable-bzlib
 --enable-libdc1394 --enable-libdirac --enable-libfreetype --enable-frei0r
 --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp
 --enable-libopencv --enable-libopenjpeg --enable-libpulse --enable-
 libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi
 --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-
 gpl --enable-postproc --enable-swscale --enable-libcdio --enable-x11grab
 --enable-libx264 --enable-libxvid --shlibdir=/usr/lib/arm-linux-gnueabihf
 --enable-shared --disable-static
   libavutil    51. 22. 3 / 51. 22. 3
   libavcodec   53. 35. 0 / 53. 35. 0
   libavformat  53. 21. 1 / 53. 21. 1
   libavdevice  53.  2. 0 / 53.  2. 0
   libavfilter   2. 15. 0 /  2. 15. 0
   libswscale    2.  1. 0 /  2.  1. 0
   libpostproc  52.  0. 0 / 52.  0. 0
 The ffmpeg program is only provided for script compatibility and will be
 removed
 in a future release. It has been deprecated in the Libav project to allow
 for
 incompatible command line syntax improvements in its replacement called
 avconv
 (see Changelog for details). Please use avconv instead.
 [rtsp @ 0x431660] SDP:
 v=0
 o=- 1001 1 IN IP4 192.168.0.13
 s=VCP IPC Realtime stream
 m=video 0 RTP/AVP 105
 c=IN IP4 192.168.0.13
 a=control:rtsp://192.168.0.13/media/video1/video
 a=rtpmap:105 H264/90000
 a=fmtp:105 profile-level-id=001fac; packetization-mode=1; sprop-parameter-
 sets=ZAAfrDTMBQBb/moCAgKAAAH0AABdwHQwAPBYAA8FRd5caGAB4LAAHgqLvLhQ,7jyA
 a=recvonly
 m=application 0 RTP/AVP 107
 c=IN IP4 192.168.0.13
 a=control:rtsp://192.168.0.13/media/video1/metadata
 a=rtpmap:107 vnd.onvif.metadata/90000
 a=fmtp:107 DecoderTag=h3c-v3 RTCP=0
 a=recvonly

 [rtsp @ 0x431660] video codec set to: h264
 [NULL @ 0x435360] RTP Profile IDC: 0 Profile IOP: 1f Level: ac
 [NULL @ 0x435360] RTP Packetization Mode: 1
 [NULL @ 0x435360] Extradata set to 0x435960 (size: 54)!hello state=0
 [h264 @ 0x435360] err{or,}_recognition separate: 1; 1
 [h264 @ 0x435360] err{or,}_recognition combined: 1; 1
 [h264 @ 0x435360] Unsupported bit depth: 0
 [h264 @ 0x435360] Unknown NAL code: 14 (8 bits)
     Last message repeated 1 times
 [h264 @ 0x435360] non-existing PPS referenced
 [h264 @ 0x435360] non-existing PPS 0 referenced
 [h264 @ 0x435360] decode_slice_header error
 [h264 @ 0x435360] no frame!
 [h264 @ 0x435360] non-existing PPS referenced
 [h264 @ 0x435360] non-existing PPS 0 referenced
 [h264 @ 0x435360] decode_slice_header error
 [h264 @ 0x435360] no frame!
 [h264 @ 0x435360] error while decoding MB 15 32, bytestream (-17)
 [h264 @ 0x435360] concealing 1074 DC, 1074 AC, 1074 MV errors
 [rtsp @ 0x431660] max_analyze_duration reached
 [rtsp @ 0x431660] Estimating duration from bitrate, this may be inaccurate

 Seems stream 0 codec frame rate differs from container frame rate: 48.00
 (48/1) -> 24.00 (48/2)
 Input #0, rtsp, from 'rtsp://192.168.0.13:554/':
   Metadata:
     title           : VCP IPC Realtime stream
   Duration: N/A, start: 0.000000, bitrate: N/A
     Stream #0.0, 123, 1/90000: Video: h264 (High), yuv420p, 1280x720,
 1/48, 24.20 fps, 24 tbr, 90k tbn, 48 tbc
     Stream #0.1, 5, 1/90000: Data: [0][0][0][0] / 0x0000
 Output #0, segment, to 'capture-%03d.mp4':
   Metadata:
     title           : VCP IPC Realtime stream
     encoder         : Lavf53.21.1
     Stream #0.0, 0, 1/90000: Video: libx264, yuv420p, 1280x720, 1/24,
 q=2-31, 90k tbn, 24 tbc
 Stream mapping:
   Stream #0.0 -> #0.0
 Press ctrl-c to stop encoding
 [segment @ 0x43ef00] Next segment starts at 0 1412484 bitrate=
 -0.0kbits/s
 Erreur de segmentation

 }}}
 Patches should be submitted to the ffmpeg-devel mailing list and not this
 bug tracker.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/5505>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list