[FFmpeg-trac] #6573(avformat:new): lost sound when timestamp discontinuity appears with HLC encoder

FFmpeg trac at avcodec.org
Tue Aug 29 05:22:37 EEST 2017

#6573: lost sound when timestamp discontinuity appears with HLC encoder
             Reporter:  krs_vital   |                    Owner:
                 Type:  defect      |                   Status:  new
             Priority:  normal      |                Component:  avformat
              Version:  git-master  |               Resolution:
             Keywords:              |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |

Comment (by krs_vital):

 after many tests my ffmpeg.c file is wrong, but i found a sulution:

 /usr/local/bin/ffmpeg -dts_delta_threshold 120000000 -dts_error_threshold
 120000000 -buffer_size 8388608 -pkt_size 1316 -fifo_size 80000
 -overrun_nonfatal 1 -copytb 1 -i udp:// -sn -dn -c copy
 -hls_allow_cache 0 -hls_ts_options mpegts_flags=+system_b -hls_base_url
 /ts/Fuel_HD/ -hls_list_size 5 -hls_time 5 -hls_flags
 delete_segments+omit_endlist -map 0 -ignore_unknown -strict -2
 -use_localtime 1 -max_interleave_delta 120000000 -hls_segment_filename
 /hls/ts/Fuel_HD/stream_%s.ts /hls/pl/Fuel_HD.m3u8

 input params:
 dts_delta_threshold - 120 sec
 dts_error_threshold = 120 sec

 output params for muxer:
 max_interleave_delta 120 sec

 when all of stream scrambling or one of sound or video tracks disapears or
 scrambling for 10 seconds and more and after then restored (not scrambled
 or sound or video track in the stream apears again) and if
 dts_delta_threshold = 10 sec (by default) and muxer option
 max_interleave_delta = 10 sec (by default) then muxer do force output and
 this behavior leads to 2 problems:
 1. memory leak of ffmpeg from mux.c
 2. loss or lag in sound

 im create a new ticket: https://trac.ffmpeg.org/ticket/6623

Ticket URL: <https://trac.ffmpeg.org/ticket/6573#comment:14>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list