Skip to content

Instantly share code, notes, and snippets.

@janglapuk
Created October 17, 2024 00:14
Show Gist options
  • Save janglapuk/0b0032e710cdb5a72423835f405a8920 to your computer and use it in GitHub Desktop.
Save janglapuk/0b0032e710cdb5a72423835f405a8920 to your computer and use it in GitHub Desktop.
FFmpeg Downmix 5.1 to 2.1 Stereo
ffmpeg -i input.mp4 -af \
  "pan=stereo|FL<1.0*FL+0.707*FC+0.707*BL|FR<1.0*FR+0.707*FC+0.707*BR" \
  -c:v copy \
  -c:a aac -b:a 128k \
  output.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment