Jump to content

catching a proper file from remote server plz help..


inversesoft123

Recommended Posts

I am having a problem to read file from remote url.

at this stage I have successfully grabbed a video from YouTube and link which is generated is.

 

$link =

http://v14.lscache2.c.youtube.com/videoplayback?ip=0.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor&fexp=901421%2C900033%2C903105&algorithm=throttle-factor&itag=5&ipbits=0&burst=40&sver=3&expire=1263679200&key=yt1&signature=76BE713D53D80C026AB6BDB2B83C82FF545B56B8.8626535B14E415A063E18531C0DEFFE78D4E2678&factor=1.25&id=30b46ae0eadc46df

 

which offers a file to download video.flv

 

now my problem is i want to save this file to localhost.

I have tried using

$file1 = file("$link?$QUERY_STRING");

$file1 = @implode("", $file1);

// echo "$file1";

echo "$file1";  gives raw data of file

FLV  ��� ���� � 8������� � onMetaData ��� 
� duration�@Aó33333� starttime���������� totalduration�@Aó33333� width�@y������� height�@l@������ videodatarate�@r ¬ë ®Ó� audiodatarate�@M”}¹óÓ–� totaldatarate�@vB˜'’.Ž� framerate�@>������� bytelength�A8h®����� canseekontime  � sourcedata � B4A7D0108HH�������.......... 

 

and grabbed file data.

 

Now, I want to save it on my local drive so that i can convert it by using FFMPEG

 

Please help me.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.