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