Gentoo Archives: gentoo-user

From: Michael <confabulate@××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] youtube-dl and the conf file.
Date: Thu, 29 Oct 2020 10:00:59
Message-Id: 2043363.irdbgypaU6@lenovo.localdomain
In Reply to: Re: [gentoo-user] youtube-dl and the conf file. by Dale
1 On Wednesday, 28 October 2020 23:15:21 GMT Dale wrote:
2 > David Haller wrote:
3 > > Hello,
4 > >
5 > > On Tue, 27 Oct 2020, Dale wrote:
6 > > [..]
7 > >
8 > >> ERROR: 'ytdl-format=bestvideo[height<=?1280]+bestaudio/best' is not a
9 > >> valid URL. Set --default-search "ytsearch" (or run youtube-dl
10 > >> "ytsearch:ytdl-format=bestvideo[height<=?1280]+bestaudio/best" ) to
11 > >> search YouTube
12 > >> [youtube] byTOZIvyXPo: Downloading webpage
13 > >
14 > > Please run again with -v, such as:
15 > >
16 > > $ youtube-dl -v https://www.youtube.com/watch?v=byTOZIvyXPo
17 > >
18 > > and then check at the top for the lines:
19 > >
20 > > [debug] System config: []
21 > > [debug] User config: [ .. THIS IS WHAT I'M INTERESTED IN .. ]
22 > > [debug] Custom config: []
23 > > [debug] Command-line args: [u'-v',
24 > > u'https://www.youtube.com/watch?v=IzPxJK4drcc'] [..]
25 > > [debug] youtube-dl version 2020.09.20
26 > >
27 > > and mail them here ... One should see there how yt-dl parses your
28 > > config and hopefully what goes wrong with it.
29 > >
30 > > HTH,
31 > > -dnh
32 >
33 > Finally getting thing back to normal. Been checking out the quality of
34 > new power supply and the age of my mobo. Mobo is 7 years old. May
35 > start digging around for one of those soon. o_0
36 >
37 > Searched for test video and grabbed the first hit. Here is the complete
38 > output.
39 >
40 >
41 > dale@fireball ~/Desktop $ youtube-dl -v
42 > https://www.youtube.com/watch?v=C0DPdy98e4c
43 > [debug] System config: []
44 > [debug] User config: ['ytdl-format=bestvideo[height<=?1280]+bestaudio/best']
45 > [debug] Custom config: []
46 > [debug] Command-line args: ['-i', '-v',
47 > 'https://www.youtube.com/watch?v=C0DPdy98e4c']
48 > [debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
49 > [debug] youtube-dl version 2020.06.16.1
50 > [debug] Python version 3.7.9 (CPython) -
51 > Linux-5.6.7-gentoo-x86_64-AMD_FX-tm-8350_Eight-Core_Processor-with-gentoo-2.
52 > 7 [debug] exe versions: ffmpeg 4.3.1, ffprobe 4.3.1
53 > [debug] Proxy map: {}
54 > ERROR: 'ytdl-format=bestvideo[height<=?1280]+bestaudio/best' is not a
55 > valid URL. Set --default-search "ytsearch" (or run youtube-dl
56 > "ytsearch:ytdl-format=bestvideo[height<=?1280]+bestaudio/best" ) to
57 > search YouTube
58 > Traceback (most recent call last):
59 > File "/usr/lib/python3.7/site-packages/youtube_dl/YoutubeDL.py", line
60 > 797, in extract_info
61 > ie_result = ie.extract(url)
62 > File
63 > "/usr/lib/python3.7/site-packages/youtube_dl/extractor/common.py", line
64 > 530, in extract
65 > ie_result = self._real_extract(url)
66 > File
67 > "/usr/lib/python3.7/site-packages/youtube_dl/extractor/generic.py", line
68 > 2277, in _real_extract
69 > % (url, url), expected=True)
70 > youtube_dl.utils.ExtractorError:
71 > 'ytdl-format=bestvideo[height<=?1280]+bestaudio/best' is not a valid
72 > URL. Set --default-search "ytsearch" (or run youtube-dl
73 > "ytsearch:ytdl-format=bestvideo[height<=?1280]+bestaudio/best" ) to
74 > search YouTube
75 >
76 > [youtube] C0DPdy98e4c: Downloading webpage
77 > [debug] Default format spec: bestvideo+bestaudio/best
78 > WARNING: Requested formats are incompatible for merge and will be merged
79 > into mkv.
80 > [debug] Invoking downloader on
81 > 'https://r2---sn-5uaeznd7.googlevideo.com/videoplayback?expire=1603948129&ei
82 > =AfqZX8i_DJPqigTpkoDYAw&ip=74.188.248.51&id=o-AH8t98t1pWRhfF0y-tZC-qs49qI_zv
83 > ZaKyBkU50HBe2G&itag=244&aitags=133%2C134%2C135%2C160%2C242%2C243%2C244%2C278
84 > %2C394%2C395%2C396%2C397&source=youtube&requiressl=yes&mh=m8&mm=31%2C26&mn=s
85 > n-5uaeznd7%2Csn-q4flrn7s&ms=au%2Conr&mv=m&mvi=2&pl=20&initcwndbps=1165000&vp
86 > rv=1&mime=video%2Fwebm&gir=yes&clen=294311&dur=16.560&lmt=1449553649983144&m
87 > t=1603926401&fvip=2&keepalive=yes&c=WEB&sparams=expire%2Cei%2Cip%2Cid%2Caita
88 > gs%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8w
89 > RQIhAKZU6AYMDnJ3MkiGZrpNIARGZ1wcxQIuhv8RefWrUPJEAiBIWn9PA40XVnnUclzEp_nV18Ah
90 > 1PswHBQjNzNtA0Negg%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcw
91 > ndbps&lsig=AG3C_xAwRgIhAKvXqCZKwVUndAMo_5bv6VxIvB7fMndYKg1QSCR0Tqu2AiEAp32rZ
92 > ZE_hPo5cb1uRjg4PozYqTvXkkjWIaPEj7A9aog%3D&ratebypass=yes' [download]
93 > Destination: TEST VIDEO-C0DPdy98e4c.f244.webm
94 > [download] 100% of 287.41KiB in 00:02
95 > [debug] Invoking downloader on
96 > 'https://r2---sn-5uaeznd7.googlevideo.com/videoplayback?expire=1603948129&ei
97 > =AfqZX8i_DJPqigTpkoDYAw&ip=74.188.248.51&id=o-AH8t98t1pWRhfF0y-tZC-qs49qI_zv
98 > ZaKyBkU50HBe2G&itag=140&source=youtube&requiressl=yes&mh=m8&mm=31%2C26&mn=sn
99 > -5uaeznd7%2Csn-q4flrn7s&ms=au%2Conr&mv=m&mvi=2&pl=20&initcwndbps=1165000&vpr
100 > v=1&mime=audio%2Fmp4&gir=yes&clen=280597&dur=17.600&lmt=1509088061399864&mt=
101 > 1603926401&fvip=2&keepalive=yes&c=WEB&sparams=expire%2Cei%2Cip%2Cid%2Citag%2
102 > Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIg
103 > Zi7NlmQITSpxyahnu-mmF0TTQU4tTrjKNeNypYfUZS0CIQC25F6S6QoiRZ8g7HJf5HI1Ch6GBVpT
104 > S8QogQBmpR4xWA%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbp
105 > s&lsig=AG3C_xAwRgIhAKvXqCZKwVUndAMo_5bv6VxIvB7fMndYKg1QSCR0Tqu2AiEAp32rZZE_h
106 > Po5cb1uRjg4PozYqTvXkkjWIaPEj7A9aog%3D&ratebypass=yes' [download]
107 > Destination: TEST VIDEO-C0DPdy98e4c.f140.m4a
108 > [download] 100% of 274.02KiB in 00:02
109 > [ffmpeg] Merging formats into "TEST VIDEO-C0DPdy98e4c.mkv"
110 > [debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i
111 > 'file:TEST VIDEO-C0DPdy98e4c.f244.webm' -i 'file:TEST
112 > VIDEO-C0DPdy98e4c.f140.m4a' -c copy -map 0:v:0 -map 1:a:0 'file:TEST
113 > VIDEO-C0DPdy98e4c.temp.mkv'
114 > Deleting original file TEST VIDEO-C0DPdy98e4c.f244.webm (pass -k to keep)
115 > Deleting original file TEST VIDEO-C0DPdy98e4c.f140.m4a (pass -k to keep)
116 > dale@fireball ~/Desktop $
117 >
118 >
119 > So you don't have to look back to old message, conf file again.
120 >
121 >
122 > --format 'bestvideo[ext=webm,ext=mp4][width<=?1280]+bestaudio/best'
123 >
124 >
125 > Question. I have other lines in there that I commented out using the
126 > usual #. Is that correct or does it use some other character for
127 > comments? Maybe is is seeing those lines as active when I don't want
128 > them to be?? Other than that, I see the options in the user config line
129 > above. It's seeing it at least.
130 >
131 > Thoughts?
132 >
133 > Dale
134 >
135 > :-) :-)
136
137 Commented lines are not taken into account.
138
139 The format you specify above is correct.
140
141 The problem seems to be with the youtube-dl version you are using. I get no
142 such problems with youtube-dl version 2020.09.20.

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] youtube-dl and the conf file. Dale <rdalek1967@×××××.com>