Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

youtube-dl does not detect 1080p videos on Youtube #1261

Closed
ghost opened this issue Aug 16, 2013 · 13 comments
Closed

youtube-dl does not detect 1080p videos on Youtube #1261

ghost opened this issue Aug 16, 2013 · 13 comments

Comments

@ghost
Copy link

@ghost ghost commented Aug 16, 2013

There seems to be a problem with downloading 1080p version of most video pages. When trying to download with best quality I only get the 720p version. When checking the available video formats with -F I only get …

22  :   mp4 [720x1280]
18  :   mp4 [360x640]
5   :   flv [240x400]
17  :   mp4 [144x176]
84  :   mp4 [720p] (3D)
82  :   mp4 [360p] (3D)

… even if there is 1080p selectable and available on the video page.

This seems to happen completely random. Sometimes it detects 1080p for older videos that were not detected properly previously – But sometimes even older videos are not being downloaded in 7080p but only 720p even if 1080p is available and works in browser.

Most newer videos are not detected properly.

@strex
Copy link

@strex strex commented Aug 16, 2013

Maybe this problem is caused by the new itags which were added by YouTube few months ago.
Can you post some example videos?

@xanadu
Copy link
Contributor

@xanadu xanadu commented Aug 16, 2013

Most YouTube content you view on PC now are Dash contents, with spitted audio and video.
Combine Itag 137 (1080p video) + Itag 141 (256k audio) with ffmpeg should give what you want

There is a Itag 138 for some contents for over 1080p video.

It should be simple to add the capability to download these Dash Itags, but I don't like the idea to always run ffmpeg to combine them.

@ghost
Copy link
Author

@ghost ghost commented Aug 16, 2013

A video not being detected properly right now is this video. It has all qualities available on the site but youtube-dl only gets 720p version.

Edit: this is another video not being detected properly

$ youtube-dl -F http://www.youtube.com/watch?v=TMwpbfxY_Gc --verbose
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-F', 'http://www.youtube.com/watch?v=TMwpbfxY_Gc', '--verbose']
[debug] youtube-dl version 2013.08.15
[debug] Python version 3.3.2 - Linux-3.10.6-2-ARCH-x86_64-with-arch
[debug] Proxy map: {}
[youtube] Setting language
[youtube] TMwpbfxY_Gc: Downloading video webpage
[youtube] TMwpbfxY_Gc: Downloading video info webpage
[youtube] TMwpbfxY_Gc: Extracting video information
Available formats:
22  :   mp4 [720x1280]
18  :   mp4 [360x640]
5   :   flv [240x400]
17  :   mp4 [144x176]

How does that itag thing work?

@ghost
Copy link
Author

@ghost ghost commented Aug 18, 2013

Works for me, try to use latest version.

[pulpe@tardis ~]$ youtube-dl -F http://www.youtube.com/watch?v=TMwpbfxY_Gc --verbose
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-F', 'http://www.youtube.com/watch?v=TMwpbfxY_Gc', '--verbose']
[debug] youtube-dl version 2013.08.17
[debug] Python version 3.3.2 - Linux-3.10.6-2-ARCH-i686-with-arch
[debug] Proxy map: {}
[youtube] Setting language
[youtube] TMwpbfxY_Gc: Downloading video webpage
[youtube] TMwpbfxY_Gc: Downloading video info webpage
[youtube] TMwpbfxY_Gc: Extracting video information
Available formats:
38  :   mp4 [3072x4096]
37  :   mp4 [1080x1920]
46  :   webm [1080x1920]
22  :   mp4 [720x1280]
45  :   webm [720x1280]
35  :   flv [480x854]
44  :   webm [480x854]
34  :   flv [360x640]
18  :   mp4 [360x640]
43  :   webm [360x640]
5   :   flv [240x400]
17  :   mp4 [144x176]
@ghost
Copy link
Author

@ghost ghost commented Aug 18, 2013

This two videos are working now for me, too. As I said: It seems to be totally random. Some older videos are suddenly working. Some others don’t. Some work instantly, others work never even if there’s 1080p available in player (won’t post because privacy issues).

$ youtube-dl --version
2013.08.15
@shaybracha
Copy link

@shaybracha shaybracha commented Aug 19, 2013

@xanadu

Hi

mybe you know how to add Dash Itags?

i have added few itags (134,137,141,136,etc) where specific youtube video supported.however those itags are not shown when i type the following command:

python.exe -m youtube_dl --no-check-certificate --list-formats "http://www.youtube.com/watch?v=leXo4-QLNVc"
tting language

Available formats:
37 : mp4 [1080x1920
46 : webm [1080x1920
22 : mp4 [720x1280]
45 : webm [720x1280]
35 : flv [480x854]
44 : webm [480x854]
34 : flv [360x640]
18 : mp4 [360x640]
43 : webm [360x640]
5 : flv [240x400]
17 : mp4 [144x176]

Thanks

@xanadu
Copy link
Contributor

@xanadu xanadu commented Aug 19, 2013

It requires several lines of change and I will see if I can upload a patch soon.

@xanadu
Copy link
Contributor

@xanadu xanadu commented Aug 20, 2013

@ghost
Copy link
Author

@ghost ghost commented Aug 22, 2013

Here’s another one not being detected properly: http://www.youtube.com/watch?v=4oca3XJl0MM

$ youtube-dl  --no-check-certificate --verbose --list-formats 4oca3XJl0MM
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--no-check-certificate', '--verbose', '--list-formats', '4oca3XJl0MM']
[debug] youtube-dl version 2013.08.17
[debug] Python version 3.3.2 - Linux-3.10.7-1-ARCH-x86_64-with-arch
[debug] Proxy map: {}
[youtube] Setting language
[youtube] 4oca3XJl0MM: Downloading video webpage
[youtube] 4oca3XJl0MM: Downloading video info webpage
[youtube] 4oca3XJl0MM: Extracting video information
Available formats:
22  :   mp4 [720x1280]
18  :   mp4 [360x640]
5   :   flv [240x400]
17  :   mp4 [144x176]

In player on website 1080p is available and selectable.

@xanadu
Copy link
Contributor

@xanadu xanadu commented Aug 22, 2013

Update to latest code and make yourself, your will get

$ ./youtube-dl --get-format --all-formats 4oca3XJl0MM
22 - 720x1280
18 - 360x640
5 - 240x400
17 - 144x176
137 - 1080p (DASH Video)
136 - 720p (DASH Video)
135 - 480p (DASH Video)
134 - 360p (DASH Video)
133 - 240p (DASH Video)
160 - 192p (DASH Video)
141 - 256k (DASH Audio)
140 - 128k (DASH Audio)
139 - 48k (DASH Audio)

On Thu, Aug 22, 2013 at 10:53 AM, Dirk notifications@github.com wrote:

Here’s another one not being detected properly:
http://www.youtube.com/watch?v=4oca3XJl0MM

$ youtube-dl --no-check-certificate --verbose --list-formats 4oca3XJl0MM
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--no-check-certificate', '--verbose', '--list-formats', '4oca3XJl0MM']
[debug] youtube-dl version 2013.08.17
[debug] Python version 3.3.2 - Linux-3.10.7-1-ARCH-x86_64-with-arch
[debug] Proxy map: {}
[youtube] Setting language
[youtube] 4oca3XJl0MM: Downloading video webpage
[youtube] 4oca3XJl0MM: Downloading video info webpage
[youtube] 4oca3XJl0MM: Extracting video information
Available formats:
22 : mp4 [720x1280]
18 : mp4 [360x640]
5 : flv [240x400]
17 : mp4 [144x176]

In player on website 1080p is available and selectable.


Reply to this email directly or view it on GitHubhttps://github.com//issues/1261#issuecomment-23111588
.


@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Aug 22, 2013

It has been fixed by @xanadu in the repo, it will be available in the next release.
If you want that youtube-dl automatically joins the video and audio, please open a new issue.

@jaimeMF jaimeMF closed this Aug 22, 2013
@Lky
Copy link

@Lky Lky commented Oct 17, 2013

Maybe this should be reopen, because 1080p support is gone - youtube removed 1080p downloads, only DASH would work - and we need a other way to get 1080p and above.

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Oct 17, 2013

@Lky It's being tracked in #1578

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants
You can’t perform that action at this time.