Skip to content

Instantly share code, notes, and snippets.

@iandunn
Created June 5, 2017 02:07
Show Gist options
  • Save iandunn/32c5c098aaed8a0d76b453ec89f15b27 to your computer and use it in GitHub Desktop.
Save iandunn/32c5c098aaed8a0d76b453ec89f15b27 to your computer and use it in GitHub Desktop.

Revisions

  1. iandunn created this gist Jun 5, 2017.
    10 changes: 10 additions & 0 deletions qtmono.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    # 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
    }