Computer Hope
Software => Computer software => Topic started by: juliejames on August 16, 2018, 04:43:45 AM
-
How can you download a YouTube video to your device in the mp3 format?
-
get it onto your PC first, then use a reputable conversion program.
(by the way - MP3 is just for audio)
-
One of the many websites to download youtube video into mp3 file so you get the audio: https://www.ytbmp3.com
Save to your pc and move to whatever device you are going to to listen to it on.
-
If you are comfortable using your command line, you can also use youtube-dl and ffmpeg
youtube-dl can download m4a audio with the "-f 140" option. youtube-dl guide: https://www.computerhope.com/issues/ch001724.htm
then you can convert the m4a to mp3 with ffmpeg. download page: https://www.ffmpeg.org/
for instance, to download as m4a:
youtube-dl -f 140 https://www.youtube.com/watch?v=Nv6qGhknKco
then convert to mp3:
ffmpeg -i "Bach Cello Suite no 2. BWV 1008. Viola. Courante.-Nv6qGhknKco.m4a" -q:a 0 bach.mp3
-
convert2mp3.net does the job.
-
One thing to be aware of with those types of sites is that they typically give low quality transcodes of the original audio stream. I'd say worse than ffmpeg, but realistically the site itself is probably using ffmpeg on the server-side to do the conversion, but with a much lower quality (To keep the site responsive and reduce server load).
Personally, I've had this requirement before. In my case the solution I devised was to download the video file as an mp4 with a firefox extension (VideodownloadHelper) then extracted the audio from that video file with VLC. (Media->Convert/Save). Certainly more roundabout than ffmpeg.