Can't find a video. #59

Closed
opened 2026-02-20 22:24:24 -05:00 by deekerman · 9 comments
Owner

Originally created by @semprom on GitHub (Mar 11, 2011).

Hello.
When i try to download this video http://www.youtube.com/watch?v=1yw1Tgj9-VU the script tell me that it can't find the video. (ERROR: unable to download video webpage: HTTP Error 404: Not Found) Why is that?

Thanks.

Originally created by @semprom on GitHub (Mar 11, 2011). Hello. When i try to download this video http://www.youtube.com/watch?v=1yw1Tgj9-VU the script tell me that it can't find the video. (ERROR: unable to download video webpage: HTTP Error 404: Not Found) Why is that? Thanks.
Author
Owner

@ppawel commented on GitHub (Mar 12, 2011):

Confirmed - I've seen 404 errors with some of the videos I tried to download as well.

@ppawel commented on GitHub (Mar 12, 2011): Confirmed - I've seen 404 errors with some of the videos I tried to download as well.
Author
Owner

@ppawel commented on GitHub (Mar 12, 2011):

I think this can be related to the availability of given video in specific countries. The video that you provided the link to does download for me without problems.

However, some videos are not available for me apparently because I'm in Poland (some message like "This video contains content copyrighted by Sony Entertainment") and these are the videos that I get 404 error in youtube-dl.

@ppawel commented on GitHub (Mar 12, 2011): I think this can be related to the availability of given video in specific countries. The video that you provided the link to does download for me without problems. However, some videos are not available for me apparently because I'm in Poland (some message like "This video contains content copyrighted by Sony Entertainment") and these are the videos that I get 404 error in youtube-dl.
Author
Owner

@ppawel commented on GitHub (Mar 12, 2011):

Just a thought - implementing something like https://github.com/rg3/youtube-dl/issues#issue/7 could provide a fallback option if a video cannot be downloaded directly from Youtube.

@ppawel commented on GitHub (Mar 12, 2011): Just a thought - implementing something like https://github.com/rg3/youtube-dl/issues#issue/7 could provide a fallback option if a video cannot be downloaded directly from Youtube.
Author
Owner

@rg3 commented on GitHub (Mar 12, 2011):

I can view that video in a web browser and download it with youtube-dl. Like ppawel said, 404 errors usually refer to YouTube errors about the video being unavailable for you. They can't be watched with a web browser either. In fact, those pages YouTube serves with the error messages are really 404s in HTTP.

See for example:

http://www.youtube.com/watch?v=malformed

And the result of attempting to access that page with curl:

$ curl -D headers.txt -o malformed.html 'http://www.youtube.com/watch?v=malformed&hl=en'
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 20936    0 20936    0     0  57837      0 --:--:-- --:--:-- --:--:--  103k
$ cat headers.txt 
HTTP/1.1 404 Not Found
Date: Sat, 12 Mar 2011 19:24:32 GMT
Server: wiseguy/0.6.7
X-Content-Type-Options: nosniff
Set-Cookie: use_hitbox=3d11d5cb2b3e40e368f83f82e88170a4dAEAAAAx; path=/; domain=.youtube.com
Set-Cookie: VISITOR_INFO1_LIVE=WnItksx5zLQ; path=/; domain=.youtube.com; expires=Mon, 07-Nov-2011 19:24:32 GMT
Set-Cookie: PREF=f1=50000000; path=/; domain=.youtube.com; expires=Tue, 09-Mar-2021 19:24:32 GMT
Set-Cookie: GEO=d82d5be5d6ec570afbc10eccc17b3ebccwsAAAAzRVNVmM3HTXvIcA==; path=/; domain=.youtube.com
Expires: Tue, 27 Apr 1971 19:44:06 EST
Cache-Control: no-cache
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
$ grep 'malformed video ID' malformed.html 
            
The URL contained a malformed video ID.
@rg3 commented on GitHub (Mar 12, 2011): I can view that video in a web browser and download it with youtube-dl. Like ppawel said, 404 errors usually refer to YouTube errors about the video being unavailable for you. They can't be watched with a web browser either. In fact, those pages YouTube serves with the error messages are really 404s in HTTP. See for example: http://www.youtube.com/watch?v=malformed And the result of attempting to access that page with curl: <pre> $ curl -D headers.txt -o malformed.html 'http://www.youtube.com/watch?v=malformed&hl=en' % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 20936 0 20936 0 0 57837 0 --:--:-- --:--:-- --:--:-- 103k $ cat headers.txt HTTP/1.1 404 Not Found Date: Sat, 12 Mar 2011 19:24:32 GMT Server: wiseguy/0.6.7 X-Content-Type-Options: nosniff Set-Cookie: use_hitbox=3d11d5cb2b3e40e368f83f82e88170a4dAEAAAAx; path=/; domain=.youtube.com Set-Cookie: VISITOR_INFO1_LIVE=WnItksx5zLQ; path=/; domain=.youtube.com; expires=Mon, 07-Nov-2011 19:24:32 GMT Set-Cookie: PREF=f1=50000000; path=/; domain=.youtube.com; expires=Tue, 09-Mar-2021 19:24:32 GMT Set-Cookie: GEO=d82d5be5d6ec570afbc10eccc17b3ebccwsAAAAzRVNVmM3HTXvIcA==; path=/; domain=.youtube.com Expires: Tue, 27 Apr 1971 19:44:06 EST Cache-Control: no-cache Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked $ grep 'malformed video ID' malformed.html <div > The URL contained a malformed video ID. </pre>
Author
Owner

@semprom commented on GitHub (Mar 20, 2011):

Can i use the http_proxy ? Will that kind of fix the problem?
The server i'm running youtube-dl is in Germany and i really don't want to change it.

@semprom commented on GitHub (Mar 20, 2011): Can i use the http_proxy ? Will that kind of fix the problem? The server i'm running youtube-dl is in Germany and i really don't want to change it.
Author
Owner

@rg3 commented on GitHub (Mar 29, 2011):

Yes, you can use http_proxy. This is explained in the program documentation.

http://rg3.github.com/youtube-dl/documentation.html#d5

@rg3 commented on GitHub (Mar 29, 2011): Yes, you can use http_proxy. This is explained in the program documentation. http://rg3.github.com/youtube-dl/documentation.html#d5
Author
Owner

@semprom commented on GitHub (Mar 29, 2011):

Can you give me a example for a proxy because i can't find any working.
( maybe i'm not making it the right way )

@semprom commented on GitHub (Mar 29, 2011): Can you give me a example for a proxy because i can't find any working. ( maybe i'm not making it the right way )
Author
Owner

@rg3 commented on GitHub (Mar 29, 2011):

I don't know any public HTTP proxy, sorry.

@rg3 commented on GitHub (Mar 29, 2011): I don't know any public HTTP proxy, sorry.
Author
Owner

@semprom commented on GitHub (Mar 30, 2011):

From where can I get private proxy in the USA then?
I just need this to work xD
I'm trying with this now http://spys.ru/free-proxy-list/US/ but no luck.

@semprom commented on GitHub (Mar 30, 2011): From where can I get private proxy in the USA then? I just need this to work xD I'm trying with this now http://spys.ru/free-proxy-list/US/ but no luck.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl-ytdl-org#59
No description provided.