Computer Hope

Software => Computer software => Topic started by: juliejames on August 16, 2018, 04:43:45 AM

Title: How To Download YouTube Video In Mp3?
Post by: juliejames on August 16, 2018, 04:43:45 AM
How can you download a YouTube video to your device in the mp3 format?
Title: Re: How To Download YouTube Video In Mp3?
Post by: Mark. on August 16, 2018, 05:21:19 PM
get it onto your PC first, then use a reputable conversion program.
(by the way - MP3 is just for audio)
Title: Re: How To Download YouTube Video In Mp3?
Post by: 2x3i5x on August 16, 2018, 06:47:44 PM
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.
Title: Re: How To Download YouTube Video In Mp3?
Post by: nil on August 20, 2018, 06:43:02 AM
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:

Code: [Select]
youtube-dl -f 140 https://www.youtube.com/watch?v=Nv6qGhknKco
then convert to mp3:

Code: [Select]
ffmpeg -i "Bach Cello Suite no 2. BWV 1008. Viola. Courante.-Nv6qGhknKco.m4a" -q:a 0 bach.mp3



Title: Re: How To Download YouTube Video In Mp3?
Post by: CaptainStark on August 21, 2018, 09:53:23 PM
convert2mp3.net does the job.
Title: Re: How To Download YouTube Video In Mp3?
Post by: BC_Programmer on August 22, 2018, 03:30:00 PM
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.