how to limit youtube-dl quality #4241

Closed
treaki opened this Issue Mar 16, 2017 · 3 comments

Comments

Projects
None yet
4 participants

treaki commented Mar 16, 2017

my screen and my cpu only supports only 720p, so its a pain in the ass if mpv is trying to scale down a video with higher resolution. Unfortunately you also have removed the frame drop setting (capital D).

So:

How can i limit mpv to use youtube-dl formats with a maximum of 720p?

How can i get back the frame drop setting?

thanks in advance

System information:
Package: mpv
Version: 1:0.22.0-dmo1~bpo8+1
more: http://paste.debian.net/hidden/681f0bd8/

Contributor

CounterPillow commented Mar 16, 2017

Put this in your mpv.conf:

ytdl-format=bestvideo[height<=?720]+bestaudio/best

Version: 1:0.22.0-dmo1~bpo8+1

Please update.

mpv will drop frames by default in order to keep in sync with the audio.

@wiiaboo wiiaboo closed this Mar 16, 2017

@wiiaboo wiiaboo added the question label Mar 16, 2017

This is a slightly more advanced way: It picks the best format it can find (up to but not above 1080p), chooses 30fps or lower (since 60fps just leads to dropped frames and stutter on my computer), and lastly it also ignores the stupid VP9 codec.

ytdl-format=bestvideo[height<=?1080][fps<=?30][vcodec!=?vp9]+bestaudio/best

If you want to limit it to 720p30 or lower, use this instead:

ytdl-format=bestvideo[height<=?720][fps<=?30][vcodec!=?vp9]+bestaudio/best

No matter what you do, I highly recommend using one of these lines in your mpv.conf. Otherwise it always picks the highest-quality version, which may mean 4K @ 60 fps = hell for your CPU to decode, and a total waste of bandwidth!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment