[FFmpeg-trac] #8490(ffmpeg:new): AES HLS stream downloading don't work

FFmpeg trac at avcodec.org
Mon Jan 20 02:34:50 EET 2020


#8490: AES HLS stream downloading don't work
---------------------------------+----------------------------------
             Reporter:  mark99i  |                     Type:  defect
               Status:  new      |                 Priority:  normal
            Component:  ffmpeg   |                  Version:  4.1.4
             Keywords:  hls,aes  |               Blocked By:
             Blocking:           |  Reproduced by developer:  0
Analyzed by developer:  0        |
---------------------------------+----------------------------------
 Summary of the bug:
 How to reproduce:
 {{{
 ffmpeg -report -user_agent "VKAndroidApp/5.52-4532 (Android 9.0; SDK 28;
 arm64-v8a; Xiaomi MI 6; ru; 1920x1080)" -i
 "https://cs9-21v4.vkuseraudio.net/p18/4b5e6e00549/5f33cfb56a4dd7/index.m3u8?extra
 =wa1yB-mCLiOotud3kyD6dEB0hqvTzDgYeVvdrfcLLAykSjHBEJRi1g9enf-
 c73wZ768tbfBUV-LI04Qze6z73kUzlKlt2tDa6yoBsm6gQWq6JATaQ-
 GgWIHu7DqT4uyYDSv7rDnsDucP1zh7xxgOENJ7Yg" -loglevel debug -c copy
 output6.mp3
 ffmpeg version 4.1.4-1build2 Copyright (c) 2000-2019 the FFmpeg developers
 built with gcc 9 (Ubuntu 9.2.1-4ubuntu1)
 }}}
 when you try to download an hls stream encrypted with aes, an warnings
 [mpegts @ 0x55e00b00e140] Continuity check failed for pid 5907 expected 8
 got 2
 [mpegts @ 0x55e00b00e140] Packet had TEI flag set; marking as corrupt
 and the result is a file half the size and with audio freezes

 I found a [https://gist.github.com/grwlf/e1876f5d78cb6e66791809771d7bf36b
 working example] of how hls is successfully decrypted if you pre-download
 all chunks, it works fine on latest release.

 Also i find old ffmpeg version N-59742-gd9481dc built on Jan 9 2014
 22:01:53 with gcc 4.8.2 (GCC), where works great -i $link -c copy out.mp3,
 which doesn't work on new versions

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


More information about the FFmpeg-trac mailing list