Arve Barsnes wrote:
> On Mon, 2 Nov 2020 at 17:06, Dale <rdalek1...@gmail.com> wrote:
>> dale@fireball ~/Desktop/Videos/TV_Series/Midsomer_Murders $
>> /usr/local/bin/youtube-dl --format
>> 'bestvideo[ext=webm,ext=mp4][width<=?1280]+bestaudio/best' <Lots of
>> video links that include HD versions>
>> ERROR: u'ytdl-format=bestvideo[height<=?1280]+bestaudio/best' is not a
>> valid URL. Set --default-search "ytsearch" (or run  youtube-dl
>> "ytsearch:ytdl-format=bestvideo[height<=?1280]+bestaudio/best" ) to
>> search YouTube
> I have not updated to yesterday's version yet, but using this format
> string on the command line on a HD video downloaded a 720p video, as
> expected.
>
> Immediate thought is that there's a stray config file somewhere still.
> Why do you get the 'ytdl-format' thing? As far as the internet can
> tell me, this is a mpv command line option.
>
> Regards,
> Arve
>
>


That idea turned into something.  I recently started running the command
as my user instead of root.  I was trying to fix permissions issues
since it sets them as root:root when run as root plus it shouldn't be
run as root.  Anyway, I thought I'd better look in /home/dale and see if
there was a config file in there.  Yep, there it was.  I think the
problem may be that they was a leading space at the beginning of the
relevant line.  That space may have confused youtube-dl. 

It didn't hit me that this started when I started switching to my user
instead of running as root.  I don't recall setting up that user config
file either.  That said, it was likely many years ago.  Will update
later when I test it again.

Oh, it was grabbing the right format despite the error.  It never went
above 720P or 1280 wide.  It was working, just complaining about it.  lol

Thanks much.

Dale

:-)  :-) 

Reply via email to