Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- #download them
- youtube-dl --restrict-filenames 'https://www.youtube.com/watch?v=-SSdTXNK2mo'
- youtube-dl --restrict-filenames 'https://www.youtube.com/watch?v=4U_RvUYINpo'
- youtube-dl --restrict-filenames 'https://www.youtube.com/watch?v=Di2wDDwxqHg'
- youtube-dl --restrict-filenames 'https://www.youtube.com/watch?v=HDAFivGsKX4'
- youtube-dl --restrict-filenames 'https://www.youtube.com/watch?v=JZIVmKOdrBk'
- youtube-dl --restrict-filenames 'https://www.youtube.com/watch?v=U_0BapT0mOQ'
- youtube-dl --restrict-filenames 'https://www.youtube.com/watch?v=qDY-DF4Lpdg'
- #rename them
- for f in Portal_-_*;do
- mv $f $(echo ${f##Portal_-_} | cut -d- -f1).mp4.old
- done
- #convert and cut them
- for f in *.old;do
- echo "Enter the end of the video (to cut off the outro) for file($f)"
- ffmpeg -i $f -t $(cat) ${f%%mp4.old}flac
- done
- #delete the old files
- rm *.old
Add Comment
Please, Sign In to add comment