Use mpv for downmixing to stereo

It supports different input channel configurations and does not require
a long string of magic numbers.
master
Simon Bruder 2021-04-18 15:11:57 +02:00
parent 14665b31af
commit 5563e08a37
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
1 changed files with 2 additions and 2 deletions

View File

@ -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