View Single Post
  #13  
Old 11-18-2017, 05:39 PM
jimdays jimdays is offline
Junior Member
 
Join Date: May 2011
Posts: 8
jimdays is on a distinguished road
Default

Re: need help downloading from zipstreams.net


How to download zipstreams with ffmpeg. I tried this on several computers with different videos and it works.
Play zipstreams video with browser network analyser and copy m3u8 string to notepad (example pattern):
Code:
http://hlslive-akc.med2.med.nhl.com/hdnts=exp=1511085004~acl=/*~id=nhlGatewayId:6743919~data=54575003~hmac=2c808b5b1469741463f3a262b9cb4cc9cc3d20699a88638d848fce68d97cf692/8924e48c510c791cdc783d4ad294ec06/ls04/nhl/2017/11/18/NHL_GAME_VIDEO_NYRCBJ_M2_HOME_20171118_1510679671624/1800K/1800_complete-trimmed.m3u8
Use browser Chrome to download this m3u8. Should yield about 80kb text file called
1800_complete-trimmed.m3u8

Take above m3u8 string and cut off the end and add
\0
so you have:
Code:
http://hlslive-akc.med2.med.nhl.com/hdnts=exp=1511085004~acl=/*~id=nhlGatewayId:6743919~data=54575003~hmac=2c808b5b1469741463f3a262b9cb4cc9cc3d20699a88638d848fce68d97cf692/8924e48c510c791cdc783d4ad294ec06/ls04/nhl/2017/11/18/NHL_GAME_VIDEO_NYRCBJ_M2_HOME_20171118_1510679671624/1800K/\0
Save above string to notepad. I call this "http string".

Use notepad++ to replace all hostnames (mf.svc.nhl.com > zipstreams.net) in
1800_complete-trimmed.m3u8 (as shown in screenshot 1)
Save to notepad file. I called it 1800.txt

Go to:
https://regex101.com/
and drag 1800.txt file into
Test string box
Paste below into Regular Expression box
[0-9][0-9]\/[0-9][0-9]\/[0-9][0-9]\.ts
Paste above "http string" into Substitution box
See screenshot 2, five red checkmarks indicate the important points.
Put cursor in bottom window, right click and select all so the the box turn blue, copy and
paste into new notepad file. You can rename to hockey.m3u8, put this file into folder that contains ffmpeg.
(open hockey.m3u8 in notepad++ and verify that all .ts strings have the http string (without \0) joined together.) example:
Code:
http://hlslive-akc.med2.med.nhl.com/hdnts=exp=1511085004~acl=/*~id=nhlGatewayId:6743919~data=54575003~hmac=2c808b5b1469741463f3a262b9cb4cc9cc3d20699a88638d848fce68d97cf692/8924e48c510c791cdc783d4ad294ec06/ls04/nhl/2017/11/18/NHL_GAME_VIDEO_NYRCBJ_M2_HOME_20171118_1510679671624/1800K/00/00/12.ts
and use this command to download on xp
ffmpeg -i "Hockey.m3u8" -c copy -bsf:a aac_adtstoasc output.mp4
this command on newer machines with newer ffmpeg;
ffmpeg -protocol_whitelist "file,http,https,tcp,tls,crypto" -i "Hockey.m3u8" -c copy -c:a copy output.mp4



Last edited by jimdays : 11-18-2017 at 06:36 PM.
Reply With Quote