6

I've got an audio CD, obviously it's stereo. I want to get monoaural mp3's or wav's with just the left (or right) channel of every cd track.

What's the fastest and easiest way to do it?

4 Answers 4

8

You can indeed do this with the sox command-line audio processing tool. To select a single channel from an input file (for demonstration purposes, I use a wave file) and write it to a new wave file, the remix effect is used:

sox stereo_inputfile.wav leftchannel.wav remix 1
sox stereo_inputfile.wav rightchannel.wav remix 2

If you want to know more, this website lists a number of practical examples on how to use sox for a number of tasks.

3

Here comes a bash-solution for multiple files within one folder.

  1. Put all of you files into one folder, e. g. "/run/dir/*" in the example below
  2. Create two folders in the level above the dir: e. g. "/run/l_channel/" and "/run/r_channel/"

To split all files of one folder into the other folders for the left and for the right channel you can do it like this:

for i in /run/dir/*
do 
    sox "$i" ""/run/l_channel/"$(basename "$i")" remix 1
    sox "$i" ""/run/r_channel/"$(basename "$i")" remix 2
done

Note: I tried this successfully under Manjaro Linux, but probably this works under Ubuntu, too.

2

ffmpeg is always your friend.

Stereo -> Mono with L Channel

ffmpeg -i input.mp3 -filter:a 'pan=mono|FC=FL' output.mp3

Stereo -> Mono with R Channel (just replaced FL with FR)

ffmpeg -i input.mp3 -filter:a 'pan=mono|FC=FR' output.mp3

See pan - Audio Filters - FFmpeg Filters Documentation for the detail.

1

Use audacity. Extract/rip the audio files from the CD using any program you like. Then import the stereo audio file in audacity. Use the "split stereo track" Track Control Panel, located on the left side of the track. This will break it down to two separate tracks. Then for each track open the Track Control Panel again and select mono to convert each single channel track to mono.

2
  • Thanks for your answer. I already know how to split a stereo track using Ardour, but I would need a more automated method. I've got to do that for more than 50 tracks, so... :) I'm sure there must be a way, maybe with sox or something like that...
    – ciacnorris
    Oct 23, 2014 at 1:22
  • Okay. Please add these parameters to your question too. It will be helpful to other people who face a similar problem.
    – taz
    Oct 23, 2014 at 10:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.