PDA

View Full Version : Error retrieving downloading from ffmpeg


Littledogs2
09-17-2014, 11:26 AM
I managed to do this correctly before with help. Now it seems it's not working ?

I added the m3u8 file. Hope someone can help.

http://streaming.itunesfestival.com/auth/eu1/vod/20140916/v1/1200_256/1012882_blondie_vod.m3u8?token=expires=1411013704~ access=/auth/*~md5=3c6adef62ce0abe7fd8bb84bcb0b7e37

Thanks

BlueCop
09-17-2014, 01:58 PM
it is setting a cookie when you download the m3u8 file and it is needed to download the ts files.

here is a python script I wrote you can download the video with.
http://pastebin.com/NcBdfhf8
save it as downloadM3U8.py and then this command should work.
python downloadM3U8.py -i "http://streaming.itunesfestival.com/auth/eu1/vod/20140916/v1/1200_256/1012882_blondie_vod.m3u8?token=expires=1411013704~ access=/auth/*~md5=3c6adef62ce0abe7fd8bb84bcb0b7e37" -o video.ts

The video itself is unencrypted.

chap
09-17-2014, 02:24 PM
BlueCop:confused:
C:\Python34>python downloadM3U8.py -i "http://streaming.itunesfestival.com/auth/
eu1/vod/20140916/v1/1200_256/1012882_blondie_vod.m3u8?token=expires=1411013704~ a
ccess=/auth/*~md5=3c6adef62ce0abe7fd8bb84bcb0b7e37" -o video.ts
File "downloadM3U8.py", line 38
print 'KEY : %X' % keyValue
^
SyntaxError: invalid syntax

Littledogs2
09-17-2014, 02:33 PM
Where do I put that file ? I saved it as you said and named it....

I grabbed the initial m3u8 from the bottom

Host Name : streaming.itunesfestival.com
Method : GET
Path : /auth/eu1/vod/20140916/v1/1800_256/1012882_blondie_vod.m3u8?token=expires=1411020903~ access=/auth/*~md5=d2d63579b40d95e07f8a372c9cc7f255
User Agent : AppleCoreMedia/1.0.0. (AAS-3.0.6; U; Windows NT 6.1)
Response Code : 200
Response String : OK
Content Type : application/x-mpegurl
Referer :
Content Encoding :
Transfer Encoding :
Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
Content Length : 22566
Connection : keep-alive
Cache Control : max-age=0, no-cache, no-store
Location :
Server Time : 17/09/2014 19:19:08
Last Modified Time: 16/09/2014 21:38:06
Cookie : token=expires=1411020903~access=/auth/*~md5=d2d63579b40d95e07f8a372c9cc7f255; ITMFID=195B45659363D2FC8585640AB0A3324C
Client Address : 192.168.1.86:53498
Server Address : 213.123.85.26:80
Request Time : 00:00:06.498
Response Time : 144 ms
URL : http://streaming.itunesfestival.com/auth/eu1/vod/20140916/v1/1800_256/1012882_blondie_vod.m3u8?token=expires=1411020903~ access=/auth/*~md5=d2d63579b40d95e07f8a372c9cc7f255

chap
09-17-2014, 02:44 PM
try play ffplay
downloading from ffmpeg
ffmpeg -i "1012882_blondie_vod (1).m3u8" -c copy t.mkv

BlueCop
09-17-2014, 02:47 PM
http://pastebin.com/NcBdfhf8
it had a typo for encryption. I updated it. it isn't encrypted so would've downloaded fine.

i tested it and it download the video before i posted. I was watching the video when i posted.

BlueCop
09-17-2014, 02:51 PM
chap: that doesn't work because ffmpeg doesn't respect the cookies.

It isn't about url parameters.


Littledogs2: just run the command I posted and it will download the video. You need to have python installed.

Littledogs2
09-17-2014, 02:52 PM
OK thanks, but where do I save that file ? where does it go ?

Funny thing is, I managed to capture the other gigs that were shown last week, only today it doesn't do it ;/

BlueCop
09-17-2014, 02:57 PM
where ever you want to save it. you will need to run it from a command line at that location and then it will download there.

Littledogs2
09-17-2014, 03:03 PM
chap: that doesn't work because ffmpeg doesn't respect the cookies.

It isn't about url parameters.


Littledogs2: just run the command I posted and it will download the video. You need to have python installed.
OK, I need to get that then, cheers

Littledogs2
09-17-2014, 03:10 PM
Can you link me to Python please, I'm getting links after links but no actual direct link lol

chap
09-17-2014, 03:14 PM
BlueCop
cygwin work fine
:confused:

ffplay version N-58485-ga12b4bd Copyright (c) 2003-2013 the FFmpeg developers
built on Nov 26 2013 22:01:46 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-libxavs --enable-libxvid --enable-zlib
libavutil 52. 55.100 / 52. 55.100
libavcodec 55. 44.100 / 55. 44.100
libavformat 55. 21.102 / 55. 21.102
libavdevice 55. 5.101 / 55. 5.101
libavfilter 3. 91.100 / 3. 91.100
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 17.104 / 0. 17.104
libpostproc 52. 3.100 / 52. 3.100
[mpegts @ 02a0ad20] Could not find codec parameters for stream 2 (Unknown: none (ID3 / 0x20334449)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[hls,applehttp @ 02a006a0] Could not find codec parameters for stream 2 (Unknown: none (ID3 / 0x20334449)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, hls,applehttp, from 'http://streaming.itunesfestival.com/auth/eu1/vod/20140916/v1/1200_256/1012882_blondie_vod.m3u8':
Duration: 01:34:03.01, start: 75685.504000, bitrate: 0 kb/s
Program 0
Metadata:
variant_bitrate : 0
Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 800x450, 23.98 tbr, 90k tbn, 180k tbc
Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 260 kb/s
Stream #0:2: Unknown: none (ID3 / 0x20334449)
[mpegts @ 02a0ad20] probed stream 2 failed= 0KB sq= 0B f=0/0
75714.62 A-V: -0.021 fd= 19 aq= 8KB vq= 36KB sq= 0B f=0/0

windows does not want to work:(

Littledogs2
09-17-2014, 04:16 PM
try play ffplay
downloading from ffmpeg
ffmpeg -i "1012882_blondie_vod (1).m3u8" -c copy t.mkv

Thanks, that worked. Is there a way to get the higher resolution ? it's 640

Littledogs2
09-17-2014, 05:10 PM
Your (m3u8) file can download using RMC 5

http://savepic.ru/5863116m.png (http://savepic.ru/5863116.htm)RMC 5 ?

Yup, Replay Media Catcher 5 (http://applian.com/replay-media-catcher/) :)

Littledogs2
09-18-2014, 05:22 AM
Yep tried RMC, iit doesn't. It plays the file through a FLVPlayer. It saves the small segments of the files, and doesn't combine them at all.

lesor
09-18-2014, 12:17 PM
Yep tried RMC, it doesn't

http://savepic.ru/5836362m.png (http://savepic.ru/5836362.htm)

You can select the quality manual
BANDWIDTH=8756000,RESOLUTION=1920x1080

http://streaming.itunesfestival.com/auth/eu1/vod/20140916/v1/8500_256/1012882_blondie_vod.m3u8?token=expires=1411085701~ access=/auth/*~md5=0413be32e567d83c130da9a0262f7c51

http://savepic.ru/5858893m.png (http://savepic.ru/5858893.htm)

Littledogs2
09-18-2014, 02:22 PM
Bravo. Thanks, but HD version not downloading. How do I change it ?

Littledogs2
09-18-2014, 04:15 PM
Use the method shown by chap. Edit the m3u8 file and using the local copy as input to ffmpeg
1. Download m3u8 file;
h..p://streaming.itunesfestival.com/auth/eu1/vod/20140916/v1/8500_256/1012882_blondie_vod.m3u8?token=expires=1411085701~ access=/auth/*~md5=0413be32e567d83c130da9a0262f7c51

2. Edit m3u8 file with notepad;
Ctrl+H

Find what:1012882
Replace with: h..p://streaming.itunesfestival.com/auth/eu1/vod/20140916/v1/8500_256/1012882
Choose "Replace All"

Find what: .ts
Replace with: .ts?token=expires=1411085701~access=/auth/*~md5=0413be32e567d83c130da9a0262f7c51
Choose "Replace All"

3. Save edited m3u8 file and use as local input to ffmpeg.
*change all above instances of "h..p" to "http"
Thanks very much. Will that retrieve the 1920 resolution output ?

blimey
09-18-2014, 04:21 PM
Yes, 8500_256 (8500k video, 256k audio) is 1920x1080.

h..p://streaming.itunesfestival.com/auth/eu1/vod/20140916/v1/8500_256/1012882

Littledogs2
09-18-2014, 04:44 PM
Yes, 8500_256 (8500k video, 256k audio) is 1920x1080.

h..p://streaming.itunesfestival.com/auth/eu1/vod/20140916/v1/8500_256/1012882

Perfect. Thanks very much