[FFmpeg-trac] #7711(ffmpeg:new): Segmenting with libopus produces incorrect segment durations in output playlist

FFmpeg trac at avcodec.org
Fri Feb 1 10:07:34 EET 2019


#7711: Segmenting with libopus produces incorrect segment durations in output
playlist
-------------------------------------+-------------------------------------
             Reporter:  haywirez     |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:  ffmpeg       |                  Version:
             Keywords:  opus,        |  unspecified
  segment, hls, m3u8                 |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Fffmpeg should subtract or handle the OPUS priming samples duration (312
 frames) from the segment duration in the playlist EXTINF: entries.

 How to reproduce:
 {{{
 % ffmpeg -i xyz.wav -f segment -segment_time 1 -c:a libopus -segment_list
 opus-segment-test.m3u8 -segment_list_type m3u8 opus-segment-test_%03d.oga
 }}}

 produces a .m3u8 with:

 {{{
 #EXTM3U
 #EXT-X-VERSION:3
 #EXT-X-MEDIA-SEQUENCE:0
 #EXT-X-ALLOW-CACHE:YES
 #EXT-X-TARGETDURATION:1
 #EXTINF:1.000000,
 opus-segment-test_000.oga
 ...
 }}}

 Actual EXTINF segment duration in this case should reflect the true value:
 0.9934920634920634, which corresponds to the difference made by the
 mentioned priming sample frames.

 Tested with ffmpeg version 4.1
 OS: macOS Mojave 10.14.1 // Apple LLVM version 10.0.0 (clang-1000.11.45.5)

--
Ticket URL: <https://trac.ffmpeg.org/ticket/7711>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list