1 |
Nikos Chantziaras wrote: |
2 |
> On 13/04/2019 11:11, Dale wrote: |
3 |
>> Anyway, I want to set it so that the highest resolution it |
4 |
>> will download is 720P. [...] |
5 |
>> |
6 |
>> I stuck the following into the file, in each location I tried. |
7 |
>> |
8 |
>> ytdl-format=bestvideo[height<=?720]+bestaudio/best |
9 |
>> |
10 |
>> From my googling, that's what is shown is several places as being |
11 |
>> correct. |
12 |
>> |
13 |
>> What am I missing here? Does it look in a new place that I haven't |
14 |
>> found yet? Name changed? Something else? Anyone have a idea on where |
15 |
>> this goes and/or why this isn't working? |
16 |
> |
17 |
> Are you actually downloading with youtube-dl, or are you viewing them |
18 |
> directly with mpv? Because the mpv config file is only used by mpv, |
19 |
> not by youtube-dl: |
20 |
> |
21 |
> https://github.com/ytdl-org/youtube-dl/blob/master/README.md#configuration |
22 |
> |
23 |
> |
24 |
> Anyway, you should limit the width of the video, not the height. For |
25 |
> 720p, the width would be 1280. To get the highest quality encoding, |
26 |
> prefer VP9 (webm) instead of H.264 (mp4), but allow H.264 fallback if |
27 |
> a video doesn't have a VP9 encoding. Also, I use a rule to prevent |
28 |
> dash segments because (at least in the past) prevents video seeking |
29 |
> from working. I use SMPlayer as an MPV front-end, and in the advanced |
30 |
> settings, I use this: |
31 |
> |
32 |
> --ytdl-format |
33 |
> bestvideo[ext=webm][width<=?2560]+bestaudio/bestvideo[ext=mp4][protocol!=http_dash_segments][width<=?2560]+bestaudio/best |
34 |
> |
35 |
> This is to limit to 1440p though. For 720p, use a 1280 width: |
36 |
> |
37 |
> --ytdl-format |
38 |
> bestvideo[ext=webm][width<=?1280]+bestaudio/bestvideo[ext=mp4][protocol!=http_dash_segments][width<=?1280]+bestaudio/best |
39 |
> |
40 |
> |
41 |
> |
42 |
|
43 |
|
44 |
I'm actually downloading with youtube-dl. I thought it odd that it |
45 |
would refer to a mpv file for downloading. Still, when I searched, it |
46 |
is what kept popping up. Maybe a search term confused google. After I |
47 |
posted, I tried searching for other terms and found the link you |
48 |
reference in your post. I then created the file here: |
49 |
/etc/youtube-dl.conf I put in the same as mentioned before but it still |
50 |
downloads a huge file. I got this using exiftool: |
51 |
|
52 |
root@fireball / # exiftool |
53 |
/home/dale/Desktop/Documents/Food/long-path-to-video.mp4 | grep size |
54 |
File Size : 192 MB |
55 |
Movie Data Size : 200847130 |
56 |
Image Size : 1920x1080 |
57 |
root@fireball / # |
58 |
|
59 |
It still seems to ignore that I want a smaller video. Just for clarity: |
60 |
|
61 |
root@fireball / # cat /etc/youtube-dl.conf |
62 |
ytdl-format=bestvideo[height<=?720]+bestaudio/best |
63 |
root@fireball / # |
64 |
|
65 |
I'll try your setting but I would think it would still pick something |
66 |
smaller than 1920x1080. Right? |
67 |
|
68 |
Dale |
69 |
|
70 |
:-) :-) |