Giter VIP home page Giter VIP logo

youtube-downloader's People

Contributors

aganel avatar airesvsg avatar art4 avatar bellenottelling avatar bitnol avatar blagynchy avatar cerdic avatar diloy93 avatar dmitriylyalyuev avatar dtdaft avatar eloydegen avatar ewwink avatar faisalmirza avatar falahati avatar hedii avatar itseasy21 avatar jeckman avatar jenyak avatar knpau avatar kolahzary avatar madza91 avatar marwandesigner avatar mhama avatar muiton avatar projectcoredevs avatar roukmoute avatar sepehr avatar stefansarya avatar symera avatar yazdipour avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

youtube-downloader's Issues

403 Forbidden...

I got 403 Forbidden You don't have permission to access /youtubedownloader/getvideo.php on this sever.

Which php service should I enable ?

how to download on local server

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

Result's 0 Byte for some videos

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++:


Warning: readfile(http://r3---sn-poqvn5u-jb3e.googlevideo.com/videoplayback?mime=video/webm&upn=JzCgRdiHoeE&sparams=dur,gcr,id,initcwndbps,ip,ipbits,itag,mime,mm,ms,mv,pl,ratebypass,source,upn,expire&fexp=900718,907263,912138,927622,939968,9405648,9405836,941004,943917,947209,947225,948124,948703,949422,952302,952605,952901,955301,957103,957105,957201,959701&initcwndbps=1087500&source=youtube&pl=15&ratebypass=yes&gcr=id&mm=31&ipbits=0&mt=1421809366&mv=m&ms=au&expire=1421831001&sver=3&ip=120.176.86.42&key=yt5&dur=0.000&itag=43&id=o-AIuHHALRBKJ4wafZQFXWY53MH92KED53YHhYYmLOgpY8&signature=): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden in D:_XAMPP\htdocs\grabber\youtube\download.php on line 41

That is.

Is there any clue to solve my problems? Thank you...

feature request : add curl interface ip rotation

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

not working on any youtube id

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‎

Server Error 403

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.

FAILED vevo videos

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?

x-send-file

Is it possible to use x-send-file to free up PHP?

not working now?

hi im tryed today and its not working my server.yesterday working but now showing 0 kb files.and downloading empty files

Remove code checking for request type

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

Script working fine on local host but not in live server

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".

MP3

REMOVED CONTENT!

ipv6 issue and configuration

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

In the latest version ...

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?

direct download link not found

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

Download from X seconds on

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

config file

in download files require config file where it ? i don't found it when i download it .

406 Not Acceptable

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

When Downloading a File

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 ?

Server Connection Not Authorized

"
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.
"

Fork Feed Parser to new project

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.

1080p download?

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:

  • will we be able to download 1080p or higher (client's request)
  • what should i change for Vevo videos to download?

Thanks a bunch 😄 😃

andrew

Resume 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.?

Cannot download this video: kgBLpBARRsQ

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.

Not working (for some)

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.

play download url into any custom player

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

composer

could you plz make a composer for it

Some videos show 0kb and no download links.

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.