-
-
Save kasramp/e2abfdd09ef128616c97876862699485 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Please wait, your video is downloading" | |
var=$(youtube-dl $1 | grep "Destination") | |
var=$(echo $var | cut -d ':' -f2) | |
var=$(echo $var | xargs) | |
output=$(echo $var | sed 's/...$//') | |
output=$output"mp3" | |
avconv -i "$var" "$output" | |
echo "Video File Name : " $var | |
echo "Audio File Name : " $output |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment