On 13/04/2019 11:11, Dale wrote:
Anyway, I want to set it so that the highest resolution it
will download is 720P. [...]
I stuck the following into the file, in each location I tried.
ytdl-format=bestvideo[height<=?720]+bestaudio/best
From my googling, that's what is shown is several places as being correct.
What am I missing here? Does it look in a new place that I haven't
found yet? Name changed? Something else? Anyone have a idea on where
this goes and/or why this isn't working?
Are you actually downloading with youtube-dl, or are you viewing them
directly with mpv? Because the mpv config file is only used by mpv, not
by youtube-dl:
https://github.com/ytdl-org/youtube-dl/blob/master/README.md#configuration
Anyway, you should limit the width of the video, not the height. For
720p, the width would be 1280. To get the highest quality encoding,
prefer VP9 (webm) instead of H.264 (mp4), but allow H.264 fallback if a
video doesn't have a VP9 encoding. Also, I use a rule to prevent dash
segments because (at least in the past) prevents video seeking from
working. I use SMPlayer as an MPV front-end, and in the advanced
settings, I use this:
--ytdl-format
bestvideo[ext=webm][width<=?2560]+bestaudio/bestvideo[ext=mp4][protocol!=http_dash_segments][width<=?2560]+bestaudio/best
This is to limit to 1440p though. For 720p, use a 1280 width:
--ytdl-format
bestvideo[ext=webm][width<=?1280]+bestaudio/bestvideo[ext=mp4][protocol!=http_dash_segments][width<=?1280]+bestaudio/best