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

Is it possible to skip HDR video quality ? #16465

Open
startas opened this issue May 16, 2018 · 8 comments
Open

Is it possible to skip HDR video quality ? #16465

startas opened this issue May 16, 2018 · 8 comments

Comments

@startas
Copy link

startas commented May 16, 2018

Is it possible to skip video formats with HDR ? If you look at the output from

youtube-dl --list-formats https://www.youtube.com/watch?v=tO01J-M3g0U

This video has many formats available, some of them are HDR. Now, i play video with

mpv --ytdl-format="bestvideo[height<=?1440][fps<=?60]+bestaudio/best" https://www.youtube.com/watch?v=tO01J-M3g0U

But is there a way to skip HDR video formats ?

@startas
Copy link
Author

startas commented May 16, 2018

Ok, i found one way to do it - to add [format_id!=xxx] parameter, and add it for every video format with hdr, so as long as format_id is stable and same formats have same id, i can just manually skip all hdr formats, like [format_id!=336][format_id!=337] and so on.

@aufkrawall
Copy link

Maybe you want this?
(bestvideo[vcodec=vp9]/bestvideo[ext=mp4]/bestvideo)+bestaudio/best

@Tankamin
Copy link

Tankamin commented Oct 1, 2018

Where do i add (bestvideo[vcodec=vp9]/bestvideo[ext=mp4]/bestvideo)+bestaudio/best

after -formats? like -formats(bestvideo[vcodec=vp9]/bestvideo[ext=mp4]/bestvideo)+bestaudio/best

Thanks

@Hrxn
Copy link

Hrxn commented Oct 1, 2018

Like this --format "(bestvideo[vcodec=vp9.2]/bestvideo[vcodec=vp9][fps>30]/bestvideo[vcodec=vp9][height>=1080]/bestvideo[fps>30]/bestvideo[height>720])+(bestaudio[acodec=opus]/bestaudio)/best"

You can also put this into your youtube-dl.conf to make this preference permanent. This config file needs to be placed into your $HOME directory.

@Tankamin
Copy link

Tankamin commented Oct 1, 2018

Like this --format "(bestvideo[vcodec=vp9.2]/bestvideo[vcodec=vp9][fps>30]/bestvideo[vcodec=vp9][height>=1080]/bestvideo[fps>30]/bestvideo[height>720])+(bestaudio[acodec=opus]/bestaudio)/best"

You can also put this into your youtube-dl.conf to make this preference permanent. This config file needs to be placed into your $HOME directory.

Thank you!! :)

@Tankamin
Copy link

Tankamin commented Oct 1, 2018

I got it working but after a few videos, i received: ERROR: unable to download video data: <urlopen error EOF occurred in violation of protocol (_ssl.c:600)>

I don't know what this is... any ideas?

@Hrxn
Copy link

Hrxn commented Oct 1, 2018

It depends... better post the full output with --verbose here.

But this looks like some issue with HTTPS and cert validation, could be caused by old Python 2.x versions. This was pretty common on macOS/OS X, iirc.

@Tankamin
Copy link

Tankamin commented Oct 1, 2018

It depends... better post the full output with --verbose here.

But this looks like some issue with HTTPS and cert validation, could be caused by old Python 2.x versions. This was pretty common on macOS/OS X, iirc.

Thanks. I'm on Windows. I restarted it and it's going so far with no issues. Thanks.

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

No branches or pull requests

4 participants