1 |
On Tue, Oct 27, 2020 at 1:58 PM Dale <rdalek1967@×××××.com> wrote: |
2 |
> |
3 |
> Howdy, |
4 |
> |
5 |
> I'm hearing bad things about youtube-dl. It seems the RIAA is punishing |
6 |
> people who use it legally for those who don't. Funny how the people who |
7 |
> don't do anything wrong pays for the ones who do while the ones who do |
8 |
> bad things get away. Anyway. |
9 |
> |
10 |
> A good while back this list helped me set up the conf file for |
11 |
> youtube-dl so that it grabs the best resolution up to 720P or 1280 |
12 |
> resolution videos. I have no need for a 4K video. lol It seems |
13 |
> something changed a while back and the options in the conf file produce |
14 |
> a error. From the error, I can't figure out what to change. This is |
15 |
> the error. |
16 |
> |
17 |
> |
18 |
> ERROR: 'ytdl-format=bestvideo[height<=?1280]+bestaudio/best' is not a |
19 |
> valid URL. Set --default-search "ytsearch" (or run youtube-dl |
20 |
> "ytsearch:ytdl-format=bestvideo[height<=?1280]+bestaudio/best" ) to |
21 |
> search YouTube |
22 |
> |
23 |
> I'm using the normal youtube-dl <link to video> command. No options or |
24 |
> anything. This is what I have in the conf file. |
25 |
> |
26 |
> |
27 |
> --format |
28 |
> |
29 |
bestvideo[ext=webm][width<=?1280]+bestaudio/bestvideo[ext=mp4][width<=?1280]+bestaudio/best |
30 |
> |
31 |
> --merge-output-format mp4 |
32 |
> |
33 |
> |
34 |
> Those options worked for a long time so I guess something changed with |
35 |
> youtube-dl. I don't get why it says the options are a URL either. When |
36 |
> I google, I can't find where anyone is getting this error or using |
37 |
> different options either, at least not to accomplish the same goal. I |
38 |
> might add, my googling turned up the RIAA mess. May have to donate to |
39 |
> help fund lawyers. :/ |
40 |
> |
41 |
> Anyone know what to do to fix it? I can't make heads or tails of it. |
42 |
> |
43 |
> Dale |
44 |
> |
45 |
> :-) :-) |
46 |
|
47 |
Hi Dale, |
48 |
I don't use youtube-dl enough to offer any significant input but in my |
49 |
limited experience the general way to handle this is to first determine |
50 |
what formats are actually available and then to pick one of those by |
51 |
number: |
52 |
|
53 |
mark@science:~$ youtube-dl -F https://www.youtube.com/watch?v=byTOZIvyXPo |
54 |
[youtube] byTOZIvyXPo: Downloading webpage |
55 |
[youtube] byTOZIvyXPo: Downloading MPD manifest |
56 |
[info] Available formats for byTOZIvyXPo: |
57 |
format code extension resolution note |
58 |
139 m4a audio only DASH audio 52k , m4a_dash container, |
59 |
mp4a.40.5@ 48k (22050Hz) |
60 |
140 m4a audio only DASH audio 132k , m4a_dash container, |
61 |
mp4a.40.2@128k (44100Hz) |
62 |
251 webm audio only DASH audio 137k , webm_dash container, |
63 |
opus @160k (48000Hz) |
64 |
278 webm 192x144 DASH video 95k , webm_dash container, |
65 |
vp9, 24fps, video only |
66 |
160 mp4 192x144 DASH video 108k , mp4_dash container, |
67 |
avc1.4d400b, 24fps, video only |
68 |
242 webm 320x240 DASH video 220k , webm_dash container, |
69 |
vp9, 24fps, video only |
70 |
133 mp4 320x240 DASH video 242k , mp4_dash container, |
71 |
avc1.4d400c, 24fps, video only |
72 |
243 webm 480x360 DASH video 405k , webm_dash container, |
73 |
vp9, 24fps, video only |
74 |
134 mp4 480x360 DASH video 477k , mp4_dash container, |
75 |
avc1.4d4015, 24fps, video only |
76 |
244 webm 640x480 DASH video 752k , webm_dash container, |
77 |
vp9, 24fps, video only |
78 |
135 mp4 640x480 DASH video 1155k , mp4_dash container, |
79 |
avc1.4d4014, 24fps, video only |
80 |
18 mp4 480x360 360p 514k , avc1.42001E, 24fps, |
81 |
mp4a.40.2@ 96k (44100Hz), 177.81MiB (best) |
82 |
mark@science:~$ |
83 |
|
84 |
Note that documentation for the --bestvideo/--bestaudio |
85 |
options says that they 'may not be available'. |
86 |
|
87 |
In many cases I've had to transcode the download for |
88 |
my purpose which is very much a corner case. I use them in a |
89 |
program called transcribe! which figures out most likely guitar |
90 |
fingering positions from audio content and when video is |
91 |
available will play the video so you can see where the player |
92 |
is actually placing his fingers vs what the program thinks |
93 |
she's/he's doing. |
94 |
|
95 |
I suspect you might be able to script the youtube-dl and |
96 |
transcode into a single batch file but that sort of stuff is generally |
97 |
beyond me and I don't do it enough to warrant learning. |
98 |
|
99 |
HTH, |
100 |
Mark |