Quote:
Originally Posted by arnfsilva
If you could do so i would appreciate. I donīt understand how to do it.
Thank you.
|
need unzip, php
http://windows.php.net/downloads/rel...32-VC9-x86.zip
and rtmpdump
https://github.com/K-S-V/Scripts/rel...mpdump-2.4.zip in the same folder in C:\PHP for example
Code:
<?php
$opts1 = array(
'http'=>array(
'method'=>"GET",
'header'=>"Referer: http://www.meocanaltv.com/\r\n" .
"User-Agent: Mozilla/5.0 (A (X11; Linux i686; rv:40.0) Gecko/20100101 Firefox/40.0 Iceweasel/40.0.3"
)
);
$source1= file_get_contents($argv[1], false, stream_context_create($opts1));
preg_match('/cid="(.*?)"/', $source1, $embed1);
$source2= file_get_contents("http://www.meocanaltv.com/embed/$embed1[1].php", false, stream_context_create($opts1));
preg_match('/file=\'(.*?)\'/', $source2, $embed2);
$source3= file_get_contents("http://pxstream.tv/embedrouter.php?file=$embed2[1]", false, stream_context_create($opts1));
preg_match('/file: \'(.*?)\'/', $source3, $playpath); preg_match('/streamer: \'(.*?)\'/', $source3, $rtmp);
preg_match('/flashplayer: "(.*?)"/', $source3, $flashplayer);
$date = date("H-i_d-m-Y");
echo "Starting rtmpdump...\n\n";
echo "rtmpdump -r \"$rtmp[1]\" -W \"http://pxstream.tv/$flashplayer[1]\" -p \"http://pxstream.tv/embedrouter.php?file=$embed2[1]\" -y \"$playpath[1]\" -o \"$embed1[1]_$date.flv\"\n\n";
passthru("rtmpdump -r \"$rtmp[1]\" -W \"http://pxstream.tv/$flashplayer[1]\" -p \"http://pxstream.tv/embedrouter.php?file=$embed2[1]\" -y \"$playpath[1]\" -o \"$embed1[1]_$date.flv\" &");
echo "Done.\n";
?>
edit and create one file with filename meocanaltv.php (use notepad++ instead of notepad) and paste the code
for example for this channel
http://www.meocanaltv.com/canais.php?stream=CMTV
open command prompt
Code:
php meocanaltv.php http://www.meocanaltv.com/canais.php?stream=CMTV
