Created
June 5, 2017 02:07
-
-
Save iandunn/32c5c098aaed8a0d76b453ec89f15b27 to your computer and use it in GitHub Desktop.
Alias to convert a stereo recording to mono
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
# 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