3 ms·
I have an alias setup in my .bash_profile to easily download and save as .mp3 file: > alias ymp3="youtube-dl --extract-audio --audio-format mp3"
by l5870uoo9y 8y ago
I have an alias setup in my .bash_profile to easily download and save as .mp3 file:
> alias ymp3="youtube-dl --extract-audio --audio-format mp3"
- deleted 8y ago[deleted]
- krylon 8y agoThank you! I did not even know it could do that!
- lozf 8y agoBetter to just grab the widely supported AAC (m4a) audio, than perform a lossy to lossy transcode to mp3 if quality matters. For speech (lectures etc) low bitrate Opus sounds great and saves space when/where it matters, but isn't as widely compatible. e.g. youtube-dl -f 140 "$URL"
- tombrossman 8y agoIn my ~/.bashrc, this works well for me. I did have to add --restrict-filenames after encountering some sites using really long titles that were problematic. ytdl() { mkdir /tmp/ytdl && cd /tmp/ytdl for URL in "$@" ; do youtube-dl -o '%(title)s.%(ext)s' "$URL" --restrict-filenames; done ; mv /tmp/ytdl/* ~/Desktop/ rm -rf /tmp/ytdl exit }
- konraditurbe 8y agoMe too. I have also set it to burn thumbnail: alias mp3='youtube-dl -x --audio-format "mp3" --audio-quality 0 --embed-thumbnail $*'