From: Dale <rdalek1967@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] youtube-dl and the conf file.
Date: Tue, 27 Oct 2020 18:58:47 -0500 [thread overview]
Message-ID: <e1de4e38-4b05-0050-db97-bd6730c0a8b1@gmail.com> (raw)
In-Reply-To: <1765142.tdWV9SEqCh@lenovo.localdomain>
Michael wrote:
> On Tuesday, 27 October 2020 21:14:37 GMT Arve Barsnes wrote:
>> On Tue, 27 Oct 2020 at 21:58, Dale <rdalek1967@gmail.com> wrote:
>>> I'm using the normal youtube-dl <link to video> command. No options or
>>> anything. This is what I have in the conf file.
>>>
>>>
>>> --format
>>> bestvideo[ext=webm][width<=?1280]+bestaudio/bestvideo[ext=mp4][width<=?128
>>> 0]+bestaudio/best
>>>
>>> --merge-output-format mp4
>>>
>>>
>>> Those options worked for a long time so I guess something changed with
>>> youtube-dl. I don't get why it says the options are a URL either. When
>>> I google, I can't find where anyone is getting this error or using
>>> different options either, at least not to accomplish the same goal. I
>> I took a quick look at the commit history, and it seems the
>> documentation for the format options haven't changed in at least a
>> year, so it's hard to say if it is actually youtube-dl being the
>> culprit here.
>>
>> Might be a quoting problem. Have you changed or updated anything
>> regarding your terminal emulator lately?
>>
>> Maybe run your command with the verbose flag (-v) and see if it tells
>> you the full command it is trying to run. Notice in the docs the whole
>> format string is quoted with single quotes.
>>
>> Regards,
>> Arve
> Occasionally the youtube-dl on the tree is not totally up-to-date with the
> latest and greatest in git. You can wait for a day or two and see if it gets
> updated in portage testing branch, or download it from git and run it from
> within a directory.
>
> Theoretically, your config can run into trouble if the container format you
> have set to merge video and audio into, will not work with the video/audio
> extractors available on the stream.
>
> You have specified: "--merge-output-format mp4"
>
> If the available codex for video or audio is not suitable for the mp4
> container, you are going to get an error. For example, if a stream only has
> bestvideo in a VP9 codec at width 1280, and/or best audio in opus codec, this
> will barf if you try to merge it into a mp4 container without transcoding the
> video and/or audio streams using codecs compatible with mp4, instead of
> merging (copying) them into webm (mkv) as they come.
>
> Hence it throws a wobbly back at you and asks you to run a search in case
> there is some URL with video/audio streams in codecs which will satisfy your
> mp4 container format requirement.
>
> I don't think the single/double quote is an issue for Linux. In MSWindows you
> ought to use double quotes.
I first noticed this when using a site other than youtube. For a long
while, I thought it was because of me using other sites. Today, real
early this morning, I wanted a video off youtube and noticed it still
gave the error. That made me start to wonder. Odd thing is, it seems
to pick the best video but the ones I was downloading were already low
definition anyway. I may find a 4K video and see what it does. If it
grabs the 4K version, it's ignoring the option in the conf file. If it
grabs the 720P version, well, it is making use of some of the option
even if it is not happy with the rest of the line.
I get the same error even when I comment out that merge format line. I
was hoping but I added that line a while back but so far, it ignores it
or they are not available as you point out.
If youtube-dl stops working because it can't be maintained, I'm going to
be sad. I don't use it a lot but it is a nifty tool. I really like the
resume feature. It seems other tools stop at 90 something percent and
they require me to start over. Youtube-dl just picks up where it left
off when you try again. Saves a lot of time and bandwidth for me and
the site I'm getting a video from.
Dale
:-) :-)
next prev parent reply other threads:[~2020-10-27 23:58 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-27 20:58 [gentoo-user] youtube-dl and the conf file Dale
2020-10-27 21:14 ` Arve Barsnes
2020-10-27 22:36 ` Michael
2020-10-27 23:58 ` Dale [this message]
2020-10-27 23:48 ` Dale
2020-10-28 0:54 ` David Haller
2020-10-28 1:35 ` Dale
2020-10-28 6:21 ` Arve Barsnes
2020-10-28 7:19 ` Ashley Dixon
2020-10-28 10:28 ` David Haller
2020-10-28 23:15 ` Dale
2020-10-29 10:00 ` Michael
2020-10-29 17:43 ` Dale
2020-10-30 21:56 ` Dale
2020-10-30 22:36 ` Arve Barsnes
2020-10-30 22:57 ` Jack
2020-11-02 16:06 ` Dale
2020-11-02 16:57 ` Arve Barsnes
2020-11-02 20:21 ` Dale
2020-11-10 9:19 ` Dale
2020-10-31 12:53 ` Wols Lists
2020-10-29 17:47 ` David Haller
2020-10-28 19:27 ` Dale
2020-10-28 21:11 ` Michael
2020-10-28 22:57 ` Dale
2020-10-29 11:15 ` [gentoo-user] Re: [O/T] PSU caps Michael
2020-10-29 17:39 ` Dale
2020-10-29 17:47 ` [gentoo-user] Re: youtube-dl and the conf file Grant Edwards
2020-10-29 18:25 ` [gentoo-user] Re: [O/T of O/T] winmodem? Michael
2020-10-29 19:02 ` Grant Edwards
2020-10-29 19:36 ` Dale
2020-10-28 15:52 ` [gentoo-user] youtube-dl and the conf file Mark Knecht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e1de4e38-4b05-0050-db97-bd6730c0a8b1@gmail.com \
--to=rdalek1967@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox