Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   Video stream recording (http://stream-recorder.com/forum/forumdisplay.php?f=4)
-   -  

M3U8 FFMPEG Download Issue

(http://stream-recorder.com/forum/showthread.php?t=18130)

adi10289 04-05-2014 09:51 AM

M3U8 FFMPEG Download Issue


 
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.

Code:

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

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
Code:

#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

Re: M3U8 FFMPEG Download Issue


 
post original link, which plays on browser

chap 04-05-2014 10:41 AM

Re: M3U8 FFMPEG Download Issue


 
Code:

ffmpeg -i "http://hls.spuul.com/va/movies/11911008-d2d897ca/0010/renditions.m3u8?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiKi92YS9tb3ZpZXMvMTA4MTAwMDctZjQ1YzU3MmMvc19qdy5tM3U4IiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxMzk2NjA0Njg4fSwiSXBBZGRyZXNzIjp7IkFXUzpTb3VyY2VJcCI6IjAuMC4wLjAvMCJ9fX1dfQ__&Signature=q0mDnbxjW8BL2RJ55IZRV9EOpXx1FaOFoaKnaQ8mBrvP202Xgl8CByPiGtqGOJkL1Ym81xQ8cfh4hxFtWijhYJ-AV74KqZucBeoWen8S5SbIK4xw03PSHCE-93ceicvak6c8GzDuyQ0MFJYA0aUW3x3tKG4P~gM7XW3sRRJUfTY_&Key-Pair-Id=APKAJMKGGGYZCUBNLANQ" -c copy t.ts

adi10289 04-05-2014 10:48 AM

Re: M3U8 FFMPEG Download Issue


 
Quote:

Originally Posted by chap (Post 66859)
Code:

ffmpeg -i "http://hls.spuul.com/va/movies/11911008-d2d897ca/0010/renditions.m3u8?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiKi92YS9tb3ZpZXMvMTA4MTAwMDctZjQ1YzU3MmMvc19qdy5tM3U4IiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxMzk2NjA0Njg4fSwiSXBBZGRyZXNzIjp7IkFXUzpTb3VyY2VJcCI6IjAuMC4wLjAvMCJ9fX1dfQ__&Signature=q0mDnbxjW8BL2RJ55IZRV9EOpXx1FaOFoaKnaQ8mBrvP202Xgl8CByPiGtqGOJkL1Ym81xQ8cfh4hxFtWijhYJ-AV74KqZucBeoWen8S5SbIK4xw03PSHCE-93ceicvak6c8GzDuyQ0MFJYA0aUW3x3tKG4P~gM7XW3sRRJUfTY_&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

Re: M3U8 FFMPEG Download Issue


 
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

Code:

ffmpeg -i "http://hls.spuul.com/va/movies/10810007-f45c572c/0011/renditions.m3u8?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiKi92YS9tb3ZpZXMvMTA4MTAwMDctZjQ1YzU3MmMvc19qdy5tM3U4IiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxMzk2NzY1MjYwfSwiSXBBZGRyZXNzIjp7IkFXUzpTb3VyY2VJcCI6IjAuMC4wLjAvMCJ9fX1dfQ__&Signature=t2aKKRA0U6oM9qcFEPMIDM0N3f5bxkPzDAizWylOBeAMYvodof0bVlPvfVOWroT099LGU7Ogn6TGed5NyiVb9HV~HWXeqqV7hSavRDUNLqf~iWXpko3qI2hTP3vVfQVYuWZDgdsrPkdt2K3gN-3Pb73KEvmjiSO6z7FD-8CkqRU_&Key-Pair-Id=APKAJMKGGGYZCUBNLANQ" -c copy m2.ts

adi10289 04-07-2014 01:54 AM

Re: M3U8 FFMPEG Download Issue


 
Quote:

Originally Posted by peterpan (Post 66870)
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

Code:

ffmpeg -i "http://hls.spuul.com/va/movies/10810007-f45c572c/0011/renditions.m3u8?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiKi92YS9tb3ZpZXMvMTA4MTAwMDctZjQ1YzU3MmMvc19qdy5tM3U4IiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxMzk2NzY1MjYwfSwiSXBBZGRyZXNzIjp7IkFXUzpTb3VyY2VJcCI6IjAuMC4wLjAvMCJ9fX1dfQ__&Signature=t2aKKRA0U6oM9qcFEPMIDM0N3f5bxkPzDAizWylOBeAMYvodof0bVlPvfVOWroT099LGU7Ogn6TGed5NyiVb9HV~HWXeqqV7hSavRDUNLqf~iWXpko3qI2hTP3vVfQVYuWZDgdsrPkdt2K3gN-3Pb73KEvmjiSO6z7FD-8CkqRU_&Key-Pair-Id=APKAJMKGGGYZCUBNLANQ" -c copy m2.ts

Thanks I got it :D

adi10289 04-12-2014 04:46 AM

Re: M3U8 FFMPEG Download Issue


 
Quote:

Originally Posted by adi10289 (Post 66892)
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

Re: M3U8 FFMPEG Download Issue


 
With only ffmpeg maybe you can't. You need to pass certain cookies to download the chunks.

adi10289 04-12-2014 12:07 PM

Re: M3U8 FFMPEG Download Issue


 
Quote:

Originally Posted by denobis (Post 66987)
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

Re: M3U8 FFMPEG Download Issue


 
It's not trivial, but atres downloader will support it in the next release. Wait till then.


All times are GMT -6. The time now is 10:15 PM.