Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //Konto
- $channel = "http://goldvod.tv/channel,37.html";
- $user = "login ";
- $pass="haslo";
- //Nadawanie
- $fms = "rtmp twojego kanalu ";
- //Dalej juz tylko technicznie skrypt
- while(true)
- {
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $_GET['channel']);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_POST, true);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE );
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE );
- curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_file_path); // Cookie management.
- curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_file_path);
- curl_setopt($ch, CURLOPT_COOKIESESSION, TRUE);
- $output = curl_exec($ch);
- $info = curl_getinfo($ch);
- curl_close($ch);
- $api_return = file_get_contents("https://doit4fun.tk/bot.php?channel=$channel&user=$user&password=$pass");
- shell_exec("ffmpeg -i '$api_return' -vcodec copy -acodec copy -f flv '$fms'");
- sleep(10000);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement