Yazdığım ufak betik ile Tvyo üzerinde bulunan herhangi bir videoyu indirebilirsiniz. Betiğin çalışması için ffmpeg ve AdobeHDS.php gereklidir.
<?php
header('Content-Type: text/plain; charset=UTF-8');
$videoUrl = 'http://www.tvyo.com/video/isler-gucler-40-bolum-fragmani';
$videoPageData = file_get_contents($videoUrl);
$flashVars = preg_match('#\<param\sname\=\"flashVars\"\svalue\=\"(.*?)\"\/\>#si', $videoPageData, $matches) ? end($matches) : null;
parse_str($flashVars, $flashVars);
$serviceUrl = 'http://dyg_video.rgbilisim.com';
$publisherId = $flashVars['PublisherId'];
$referenceId = $flashVars['ReferenceId'];
$url = $serviceUrl . '/api/video_info?SecretKey=NtvApiSecret2014*&PublisherId=' . $publisherId . '&ReferenceId=' . $referenceId;
$data = file_get_contents($url);
$json = json_decode($data);
system('php AdobeHDS.php --manifest "' . $json->data->flavors->hds . '" --outfile "' . $referenceId . '.flv" --quality "high" && ffmpeg -i ' . $referenceId . '.flv -c copy ' . $referenceId . '.mp4');Saygılarımla, Ogün Karakuş