
A lot of people asked and requested a theme for the Youtube download script on my site , So here is an upgrade to it. This is a simple script which allows you to run a small site around it. Something like a keepvid clone.
Requirements –
- PHP 5
License –
- Creative Commons – Attribution 3.0 Unported (http://creativecommons.org/licenses/by/3.0/ )
- In one line , you have to link back to this site.

FAQ -
- I get “Parse error: syntax error, unexpected T_CONST, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /membri/verdehouse/videopian.php on line 25″.
Please upgrade to php5 , or modify it to work with php4. - Warning : This script uses 2x bandwidth to download videos. So to download 40 MB Video it will use 80 MB bandwidth. Also this is CPU cycle intensive.
- Please use Java Applet Method if your site does more that 30 – 50 visitors daily


It’s not working right now, in may I had an issue that everything dowloaded with the script was unable to be played.
Now when I right click and select save us it downloads a file called “stream.php”…
Is there any solution to this issue?
Something must be wrong, it works fine. is CURL installed ?
Yes, it seems so:
curl
CURL support enabled
CURL Information libcurl/7.14.0 OpenSSL/0.9.8a zlib/1.2.3
Tnks
thanks! It’s working!
No errors
Demo: http://www.star-studio.nl/extra/youtube/
Thanks for the script.
I have a problem
On the Download Details
When I press on the link download (Download video.flv – Low Quality) I got this error “No url found”
Can I get some help pls?
Thanks.
I have the same problem. With some videos is getting a “No Url Found”, but with others there’s no problem. Does anyone has an idea?
Hear me the same problem, How Should I Proceed? please
You will have to debug the script. It can be that youtube might be throwing captcha check or host might not be allowing connecting to YT servers … can be any factor.
It looks that this version is working with the old videos of YouTube, but not the new ones. Could be a new type of cache from YouTube.
How to debug? i have the same problem:
http://videos.syoktube.com/
i removed the “No URL Found” on stream.php then
i get 403 from youtube when clicked on flv download.
any idea?
U have to change some setting in php.ini to avoid the error
Warning: ksort() expects parameter 1 to be array, boolean given in
is it possible to download only the audio from youtube and save it as MP3 file?
Thanks
Dror
The script was not working from yesterday,bro can you make a fix for it.
I receive this error, I see is in other sites to, seems youtube changed again something:
“Warning: ksort() expects parameter 1 to be array, boolean given in /home/…/services/youtube.php on line 78
Warning: array_values() [function.array-values]: The argument should be an array in /home/…/services/youtube.php on line 80″
Seems not to work anymore, since yesterday? Got “No Videos found or site not supported.” (youtube) response for all videolinks
I just installed the Freedown files and tried it on my AN Hosting server, and it returns this same message for any public video I try. “No Videos found or site not supported.”
Is YouTube blocking this kind of request somehow?
Not Working http://www.star-studio.nl/extra/youtube/
Warning: ksort() expects parameter 1 to be array, boolean given in /home/fox1995/domains/star-studio.nl/public_html/extra/youtube/services/youtube.php on line 78
Please install new version.
Bro when will you give us the fix?We all depending at you.
fix the script pleasee
(
Fixed try now !!!
The new version seems to work (at least I can see the details for the download), but I’m getting a error with CURL when I click on a video:
Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in [...]/curl.php on line 93
And then:
Warning: Cannot modify header information – headers already sent by (output started at [...]/curl.php:93) in [...]/curl.php on line 212
Thanks.
Either safe mode is enabled , basedir_open is set . Please disable or unset the value.
Thanks, I already fixed it. But I’m still getting the No URL Found on some videos. I’ll keep looking on the source code and will try on another hosting.
Thank you very much bro and one thing i want to ask you can you suggest any hosting?In My current host the script was not working?When i click download links it just shows blank page.So i need some other hosting in that this script should work.Plese help me.
Any popular host would do , I am on dreamhost.
Thank you so much!!!
Thank you bro,i just checked it on host…R its working fine.
This code is not working at appache server. I ran it under IIS from local pc it is working fine, then U test from from appache wamp not working.Finaly I up the code to my server and test but not working after click on download link.
Vikas can you tell me why did you use again stream at stream.php page and curl again. It seems it is redirecting again and again.
Please explain.
Thanks,
Sam
WTF? this script 100% working… thanks dude..
I am really trying to figure out how to modify this so that I can get the download link without having to post from the form. I just want to make a function with this so that I can do say youtube_download($url); and it would return the correct info. Does anyone know how I can go about doing this? I wouldn’t think it would be to hard I just can’t seem to figure it out.
thnx man itz working
can i download videos vith out pop up to give name and specify location for video.i want to download directly.
Can you explain a little more what you wish to do.
please add force download file instead of Righ Click ?
Will add in next release.
Sometimes when i right click I get a stream.php file which downloads the whole video file… just have to rename it.
But alot of times, i get videoplayback.txt which is a 0byte txt file.
Any ideas what is the cause/how to fix it?
Can be any number of issues. Needs debugging to be sure.
can your ip get banned from youtube if you use it as a online service ?
110% working . many thanksssssssssssssssssss , youtube to mp3 is possible ?
and please tell me if i host it on my hosting, will they ban my account ? someone told me that you will be banned on shared hosting because it will use cpu a lot.
thanks
Depends how popular your site is , more than a few users streaming version is not recommended on shared hosting.
no… its 110% working on localhost
as i uploaded at my hosting and click on download it says url dont found.
please help
Hi, the script is awesome… i have one doubt and one addon feature to it.
1. Can i use this script on shared hosting like godaddy? if not, any threshold limit for this script on CPU?
and request is
2. i want to add some text like site name ABC at the end of the downloaded file.. is it possible in script itself?
Please give ur valuable suggestions
1. Yes , depends on traffic
2. Yes , please modify code
thanks for this script. I’ve got an air app (http://fatlinesofcode.philipandrews.org/stereoclip/) that plays music videos from youtube to match your itunes track. It stopped working recently using the token method to construct the url. I checked your code and found the method using the Format Map array to get the url and now my app works again, w00t!
How can I save the file directly on my server?
Now you get a popup asking to save the file. But I want to store the file on the server, no popup.
Just use the Curl to save the file rather than stream it back. Some minor changes to curl fetch required.
Hi there Vikas
Do you know how many videos can visitors download before youtube ban the server IP? What are the limits if is there another?
Best regards
There is no such limit , But yes after a few sometime youtube will start showing captcha on your requests , You will have to bypass them but some coding is required.
Looks like a great loader.
where to support you if I will use it?
Its free
Thanks for showing intention…
Hi. Seems that Youtube has changed something again, i always get “No Videos found or site not supported.” answer for youtube videos right now.
Script not working anymore… No videos found, or site is not supported sign appears! Please help… 03 March 2011
WE are working on updates.
Great news! Please let us know when you fix this issue. Thanks in advance.
Waiting for update eagerly !!!
i think that youtube doesn’t change anything. they added a b/w limit per ip.
hello Vikas Patial ji i will waiting your next updated free FreeDown Downloader please do fast thanks in advance
Its online now .
hello Vikas Patial ji thanks for updated Freedown script. but i have not download mp3.can you help me
Use Vidfetch , Basic usage is free.
i have this problem
Fatal error: Call to undefined function curl_init() in /home/digg/public_html/curl.php on line 45
how can i fix it … thanks for the help
please install curl
thank
Perfect, thanks very much!
i have a dev site for this… it embedes youtube videos. how do i modify the codes to include my site, so that copying the video address and pasting it into the freedown script shall support downloading of videos.
No idea, what you are trying to say.
i get this warning,
Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in /home/flameup/public_html/YouTube/curl.php on line 93
but it does let you download the videos.
however, it is annoying so is it possible to get rid of this error?
Thanks In Advance!
Comment the link with CURLOPT_FOLLOWLOCATION .
how do I by pass captcha ?
thank you
You cant.
Ii is showing some error in here!
I love this simple script! Works really well for me.
Do you know how I could install it in my worpdress site? (on a page or a post)
Tia!
i get videoplayback.txt when I right-click and select “Save Link As”. How can I debug this?
the script doesnt seem to be working anymore