[FFmpeg-devel] [PATCH] avformat/hlsenc: check the segment duration valid

Nicolas George george at nsup.org
Mon Aug 17 11:05:51 EEST 2020


Steven Liu (12020-08-17):
> Output a warning message if the target duration of the segment is negative.
> Suggest user increase the hls_time value,
> and modify the target duration to one packet duration,
> because there maybe have bframe and then split not by keyframe,
> and the segment is very very small.

Fiddling randomly with durations seem wrong. It will probably result in
invalid seeking. Have you found the exact cause of the issue?

Preventing duration from being negative in the first place would be a
much better fix than adjusting it arbitrarily.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200817/b0b44974/attachment.sig>


More information about the ffmpeg-devel mailing list