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

Help with pulling m3u link from a webpage

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

limiteddi 10-27-2016 10:33 PM

Help with pulling m3u link from a webpage


 
Here is the webpage
http://www.atnmusic.tv/

So far i was able to pull a link via HTTPFOX from this site which is referred to in the code
http://www.mcaster.tv/channel/atnmus...vw=100%&vh=400

But going direct to "http://www.mcaster.tv/channel/atnmusic.php?u=atnmusictv&vw=100%&vh=400" doesn't work. Would someone shed some light what headers would return full contents of this page? I have attached the screenshot of HTTPFOX.

troller12 10-28-2016 12:29 PM

Re: Help with pulling m3u link from a webpage


 
Hi,

you have to call this site with referer parameter....
Code:

GET http://www.tv.jagobd.com/embed.php?u=atnmusic&vw=100%&vh=400 HTTP/1.1
Host: www.tv.jagobd.com
User-Agent: Mozilla
Referer: http://www.jagobd.com/atnmusic.html
Connection: keep-alive

....now in the content you can find the playlist link + keys at file: "here" like this..
Code:

file:"http://109.123.116.246:1935/c2VydmVyX3RpbWU9OS8yNi8yMDE1IDExOjQ5OjE5IEFNJmhhc2hfdmFsdWU9dmVZS3JkajdpV09lcnZwYkZKOEYrUT09JnZhbGlkbWludXRlcz0yMDE/atnmusic.stream/playlist.m3u8?keyendtime=1477679520&keystarttime=0&keyhash=5pCG2V0MdRmPRujTD-k5ySRZRUV8hrslTUwk0bEIxcY="
Now you can copy / paste it into VLC to play it etc.

greetz

limiteddi 10-29-2016 01:04 PM

Re: Help with pulling m3u link from a webpage


 
Ah! I was just referring wrong url! Thank you very much.

troller12 10-30-2016 12:08 PM

Re: Help with pulling m3u link from a webpage


 
Hi,

so you could also build static rtmp streams for all these channels so then you dont need to grab the playlist with keys anymore.If you do sniff the rtmp stream with rtmpdumphelper then you get redirected stream addresses & app keys which are dynamic and need a refresh & token but not if you use the static ones (only token needed).

Here some as examples...
Code:

rtmpdump -v -r "rtmpe://live.jagobd.com/live/atnmusic.stream" -W "http://tv.jagobd.com/player/player.swf" -p "http://www.tv.jagobd.com/" -T "%MNqBRDrDEGM(nKa@#." | "C:\Programme\MPC-HC\mpc-hc.exe" -
rtmpdump -v -r "rtmpe://live.jagobd.com/live/tvoneuksni.stream" -W "http://tv.jagobd.com/player/player.swf" -p "http://www.tv.jagobd.com/" -T "%MNqBRDrDEGM(nKa@#." | "C:\Programme\MPC-HC\mpc-hc.exe" -
rtmpdump -v -r "rtmpe://live.jagobd.com/live/tbn24dr.stream" -W "http://tv.jagobd.com/player/player.swf" -p "http://www.tv.jagobd.com/" -T "%MNqBRDrDEGM(nKa@#." | "C:\Programme\MPC-HC\mpc-hc.exe" -

...remember to use double % for token if you wanna execute it as bat file or else as original (CreateProcess / CMD etc).

PS: Just a info if you wanna use rtmp.

greetz


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