Nicolas George <geo...@nsup.org> 于2020年8月17日周一 下午4:06写道: > > 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.
As Zhili Zhao said, the problem is the user is using hls_time with too short duration and want split not by keyframe. I have been think about how to make the user know it don't support short than 2 frames and with bframes, but this is not the better way. I think give a suggestion and warning message is better. Feel free comment better ways. Thanks Steven _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".