Hello,

On Wed, 28 Oct 2020, Dale wrote:
>David Haller wrote:
>> Please run again with -v, such as:
>>
>> $ youtube-dl -v https://www.youtube.com/watch?v=byTOZIvyXPo
>>
>> and then check at the top for the lines:
>>
>> [debug] System config: []
>> [debug] User config: [ .. THIS IS WHAT I'M INTERESTED IN .. ]
>> [debug] Custom config: []
>> [debug] Command-line args: [u'-v', 
>> u'https://www.youtube.com/watch?v=IzPxJK4drcc']
>> [..]
>> [debug] youtube-dl version 2020.09.20
[..]
>dale@fireball ~/Desktop $ youtube-dl -v
>https://www.youtube.com/watch?v=C0DPdy98e4c
>[debug] System config: []
>[debug] User config: ['ytdl-format=bestvideo[height<=?1280]+bestaudio/best']
>[debug] Custom config: []
>[debug] Command-line args: ['-i', '-v',
>'https://www.youtube.com/watch?v=C0DPdy98e4c']
>[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
>[debug] youtube-dl version 2020.06.16.1

You seem to have a stray config file ;) I checked with the exact same
version as you and your config file and it gives me:

$ youtube-dl --config-location /tmp/test-ytconf
[..]
[debug] User config: []
[debug] Custom config: ['--format', 
'bestvideo[ext=webm][width<=?1280]+bestaudio/bestvideo[ext=mp4][width<=?1280]+bestaudio/best',
 '--merge-output-format', 'mp4']
[debug] youtube-dl version 2020.06.16.1
[debug] Python version 3.8.6 (CPython) ...

(I use the seperate config to not overwrite mine, but I tested it with
my config and it also gives me:

[debug] User config: [ ...  '--format', 'best[height ...]

So, you seem to have some user config file which contains:

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

instead of '--format[space]some_specs'. To find it the easiest, try:

$ strace -eopen youtube-dl SOMEURL 2>&1 | grep /home/

Here, it shows just ~/.config/youtube-dl/config to be used.

HTH,
-dnh

-- 
 A funny symbol that I can't read has just been input.
 Continue, and I'll forget that it ever happened.  -- a TeX message

Reply via email to