From cb3297d70a34bf22c3f807518989d1728823e548 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Wed, 27 Oct 2021 22:25:30 +0100 Subject: [PATCH] Add notes about how to downmix audio --- notes/ffmpeg-downmixing-audio.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 notes/ffmpeg-downmixing-audio.md diff --git a/notes/ffmpeg-downmixing-audio.md b/notes/ffmpeg-downmixing-audio.md new file mode 100644 index 0000000..4328cbb --- /dev/null +++ b/notes/ffmpeg-downmixing-audio.md @@ -0,0 +1,15 @@ +--- +title: Downmixing audio channels +tags: + - Media +emoji: 🎵 +link: https://trac.ffmpeg.org/wiki/AudioChannelManipulation +--- + +```bash +ls -1 *.mp4 | xargs -I{} ffmpeg -y -i {} -ac 2 -c:v copy /path/to/out/{} +``` + +Downmixes multi-channel audio into stereo. Reduces the chances of weird things happening during playback. + +`-c:v copy` is important for performance as it means the video isn't re-encoded (10x improvement in speed).