

This way you will be able to run multiple instances of the script at the same time. You can also use the following command to make the script run in the background. Use the following command if you don't want to see all the messages on your screen: youtube2mp3 "youtube-link" "mp3-file.mp3" > /dev/null Youtube2mp3 "youtube-link" "mp3-file.mp3"įor this script to work, avconv OR ffmpeg must be able to use the libmp3lame code (libavcodec-extra-53 and libavcodec-extra-52), not provided with the ffmpeg on Ubuntu ( see installation).Īlso, the script is very verbose. Now you can convert youtube videos into mp3 files by using the following command (including the double quotes): Now install the script somewhere easily accessible. ( avconv is used in DEBIAN and UBUNTU instead of ffmpeg)

# if you get "ERROR: unable to download video" We will use youtube-dl to download youtube videos, and ffmpeg to convert them into the mp3 format. Convert youtube video to mp3 on-line with a command line script.īefore you can use the script make sure you have "youtube-dl" and "ffmpeg" installed.
