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

[IPTV Planet] Need help to run this batch correctly !

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

Hackoo 02-04-2016 02:42 PM

[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" -

but without success ?
Thank you in advance !

troller12 02-04-2016 03:29 PM

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

....now check the playpath...below I called the site 4 times
Code:

'file': 'at?cle=070114105032070101098032048053032048049032049052',
'file': 'at?cle=070114105032070101098032048053032048049032049053',
'file': 'at?cle=070114105032070101098032048053032048049032049054',
'file': 'at?cle=070114105032070101098032048053032048049032049055',

...you see they differ at the end so you need to update the playpath each time before you call the stream.Wrong playpath = no run.Also the rest of the stream datas you can find there.

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

Hackoo 02-05-2016 03:01 AM

Re: Need help to run this batch correctly !


 
Quote:

Originally Posted by troller12 (Post 82521)
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

....now check the playpath...below I called the site 4 times
Code:

'file': 'at?cle=070114105032070101098032048053032048049032049052',
'file': 'at?cle=070114105032070101098032048053032048049032049053',
'file': 'at?cle=070114105032070101098032048053032048049032049054',
'file': 'at?cle=070114105032070101098032048053032048049032049055',

...you see they differ at the end so you need to update the playpath each time before you call the stream.Wrong playpath = no run.Also the rest of the stream datas you can find there.

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

Thank you man for your reply ;)
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 !

-D3n1s- 02-05-2016 04:24 AM

Re: Need help to run this batch correctly !


 
Quote:

Originally Posted by Hackoo (Post 82523)
Thank you man for your reply ;)
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 !

You can look inside Darby's php script, basicaly the same thing:

Code:

http://www.streamhub.hk/forum/showthread.php?182-Swiss-TV-%28German-French-Italian-English%29-Thanks-to-D_M_W&p=19983#post19983

Hackoo 02-05-2016 05:52 AM

Thank you -D3n1s- !


 
Quote:

Originally Posted by -D3n1s- (Post 82524)
You can look inside Darby's php script, basicaly the same thing:

Code:

http://www.streamhub.hk/forum/showthread.php?182-Swiss-TV-%28German-French-Italian-English%29-Thanks-to-D_M_W&p=19983#post19983

Thank you -D3n1s- for your help and for the nice share ;)
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

biezom 02-05-2016 10:44 AM

Re: Thank you -D3n1s- !


 
Quote:

Originally Posted by Hackoo (Post 82525)
Thank you -D3n1s- for your help and for the nice share ;)
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

hi

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";
?>



All times are GMT -6. The time now is 09:52 AM.