alexta69 / metube

Self-hosted YouTube downloader (web UI for youtube-dl / yt-dlp)
GNU Affero General Public License v3.0
3.95k stars 259 forks source link

Not always grabbing HDR video #407

Open Sawtaytoes opened 3 months ago

Sawtaytoes commented 3 months ago

Hi! I was downloading some Vimeo videos with HDR, and most that say Dolby Vision or HDR10 are downloading as SDR.

I got a few to download as HDR10, but no Dolby Vision versions just yet.

This only gives me the option to select "best", but it doesn't say which HDR option to prioritize. I'd prefer a mix of HDR10 and Dolby Vision if possible for displays that don't support Dolby Vision.


I'm also seeing some say "Atmos" on Vimeo, but I'm not certain if Vimeo supports anything other than AAC or Opus 2.0.

Sawtaytoes commented 3 months ago

Looks like it may be related to this GitHub Issue on yt-dlp: https://github.com/yt-dlp/yt-dlp/issues/2716

To potentially fix this, you have to alter your user-agent:

Mozilla/5.0 (iPhone; CPU iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) FxiOS/36.0  Mobile/15E148 Safari/605.1.15

I tried it out and got higher-resolution Dolby Vision results.

PikuZheng commented 3 months ago

with yt-dlp, maybe some additional parameters are needed for hdr

Sawtaytoes commented 3 months ago

Which ones?

PikuZheng commented 3 months ago

As far as I know, yt-dlp does not consider Dolby Vision to be the best format. If this is the case, you may need to manually specify the encoding preference order like format_sort. But I'm not sure and if I'm wrong please ignore these.