LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 06-01-2007, 07:46 AM   #1
omnio
Member
 
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:
Code:
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.
Code:
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- )
Code:
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 07:49 AM.
 
  


Reply

Tags
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 08:06 AM
Looking for a tool to auto crop and separate images in to separate files.. mlsfit Linux - Software 2 08-06-2006 03:13 PM
logging daily cron jobs in separate files csmwlee Linux - Newbie 5 10-10-2005 10:30 AM
Fortran and separate module files Neruocomp Programming 4 04-14-2005 08:09 AM
Separate Partitions for Separate User groups volvic Slackware - Installation 2 09-16-2004 02:42 AM


All times are GMT -5. The time now is 03:41 AM.

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