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

need help downloading from zipstreams.net

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

troller12 11-15-2017 06:56 AM

Re: need help downloading from zipstreams.net


 
Hi,

you can also use RegEx search mode in Notepad++
Code:

\w.+.ts
Let add the link + adding the matches...
Code:

http://....1800K/20/$&
For testing in realtime you can check any RegEx sites like this...
Code:

https://regexr.com/
https://regex101.com/

greetz

jimdays 11-18-2017 04:08 PM

Re: need help downloading from zipstreams.net


 
JonDough,
I tried your suggestion to use livestreamer. I am using livestreamer
(livestreamer-v1.12.2-win32-setup.exe) and I got a fresh m3u8 by playing the video in Chrome.
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/master_wired60.m3u8
I put that into livestreamer:
Code:

livestreamer "hlsvariant://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/master_wired60.m3u8" 360p
But I got download failure. Please look at my above code and following output and see if you can find what is wrong. Also, I don't want vlc to come up (as it did in your case). I just want to download the video. Please give me the code to put into livestreamer to do that.
Also to lessor, troller12, thank you for helping me edit the m3u8 file to download with ffmpeg. Your descriptions were too complicated for me to follow, but I was able to adapt your advice and come up with an easy solution for editing that I will describe in another post in this thread.
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\default>
C:\Documents and Settings\default>livestreamer "hlsvariant://http://hlslive-akc.
med2.med.nhl.com/hdnts=exp=1511085004~acl=/*~id=nhlGatewayId:6743919~data=545750
03~hmac=2c808b5b1469741463f3a262b9cb4cc9cc3d20699a 88638d848fce68d97cf692/8924e48
c510c791cdc783d4ad294ec06/ls04/nhl/2017/11/18/NHL_GAME_VIDEO_NYRCBJ_M2_HOME_2017
1118_1510679671624/master_wired60.m3u8" 360p
[cli][info] Found matching plugin stream for URL hlsvariant://http://hlslive-akc
.med2.med.nhl.com/hdnts=exp=1511085004~acl=/*~id=nhlGatewayId:6743919~data=54575
003~hmac=2c808b5b1469741463f3a262b9cb4cc9cc3d20699 a88638d848fce68d97cf692/8924e4
8c510c791cdc783d4ad294ec06/ls04/nhl/2017/11/18/NHL_GAME_VIDEO_NYRCBJ_M2_HOME_201
71118_1510679671624/master_wired60.m3u8
[cli][info] Available streams: 216p (worst), 288p, 360p, 504p, 540p, 720p (best)

[cli][info] Opening stream: 360p (hls)
[stream.hls][error] Failed to create decryptor: Unable to open URL: https://mf.s
vc.nhl.com/ws/media/mf/v2.3/key/silk/mediaid/54575003/kid/70007937 (400 Client E
rror: Bad Request)
[cli][error] No data returned from stream

C:\Documents and Settings\default>

jimdays 11-18-2017 05:39 PM

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




All times are GMT -6. The time now is 01:43 AM.