Skip to content

Instantly share code, notes, and snippets.

@patterns
Created February 3, 2017 04:25
Show Gist options
  • Save patterns/166adc924f4c8cbd63684422e91fb53b to your computer and use it in GitHub Desktop.
Save patterns/166adc924f4c8cbd63684422e91fb53b to your computer and use it in GitHub Desktop.
Use ffmpeg to extract audio from source video files
#!/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