[FFmpeg-trac] #5948(undetermined:new): Encrypted HLS stream lead to broken files

FFmpeg trac at avcodec.org
Mon Nov 14 12:28:53 EET 2016

#5948: Encrypted HLS stream lead to broken files
             Reporter:  yan12125     |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:
  undetermined                       |  unspecified
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
 Summary of the bug:
 How to reproduce:

 Try to download an encrypted HLS stream with ffmpeg:
 $ ffmpeg -i http://ipad-
 -c copy output.mp4

 Both mpv and VLC says output.mp4 is 17 minutes long, while actually is 42
 minutes long.

 I've noticed that there are lots of warnings like this:
 [mp4 @ 0x558344ee2a00] Non-monotonous DTS in output stream 0:0; previous:
 93640192, current: 3795083; changing to 93640193. This may result in
 incorrect timestamps in the output file.
 Is it the main cause of wrong timestamps? If so how can I fix it?

 The original video can be found here:

 ffmpeg 1:3.2-2
 vlc 2.2.4-5
 mpv 1:0.21.0-2
 OS: Arch Linux x86_64 latest

 Downstream report: https://github.com/rg3/youtube-dl/issues/11191

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

More information about the FFmpeg-trac mailing list