Skip to content

Instantly share code, notes, and snippets.

@vodik
Last active August 29, 2015 14:04
Show Gist options
  • Save vodik/53d7569aca4677f5bbe7 to your computer and use it in GitHub Desktop.
Save vodik/53d7569aca4677f5bbe7 to your computer and use it in GitHub Desktop.
radiosoulwax->m4a
#!/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