yo lo que he echo es lo siguiente.
Código PHP:
if(empty($_GET['video'])) {
echo "No se ha encontrado la ID!";
}else{
$video = $_GET['video'];
}
$xml_url = "$video";
$ch = curl_init($xml_url);
$cookieFile = '/runtime/cookie'. time().'.txt'; //replace this line with code to generate a writeable path in your application
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookieFile); //the cookie file will be populated with cookies received while viewing the xml page
curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']); //you need to send a user agent here and it must be the same below when you visit the video url
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$output = curl_exec($ch);
curl_close($ch);
tengo un script hecho parecido pero uso un spider para hacer eso y ahora no me sirve