#6533: Invalid EXT-X-TARGETDURATION in HLS -------------------------------------+------------------------------------ Reporter: tonn81 | Owner: Type: defect | Status: reopened Priority: normal | Component: avformat Version: unspecified | Resolution: Keywords: hls | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------
Comment (by stevenliu): Replying to [comment:22 tonn81]: > Right, it is legal and "safe". > > But it is less precise and different than user expects. > > Just for a second, if I run: > > `ffmpeg ... -hls_time 4` > > I expect: > > `#EXT-X-TARGETDURATION:4` > > But I get `5`! > > Just because HLS segmenter generated one segment with 4.02 duration instead of 4.00 or 3.98 and "safeguard" M3U8 generator decided to ceil 4.02 to 5. I have get your mean, but I won't implement it, if you want fix , I can send you a patch but won't applied in ffmpeg hlsenc. -- Ticket URL: <https://trac.ffmpeg.org/ticket/6533#comment:23> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker _______________________________________________ FFmpeg-trac mailing list FFmpeg-trac@avcodec.org http://ffmpeg.org/mailman/listinfo/ffmpeg-trac