#8015 closed defect (fixed)
hls muxer crash
Reported by: | Jun Zhao | Owned by: | Steven Liu |
---|---|---|---|
Priority: | normal | Component: | avformat |
Version: | git-master | Keywords: | hls crash |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
Used the command as follow:
./ffmpeg -f lavfi -re -i testsrc=s=720x480:r=25:d=100 -vcodec libx264 -r 25 -preset medium -keyint_min 25 -g 25 -f hls -hls_flags +program_date_time -hls_segment_type fmp4 -hls_fmp4_init_filename now.mp4 -use_localtime 1 -hls_list_size 0 -hls_time 6 -hls_segment_filename %Y-%m-%d_%H-%M-%S.m4s now-data.m3u8
will crash with the message like:
[hls @ 0x559ea8797000] Opening '2019-07-13_15-27-41.m4s' for writinged=0.775x
[hls @ 0x559ea8797000] Opening 'now-data.m3u8.tmp' for writing
[hls @ 0x559ea8797000] Opening '2019-07-13_15-27-49.m4s' for writinged=0.871x
av_interleaved_write_frame(): Invalid argument
[hls @ 0x559ea8797000] Opening '2019-07-13_15-27-49.m4s' for writinged=0.877x
Segmentation fault (core dumped)
Change History (6)
comment:1 by , 5 years ago
comment:2 by , 5 years ago
Keywords: | hls added |
---|---|
Owner: | set to |
Status: | new → open |
comment:4 by , 5 years ago
Thanks the quick respond, tested and verified, now it's ok with this patch.
comment:5 by , 5 years ago
Resolution: | → fixed |
---|---|
Status: | open → closed |
fixed by commit: 234a5e058d7bc8ffd6ccde43a6aeaa55e87ae7a9
comment:6 by , 5 years ago
Keywords: | crash added |
---|
full log:
./ffmpeg -f lavfi -re -i testsrc=s=720x480:r=25:d=100 -vcodec libx264 -r 25 -preset medium -keyint_min 25 -g 25 -f hls -hls_flags +program_date_time -hls_segment_type fmp4 -hls_fmp4_init_filename now.mp4 -use_localtime 1 -hls_list_size 0 -hls_time 6 -hls_segment_filename %Y-%m-%d_%H-%M-%S.m4s now-data.m3u8
ffmpeg version N-94277-g7c2a25a4da Copyright (c) 2000-2019 the FFmpeg developers
Input #0, lavfi, from 'testsrc=s=720x480:r=25:d=100':
Stream mapping:
Press [q] to stop, ? for help
[libx264 @ 0x55ee102b5380] using SAR=1/1
[libx264 @ 0x55ee102b5380] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x55ee102b5380] profile High 4:4:4 Predictive, level 3.0, 4:4:4 8-bit
[libx264 @ 0x55ee102b5380] 264 - core 155 r2917 0a84d98 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=4 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=25 keyint_min=13 scenecut=40 intra_refresh=0 rc_lookahead=25 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[hls @ 0x55ee102b2000] Opening 'now.mp4' for writing
Output #0, hls, to 'now-data.m3u8':
[hls @ 0x55ee102b2000] Opening '2019-07-13_15-49-40.m4s' for writinged=0.774x
[hls @ 0x55ee102b2000] Opening 'now-data.m3u8.tmp' for writing
[hls @ 0x55ee102b2000] Opening '2019-07-13_15-49-48.m4s' for writinged=0.874x
av_interleaved_write_frame(): Invalid argument
[hls @ 0x55ee102b2000] Opening '2019-07-13_15-49-48.m4s' for writing
Segmentation fault (core dumped)