How to do a Mashup (YouTube Download)

Last modified date

Comments: 0

Note to self – write script

On Ubuntu 21.10 –

youtube-dl -F https://www.youtube.com/watch?v=j7vxHOCeiQ4

[youtube] j7vxHOCeiQ4: Downloading webpage
[info] Available formats for j7vxHOCeiQ4:
format code extension resolution note
249 webm audio only tiny 52k , webm_dash container, opus @ 52k (48000Hz), 1.69MiB
250 webm audio only tiny 69k , webm_dash container, opus @ 69k (48000Hz), 2.22MiB
140 m4a audio only tiny 129k , m4a_dash container, mp4a.40.2@129k (44100Hz), 4.13MiB
251 webm audio only tiny 140k , webm_dash container, opus @140k (48000Hz), 4.48MiB
278 webm 192x144 144p 87k , webm_dash container, vp9@ 87k, 25fps, video only, 2.80MiB
160 mp4 192x144 144p 99k , mp4_dash container, avc1.4d400b@ 99k, 25fps, video only, 3.19MiB
242 webm 320x240 240p 168k , webm_dash container, vp9@ 168k, 25fps, video only, 5.38MiB
133 mp4 320x240 240p 206k , mp4_dash container, avc1.4d400d@ 206k, 25fps, video only, 6.58MiB
243 webm 480x360 360p 274k , webm_dash container, vp9@ 274k, 25fps, video only, 8.74MiB
134 mp4 480x360 360p 437k , mp4_dash container, avc1.4d4015@ 437k, 25fps, video only, 13.94MiB
244 webm 640x480 480p 439k , webm_dash container, vp9@ 439k, 25fps, video only, 14.01MiB
135 mp4 640x480 480p 830k , mp4_dash container, avc1.4d401e@ 830k, 25fps, video only, 26.48MiB
18 mp4 480x360 360p 531k , avc1.42001E, 25fps, mp4a.40.2 (44100Hz), 16.94MiB (best)

choose one, eg. 251

youtube-dl -f 251 https://www.youtube.com/watch?v=j7vxHOCeiQ4

to make things easier –

cp 'A Guy Called Gerald - Voodoo Ray (OFFICIAL MUSIC VIDEO)-j7vxHOCeiQ4.webm' vr.wbm 

Should be finished, but latest Audacity isn’t good on formats.

ffmpeg -i vr.wbm -c:v copy -c:a libmp3lame -q:a 4 vr.mp3

The bpm thing has a not-obvious command line –

this step shouldn’t be necessary, open in Audacity, export as .ogg

bpm-tag -f -n vr.ogg
vr.ogg: 119.476 BPM

I’ve not found a better way of pitch detection than doing it by ear, compare with a MIDI piano or whatever. Use Audacity to separately change pitch & tempo.

Often the timing is wrong, wrong wrong. Useful to look at the length of times, do it to duration in Audacity.

Hah. A couple of weeks later came back to it, the duration was the thing. Stretch to [a silly number] that hit the bars in the DAW, sorted.

admin

Leave a Reply

Your email address will not be published. Required fields are marked *

Post comment