jeckman / youtube-downloader Goto Github PK
View Code? Open in Web Editor NEWPHP script for downloading videos from youtube; also parsing youtube feed into RSS enclosures for podcatchers
License: GNU General Public License v2.0
PHP script for downloading videos from youtube; also parsing youtube feed into RSS enclosures for podcatchers
License: GNU General Public License v2.0
REMOVED CONTENT!
I'm having problems while trying to download videos which title is in Cyrillic. The files are empty, 0bytes
Hii first of all thank you for the script . I ran your script on my local server using xampp its working fine , but when I uploaded the files on my server hosted in Godaddy account the download links are not available , the thumbnail and download link options are not available but the heading of the video is displayed .
I called the customer support to check that curl is supported in my server and its active .
Now am facing the problem in getting the video url and the thumbnail image in the "getvideo.php".
i works fine but when i want to download a file i click on the download button it downloads but with 0 bytes and it doesn't open how to fix it ?
hi john, thanks for the script you has shared. it was great, i tried it in my localhost and it totally works. But when i uploaded it to my shared hosting, the browser cannot found its direct download link (i see that the url was started by [http_://r3---sn-....]. Why it could be different while it's running in localhost, the url that return was like: [http_://r1---sn-....]
sorry for my english, and thanks for the help
Hi, this is not really an issue.
I have captcha problem from youtube, http errors 402 and 429.
I want to set ip rotation on outgoing ip on my server that is running this script.
These IPs are correctly configured on my server, i use them on other websites.
In curl.php, I have:
// store all available IPs in an array
$ipArray = array(
'xxx.xxx.xxx.xx1',
'xxx.xxx.xxx.xx2',
'xxx.xxx.xxx.xx3',
'xxx.xxx.xxx.xx4',
'xxx.xxx.xxx.xx5',
'xxx.xxx.xxx.xx6',
'xxx.xxx.xxx.xx7',
'xxx.xxx.xxx.xx8',
'xxx.xxx.xxx.xx9',
'xxx.xxx.xxx.x10',
/* and so one to 16... */
);
// get random ip
$randomNumber = mt_rand ( 0 , count($ipArray) - 1 );
$ipToUse = $ipArray[$randomNumber];
function curlGet($URL) {
$ch = curl_init();
$timeout = 3;
curl_setopt( $ch , CURLOPT_INTERFACE , $ipToUse );
/* ... */
}
function get_location($url) {
$my_ch = curl_init();
curl_setopt($my_ch, CURLOPT_INTERFACE , $ipToUse );
/* ... */
}
function get_size($url) {
$my_ch = curl_init();
curl_setopt($my_ch, CURLOPT_INTERFACE , $ipToUse );
/* ... */
}
My problem is that ip specified in this edited curl.php are not set correctly as curl_interface, i have the following result in debug:
Array
(
[0] =>
)
These links will expire at 20:45:39 CET
The server was at IP address which is an bit IP address. Note that when 8 bit IP addresses are used, the download links may fail.
I am sure that the problem is not that my additionnal IPs are banned, because they are working fine with another script that get videos from youtube and convert it to mp3 (a script a bought), but not with this script, so i am pretty sure they are not set as outgoing interface for curl.
Do you have an idea what i have to change more, to set correctly the curl outgoing interface?
thank you
Dear Sir
Your Youtube Video Download Coding Script Work Properly But Do Not Show Video Size (MB) And How Many Times Reaming Download Video
Please Solve This Issue
Waiting Your Answer
My Website Use Your Coding See
http://anyvideodownload.com
Hello. Found a topic that i've looking for but nothing suggestions. So I open a new issue.
I have tried this script and work fine as I want. But there's some bug when generating video uploaded by vevo and some original copyrights. Trying to force download the 0 byte results for any formats, and I got these error logs when these downloaded file's opened by Notepad++:
That is.
Is there any clue to solve my problems? Thank you...
when trying to download videos from VEVO the result blank, and there is no 'signature' value
there are websites that can generate all DirectLink youtube streaming including Vevo, but using url xxx.c.docs.google.com/videoplayback not xxx..c.docs.google.com / videoplayback
or rather make like this http://ytapi.gitnol.com/get.php?id=j5-yKhDd64s
how to solve that problem?
could you plz make a composer for it
in download files require config file where it ? i don't found it when i download it .
The YouTube-Downloader works for most of the the videos I tried, but failed on this one:
kgBLpBARRsQ
I tried another downloader: rg3's youtube-dl (in python), and it can be downloaded. So maybe you need to update the the routine.
Thank you for the effort.
"
You are not authorized to access the webpage at http://r16---sn-5hn7zn7y.c.youtube.com/videoplayback?expire=1369381845&key=yt1&sparams=cp,id,ip,ipbits,itag,ratebypass,source,upn,expire&id=832fb5cc74c9dec6&sver=3&ratebypass=yes&ip=31.170.166.13&ms=au&cp=U0hVTlNTT19JT0NONV9LTVNJOllYUmRKQnYwNV94&source=youtube&upn=ws5jTwHJh4U&itag=44&ipbits=8&fexp=920505,919318,923500,931009,924605,901208,929123,929915,929906,925714,929919,929119,931202,932802,928017,912518,911416,906906,904476,904830,930807,919373,906836,933701,926403,912711,929606,910075,906098&mt=1369359493&mv=u&newshard=yes&signature=3A831068225C29DD451883489C5CCBB1B15C58DD.7AF69A895A7EDD464F0C4E02B01D110966FFB366. You may need to sign in.
HTTP Error 403 (Forbidden): The server refused to fulfill the request.
"
Error given when downloading following YTIDs:
gy-1zHTJ3sY
6XwKvi8asFE
E4J-UG1q340
Debug information given:
"
These links will expire at 3:35:21 EDT
The server was at IP address 31.170.166.13 which is an 8 bit IP address. Note that when 8 bit IP addresses are used, the download links may fail.
"
i can't download any file with any youtube id and return these errors :
Notice: Undefined variable: url_encoded_fmt_stream_map in /home/khorjina/www/YouTube-Downloader-master/getvideo.php on line 67 Notice: Undefined variable: itag in /home/khorjina/www/YouTube-Downloader-master/getvideo.php on line 78 Notice: Undefined variable: quality in /home/khorjina/www/YouTube-Downloader-master/getvideo.php on line 79 Notice: Undefined variable: type in /home/khorjina/www/YouTube-Downloader-master/getvideo.php on line 80 Notice: Undefined variable: url in /home/khorjina/www/YouTube-Downloader-master/getvideo.php on line 82 Notice: Undefined variable: sig in /home/khorjina/www/YouTube-Downloader-master/getvideo.php on line 82
List of Available Formats for Download - right-click and choose "save as"
i checked that with this id :
OuvW65fXqmg
CyPAPSvtFPY
r5zVRY6SLow
I want to make same website www.ytpak.com
I think using this script
https://github.com/jeckman/YouTube-Downloader
please help me how I instaill this ? on my site www.satellitesea.com
Hi there,
any idea why the script doesn't work on videos that aren't allowed to play on mobile devices?
Hi
Thanks for good script my question is how can i download on server side instead of user.
so i can set my server path and click on quality and it download on server.
thanks
When insert a youtube video URL & click download, it gives this error!!!
Not Acceptable
An appropriate representation of the requested resource /YouTube-Downloader-master/getvideo.php could not be found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
http://ustradeads.com/YouTube-Downloader-master/
What would be the reason for this
regards,
zerandib
hi in the latest version which downloaded and locally tried it this problem appears to me:
Youtube Downloader Results
Notice: Undefined variable: thumbnail_url in C:\xampp\htdocs\YouTube-Downloader-master\getvideo.php on line 92
Notice: Undefined variable: title in C:\xampp\htdocs\YouTube-Downloader-master\getvideo.php on line 93
No encoded format stream found.
Here is what we got from YouTube:
Notice: Undefined variable: my_formats_array in C:\xampp\htdocs\YouTube-Downloader-master\getvideo.php on line 108
No format stream map found - was the video id correct?
would they be a way to auto download to local server ?
Sir @jeckman
please help me
direct and proxy both links not working...
http://www.newsvews.com//home/getvideo?videoid=ahz3kTiGo3s&type=Download
how to use this code in drupal 7 to make download link there
Hello friend,
I just test your little script and don't work anymore. Btw sometimes if a video it not HD, the script will not show the rest of the links.
Hi, the apps seems to work but I can read the downloaded files (their size are very small)
Please check the video http://www.youtube.com/watch?v=zOSbQxXEL3s
There lots of videos I can't download. Are you any ideas?
i want to play a video in custom player like html 5 or video js it is possible ?please help me i want to show video in player and below give the download options..
Hi,
I have installed this script over here http://www.ytvids.net/download/getvideo.php?videoid=NWbRHZiqNLE&type=Download
I am getting File not found error on proxy links
I use this code not just via the web interface to download specific files, but via a script call to parse youtube user feeds. (This lets you make a true podcast XML feed with enclosures out of a YouTube user's channel).
I think though they may share some code it is time to fork that out to a separate project (YouTube Podcatcher Feed Creator) - to enable better configuration for that use case.
The download is forbidden for some videos because of the signature.
hi im tryed today and its not working my server.yesterday working but now showing 0 kb files.and downloading empty files
Based on legacy for Feed Parser, getvideo.php checks for request type and if request type is not Download it tries to redirect directly to the file.
This code could be removed from this project, though it may still be a convenience to be able to call the script directly and bypass the index.php
As said some videos show no download links , only pictures and 0kb.
And some wil work if i hit refresh.
But they are different problems.
But all the other stuff is great and working.
Nice work.
try videoid wagn8Wrmzuc
it says 0kb because I couldt find signature parameters in grabbed urls.
Is it possible to use x-send-file to free up PHP?
download links before 2 weeks working fine but it suddenly not working! pls help me
http://tamilshine.com/Youtube/getvideo.php?videoid=B7c87SWQg-Y&type=Download
I want help in Resuming Downloads. I want To Resume the downloads that are downloaded through this files. So can you help me out in this matter.?
dear sir
i have wordpress theme with ( single-video.php )
i want to use your script with wordpress to add ( direct download link into my post)
so this can get the video id from the post
http://mydomain/youtubedown/getvideo.php?videoid=BS0UUosFc8c
hi, please update the project with vevo / signatured videos supported thank you.
awesome script
BTW, is there a way currently to skip the first x seconds of the video when downloading?
if not, is there plan for this feature?
thanks alot
youtube provides 128kbps mp4 audio only links please update this script to new features
I used to think MP3s would be difficult because you would have to FFMPEG the video... but I recently used a site that linked to the MP3 version hosted from Youtube. I don't know the magic you use to determine the streams available, but I would love if we could add the MP3 option.
Hi, i know it is not really an issue, but i've been searching for hours to resolve my problem, so i come ask you @jeckman here. Thank you if you have a little time to help me :) Otherwise just delete this ticket.
i don't want to run the script in proxy mod to serve visitors of my website because my bandwidth with youtube sucks.
My website's visitors have the blank screen with the weird googlevideo.com url, with my server's ipv4 numbers in it. So the issue is that my website is using ipv4.
i want to configure ipv6 on my server. My internet access provider gave me my ipv6 address.
My server is running ubuntu server 14.04 which have ipv6 support by default.
I've setup the AAAA on my domain provider panel to redirect to my ipv6 address (but ipv4 fields are also required).
Do you know a solution to make my website/server use ipv6 instead of ipv4 ? some links explaining that ? where do i have to change settings, vhost or httpd conf ?
I have searched for hours and i'm still not able to configure ipv6 on my server/website.
Thank you very much if you can give me some advises on it! a link, a tutorial...
Hi,I am Getting Download () 0B Error for Some Restricted Videos,How to Replace it with Some Error Msg..
Pls Help !
Hello
I tried this script but i always get the invalid download token message... or am i doing something wrong?
demo: http://xvilo.com
Thanks in advance,
xvilo
Cant download copyrighted videos, like VEVO videos
Can this be fixed?
In other Java sites like keepvid I can
When I try to watch getvideo.php?videoid=GkvvH8pBoTg&type=Download
I got the error 403 but the "Download" button is working with no problems.
I am already using the latest version.
First i'd like to appreciate what you have done! It is an amazing project and keeps 18 yo developers like me awake until 4 am to find out how to adapt the code for client convenience (btw, you made it as simple as possible, thanks! 😄 )
I want you ask if 1080p videos are available to download. My client is trying to download the best quality video from YT, but due to the small server storage (30GB) he wants to use your idea with the direct download. I tried adapting bits and pieces of code to match our desire, but there are still two main issues:
Thanks a bunch 😄 😃
andrew
I got 403 Forbidden You don't have permission to access /youtubedownloader/getvideo.php on this sever.
Which php service should I enable ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.