[FFmpeg-trac] #5375(avformat:open): Can't download a m3u playlist stream that uses AES encryption

FFmpeg trac at avcodec.org
Sun Oct 29 23:24:54 EET 2017


#5375: Can't download a m3u playlist stream that uses AES encryption
-------------------------------------+-------------------------------------
             Reporter:  viv1d-       |                    Owner:
  shadows                            |                   Status:  open
                 Type:  enhancement  |                Component:  avformat
             Priority:  wish         |               Resolution:
              Version:  git-master   |               Blocked By:
             Keywords:  hls          |  Reproduced by developer:  0
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by CoRoNe):

 Today the NPO (Dutch Public Broadcast) has started using the SAMPLE-AES
 encryption which FFmpeg sadly enough still doesn't support:

 {{{
 D:\Binaries>FOR /F "delims=" %A IN ('xidel.exe -s "https://www.npo.nl/nos-
 journaal/27-10-2017/POW_03375731" -e "let $prid:=extract($url,'.+/(.+)',1)
 return json(concat('https://start-
 player.npo.nl/video/',$prid,'/streams?profile=hls&quality=npo&tokenId=',x:request({'data':'https://www.npo.nl/player/'||$prid,'method':'POST'})/json/token))//src"')
 DO ffmpeg-N-88268-g75bd010_hls-test.exe -v 40 -i "%A"

 D:\Binaries>ffmpeg-N-88268-g75bd010_hls-test.exe -v 40 -i "https://nl-
 ams-p4-am5.cdn.streamgate.nl/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1MDkzNDU3NjMsImNsaWVudF9pcCI6IjgwLjEwMS40OS41IiwidXJpIjoiXC92b2RcL25wb1wvZnBzXC9URVNUXC9ucG9cL2hsc1wvUE9XXzAzMzc1NzMxIn0
 .8TcJZK13155360BpwACs3YJepA-
 TAFkoD4RjcdsSXT8/vod/npo/fps/TEST/npo/hls/POW_03375731/playlist.m3u8"
 ffmpeg version N-88268-g75bd010 Copyright (c) 2000-2017 the FFmpeg
 developers
   built with gcc 7.2.0 (GCC)
   configuration: --arch=x86 --target-os=mingw32 --cross-prefix=/cygdrive/m
 /ffmpeg-windows-build-helpers-
 master/native_build/windows/ffmpeg_local_builds/sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32-
 --pkg-config=pkg-config --pkg-config-flags=--static --enable-gray
 --enable-version3 --disable-debug --disable-doc --disable-htmlpages
 --disable-manpages --disable-podpages --disable-schannel --disable-
 txtpages --disable-w32threads --disable-ffprobe --disable-hwaccels
 --disable-muxers --disable-bsfs --disable-filters --enable-gnutls --extra-
 libs=-lcrypt32 --enable-gpl --extra-cflags='-march=pentium3' --extra-
 cflags=-O2 --extra-cflags='-mfpmath=sse' --extra-cflags=-msse --enable-
 static --disable-shared --prefix=/cygdrive/m/ffmpeg-windows-build-helpers-
 master/native_build/windows/ffmpeg_local_builds/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32
   libavutil      56.  0.100 / 56.  0.100
   libavcodec     58.  1.100 / 58.  1.100
   libavformat    58.  0.102 / 58.  0.102
   libavdevice    58.  0.100 / 58.  0.100
   libavfilter     7.  0.101 /  7.  0.101
   libswscale      5.  0.101 /  5.  0.101
   libswresample   3.  0.100 /  3.  0.100
   libpostproc    55.  0.100 / 55.  0.100
 [hls,applehttp @ 02539440] Opening 'https://nl-
 ams-p4-am5.cdn.streamgate.nl/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1MDkzNDU3NjMsImNsaWVudF9pcCI6IjgwLjEwMS40OS41IiwidXJpIjoiXC92b2RcL25wb1wvZnBzXC9URVNUXC9ucG9cL2hsc1wvUE9XXzAzMzc1NzMxIn0
 .8TcJZK13155360BpwACs3YJepA-
 TAFkoD4RjcdsSXT8/vod/npo/fps/TEST/npo/hls/POW_03375731/a1/a1.m3u8' for
 reading
 [hls,applehttp @ 02539440] Opening 'https://nl-
 ams-p4-am5.cdn.streamgate.nl/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1MDkzNDU3NjMsImNsaWVudF9pcCI6IjgwLjEwMS40OS41IiwidXJpIjoiXC92b2RcL25wb1wvZnBzXC9URVNUXC9ucG9cL2hsc1wvUE9XXzAzMzc1NzMxIn0
 .8TcJZK13155360BpwACs3YJepA-
 TAFkoD4RjcdsSXT8/vod/npo/fps/TEST/npo/hls/POW_03375731/v2/v2.m3u8' for
 reading
 [hls,applehttp @ 02539440] Opening 'https://nl-
 ams-p4-am5.cdn.streamgate.nl/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1MDkzNDU3NjMsImNsaWVudF9pcCI6IjgwLjEwMS40OS41IiwidXJpIjoiXC92b2RcL25wb1wvZnBzXC9URVNUXC9ucG9cL2hsc1wvUE9XXzAzMzc1NzMxIn0
 .8TcJZK13155360BpwACs3YJepA-
 TAFkoD4RjcdsSXT8/vod/npo/fps/TEST/npo/hls/POW_03375731/v3/v3.m3u8' for
 reading
 [hls,applehttp @ 02539440] Opening 'https://nl-
 ams-p4-am5.cdn.streamgate.nl/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1MDkzNDU3NjMsImNsaWVudF9pcCI6IjgwLjEwMS40OS41IiwidXJpIjoiXC92b2RcL25wb1wvZnBzXC9URVNUXC9ucG9cL2hsc1wvUE9XXzAzMzc1NzMxIn0
 .8TcJZK13155360BpwACs3YJepA-
 TAFkoD4RjcdsSXT8/vod/npo/fps/TEST/npo/hls/POW_03375731/v4/v4.m3u8' for
 reading
 [hls,applehttp @ 02539440] Opening 'https://nl-
 ams-p4-am5.cdn.streamgate.nl/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1MDkzNDU3NjMsImNsaWVudF9pcCI6IjgwLjEwMS40OS41IiwidXJpIjoiXC92b2RcL25wb1wvZnBzXC9URVNUXC9ucG9cL2hsc1wvUE9XXzAzMzc1NzMxIn0
 .8TcJZK13155360BpwACs3YJepA-
 TAFkoD4RjcdsSXT8/vod/npo/fps/TEST/npo/hls/POW_03375731/v5/v5.m3u8' for
 reading
 [hls,applehttp @ 02539440] HLS request for url 'https://nl-
 ams-p4-am5.cdn.streamgate.nl/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1MDkzNDU3NjMsImNsaWVudF9pcCI6IjgwLjEwMS40OS41IiwidXJpIjoiXC92b2RcL25wb1wvZnBzXC9URVNUXC9ucG9cL2hsc1wvUE9XXzAzMzc1NzMxIn0
 .8TcJZK13155360BpwACs3YJepA-
 TAFkoD4RjcdsSXT8/vod/npo/fps/TEST/npo/hls/POW_03375731/a1/fileSequence.aac',
 offset 0, playlist 0
 [hls,applehttp @ 02539440] SAMPLE-AES encryption is not supported yet
 [hls,applehttp @ 02539440] Failed to open segment of playlist 0
 [hls,applehttp @ 02539440] HLS request for url 'https://nl-
 ams-p4-am5.cdn.streamgate.nl/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1MDkzNDU3NjMsImNsaWVudF9pcCI6IjgwLjEwMS40OS41IiwidXJpIjoiXC92b2RcL25wb1wvZnBzXC9URVNUXC9ucG9cL2hsc1wvUE9XXzAzMzc1NzMxIn0
 .8TcJZK13155360BpwACs3YJepA-
 TAFkoD4RjcdsSXT8/vod/npo/fps/TEST/npo/hls/POW_03375731/a1/fileSequence.aac',
 offset 131089, playlist 0
 [hls,applehttp @ 02539440] SAMPLE-AES encryption is not supported yet
 [hls,applehttp @ 02539440] Failed to open segment of playlist 0
 [...]
 [hls,applehttp @ 02539440] HLS request for url 'https://nl-
 ams-p4-am5.cdn.streamgate.nl/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1MDkzNDU3NjMsImNsaWVudF9pcCI6IjgwLjEwMS40OS41IiwidXJpIjoiXC92b2RcL25wb1wvZnBzXC9URVNUXC9ucG9cL2hsc1wvUE9XXzAzMzc1NzMxIn0
 .8TcJZK13155360BpwACs3YJepA-
 TAFkoD4RjcdsSXT8/vod/npo/fps/TEST/npo/hls/POW_03375731/a1/fileSequence.aac',
 offset 24451598, playlist 0
 [hls,applehttp @ 02539440] SAMPLE-AES encryption is not supported yet
 [hls,applehttp @ 02539440] Failed to open segment of playlist 0
 Format aac detected only with low score of 1, misdetection possible!
 [hls,applehttp @ 02539440] No longer receiving playlist 0
 https://nl-
 ams-p4-am5.cdn.streamgate.nl/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1MDkzNDU3NjMsImNsaWVudF9pcCI6IjgwLjEwMS40OS41IiwidXJpIjoiXC92b2RcL25wb1wvZnBzXC9URVNUXC9ucG9cL2hsc1wvUE9XXzAzMzc1NzMxIn0
 .8TcJZK13155360BpwACs3YJepA-
 TAFkoD4RjcdsSXT8/vod/npo/fps/TEST/npo/hls/POW_03375731/playlist.m3u8:
 Invalid data found when processing input
 }}}
 Compiling this hlsdl [https://github.com/selsta/hlsdl/issues/29 didn't go
 so well either].

--
Ticket URL: <https://trac.ffmpeg.org/ticket/5375#comment:14>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list