Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
433
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. <?php
  2. //Konto
  3. $channel = "http://goldvod.tv/channel,37.html";
  4. $user = "login ";
  5. $pass="haslo";
  6.  
  7. //Nadawanie
  8. $fms = "rtmp twojego kanalu ";
  9.  
  10. //Dalej juz tylko technicznie skrypt
  11. while(true)
  12. {
  13.  
  14. $ch = curl_init();
  15. curl_setopt($ch, CURLOPT_URL, $_GET['channel']);
  16. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  17. curl_setopt($ch, CURLOPT_POST, true);
  18. curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
  19. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
  20. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE );
  21. curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE );
  22. curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_file_path); // Cookie management.
  23. curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_file_path);
  24. curl_setopt($ch, CURLOPT_COOKIESESSION, TRUE);
  25.  
  26. $output = curl_exec($ch);
  27. $info = curl_getinfo($ch);
  28. curl_close($ch);
  29.  
  30. $api_return = file_get_contents("https://doit4fun.tk/bot.php?channel=$channel&user=$user&password=$pass");
  31. shell_exec("ffmpeg -i '$api_return' -vcodec copy -acodec copy -f flv '$fms'");
  32. sleep(10000);
  33. }
  34. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement