View Single Post
  #13  
Old 04-07-2012, 09:27 AM
svnpenn svnpenn is offline
Banned
 
Join Date: Apr 2011
Location: Dallas
Posts: 757
svnpenn is on a distinguished road
Default

Re: digital concert hall - no capture


This is KSV script from stream-recorder.com/forum/showpost.php?p=38823&postcount=5

If modified it might be able to do it

Code:
<?php
  echo "KSV EugeniaVoda Downloader\n";
  $format = "%-7s : %s\n";

  if ($argc <= 2)
    {
      echo "Enter URL : ";
      $url = trim(fgets(STDIN));
      echo "Enter Filename : ";
      $filename = trim(fgets(STDIN));
    }
  else
    {
      $url      = $argv[1];
      $filename = $argv[2];
    }

  echo "Retrieving data . . .\n";
  $json   = file_get_contents($url . "/offsets.json");
  $chunks = json_decode($json);
  if (!$chunks)
      die("Failed to decode json");
  $fh = fopen($filename, 'wb');
  fwrite($fh, "\x46\x4C\x56\x01\x05\x00\x00\x00\x09\x00\x00\x00\x00");
  $total_chunks = count($chunks);
  for ($i = 0; $i < $total_chunks; $i++)
    {
      echo "Downloading " . ($i + 1) . " of $total_chunks chunks\r";
      $data = file_get_contents($url . "/$chunks[$i].flvtags");
      fwrite($fh, $data);
    }
  fclose($fh);

  echo "\nFinished\n";
?>
Reply With Quote