Skip to content

Instantly share code, notes, and snippets.

@Riebart
Created October 19, 2021 17:41
Show Gist options
  • Save Riebart/94c3b8e20a534305669b3eb4351fe0db to your computer and use it in GitHub Desktop.
Save Riebart/94c3b8e20a534305669b3eb4351fe0db to your computer and use it in GitHub Desktop.
ffmpeg Record multichannel audio from multiple sources to a single file
#!/bin/bash
# get device names from: ffmpeg -list_devices true -f dshow -i dummy
ffmpeg \
-f dshow -ac 1 -i audio="Audio Input Device A" \
-f dshow -ac 1 -i audio="Audio Input Device B" \
-ac 2 -filter_complex "[0:a][1:a]amerge[outA]" -map "[outA]:a" multitrack_out.wav
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment