Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 4788  / 2 Years ago, wed, march 16, 2022, 4:17:02

What are recommended solutions to download an entire YouTube playlist as a single .mp3 file? I open to solutions other than youtube-dl.


More From » youtube

 Answers
2

You can download playlists with youtube-dl in MP3 format as described in how to download playlist from youtube-dl?, e. g.:





youtube-dl -cix --audio-format mp3 -o '%(playlist_title)-%(playlist_id) - %(playlist_index) - %(title)-%(id).%(ext)' -- 'https://www.youtube.com/playlist?list=PLttJ4RON7sleuL8wDpxbKHbSJ7BH4vvCk'


You can then use FFmpeg to concatenate those files:



printf "file '%s'
" *.mp3 | ffmpeg -f concat -i - -codec copy all.mp3


It's a little more difficult with Avconv since it doesn't support the concat format:



avconv -i "concat:$(printf '%s|' *.mp3 | head -c -1)" -codec copy all.mp3

[#16333] Thursday, March 17, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
neasinient

Total Points: 491
Total Questions: 120
Total Answers: 93

Location: The Bahamas
Member since Mon, Aug 2, 2021
3 Years ago
;