Advertisement
asanchez75

youtube2mp3.sh

Aug 14th, 2013
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #!/bin/bash
  2. echo Enter the youtube url to begin downloading the video.
  3. read VIDEO
  4. echo What is the artist of the song?
  5. read ARTIST
  6. echo What is the name of the song?
  7. read NAME
  8. youtube-dl $VIDEO -o "${ARTIST} - ${NAME}.flv"
  9. ffmpeg -i "${ARTIST} - ${NAME}.flv" "${ARTIST} - ${NAME}.mp3"
  10. rm -rf "${ARTIST} - ${NAME}.flv"
  11. echo Your video is finally converted into a mp3!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement