[FFmpeg-trac] #5248(undetermined:new): FFMpeg can't open protected HLS-streams
FFmpeg
trac at avcodec.org
Wed Feb 24 15:08:22 CET 2016
#5248: FFMpeg can't open protected HLS-streams
-------------------------------------+-------------------------------------
Reporter: CoRoNe | Owner:
Type: defect | Status: new
Priority: normal | Component:
Version: unspecified | undetermined
Keywords: hls m3u8 | Resolution:
Blocking: | Blocked By:
Analyzed by developer: 0 | Reproduced by developer: 0
-------------------------------------+-------------------------------------
Comment (by tommyv):
Example of protected HLS stream not working with 3.0 but working with
2.8.x
FFMpeg 3.0 output:
{{{
~/ffmpeg-git-20160224-64bit-static$ ./ffprobe -loglevel debug
"http://live1.msf.ticdn.it/Content/HLS/Live/Channel(CH01HA)/Stream(04)/index.m3u8"
ffprobe version N-53133-g10fa50c-static http://johnvansickle.com/ffmpeg/
Copyright (c) 2007-2016 the FFmpeg developers
built with gcc 5.3.1 (Debian 5.3.1-9) 20160220
configuration: --enable-gpl --enable-version3 --disable-shared
--disable-debug --enable-runtime-cpudetect --enable-libmp3lame --enable-
libx264 --enable-libx265 --enable-libwebp --enable-libspeex --enable-
libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig
--enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libtheora --enable-libvo-amrwbenc --enable-gray --enable-
libopenjpeg --enable-libopus --enable-libass --enable-gnutls --enable-
libvidstab --enable-libsoxr --enable-frei0r --enable-libfribidi --disable-
indev=sndio --disable-outdev=sndio --enable-librtmp --enable-libmfx
--cc=gcc
libavutil 55. 19.100 / 55. 19.100
libavcodec 57. 24.106 / 57. 24.106
libavformat 57. 26.100 / 57. 26.100
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 35.100 / 6. 35.100
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
[http @ 0x4934fa0] Setting default whitelist
'http,https,tls,rtp,tcp,udp,crypto'
[http @ 0x4934fa0] request: GET
/Content/HLS/Live/Channel(CH01HA)/Stream(04)/index.m3u8 HTTP/1.1
User-Agent: Lavf/57.26.100
Accept: */*
Range: bytes=0-
Connection: close
Host: live1.msf.ticdn.it
Icy-MetaData: 1
[http @ 0x4934fa0] request: GET
/Content/HLS/Live/Channel(CH01HA)/Stream(04)/index.m3u8 HTTP/1.1
User-Agent: Lavf/57.26.100
Accept: */*
Range: bytes=0-
Connection: close
Host: se-to1-8.se.live1.msf.ticdn.it
Icy-MetaData: 1
[hls,applehttp @ 0x4934820] Format hls,applehttp probed with size=2048 and
score=100
[hls,applehttp @ 0x4934820] HLS request for url 'http://se-
to1-8.se.live1.msf.ticdn.it/Content/HLS/Live/Channel(CH01HA)/Stream(04)/Segment(14563194100000000)/segment.ts',
offset 0, playlist 0
[http @ 0x493fdc0] request: GET /IOS/IOSLicenser?kid=e8451abd-9de1-4f0f-
9df4-d1e69e6cc4a1 HTTP/1.1
User-Agent: Lavf/57.26.100
Accept: */*
Connection: close
Host: lic.mediaset.net
Icy-MetaData: 1
[AVIOContext @ 0x4941940] Statistics: 16 bytes read, 0 seeks
[hls,applehttp @ 0x4934820] Failed to open segment of playlist 0
[hls,applehttp @ 0x4934820] HLS request for url 'http://se-
to1-8.se.live1.msf.ticdn.it/Content/HLS/Live/Channel(CH01HA)/Stream(04)/Segment(14563194140000000)/segment.ts',
offset 0, playlist 0
[hls,applehttp @ 0x4934820] Failed to open segment of playlist 0
[hls,applehttp @ 0x4934820] HLS request for url 'http://se-
to1-8.se.live1.msf.ticdn.it/Content/HLS/Live/Channel(CH01HA)/Stream(04)/Segment(14563194180000000)/segment.ts',
offset 0, playlist 0
[hls,applehttp @ 0x4934820] Failed to open segment of playlist 0
[http @ 0x49402a0] request: GET
/Content/HLS/Live/Channel(CH01HA)/Stream(04)/index.m3u8 HTTP/1.1
User-Agent: Lavf/57.26.100
Accept: */*
Connection: close
Host: se-to1-8.se.live1.msf.ticdn.it
Icy-MetaData: 1
[AVIOContext @ 0x4941940] Statistics: 1776 bytes read, 0 seeks
[hls,applehttp @ 0x4934820] HLS request for url 'http://se-
to1-8.se.live1.msf.ticdn.it/Content/HLS/Live/Channel(CH01HA)/Stream(04)/Segment(14563194220000000)/segment.ts',
offset 0, playlist 0
[hls,applehttp @ 0x4934820] Failed to open segment of playlist 0
[http @ 0x493d9e0] request: GET
/Content/HLS/Live/Channel(CH01HA)/Stream(04)/index.m3u8 HTTP/1.1
User-Agent: Lavf/57.26.100
Accept: */*
Connection: close
Host: se-to1-8.se.live1.msf.ticdn.it
Icy-MetaData: 1
[AVIOContext @ 0x4940080] Statistics: 1776 bytes read, 0 seeks
[hls,applehttp @ 0x4934820] HLS request for url 'http://se-
to1-8.se.live1.msf.ticdn.it/Content/HLS/Live/Channel(CH01HA)/Stream(04)/Segment(14563194260000000)/segment.ts',
offset 0, playlist 0
[hls,applehttp @ 0x4934820] Failed to open segment of playlist 0
}}}
FFMpeg 2.8.6 output
{{{
ffprobe -loglevel debug
"http://live1.msf.ticdn.it/Content/HLS/Live/Channel(CH01HA)/Stream(04)/index.m3u8"
ffprobe version 2.8.6-static http://johnvansickle.com/ffmpeg/ Copyright
(c) 2007-2016 the FFmpeg developers
built with gcc 5.3.1 (Debian 5.3.1-9) 20160220
configuration: --enable-gpl --enable-version3 --disable-shared
--disable-debug --enable-runtime-cpudetect --enable-libmp3lame --enable-
libx264 --enable-libx265 --enable-libwebp --enable-libspeex --enable-
libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig
--enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libtheora --enable-libvo-amrwbenc --enable-gray --enable-
libopenjpeg --enable-libopus --enable-libass --enable-gnutls --enable-
libvidstab --enable-libsoxr --enable-frei0r --enable-libfribidi --disable-
indev=sndio --disable-outdev=sndio --enable-librtmp --enable-libmfx
--cc=gcc
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 60.100 / 56. 60.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 40.101 / 5. 40.101
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
[http @ 0x557ff60] request: GET
/Content/HLS/Live/Channel(CH01HA)/Stream(04)/index.m3u8 HTTP/1.1
User-Agent: Lavf/56.40.101
Accept: */*
Range: bytes=0-
Connection: close
Host: live1.msf.ticdn.it
Icy-MetaData: 1
[http @ 0x557ff60] request: GET
/Content/HLS/Live/Channel(CH01HA)/Stream(04)/index.m3u8 HTTP/1.1
User-Agent: Lavf/56.40.101
Accept: */*
Range: bytes=0-
Connection: close
Host: se-mi1-17.se.live1.msf.ticdn.it
Icy-MetaData: 1
[hls,applehttp @ 0x557f800] Format hls,applehttp probed with size=2048 and
score=100
[hls,applehttp @ 0x557f800] HLS request for url 'http://se-
mi1-17.se.live1.msf.ticdn.it/Content/HLS/Live/Channel(CH01HA)/Stream(04)/Segment(14563195300000000)/segment.ts',
offset 0, playlist 0
[http @ 0x558abc0] No trailing CRLF found in HTTP header.
[http @ 0x558abc0] request: GET /IOS/IOSLicenser?kid=e8451abd-9de1-4f0f-
9df4-d1e69e6cc4a1 HTTP/1.1
User-Agent: Lavf/56.40.101
Accept: */*
Connection: close
Host: lic.mediaset.net
Icy-MetaData: 1
[http @ 0x558c600] No trailing CRLF found in HTTP header.
[http @ 0x558c600] request: GET
/Content/HLS/Live/Channel(CH01HA)/Stream(04)/Segment(14563195300000000)/segment.ts
HTTP/1.1
User-Agent: Lavf/56.40.101
Accept: */*
Connection: close
Host: se-mi1-17.se.live1.msf.ticdn.it
Icy-MetaData: 1
Format mpegts probed with size=2048 and score=100
[mpegts @ 0x5589d20] stream=0 stream_type=1b pid=21 prog_reg_desc=
[mpegts @ 0x5589d20] stream=1 stream_type=f pid=22 prog_reg_desc=
[mpegts @ 0x5589d20] Before avformat_find_stream_info() pos: 0 bytes
read:9440 seeks:0
[h264 @ 0x55a13c0] no picture
[mpegts @ 0x5589d20] All info found
[mpegts @ 0x5589d20] After avformat_find_stream_info() pos: 233872 bytes
read:233872 seeks:0 frames:45
[hls,applehttp @ 0x557f800] Before avformat_find_stream_info() pos: 1776
bytes read:1776 seeks:0
[h264 @ 0x55f2080] no picture
[hls,applehttp @ 0x557f800] All info found
[hls,applehttp @ 0x557f800] After avformat_find_stream_info() pos: 1776
bytes read:1776 seeks:0 frames:45
Input #0, hls,applehttp, from
'http://live1.msf.ticdn.it/Content/HLS/Live/Channel(CH01HA)/Stream(04)/index.m3u8':
Duration: N/A, start: 93009.941111, bitrate: N/A
Program 0
Metadata:
variant_bitrate : 0
Stream #0:0, 21, 1/90000: Video: h264 (High), 4 reference frames
([27][0][0][0] / 0x001B), yuv420p(tv, bt470bg, left), 1024x576 [SAR 1:1
DAR 16:9], 1/50, 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:1, 24, 1/90000: Audio: aac (LC) ([226][10]cf / 0x66630AE2),
48000 Hz, stereo, fltp, 95 kb/s
detected 4 logical cores
[AVIOContext @ 0x558c920] Statistics: 1776 bytes read, 0 seeks
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/5248#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list