Opened 7 years ago

#5948 new defect

Encrypted HLS stream lead to broken files

Reported by: yan12125 Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
How to reproduce:

Try to download an encrypted HLS stream with ffmpeg:

$ ffmpeg -i http://ipad-streaming.cbsnews.com/media/mpx/2016/11/13/808012355634/1113_FullEpisodeTrump_1179719_5000/1113_FullEpisodeTrump_1179719_5000.m3u8 -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: http://www.cbs.com/shows/60_minutes/video/atW1AAfWvxA_TjuYUhMwDX4R0obUcW0N/president-elect-trump-letters-on-the-pot-vote-/

Environment:
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

Change History (0)

Note: See TracTickets for help on using tickets.