Youtube to mp3 coverter script using youtube dl and ffmpeg

Tutorials and Scripts bash mp3 music python3 script

Source i (link to git-repo or to original if based on someone elses unmodified work):

https://github.com/mrbrownstone07/youtube-video-download-and-convert-bash-script

0
Become a Fan
5.7

Description:
###YOUTUBE VIDEO TO MP3 CONVERTER###
**REQUIRES ffmpeg, youtube-dl and vim

##Installing requirements:

***Arch based***
sudo pacman -S ffmpeg
sudo pacman -S youtube-dl
sudo pacman -S vim

***ubuntu/debian based***
sudo apt install ffmpeg
sudo apt install youtube-dl
sudo apt install vim

***centos***
sudo yum install ffmpeg
sudo yum install youtube-dl
sudo yum install vim

***generic format***
sudo (____) ffmpeg
sudo (____) youtube-dl
sudo (____) vim


##setting up everything:

1.Extract the mp3.tar.xz and put it in your ~/home or ~/.local/scripts directory

2. Open your terminal run this commands
#RUN:
cd ~/mp3
mv ~/mp3/getMusic.sh ~/.local/bin
chmod +x ~/.local/bin/getMusic.sh


##How to use:

1. To download any music open the terminal and run this command
#RUN:
getMusic.sh

2. Now, this will prompt you a vim file, copy the links of the youtube videos which you want to download as mp3. 4. it will check if the video from the link has been already downloaded or not, if not downloaded then it will download the video convert it to mp3 format delete the video and put the *.mp3 into your ~/Music directory.

##Warning:
Do not remove any .txt file from the ~/mp3 directory.

Ratings & Comments

2 Comments

chavarriaf

9 Thank you, simple and good! But some people don't have pacman... maybe put sudo (___) or three varieties - etc. So new users know they can get needed dependencies. Good job though!!

madcap

Just combined two useful tools. Thank you for the suggestion, updated the description.

Pling
0 Affiliates
Details
license Creative Commons Attribution ShareAlike
version 1.0
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 2

More Tutorials and Scripts from madcap:

i3 dot files
madcap
last update date: 6 years ago

Score 5.0

Other Tutorials and Scripts:

How to use fdisk
ynroot
last update date: 10 years ago

Score 5.0

Cooler recycling: old fans for fresh air
ChEnders
last update date: 10 years ago

Score 6.4

Improved Layout and Icons for RECOLL
stalin2000
last update date: 4 years ago

Score 5.7

How Launch Firefox in Private Mode
lisabonne_citadel
last update date: 8 years ago

Score 5.0

Running screensaver as animated wallpaper
lisabonne_citadel
last update date: 8 years ago

Score 5.0

cmus theme for flurry animated wallpaper
lisabonne_citadel
last update date: 8 years ago

Score 5.0