[FFmpeg-trac] #8507(undetermined:new): ffmpeg hls output big ts file
FFmpeg
trac at avcodec.org
Mon Feb 3 15:08:34 EET 2020
#8507: ffmpeg hls output big ts file
--------------------------------------+----------------------------------
Reporter: lempa | Type: defect
Status: new | Priority: normal
Component: undetermined | Version:
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
--------------------------------------+----------------------------------
Summary of the bug:
ffmpeg hls input hls output file grow to gigabyte.;;
How to reproduce:
{{{
start 1st ffmpeg which you can kill and restart:
%ffmpeg -i any_hls_or_udp_source -vcodec copy -acodec copy -sn
-map_metadata 0 -f hls -hls_flags delete_segments -hls_time 10
-hls_list_size 6 -hls_segment_type mpegts -start_number $(echo $(CMD=`grep
-s EXT-X-MEDIA-SEQUENCE stream.m3u8`; if [[ ! -z $CMD ]]; then echo
$CMD|awk -F ':' '{print $2}'; else echo 100;fi)) -hls_start_number_source
epoch -hls_segment_filename "file%07d.ts" stream.m3u8
start 2nd ffmpeg
% ffmpeg -err_detect ignore_err -i http://localhost/ffmpeg/stream.m3u8
-vcodec copy -acodec copy -sn -map_metadata 0 -f hls -hls_flags
delete_segments -hls_time 10 -hls_list_size 6 -hls_segment_type mpegts
-hls_segment_filename "file%07d.ts" stream.m3u8ffmpeg version
ffmpeg version 4.2.2-static
}}}
start 1st ffmpeg, start 2nd ffmpeg after it creates 2 files kill 1st and
start again. 2nd ffmpeg will grow last ts file to gigabytes
--
Ticket URL: <https://trac.ffmpeg.org/ticket/8507>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list