2 - 1734891602

youtube-dl

install

sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl

config

@: /etc/youtube-dl.conf & ~/.config/youtube-dl/config

update

youtube-dl -U

extract-audio

youtube-dl -x –audio-format mp3 LINK

multiple MP3 tracks from playlist

e.g. Track 1-5:

youtube-dl -x –audio-format mp3 –playlist-start 1 –playlist-end 5 LINK

convert input.m4a in (192k-)output.mp3

<blockquote>ffmpeg -v 5 -y -i input.m4a -acodec libmp3lame -ac 2 -ab 192k output.mp3</blockquote>