1 |
Howdy all, |
2 |
|
3 |
I followed a thread about youtube-dl not being updated and it was |
4 |
recommended to switch to yt-dlp. So, I switched. Then I found out that |
5 |
it doesn't use the old youtube-dl.conf file. It downloaded a HUGE |
6 |
video. The thing was 1080P. O_O Anyway, I created a new config file, |
7 |
yt-dlp.conf in /etc and copied the options to it. That didn't work |
8 |
well. I found a website with tips and I thought I changed things to |
9 |
where it will work like the old tool but it spits on my keyboard and |
10 |
exits. Obviously, I'm not doing something right here. Here's some info: |
11 |
|
12 |
[IP-] [ ] net-misc/yt-dlp-2021.12.27 |
13 |
|
14 |
My .conf file for yt-dlp: |
15 |
|
16 |
--format 'bv*[ext=webm,ext=mp4][width<=?1280]+bestaudio/best' #My test line |
17 |
-i |
18 |
|
19 |
This is the line from the old youtube-dl.conf that worked for it: |
20 |
|
21 |
--format 'bestvideo[ext=webm,ext=mp4][width<=?1280]+bestaudio/best' |
22 |
|
23 |
-i |
24 |
|
25 |
This is what it spits out when I try to download a video. |
26 |
|
27 |
|
28 |
dale@fireball ~/Desktop/Documents/Firefox/Firefox Multi-Account |
29 |
Containers $ youtube-dl https://www.youtube.com/watch?v=808xcfzkDRU |
30 |
https://www.youtube.com/watch?v=rL5cuGOzf54 |
31 |
https://www.youtube.com/watch?v=Gy7lyvAfOSw |
32 |
https://www.youtube.com/watch?v=FfN5L5zAJUo |
33 |
Traceback (most recent call last): |
34 |
File "/usr/lib/python-exec/python3.9/yt-dlp", line 33, in <module> |
35 |
sys.exit(load_entry_point('yt-dlp==2021.12.27', 'console_scripts', |
36 |
'yt-dlp')()) |
37 |
File "/usr/lib/python3.9/site-packages/yt_dlp/__init__.py", line 842, |
38 |
in main |
39 |
_real_main(argv) |
40 |
File "/usr/lib/python3.9/site-packages/yt_dlp/__init__.py", line 803, |
41 |
in _real_main |
42 |
with YoutubeDL(ydl_opts) as ydl: |
43 |
File "/usr/lib/python3.9/site-packages/yt_dlp/YoutubeDL.py", line 630, |
44 |
in __init__ |
45 |
else self.build_format_selector(self.params['format'])) |
46 |
File "/usr/lib/python3.9/site-packages/yt_dlp/YoutubeDL.py", line |
47 |
2194, in build_format_selector |
48 |
return _build_selector_function(parsed_selector) |
49 |
File "/usr/lib/python3.9/site-packages/yt_dlp/YoutubeDL.py", line |
50 |
2067, in _build_selector_function |
51 |
fs = [_build_selector_function(s) for s in selector] |
52 |
File "/usr/lib/python3.9/site-packages/yt_dlp/YoutubeDL.py", line |
53 |
2067, in <listcomp> |
54 |
fs = [_build_selector_function(s) for s in selector] |
55 |
File "/usr/lib/python3.9/site-packages/yt_dlp/YoutubeDL.py", line |
56 |
2078, in _build_selector_function |
57 |
fs = [_build_selector_function(s) for s in selector.selector] |
58 |
File "/usr/lib/python3.9/site-packages/yt_dlp/YoutubeDL.py", line |
59 |
2078, in <listcomp> |
60 |
fs = [_build_selector_function(s) for s in selector.selector] |
61 |
File "/usr/lib/python3.9/site-packages/yt_dlp/YoutubeDL.py", line |
62 |
2088, in _build_selector_function |
63 |
selector_1, selector_2 = map(_build_selector_function, |
64 |
selector.selector) |
65 |
File "/usr/lib/python3.9/site-packages/yt_dlp/YoutubeDL.py", line |
66 |
2158, in _build_selector_function |
67 |
filters = [self._build_format_filter(f) for f in selector.filters] |
68 |
File "/usr/lib/python3.9/site-packages/yt_dlp/YoutubeDL.py", line |
69 |
2158, in <listcomp> |
70 |
filters = [self._build_format_filter(f) for f in selector.filters] |
71 |
File "/usr/lib/python3.9/site-packages/yt_dlp/YoutubeDL.py", line |
72 |
1816, in _build_format_filter |
73 |
raise SyntaxError('Invalid filter specification %r' % filter_spec) |
74 |
SyntaxError: Invalid filter specification 'ext=webm,ext=mp4' |
75 |
dale@fireball ~/Desktop/Documents/Firefox/Firefox Multi-Account Containers $ |
76 |
|
77 |
There's nothing sensitive there so nothing is edited or changed to |
78 |
prevent it from being public. It is as it was on my screen. |
79 |
|
80 |
What I'm trying for, I prefer mp4 videos but webm will do. I'd like the |
81 |
maximum size to be something like a 720P tall or 1280P wide. I really |
82 |
don't need a 1080P tall or larger to watch on my 24" monitor. Sometimes |
83 |
even 720P is to much, if it's just someone talking about things. I only |
84 |
need a higher res when it is showing how to repair something small or |
85 |
something. I think 720P would be good enough, always has anyway. I |
86 |
think it is happy with that setting tho. This seems to work but who |
87 |
knows what it will download. |
88 |
|
89 |
--format 'bestvideo[width<=?1280]+bestaudio/best' |
90 |
|
91 |
The part it really doesn't like seems to be this: |
92 |
|
93 |
SyntaxError: Invalid filter specification 'ext=webm,ext=mp4' |
94 |
|
95 |
Can someone tell me what the new and improved yt-dlp wants in its conf |
96 |
file to try for mp4 first and then webm? Nothing I tried seems to |
97 |
work. :-( |
98 |
|
99 |
Thanks for the help. |
100 |
|
101 |
Dale |
102 |
|
103 |
:-) :-) |