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

The current yt-dlp code does not know the maximum resolutions of "oar", "maxres" thumbnails for youtube shorts and albums (thumbnails with side stripes). #9837

Open
8 of 10 tasks
iXDXD opened this issue May 1, 2024 · 0 comments
Labels
site-enhancement Feature request for some website

Comments

@iXDXD
Copy link

iXDXD commented May 1, 2024

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

  • I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

Region

No response

Example URLs

https://www.youtube.com/shorts/89B7LcG4uUA

Provide a description that is worded well enough to be understood

The current yt-dlp code does not know the maximum resolutions of oar, maxres thumbnails for YouTube shorts and albums (thumbnails with side stripes).

With --print thumbnails_table it returns a table of links for the thumbnails with their resolutions and extensions. But some are not recognized and others do not show the correct resolutions. I suppose that for horizontal videos the maximum resolution is 1280x720p since YouTube recommends that.
It also does not distinguish vertical thumbnails (for YouTube Shorts) or square thumbnails (for albums or music), they always come out with black or painted stripes on the sides, except for horizontal videos.
In YouTube Shorts, they are always 1280x720 when they also exist in real 1080x1920p (for example: https://i.ytimg.com/vi/89B7LcG4uUA/oar2.jpg).

Other links in 1080x1920 that --print thumbnail_table or --list-thumbnails does not show:

  • [ https://i.ytimg.com/vi/<id_yt_shorts>/oardefault.jpg ]
  • [ https://i.ytimg.com/vi/<id_yt_shorts>/oar1.jpg ]
  • [ https://i.ytimg.com/vi/<id_yt_shorts>/oar2.jpg ]
  • [ https://i.ytimg.com/vi/<id_yt_shorts>/oar3.jpg]
  • [ https://i.ytimg.com/vi_webp/<id_yt_shorts>/oardefault.webp ]
  • [ https://i.ytimg.com/vi_webp/<id_yt_shorts>/oar1.webp ]
  • [ https://i.ytimg.com/vi_webp/<id_yt_shorts>/oar2.webp ]
  • [ https://i.ytimg.com/vi_webp/<id_yt_shorts>/oar3.webp ]

For the thumbnails that are displayed from the browser in the youtube shorts section:

It is "oardefault" for:

  • [ https://www.youtube.com/@mouredev/shorts ]
  • [ https://www.youtube.com/@MrBeast/shorts ]
  • [ https://www.youtube.com/@kkubi99/shorts ]

and I suppose for many more channels (I have tried at least 10 channels).

It is "oar2" for:

  • [ https://www.youtube.com/@greatscottlab/shorts ]
  • [ https://www.youtube.com/@kkubi99/shorts ] (sometimes)

But sometimes it doesn't work for other shorts:
for example:

  • [ https://www.youtube.com/@ServetGulnaroglu/shorts ]

I guess there are others that don't work either, it's strange.

Note:
It seems that "oar" is for vertical videos (Shorts) and "maxres" for horizontal videos, I have not been able to find for square thumbnails (music, albums), they always come out with side stripes.

Provide verbose output that clearly demonstrates the problem

  • Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
  • If using API, add 'verbose': True to YoutubeDL params instead
  • Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output

[debug] Command-line config: ['-vU', '--print', 'thumbnails_table', 'https://www.youtube.com/shorts/89B7LcG4uUA']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version [email protected] from yt-dlp/yt-dlp [ff0779267] (win32_dir)
[debug] Python 3.8.10 (CPython AMD64 64bit) - Windows-10-10.0.19045-SP0 (OpenSSL 1.1.1k  25 Mar 2021)
[debug] exe versions: ffmpeg 2022-06-06-git-73302aa193-full_build-www.gyan.dev (setts), ffprobe 2022-06-06-git-73302aa193-full_build-www.gyan.dev, phantomjs 2.1.1
[debug] Optional libraries: Cryptodome-3.20.0, brotli-1.1.0, certifi-2024.02.02, curl_cffi-0.5.10, mutagen-1.47.0, requests-2.31.0, sqlite3-3.35.5, urllib3-2.2.1, websockets-12.0
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests, websockets, curl_cffi
[debug] Loaded 1811 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: [email protected] from yt-dlp/yt-dlp
yt-dlp is up to date ([email protected] from yt-dlp/yt-dlp)
[youtube] Extracting URL: https://www.youtube.com/shorts/89B7LcG4uUA
[youtube] 89B7LcG4uUA: Downloading webpage
[youtube] 89B7LcG4uUA: Downloading ios player API JSON
[youtube] 89B7LcG4uUA: Downloading android player API JSON
WARNING: [youtube] Skipping player responses from android clients (got player responses for video "aQvGIIdgFDM" instead of "89B7LcG4uUA")
[debug] Loading youtube-nsig.8fc6998a from cache
[debug] [youtube] Decrypted nsig HFRB6MMXpcDWaFzF => BwUFqTpZ0dGyIg
[debug] Loading youtube-nsig.8fc6998a from cache
[debug] [youtube] Decrypted nsig 8XE570dl_G4XNx_u => tpmV2jFiEv7I5Q
[youtube] 89B7LcG4uUA: Downloading m3u8 information
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, vcodec:vp9.2, channels, acodec, lang, proto
[debug] Formats sorted by: hasvid, ie_pref, quality, res, fps, hdr:12(7), source, vcodec:vp9.2(10), channels, acodec, lang, proto, size, br, asr, vext, aext, hasaud, id
[debug] Default format spec: bestvideo*+bestaudio/best
[info] 89B7LcG4uUA: Downloading 1 format(s): 616+251
ID Width   Height  URL
0  405     720     https://i.ytimg.com/vi/89B7LcG4uUA/oar2.jpg?sqp=-oaymwEdCJUDENAFSFWQAgHyq4qpAwwIARUAAIhCcAHAAQY=&rs=AOn4CLAYcz0BVqZrJzrG7R0z00CuLvu7xg
1  1920    1080    https://i.ytimg.com/vi/89B7LcG4uUA/maxres2.jpg?sqp=-oaymwEoCIAKENAF8quKqQMcGADwAQH4AbYIgAKAD4oCDAgAEAEYciBLKDgwDw==&rs=AOn4CLATS-TRwxLszdIxJ-nLJCycpnmyBw
2  unknown unknown https://i.ytimg.com/vi/89B7LcG4uUA/3.jpg
3  unknown unknown https://i.ytimg.com/vi_webp/89B7LcG4uUA/3.webp
4  unknown unknown https://i.ytimg.com/vi/89B7LcG4uUA/2.jpg
5  unknown unknown https://i.ytimg.com/vi_webp/89B7LcG4uUA/2.webp
6  unknown unknown https://i.ytimg.com/vi/89B7LcG4uUA/1.jpg
7  unknown unknown https://i.ytimg.com/vi_webp/89B7LcG4uUA/1.webp
8  unknown unknown https://i.ytimg.com/vi/89B7LcG4uUA/mq3.jpg
9  unknown unknown https://i.ytimg.com/vi_webp/89B7LcG4uUA/mq3.webp
10 unknown unknown https://i.ytimg.com/vi/89B7LcG4uUA/mq2.jpg
11 320     180     https://i.ytimg.com/vi/89B7LcG4uUA/mq2.jpg?sqp=-oaymwEoCMACELQB8quKqQMcGADwAQH4AbYIgAKAD4oCDAgAEAEYciBLKDgwDw==&rs=AOn4CLDq_5pqFy29AHoAIeI76vga0Mucbg
12 unknown unknown https://i.ytimg.com/vi_webp/89B7LcG4uUA/mq2.webp
13 unknown unknown https://i.ytimg.com/vi/89B7LcG4uUA/mq1.jpg
14 unknown unknown https://i.ytimg.com/vi_webp/89B7LcG4uUA/mq1.webp
15 unknown unknown https://i.ytimg.com/vi/89B7LcG4uUA/hq3.jpg
16 unknown unknown https://i.ytimg.com/vi_webp/89B7LcG4uUA/hq3.webp
17 unknown unknown https://i.ytimg.com/vi/89B7LcG4uUA/hq2.jpg
18 168     94      https://i.ytimg.com/vi/89B7LcG4uUA/hq2.jpg?sqp=-oaymwE1CKgBEF5IVfKriqkDKAgBFQAAiEIYAHABwAEG8AEB-AG2CIACgA-KAgwIABABGHIgSyg4MA8=&rs=AOn4CLB_Sa7Cxqz7T0fTDkF_EzjpxeDCYw
19 196     110     https://i.ytimg.com/vi/89B7LcG4uUA/hq2.jpg?sqp=-oaymwE1CMQBEG5IVfKriqkDKAgBFQAAiEIYAHABwAEG8AEB-AG2CIACgA-KAgwIABABGHIgSyg4MA8=&rs=AOn4CLBDREHJx8au3yrsMSWRa9WHxSFrfw
20 246     138     https://i.ytimg.com/vi/89B7LcG4uUA/hq2.jpg?sqp=-oaymwE2CPYBEIoBSFXyq4qpAygIARUAAIhCGABwAcABBvABAfgBtgiAAoAPigIMCAAQARhyIEsoODAP&rs=AOn4CLCxHBWGeA8OAytp-jwSD3l1Cx29Cw
21 336     188     https://i.ytimg.com/vi/89B7LcG4uUA/hq2.jpg?sqp=-oaymwE2CNACELwBSFXyq4qpAygIARUAAIhCGABwAcABBvABAfgBtgiAAoAPigIMCAAQARhyIEsoODAP&rs=AOn4CLCFNWW3mym6aOtW6yXBPzyo3EMd7Q
22 480     360     https://i.ytimg.com/vi/89B7LcG4uUA/hq2.jpg?sqp=-oaymwEoCOADEOgC8quKqQMcGADwAQH4AbYIgAKAD4oCDAgAEAEYciBLKDgwDw==&rs=AOn4CLAJtw5uIgOnxGF3kza3AGV-7n1YDQ
23 unknown unknown https://i.ytimg.com/vi_webp/89B7LcG4uUA/hq2.webp
24 unknown unknown https://i.ytimg.com/vi/89B7LcG4uUA/hq1.jpg
25 unknown unknown https://i.ytimg.com/vi_webp/89B7LcG4uUA/hq1.webp
26 unknown unknown https://i.ytimg.com/vi/89B7LcG4uUA/sd3.jpg
27 unknown unknown https://i.ytimg.com/vi_webp/89B7LcG4uUA/sd3.webp
28 unknown unknown https://i.ytimg.com/vi/89B7LcG4uUA/sd2.jpg
29 640     480     https://i.ytimg.com/vi/89B7LcG4uUA/sd2.jpg?sqp=-oaymwEoCIAFEOAD8quKqQMcGADwAQH4AbYIgAKAD4oCDAgAEAEYciBLKDgwDw==&rs=AOn4CLBJ9dOnPfAAo7nF8I142KXQbuzzqA
30 unknown unknown https://i.ytimg.com/vi_webp/89B7LcG4uUA/sd2.webp
31 unknown unknown https://i.ytimg.com/vi/89B7LcG4uUA/sd1.jpg
32 unknown unknown https://i.ytimg.com/vi_webp/89B7LcG4uUA/sd1.webp
33 unknown unknown https://i.ytimg.com/vi/89B7LcG4uUA/default.jpg
34 unknown unknown https://i.ytimg.com/vi_webp/89B7LcG4uUA/default.webp
35 unknown unknown https://i.ytimg.com/vi/89B7LcG4uUA/mqdefault.jpg
36 unknown unknown https://i.ytimg.com/vi_webp/89B7LcG4uUA/mqdefault.webp
37 unknown unknown https://i.ytimg.com/vi/89B7LcG4uUA/0.jpg
38 unknown unknown https://i.ytimg.com/vi_webp/89B7LcG4uUA/0.webp
39 unknown unknown https://i.ytimg.com/vi/89B7LcG4uUA/hqdefault.jpg
40 unknown unknown https://i.ytimg.com/vi_webp/89B7LcG4uUA/hqdefault.webp
41 unknown unknown https://i.ytimg.com/vi/89B7LcG4uUA/sddefault.jpg
42 unknown unknown https://i.ytimg.com/vi_webp/89B7LcG4uUA/sddefault.webp
43 unknown unknown https://i.ytimg.com/vi/89B7LcG4uUA/hq720.jpg
44 unknown unknown https://i.ytimg.com/vi_webp/89B7LcG4uUA/hq720.webp
45 unknown unknown https://i.ytimg.com/vi/89B7LcG4uUA/maxresdefault.jpg
46 unknown unknown https://i.ytimg.com/vi_webp/89B7LcG4uUA/maxresdefault.webp
@iXDXD iXDXD added site-enhancement Feature request for some website triage Untriaged issue labels May 1, 2024
@pukkandan pukkandan removed the triage Untriaged issue label May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
site-enhancement Feature request for some website
Projects
None yet
Development

No branches or pull requests

2 participants