From 5563e08a37e024b417271c5e9676bea88a85b996 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sun, 18 Apr 2021 15:11:57 +0200 Subject: [PATCH] Use mpv for downmixing to stereo It supports different input channel configurations and does not require a long string of magic numbers. --- docs/media/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/media/index.md b/docs/media/index.md index 543c753..5073924 100644 --- a/docs/media/index.md +++ b/docs/media/index.md @@ -12,10 +12,10 @@ :::shell for i in *.flac; do tags=$(metaflac --export-tags-to=- $i | grep -E '^MUSICBRAINZ_'); metaflac --remove-all-tags $i; metaflac --import-tags-from=- $i <<< $tags; done -### Downmix 5.1 to 2.0 +### Downmix 5.1/7.1 to 2.0 :::shell - sox in.wav out.wav remix -m 1v0.3694,3v0.2612,5v0.3694 2v0.3694,3v0.2612,6v0.3694 norm + mpv --oac=flac --audio-channels=stereo --oacopts=compression_level=0 --o=outfile.flac infile.flac ### Record pulseaudio device to flac