Skip to content

Instantly share code, notes, and snippets.

@iandunn
Created June 5, 2017 02:07
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save iandunn/32c5c098aaed8a0d76b453ec89f15b27 to your computer and use it in GitHub Desktop.
Save iandunn/32c5c098aaed8a0d76b453ec89f15b27 to your computer and use it in GitHub Desktop.
Alias to convert a stereo recording to mono
# Alias to convert a stereo recording to mono
#
# $1 - The input filename
function qtmono {
basename=$(basename "$1")
filename="${basename%.*}"
extension="${basename##*.}"
ffmpeg -i $1 -codec:v copy -af pan="mono: c0=FL" $filename-mono.$extension
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment