[FFmpeg-trac] #8652(avformat:new): Segmentation fault with HLS var_stream_map

FFmpeg trac at avcodec.org
Mon May 4 22:28:38 EEST 2020


#8652: Segmentation fault with HLS var_stream_map
-------------------------------------+-------------------------------------
             Reporter:  udyojiar     |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:  avformat     |                  Version:  git-
             Keywords:  hls crash    |  master
  SIGSEGV                            |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug:
 Hello,
 I have one video I'd like to convert it to hls in two profiles with
 var_stream_map.
 At the end of the conversation FFmpeg dies with segmentation fault.
 The result is the same with ffmpeg-4.2.2 and ffmpeg-snapshot.

 How to reproduce:
 {{{
 % ffmpeg -hwaccel vaapi -hwaccel_device /dev/dri/renderD128
 -hwaccel_output_format vaapi \
 -i FPS_test_1080p25_L4.1.mkv \
 -filter_complex 'split[cq][cb]' \
 -map '[cq]' -c:v h264_vaapi -qp 18 -map \
 '[cb]' -c:v h264_vaapi -b:v 5M -maxrate 5M    \
 -f hls -var_stream_map "v:0_v:1" \
 -master_pl_name playlist.m3u8 -master_pl_publish_rate 5 \
 -use_localtime 1 -hls_segment_type mpegts -hls_time 10 \
 -hls_list_size 6 -hls_flags delete_segments \
 -hls_segment_filename "/dev/shm/abr/503/%v/%s.bin" \
       "/dev/shm/abr/503/%v/playlist.m3u8"

 ffmpeg version N-97605-g422f1e3 Copyright (c) 2000-2020 the FFmpeg
 developers
   built with gcc 8 (GCC)
   configuration: --prefix=/home/ico/ffmpeg_build --pkg-config-
 flags=--static --extra-cflags=-I/home/ico/ffmpeg_build/include --extra-
 ldflags=-L/home/ico/ffmpeg_build/lib --extra-libs=-lpthread --extra-
 libs=-lm --bindir=/home/ico/bin --enable-gpl --enable-libfdk_aac --enable-
 libx264 --enable-vaapi --enable-nonfree
   libavutil      56. 43.100 / 56. 43.100
   libavcodec     58. 82.100 / 58. 82.100
   libavformat    58. 42.102 / 58. 42.102
   libavdevice    58.  9.103 / 58.  9.103
   libavfilter     7. 80.100 /  7. 80.100
   libswscale      5.  6.101 /  5.  6.101
   libswresample   3.  6.100 /  3.  6.100
   libpostproc    55.  6.100 / 55.  6.100
 Input #0, matroska,webm, from 'FPS_test_1080p25_L4.1.mkv':
   Metadata:
     encoder         : libebml v1.3.0 + libmatroska v1.4.1
     creation_time   : 2014-09-18T20:01:03.000000Z
   Duration: 00:10:05.04, start: 0.000000, bitrate: 218 kb/s
     Stream #0:0(eng): Video: h264 (High), yuv420p(tv, bt709, progressive),
 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 1k tbn, 50 tbc (default)
     Metadata:
       BPS             : 216733
       BPS-eng         : 216733
       DURATION        : 00:10:05.040000000
       DURATION-eng    : 00:10:05.040000000
       NUMBER_OF_FRAMES: 15126
       NUMBER_OF_FRAMES-eng: 15126
       NUMBER_OF_BYTES : 16391549
       NUMBER_OF_BYTES-eng: 16391549
       _STATISTICS_WRITING_APP: mkvmerge v7.2.0 ('On Every Street') 32bit
 built on Sep 13 2014 15:42:11
       _STATISTICS_WRITING_APP-eng: mkvmerge v7.2.0 ('On Every Street')
 32bit built on Sep 13 2014 15:42:11
       _STATISTICS_WRITING_DATE_UTC: 2014-09-18 20:01:03
       _STATISTICS_WRITING_DATE_UTC-eng: 2014-09-18 20:01:03
       _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
       _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
     Stream #0:1(eng): Audio: mp3, 48000 Hz, stereo, fltp, 44 kb/s
 (default)
     Metadata:
       BPS             : 34181
       BPS-eng         : 34181
       DURATION        : 00:00:01.056000000
       DURATION-eng    : 00:00:01.056000000
       NUMBER_OF_FRAMES: 44
       NUMBER_OF_FRAMES-eng: 44
       NUMBER_OF_BYTES : 4512
       NUMBER_OF_BYTES-eng: 4512
       _STATISTICS_WRITING_APP: mkvmerge v7.2.0 ('On Every Street') 32bit
 built on Sep 13 2014 15:42:11
       _STATISTICS_WRITING_APP-eng: mkvmerge v7.2.0 ('On Every Street')
 32bit built on Sep 13 2014 15:42:11
       _STATISTICS_WRITING_DATE_UTC: 2014-09-18 20:01:03
       _STATISTICS_WRITING_DATE_UTC-eng: 2014-09-18 20:01:03
       _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
       _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 Multiple -c, -codec, -acodec, -vcodec, -scodec or -dcodec options
 specified for stream 0, only the last option '-c:v h264_vaapi' will be
 used.
 Multiple -c, -codec, -acodec, -vcodec, -scodec or -dcodec options
 specified for stream 1, only the last option '-c:v h264_vaapi' will be
 used.
 failed to open /usr/lib64/dri/hybrid_drv_video.so
 Not using hybrid_drv_video.so
 Stream mapping:
   Stream #0:0 (h264) -> split
   split:output0 -> Stream #0:0 (h264_vaapi)
   split:output1 -> Stream #0:1 (h264_vaapi)
 Press [q] to stop, [?] for help
 Segmentation fault (core dumped)
 }}}
 Patches should be submitted to the ffmpeg-devel mailing list and not this
 bug tracker.

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


More information about the FFmpeg-trac mailing list