Jump to content

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.

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.