Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 06-01-2007, 08:46 AM   #1
Registered: Feb 2007
Location: $HOME
Distribution: Hardened Gentoo
Posts: 66
Blog Entries: 1

Rep: Reputation: 16
Encoding separate audio channels to separate files

Hi folks,

I'm having some hard times finding the proper software for one of my scripts. What I need is to encode a wav file to 2 separate mp3 files, one mp3 file should contain the left channel of the wav file, and the other mp3 file - the right channel. This is what I've tried so far:

1. SOX
Well sox is a great tool, too bad it segfaults from time to time; while doing a short search I noticed that some other people have this problem too. Moreover, when using a preemptible kernel, sox crashes a lot. This is how I've been using sox so far:
sox -c 2 file.wav -c 1 file-right.mp3 avg -r
The above code encodes only the right channel; too bad it segfaults. So using sox became out of question.

2. Lame
I could reduce the PCM value for one channel but I would hear a lot of noise instead; however, I need to hear the single encoded channel in both speakers, and I can't manage to do that, even with the "joint stereo" option.
lame -m j --scale-l -100 file.wav file-right.mp3
3. Bladeenc
I can't get it to work because it complains about the wav file, not being "in 32, 44.1 or 48 kHz" (and I don't want to alter/increase the quality of it which is 16 KHZ - probably- )
bladeenc -rightmono file.wav file-right.mp3
Any ideas? Maybe it's possible with mencoder; even though I had the impression that other tools will use less resources, I'm interested in a mencoder way too.

Thanks for reading.

Last edited by omnio; 06-01-2007 at 08:49 AM.


audio, channels, encode

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] FTP: recursive chmod (separate for directories and files) mgmax Linux - Software 11 01-29-2011 09:06 AM
Looking for a tool to auto crop and separate images in to separate files.. mlsfit Linux - Software 2 08-06-2006 04:13 PM
logging daily cron jobs in separate files csmwlee Linux - Newbie 5 10-10-2005 11:30 AM
Fortran and separate module files Neruocomp Programming 4 04-14-2005 09:09 AM
Separate Partitions for Separate User groups volvic Slackware - Installation 2 09-16-2004 03:42 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:21 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration