Opened 4 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


Summary of the bug:
How to reproduce:

Try to download an encrypted HLS stream with ffmpeg:

$ ffmpeg -i -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:

Change History (0)

Note: See TracTickets for help on using tickets.