Skip to content

GustavoLR548/YouTubeMp3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Download videos from YouTube and convert them to MP3

escudo2

This Shell script allows you to download videos(and even playlists) from YouTube, and convert them to mp3.

Required: Youtube-dl, ffmpeg

Optional: Yt-dlp

How to use

Run the script in the terminal using:

./download_mp3.sh {insert-video/playlist-url}

You can also set a variable in bash, so your videos will be downloaded on a specific directory. To use this feature, use the following command:

export DOWNLOAD_PATH_SCRIPT="insert/path/here"

After that, for every use of this script(in the current terminal), all the videos will be download to the specified path.

Yt-dlp

If you want to download using yt-dlp, then use the same command as before, but adding -yt-dlp at the end of the command.

Example:

./download_mp3.sh {insert-video/playlist-url} -yt-dlp 

Credits

Special thanks for my friend, Rafael Amauri, who helped me with this project.

About

Shell script for downloading videos from YouTube and converting them to Mp3

Topics

Resources

License

Stars

Watchers

Forks

Languages