Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Streaming media recording forum > rtmpdump
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #1  
Old 02-04-2016, 03:42 PM
Hackoo Hackoo is offline
Junior Member
 
Join Date: Jan 2016
Posts: 9
Hackoo is on a distinguished road
Cool

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

Last edited by Hackoo : 02-05-2016 at 04:03 AM.
Reply With Quote
  #2  
Old 02-04-2016, 04:29 PM
troller12 troller12 is offline
Senior Member
 
Join Date: Sep 2013
Posts: 433
troller12 is on a distinguished road
Default

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
Reply With Quote
  #3  
Old 02-05-2016, 04:01 AM
Hackoo Hackoo is offline
Junior Member
 
Join Date: Jan 2016
Posts: 9
Hackoo is on a distinguished road
Wink

Re: Need help to run this batch correctly !


Quote:
Originally Posted by troller12 View Post
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 !
Reply With Quote
  #4  
Old 02-05-2016, 05:24 AM
-D3n1s- -D3n1s- is offline
Member
 
Join Date: Feb 2015
Location: http://futur3design3r.wixsite.com/d3n1s
Posts: 74
-D3n1s- is on a distinguished road
Default

Re: Need help to run this batch correctly !


Quote:
Originally Posted by Hackoo View Post
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
Reply With Quote
  #5  
Old 02-05-2016, 06:52 AM
Hackoo Hackoo is offline
Junior Member
 
Join Date: Jan 2016
Posts: 9
Hackoo is on a distinguished road
Thumbs up

Thank you -D3n1s- !


Quote:
Originally Posted by -D3n1s- View Post
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
Reply With Quote
  #6  
Old 02-05-2016, 11:44 AM
biezom biezom is offline
Senior Member
 
Join Date: Sep 2014
Posts: 1,025
biezom is on a distinguished road
Default

Re: Thank you -D3n1s- !


Quote:
Originally Posted by Hackoo View Post
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";
?>
Reply With Quote
Reply Post New Thread
Tags: , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 09:14 PM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons