PDA

View Full Version : [IPTV Planet] Need help to run this batch correctly !


Hackoo
02-04-2016, 02:42 PM
I ceated this batch to try to read stream from this link
http://www.iptv-planet.com/attounsiya.php
@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=0701141050320701010980320480530320490500320 49057" -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
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...
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
'file': 'at?cle=070114105032070101098032048053032048049032 049052',
'file': 'at?cle=070114105032070101098032048053032048049032 049053',
'file': 'at?cle=070114105032070101098032048053032048049032 049054',
'file': 'at?cle=070114105032070101098032048053032048049032 049055',
...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
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...
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
'file': 'at?cle=070114105032070101098032048053032048049032 049052',
'file': 'at?cle=070114105032070101098032048053032048049032 049053',
'file': 'at?cle=070114105032070101098032048053032048049032 049054',
'file': 'at?cle=070114105032070101098032048053032048049032 049055',
...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 (http://www.kerman.hr/forum/index.php?topic=17946.0) that can read from this site dynamically

http://s24.postimg.org/n2bfv75th/IPTV.png%5Dhttp://s24.postimg.org/n2bfv75th/IPTV.png

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
Thank you man for your reply ;)
I found a nice tool : IPTV Planet (http://www.kerman.hr/forum/index.php?topic=17946.0) 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:

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
You can look inside Darby's php script, basicaly the same thing:

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 http://www.developpez.net/forums/images/smilies/poucevert.gif

biezom
02-05-2016, 10:44 AM
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 http://www.developpez.net/forums/images/smilies/poucevert.gif

hi

a beginning for your channel

maybe need adapt rtmpdump and vlc path

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