Created
February 3, 2017 04:25
-
-
Save patterns/166adc924f4c8cbd63684422e91fb53b to your computer and use it in GitHub Desktop.
Use ffmpeg to extract audio from source video files
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 | |
INFILE="$1" | |
TMPOUTFILE="${INFILE%.*}" | |
OUTFILE="${TMPOUTFILE##*/}.m4a" | |
ffmpeg -i "${INFILE}" -vn -acodec copy "${OUTFILE}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment