AmitrajitDas / Bash-scripts

Collection of utility Bash Scripts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bash-scripts

Utility bash scripts to do automatable tasks with a single command. We have scripts to download youtube videos, download music from youtube, convert media files, etc.

Contribute and add your secret script.

πŸ“ NOTES

Download scripts download to ~/Downloads/ folder. For videos, they download to ~/Downloads/Videos and for audio, they download to ~/Downloads/Music.

For best results, clone this git repo to a fixed location on your computer and add it to $PATH.

cd ~
git clone https://github.com/Somsubhra1/Bash-scripts.git
cd utility-scripts
export PATH="$(pwd):$PATH"

πŸ”° Download audio from YouTube

Script: youtube-music
Dependencies: youtube-dl, ffmpeg, aria2c (optional)

Default download format is ogg(vorbis), pass second parameter as mp3, wav, m4a to use another format.

youtube-music "https://www.youtube.com/watch?v=HgfojLtSBTM"  
youtube-music "https://www.youtube.com/watch?v=HgfojLtSBTM" mp3

### πŸ”€ Merge video and audio together

Script: [vamerge](vamerge)  
Dependencies: [ffmpeg](https://www.ffmpeg.org/)

```sh
vamerge <path to video file> <path to audio file>
# the order is important, first video, then audio

About

Collection of utility Bash Scripts

License:MIT License


Languages

Language:Shell 100.0%