Last active
August 29, 2015 14:04
-
-
Save vodik/53d7569aca4677f5bbe7 to your computer and use it in GitHub Desktop.
radiosoulwax->m4a
This file contains hidden or 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 | |
videos=(http://vimeo.com/93039571 | |
http://vimeo.com/26149143 | |
http://vimeo.com/26149014 | |
http://vimeo.com/25861552 | |
http://vimeo.com/26148917 | |
http://vimeo.com/26113014 | |
http://vimeo.com/26048972 | |
http://vimeo.com/26112742) | |
youtube-dl "${videos[@]}" | |
for video in *.mp4; do | |
m4a="${video%-*}.m4a" | |
[[ ! -f "$m4a" ]] && \ | |
ffmpeg -i "$video" -map a:0 -c copy "$m4a" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment