Audio/video stream recording forums
|
Attention Visitor: |
You may have to register or log in before you can post:
|
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
[IPTV Planet] Need help to run this batch correctly !I ceated this batch to try to read stream from this link
Code:
@echo off IF EXIST %systemdrive%\Progra~2\Videolan\VLC (SET "vlc=%systemdrive%\Progra~2\Videolan\VLC\vlc") ELSE (SET "vlc=%systemdrive%\Progra~1\Videolan\VLC\vlc") rtmpdump -r "rtmp://web1.iptv-planet.com:1937/live2" -a "at?cle=070114105032070101098032048053032049050032049057" -W "http://embed.iptv-planet.com/swfs/player.swf" -p "http://embed.iptv-planet.com/embed.php?id=at&width=600&height=400" --live -y "live2" | %vlc% --fullscreen --aspect-ratio="16:9" - Thank you in advance ! Last edited by Hackoo : 02-05-2016 at 04:03 AM. |
#2
|
|||
|
|||
Re: Need help to run this batch correctly !Hi,
you can't use static stream paramters if dynamic paramters are used so you need to check the pagesource of this channel site with referer like this... Code:
GET http://embed.iptv-planet.com/embed.php?id=at&width=600&height=400 HTTP/1.1 Host: embed.iptv-planet.com Referer: http://iptv-planet.com/attounsiya.html Connection: close Code:
'file': 'at?cle=070114105032070101098032048053032048049032049052', 'file': 'at?cle=070114105032070101098032048053032048049032049053', 'file': 'at?cle=070114105032070101098032048053032048049032049054', 'file': 'at?cle=070114105032070101098032048053032048049032049055', By the way,you did set your playpath (-y) as app (-a).Check this again.Read the datas of stream from that site then build the rtmp datas and execute them. greetz |
#3
|
|||
|
|||
Re: Need help to run this batch correctly !Quote:
I found a nice tool : IPTV Planet that can read from this site dynamically So i'm looking for its source or can somebody explain me the trick or a vbscript or a php script to catch the dynamic link ! Thank you ! |
#4
|
|||
|
|||
Re: Need help to run this batch correctly !Quote:
Code:
http://www.streamhub.hk/forum/showthread.php?182-Swiss-TV-%28German-French-Italian-English%29-Thanks-to-D_M_W&p=19983#post19983 |
#5
|
|||
|
|||
Thank you -D3n1s- !Quote:
Keep up the good work man and i like your scripts because they help me so much to understand what's going on into the urls and inside their sources |
#6
|
|||
|
|||
Re: Thank you -D3n1s- !Quote:
a beginning for your channel maybe need adapt rtmpdump and vlc path Code:
<?php $windows = strncasecmp(php_uname('s'), "Win", 3) == 0 ? true : false; if ($windows) { if (file_exists("C:\\Program Files (x86)\\VideoLAN\\VLC\\vlc.exe")) { $vlc = "C:\\Program Files (x86)\\VideoLAN\\VLC\\vlc.exe"; } else if (file_exists("C:\\Program Files\\VideoLAN\\VLC\\vlc.exe")) { $vlc = "C:\\Program Files\\VideoLAN\\VLC\\vlc.exe"; } else { $vlc = "C:\\Programmi\\VideoLAN\\VLC\\vlc.exe"; } } else { $vlc = "vlc"; $out = "2>/dev/null"; } $html=str_replace("php","html","http://iptv-planet.com/attounsiya.php"); $html1=file_get_contents($html); preg_match("/file='(.*?)'/", $html1, $id); echo "$id[1]\n\n"; $ch = curl_init ("http://embed.iptv-planet.com/embed.php?id=$id[1]"); curl_setopt ($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0 Iceweasel/38.4.0'); curl_setopt ($ch, CURLOPT_HEADER, 1); curl_setopt ($ch, CURLOPT_REFERER, "http://iptv-planet.com/"); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); $source = curl_exec ($ch); curl_close($ch); preg_match("/'file': '(.*?)'/", $source, $playpath); echo "$playpath[1]\n\n"; echo "Starting vlc with rtmpdump...\n\n"; echo shell_exec("rtmpdump -r \"rtmp://web1.iptv-planet.com:1937/live2\" -a \"live2\" -f \"LNX 17,0,0,134\" -W \"http://embed.iptv-planet.com/swfs/player.swf\" -p \"http://embed.iptv-planet.com/embed.php?id=$id[1]\" --live -y \"$playpath[1]\" - | \"$vlc\" - &"); echo "Done.\n"; ?> |
Tags: batch, rtmp, vlc |
Thread Tools | |
Display Modes | |
|
|