1 |
On Saturday, 13 April 2019 12:19:46 BST Nikos Chantziaras wrote: |
2 |
> On 13/04/2019 11:55, Dale wrote: |
3 |
> > Just tried this as well. |
4 |
> > |
5 |
> > root@fireball / # cat /home/dale/.config/youtube-dl/config |
6 |
> > |
7 |
> > ytdl-format=bestvideo[height<=?1280]+bestaudio/best |
8 |
> > |
9 |
> > It still insists on downloading the largest file. |
10 |
> |
11 |
> "--ytdl-format" is an MPV option, not a youtube-dl option. Also, |
12 |
> omitting the "--" from the option name is an MPV thing. youtube-dl still |
13 |
> needs the "--". |
14 |
> |
15 |
> So you need: |
16 |
> |
17 |
> --format |
18 |
> bestvideo[ext=webm][width<=?1280]+bestaudio/bestvideo[ext=mp4][width<=?1280] |
19 |
> +bestaudio/best |
20 |
|
21 |
This part of the man page is worth a read for format configuration options: |
22 |
|
23 |
https://github.com/ytdl-org/youtube-dl/blob/master/README.md#format-selection |
24 |
|
25 |
-- |
26 |
Regards, |
27 |
Mick |