Skip to content

Instantly share code, notes, and snippets.

@edsu
Created May 5, 2016 12:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edsu/36beb5576896013179356bd8ed95c34c to your computer and use it in GitHub Desktop.
Save edsu/36beb5576896013179356bd8ed95c34c to your computer and use it in GitHub Desktop.
# usage: combine-tracks.sh input.mov output.mov
#
# I've been using this ffmpeg command to take recordings made with ecamm's Call Recorder for Skype and uploading them
# to YouTube for transcription. I found that YouTube would only transcribe one of the audio channels which
# was often my own voice, which made it less than useful, to put it mildly. Once the channels are combined YouTube will
# transcribe both sides of the conversation. I also found that it was useful to adjust the volumes of the tracks.
ffmpeg -i $1 -filter_complex "[0:a:0]volume=0.781250[a1];[0:a:1]volume=0.781250[a2]; [a1][a2]amerge[out]" -map 0:v -map "[out]" -c:v copy -shortest $2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment