410 Gone with -f bestvideo on YouTube #3721

Closed
opened 2026-02-20 23:29:48 -05:00 by deekerman · 9 comments
Owner

Originally created by @ivan on GitHub (Dec 21, 2014).

YouTube reports that it has format 299 for https://www.youtube.com/watch?v=zj2qtLCxmfE when it doesn't, causing -f bestvideo to fail:

$ PYTHONPATH=. python3 ./bin/youtube-dl -f bestvideo "https://www.youtube.com/watch?v=zj2qtLCxmfE"
[youtube] zj2qtLCxmfE: Downloading webpage
[youtube] zj2qtLCxmfE: Extracting video information
[youtube] zj2qtLCxmfE: Downloading DASH manifest
[download] Resuming download at byte 1047552
ERROR: unable to download video data: HTTP Error 410: Gone

$ PYTHONPATH=. python3 ./bin/youtube-dl -f 299 "https://www.youtube.com/watch?v=zj2qtLCxmfE"      
[youtube] zj2qtLCxmfE: Downloading webpage
[youtube] zj2qtLCxmfE: Extracting video information
[youtube] zj2qtLCxmfE: Downloading DASH manifest
[download] Resuming download at byte 1047552
ERROR: unable to download video data: HTTP Error 410: Gone

It does have the VP9 format 303, though.

It's been that way for a month, so it's not a temporary YouTube error.

Related: #2352 where YouTube is reporting that it has format 43 for m34r0BLy5YU but doesn't.

Maybe it's worth dropping to the next format when getting a 410 Gone?

Originally created by @ivan on GitHub (Dec 21, 2014). YouTube reports that it has format 299 for https://www.youtube.com/watch?v=zj2qtLCxmfE when it doesn't, causing `-f bestvideo` to fail: ``` $ PYTHONPATH=. python3 ./bin/youtube-dl -f bestvideo "https://www.youtube.com/watch?v=zj2qtLCxmfE" [youtube] zj2qtLCxmfE: Downloading webpage [youtube] zj2qtLCxmfE: Extracting video information [youtube] zj2qtLCxmfE: Downloading DASH manifest [download] Resuming download at byte 1047552 ERROR: unable to download video data: HTTP Error 410: Gone $ PYTHONPATH=. python3 ./bin/youtube-dl -f 299 "https://www.youtube.com/watch?v=zj2qtLCxmfE" [youtube] zj2qtLCxmfE: Downloading webpage [youtube] zj2qtLCxmfE: Extracting video information [youtube] zj2qtLCxmfE: Downloading DASH manifest [download] Resuming download at byte 1047552 ERROR: unable to download video data: HTTP Error 410: Gone ``` It does have the VP9 format 303, though. It's been that way for a month, so it's not a temporary YouTube error. Related: #2352 where YouTube is reporting that it has format 43 for m34r0BLy5YU but doesn't. Maybe it's worth dropping to the next format when getting a 410 Gone?
Author
Owner

@jaimeMF commented on GitHub (Dec 21, 2014):

On the first run I get content too short errors, so I guess it's a YouTube error. And they are listing the format both in the video webpage and in the dash manifest, so we can't filter it.

@jaimeMF commented on GitHub (Dec 21, 2014): On the first run I get `content too short` errors, so I guess it's a YouTube error. And they are listing the format both in the video webpage and in the dash manifest, so we can't filter it.
Author
Owner

@ivan commented on GitHub (Mar 18, 2015):

Format 299 for this particular video was fixed on YouTube's side.

@ivan commented on GitHub (Mar 18, 2015): Format 299 for this particular video was fixed on YouTube's side.
Author
Owner

@ivan commented on GitHub (Mar 18, 2015):

Never mind, I checked incorrectly.

@ivan commented on GitHub (Mar 18, 2015): Never mind, I checked incorrectly.
Author
Owner

@fstirlitz commented on GitHub (Jun 4, 2015):

Another video, same issue; this time with -f bestaudio. The video stream downloads normally.

$ youtube-dl -v VoxZuggJk0I -f bestaudio
[debug] System config: []
[debug] User config: ['--continue', '--add-metadata', '--merge-output-format', 'mkv']
[debug] Command-line args: ['--xattrs', '-v', 'VoxZuggJk0I', '-f', 'bestaudio']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.05.29
[debug] Python version 3.4.3 - Linux-4.0.4-2-ARCH-x86_64-with-arch
[debug] exe versions: ffmpeg N-72229-gb44a55a, ffprobe N-72229-gb44a55a, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] VoxZuggJk0I: Downloading webpage
[youtube] VoxZuggJk0I: Extracting video information
[youtube] VoxZuggJk0I: Downloading DASH manifest
[debug] Invoking downloader on '[DATA EXPUNGED]'
ERROR: unable to download video data: HTTP Error 410: Gone
@fstirlitz commented on GitHub (Jun 4, 2015): Another video, same issue; this time with `-f bestaudio`. The video stream downloads normally. ``` $ youtube-dl -v VoxZuggJk0I -f bestaudio [debug] System config: [] [debug] User config: ['--continue', '--add-metadata', '--merge-output-format', 'mkv'] [debug] Command-line args: ['--xattrs', '-v', 'VoxZuggJk0I', '-f', 'bestaudio'] [debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8 [debug] youtube-dl version 2015.05.29 [debug] Python version 3.4.3 - Linux-4.0.4-2-ARCH-x86_64-with-arch [debug] exe versions: ffmpeg N-72229-gb44a55a, ffprobe N-72229-gb44a55a, rtmpdump 2.4 [debug] Proxy map: {} [youtube] VoxZuggJk0I: Downloading webpage [youtube] VoxZuggJk0I: Extracting video information [youtube] VoxZuggJk0I: Downloading DASH manifest [debug] Invoking downloader on '[DATA EXPUNGED]' ERROR: unable to download video data: HTTP Error 410: Gone ```
Author
Owner

@ivan commented on GitHub (Jun 28, 2015):

Also happens for https://www.youtube.com/watch?v=p7jUrkfMtr4 - getting bestvideo (format 248) results in 410 Gone.

@ivan commented on GitHub (Jun 28, 2015): Also happens for https://www.youtube.com/watch?v=p7jUrkfMtr4 - getting bestvideo (format 248) results in 410 Gone.
Author
Owner

@avih commented on GitHub (Oct 17, 2015):

Same with https://www.youtube.com/watch?v=OAPOhk4A7ps (video plays fine, 410 gone for the audio, plays fine with audio in Firefox and HTML5 video).

@avih commented on GitHub (Oct 17, 2015): Same with https://www.youtube.com/watch?v=OAPOhk4A7ps (video plays fine, `410 gone` for the audio, plays fine with audio in Firefox and HTML5 video).
Author
Owner

@starrychloe commented on GitHub (Jun 7, 2016):

Related, for audio: https://github.com/rg3/youtube-dl/issues/9715

@starrychloe commented on GitHub (Jun 7, 2016): Related, for audio: https://github.com/rg3/youtube-dl/issues/9715
Author
Owner

@christiangenco commented on GitHub (Sep 8, 2016):

For posterity, these errors can be ignored with the --ignore-errors flag.

@christiangenco commented on GitHub (Sep 8, 2016): For posterity, these errors can be ignored with the `--ignore-errors` flag.
Author
Owner

@YashKumarVerma commented on GitHub (Apr 3, 2021):

facing this in 2021 :(
tried to download this playlist
https://www.youtube.com/playlist?list=PLU_sdQYzUj2keVENTP0a5rdykRSgg9Wp-

@YashKumarVerma commented on GitHub (Apr 3, 2021): facing this in 2021 :( tried to download this playlist https://www.youtube.com/playlist?list=PLU_sdQYzUj2keVENTP0a5rdykRSgg9Wp-
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#3721
No description provided.