PDA

View Full Version : M3U8 FFMPEG Download Issue


adi10289
04-05-2014, 09:51 AM
Hi
I am getting issue in downloading video through ffmpeg due to secure https key file. If anyone knows how to download from m3u8 using https key file pls let me know.

ffmpeg -i "http://hls.spuul.com/va/movies/11911008-d2d897ca/0010/s_renditions.m3u8" -c copy -absf aac_adtstoasc test_2_2.mkv

ffmpeg version N-62121-g634636e Copyright (c) 2000-2014 the FFmpeg developers
built on Apr 3 2014 23:30:16 with gcc 4.8.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-zlib
libavutil 52. 73.100 / 52. 73.100
libavcodec 55. 56.107 / 55. 56.107
libavformat 55. 36.101 / 55. 36.101
libavdevice 55. 11.100 / 55. 11.100
libavfilter 4. 3.100 / 4. 3.100
libswscale 2. 6.100 / 2. 6.100
libswresample 0. 18.100 / 0. 18.100
libpostproc 52. 3.100 / 52. 3.100
[https @ 02899ae0] HTTP error 404 Not Found
Unable to open key file https://secure.spuul.com/keys/va/movies/11911008-d2d897ca/0010/renditions-encryption-00001.key
Format mp3 detected only with low score of 1, misdetection possible!
[mp3 @ 029b7180] Header missing
Last message repeated 1034 times
[mp3 @ 029bd860] decoding for stream 0 failed
[mp3 @ 029bd860] Could not find codec parameters for stream 0 (Audio: mp3, 0 channels, s16p): unspecified frame size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
http://hls.spuul.com/va/movies/11911008-d2d897ca/0010/s_renditions.m3u8: Operation not permitted

M3U8 File
#EXTM3U
#EXT-X-VERSION:2
#EXT-X-PLAYLIST-TYPE:VOD
#EXT-X-TARGETDURATION:10
#EXT-X-KEY:METHOD=AES-128,URI="https://secure.spuul.com/keys/va/movies/11911008-d2d897ca/0010/renditions-encryption-00001.key",IV=0xad5dbef1ba46abb21f305b661f05353c
#EXTINF:10,
renditions-00001.ts
#EXTINF:10,
renditions-00002.ts
#EXTINF:10,
renditions-00003.ts

peterpan
04-05-2014, 10:09 AM
post original link, which plays on browser

chap
04-05-2014, 10:41 AM
ffmpeg -i "http://hls.spuul.com/va/movies/11911008-d2d897ca/0010/renditions.m3u8?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc29 1cmNlIjoiKi92YS9tb3ZpZXMvMTA4MTAwMDctZjQ1YzU3MmMvc 19qdy5tM3U4IiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI 6eyJBV1M6RXBvY2hUaW1lIjoxMzk2NjA0Njg4fSwiSXBBZGRyZ XNzIjp7IkFXUzpTb3VyY2VJcCI6IjAuMC4wLjAvMCJ9fX1dfQ_ _&Signature=q0mDnbxjW8BL2RJ55IZRV9EOpXx1FaOFoaKnaQ8m BrvP202Xgl8CByPiGtqGOJkL1Ym81xQ8cfh4hxFtWijhYJ-AV74KqZucBeoWen8S5SbIK4xw03PSHCE-93ceicvak6c8GzDuyQ0MFJYA0aUW3x3tKG4P~gM7XW3sRRJUfT Y_&Key-Pair-Id=APKAJMKGGGYZCUBNLANQ" -c copy t.ts

adi10289
04-05-2014, 10:48 AM
ffmpeg -i "http://hls.spuul.com/va/movies/11911008-d2d897ca/0010/renditions.m3u8?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc29 1cmNlIjoiKi92YS9tb3ZpZXMvMTA4MTAwMDctZjQ1YzU3MmMvc 19qdy5tM3U4IiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI 6eyJBV1M6RXBvY2hUaW1lIjoxMzk2NjA0Njg4fSwiSXBBZGRyZ XNzIjp7IkFXUzpTb3VyY2VJcCI6IjAuMC4wLjAvMCJ9fX1dfQ_ _&Signature=q0mDnbxjW8BL2RJ55IZRV9EOpXx1FaOFoaKnaQ8m BrvP202Xgl8CByPiGtqGOJkL1Ym81xQ8cfh4hxFtWijhYJ-AV74KqZucBeoWen8S5SbIK4xw03PSHCE-93ceicvak6c8GzDuyQ0MFJYA0aUW3x3tKG4P~gM7XW3sRRJUfT Y_&Key-Pair-Id=APKAJMKGGGYZCUBNLANQ" -c copy t.ts
Hi Chap can u tell me how u got that URL through PM pls as when i am using adblocker in firefox i am not getting full URL.

peterpan
04-06-2014, 12:29 AM
Next time, post the link for the channel/movie you're trying to play

like this: https://spuul.com/watch/movies/2455-john-day

So someone can help you like this LOL


ffmpeg -i "http://hls.spuul.com/va/movies/10810007-f45c572c/0011/renditions.m3u8?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc29 1cmNlIjoiKi92YS9tb3ZpZXMvMTA4MTAwMDctZjQ1YzU3MmMvc 19qdy5tM3U4IiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI 6eyJBV1M6RXBvY2hUaW1lIjoxMzk2NzY1MjYwfSwiSXBBZGRyZ XNzIjp7IkFXUzpTb3VyY2VJcCI6IjAuMC4wLjAvMCJ9fX1dfQ_ _&Signature=t2aKKRA0U6oM9qcFEPMIDM0N3f5bxkPzDAizWylO BeAMYvodof0bVlPvfVOWroT099LGU7Ogn6TGed5NyiVb9HV~HW XeqqV7hSavRDUNLqf~iWXpko3qI2hTP3vVfQVYuWZDgdsrPkdt 2K3gN-3Pb73KEvmjiSO6z7FD-8CkqRU_&Key-Pair-Id=APKAJMKGGGYZCUBNLANQ" -c copy m2.ts

adi10289
04-07-2014, 01:54 AM
Next time, post the link for the channel/movie you're trying to play

like this: https://spuul.com/watch/movies/2455-john-day

So someone can help you like this LOL


ffmpeg -i "http://hls.spuul.com/va/movies/10810007-f45c572c/0011/renditions.m3u8?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc29 1cmNlIjoiKi92YS9tb3ZpZXMvMTA4MTAwMDctZjQ1YzU3MmMvc 19qdy5tM3U4IiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI 6eyJBV1M6RXBvY2hUaW1lIjoxMzk2NzY1MjYwfSwiSXBBZGRyZ XNzIjp7IkFXUzpTb3VyY2VJcCI6IjAuMC4wLjAvMCJ9fX1dfQ_ _&Signature=t2aKKRA0U6oM9qcFEPMIDM0N3f5bxkPzDAizWylO BeAMYvodof0bVlPvfVOWroT099LGU7Ogn6TGed5NyiVb9HV~HW XeqqV7hSavRDUNLqf~iWXpko3qI2hTP3vVfQVYuWZDgdsrPkdt 2K3gN-3Pb73KEvmjiSO6z7FD-8CkqRU_&Key-Pair-Id=APKAJMKGGGYZCUBNLANQ" -c copy m2.ts
Thanks I got it :D

adi10289
04-12-2014, 04:46 AM
Thanks I got it :D
Hi Guys
Spuul has again changed their method of streaming. Pls check and help me out with new method.

denobis
04-12-2014, 09:26 AM
With only ffmpeg maybe you can't. You need to pass certain cookies to download the chunks.

adi10289
04-12-2014, 12:07 PM
With only ffmpeg maybe you can't. You need to pass certain cookies to download the chunks.

Pls help me in how to pass cookies, m totally lost now :(

denobis
04-12-2014, 12:18 PM
It's not trivial, but atres downloader will support it in the next release. Wait till then.

adi10289
04-12-2014, 12:29 PM
It's not trivial, but atres downloader will support it in the next release. Wait till then.

Thanks but till then can u give me some idea Pls.

adi10289
04-19-2014, 04:08 AM
I am still not able to figure it out. Can anyone help pls??

ThePirate07
05-09-2014, 09:15 AM
use this (https://github.com/yash069/download-hls2)

adi10289
05-12-2014, 08:21 AM
use this (https://github.com/yash069/download-hls2)
Doesnt work at all

ThePirate07
05-12-2014, 01:38 PM
Doesnt work at all

surprising, it does work for me... :p

surya987
05-17-2014, 05:26 AM
can you tell me how you giving key format.... my error bad key ...

pleaase help