View Single Post
  #3  
Old 05-06-2017, 04:20 PM
troller12 troller12 is offline
Senior Member
 
Join Date: Sep 2013
Posts: 433
troller12 is on a distinguished road
Default

Re: Get url from streaming


Hi,

below a short example how to do it...
Code:
1.) Find m3u8 playlist in browser console traffic at loading the stream

http://prepublish.f.qaotic.net/a03/ngrp:el13_live01-100083_all/Playlist.m3u8

2.) If found / click it / Network analyse - Request paramters

Host: prepublish.f.qaotic.net
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:53.0) Gecko/20100101 Firefox/53.0
Accept: */*
Accept-Language: de,en-US;q=0.7,en;q=0.3
Accept-Encoding: gzip, deflate
Referer: http://vmf.edge-apps.net/embed/live.php?streamname=el13_live01-100083&autoplay=false
Origin: http://vmf.edge-apps.net
Connection: keep-alive
Cache-Control: max-age=0

3.) Check what paramters you have to use and start another single request

GET /a03/ngrp:el13_live01-100083_all/Playlist.m3u8 HTTP/1.1
Host: prepublish.f.qaotic.net
Connection: close
User-Agent: Mozilla/4.0
Referer: http://vmf.edge-apps.net/

4.) Only need Referer paramater to get successfully response

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-STREAM-INF:BANDWIDTH=466700,CODECS="avc1.66.30,mp4a.40.2",RESOLUTION=426x240
chunklist_b433000.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=736200,CODECS="avc1.66.30,mp4a.40.2",RESOLUTION=640x360
chunklist_b678000.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=1111300,CODECS="avc1.66.31,mp4a.40.2",RESOLUTION=854x480
chunklist_b1019000.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=1595300,CODECS="avc1.66.32,mp4a.40.2",RESOLUTION=960x540
chunklist_b1459000.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=2346600,CODECS="avc1.66.41,mp4a.40.2",RESOLUTION=1280x720
chunklist_b2142000.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=3836000,CODECS="avc1.66.41,mp4a.40.2",RESOLUTION=1280x720
chunklist_b3496000.m3u8

5.) Pick any stream quality path of Variable HLS streams and add it to main path

prepublish.f.qaotic.net/a03/ngrp:el13_live01-100083_all/chunklist_b3496000.m3u8

6.) Request it...

GET /a03/ngrp:el13_live01-100083_all/chunklist_b3496000.m3u8 HTTP/1.1
Host: prepublish.f.qaotic.net
Connection: close
User-Agent: Mozilla/4.0
Referer: http://vmf.edge-apps.net/

7.) Below you got chunked part links list of ts files you can DL etc..

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:8
#EXT-X-MEDIA-SEQUENCE:41052
#EXTINF:4.0,
media-uvtzo2673_b3496000_41052.ts
#EXTINF:4.0,
media-uvtzo2673_b3496000_41053.ts
#EXTINF:4.0,
media-uvtzo2673_b3496000_41054.ts
#EXTINF:4.0,
media-uvtzo2673_b3496000_41055.ts
#EXTINF:4.0,
media-uvtzo2673_b3496000_41056.ts
#EXTINF:4.0,
media-uvtzo2673_b3496000_41057.ts
#EXTINF:4.0,
media-uvtzo2673_b3496000_41058.ts
#EXTINF:4.0,
media-uvtzo2673_b3496000_41059.ts
#EXTINF:4.0,
media-uvtzo2673_b3496000_41060.ts
#EXTINF:4.0,
media-uvtzo2673_b3496000_41061.ts

8.) Use streaming tools for HLS (ffmpeg / streamlink etc) to play or download the stream.Streamlink is more simple to handle so its a good choice without to know many extra paramters.

streamlink.exe --http-header "Referer=http://vmf.edge-apps.net/" hlsvariant://http://prepublish.f.qaotic.net/a03/ngrp:el13_live01-100083_all/Playlist.m3u8 best

or

ffmpeg -headers "Referer: http://vmf.edge-apps.net/" -i "http://prepublish.f.qaotic.net/a03/ngrp:el13_live01-100083_all/Playlist.m3u8" -c:v copy -c:a copy -f mpegts - | C:\Programme\VideoLAN\VLC\vlc.exe -
greetz
Reply With Quote