|
View:
New views
8 Messages
—
Rating Filter:
Alert me
|
|
|
selecting 2 channels out of 4Hello!
I'm trying to create 2 stereo files out of a 4-channel wav file, the first file containing only channels 1 and 2, the second only channels 3 and 4. I read 'man sox' and 'man soxeffect' and couldn't figure it out. I tried some sox calls that produced wrong output (input channels get mixed together), such as sox 4.wav -c2 12.wav mixer -1,-2 sox 4.wav -c2 12.wav mixer -1,2 sox 4.wav -c2 12.wav mixer 1,2 and also sox 4.wav -c2 12.wav mixer 1,0,0,0,0,1,0,0 that seemed right (based on 'man soxeffect') but produced an error message: sox mixer: Invalid options specified to mixer while not mixing Sorry if the question is way too newbie-y... but thanks in advance! Regards, Marcelo ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Sox-users mailing list Sox-users@... https://lists.sourceforge.net/lists/listinfo/sox-users |
|
|
Re: selecting 2 channels out of 4Hello!
I apologize for sending this message again: I've tried to send it to this list a month ago, it appeared on the web but wasn't delivered to the list (not to my e-mail, at least). I hope someone will be patient enough to give me some advice. I run SoX v14.0.0 on Linux 2.6.24-19-rt on a Dell vostro 1400. Thanks again! Marcelo. Thu, Jun 5, 2008: Hello! I'm trying to create 2 stereo files out of a 4-channel wav file, the first file containing only channels 1 and 2, the second only channels 3 and 4. I read 'man sox' and 'man soxeffect' and couldn't figure it out. I tried some sox calls that produced wrong output (input channels get mixed together), such as sox 4.wav -c2 12.wav mixer -1,-2 sox 4.wav -c2 12.wav mixer -1,2 sox 4.wav -c2 12.wav mixer 1,2 and also sox 4.wav -c2 12.wav mixer 1,0,0,0,0,1,0,0 that seemed right (based on 'man soxeffect') but produced an error message: sox mixer: Invalid options specified to mixer while not mixing Sorry if the question is way too newbie-y... but thanks in advance! Regards, Marcelo ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Sox-users mailing list Sox-users@... https://lists.sourceforge.net/lists/listinfo/sox-users |
|
|
Re: selecting 2 channels out of 4I think it's -m for mixer
i just started using sox so can't help much beyond that but i use -m when mixing things together On Sat, Jun 28, 2008 at 3:33 PM, Marcelo Queiroz <mqz.mqz@...> wrote: Hello! ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Sox-users mailing list Sox-users@... https://lists.sourceforge.net/lists/listinfo/sox-users |
|
|
Re: selecting 2 channels out of 4Thanks for your quick reply, Alan!
I have a single input file (with 4 channels), and -m is used for combining multiple input files. In fact 'man soxeffect' has quite a few paragraphs about the mixer effect, but somehow I failed to understand it... :-( On Sat, Jun 28, 2008 at 7:47 PM, Alan Wolfe <alan.wolfe@...> wrote: > I think it's -m for mixer > > i just started using sox so can't help much beyond that but i use -m when > mixing things together > > On Sat, Jun 28, 2008 at 3:33 PM, Marcelo Queiroz <mqz.mqz@...> wrote: >> >> Hello! >> >> I apologize for sending this message again: I've tried to send it to >> this list a month ago, it appeared on the web but wasn't delivered to >> the list (not to my e-mail, at least). I hope someone will be patient >> enough to give me some advice. I run SoX v14.0.0 on Linux 2.6.24-19-rt >> on a Dell vostro 1400. Thanks again! Marcelo. >> >> Thu, Jun 5, 2008: >> >> Hello! >> >> I'm trying to create 2 stereo files out of a 4-channel wav file, the >> first file containing only channels 1 and 2, the second only channels >> 3 and 4. I read 'man sox' and 'man soxeffect' and couldn't figure it >> out. I tried some sox calls that produced wrong output (input channels >> get mixed together), such as >> >> sox 4.wav -c2 12.wav mixer -1,-2 >> sox 4.wav -c2 12.wav mixer -1,2 >> sox 4.wav -c2 12.wav mixer 1,2 >> >> and also >> >> sox 4.wav -c2 12.wav mixer 1,0,0,0,0,1,0,0 >> >> that seemed right (based on 'man soxeffect') but produced an error >> message: >> >> sox mixer: Invalid options specified to mixer while not mixing >> >> Sorry if the question is way too newbie-y... but thanks in advance! >> >> Regards, >> >> Marcelo >> >> ------------------------------------------------------------------------- >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> http://sourceforge.net/services/buy/index.php >> _______________________________________________ >> Sox-users mailing list >> Sox-users@... >> https://lists.sourceforge.net/lists/listinfo/sox-users > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Sox-users mailing list > Sox-users@... > https://lists.sourceforge.net/lists/listinfo/sox-users > > ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Sox-users mailing list Sox-users@... https://lists.sourceforge.net/lists/listinfo/sox-users |
|
|
Re: selecting 2 channels out of 4--- On Sat, 28/6/08, Marcelo Queiroz <mqz.mqz@...> wrote:
> I'm trying to create 2 stereo files out of a 4-channel > wav file, the > first file containing only channels 1 and 2, the second > only channels > 3 and 4. I read 'man sox' and 'man > soxeffect' and couldn't figure it > out. There'll be a new effect in SoX 14.1 (coming soon!) that will do this sort of thing easily, e.g. sox 4.wav 12.wav remix 1 2 sox 4.wav 34.wav remix 3 4 but until then, I think you'll have to do something like sox 4.wav -c1 1.wav mixer -1 sox 4.wav -c1 2.wav mixer -2 sox -M [12].wav 12.wav sox 4.wav 4s.wav swap 3 4 1 2 sox 4s.wav -c1 3.wav mixer -1 sox 4s.wav -c1 4.wav mixer -2 sox -M [34].wav 34.wav (since mixer -3 is broken in 14.0.0). Cheers, Rob __________________________________________________________ Not happy with your email address?. Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Sox-users mailing list Sox-users@... https://lists.sourceforge.net/lists/listinfo/sox-users |
|
|
Re: selecting 2 channels out of 4--- On Sun, 29/6/08, robs <aquegg@...> wrote:
> sox 4.wav -c1 1.wav mixer -1 > sox 4.wav -c1 2.wav mixer -2 > sox -M [12].wav 12.wav > sox 4.wav 4s.wav swap 3 4 1 2 > sox 4s.wav -c1 3.wav mixer -1 > sox 4s.wav -c1 4.wav mixer -2 ^ whoops, might not want to overwrite original file here! __________________________________________________________ Not happy with your email address?. Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Sox-users mailing list Sox-users@... https://lists.sourceforge.net/lists/listinfo/sox-users |
|
|
Re: selecting 2 channels out of 4Thanks, Rob!
I was already using that solution (creating 4 mono files), but thought it was a quick&dirty one, mainly due to my incompetence in doing it right... I wasn't aware that mixer -3 was broken... what about the syntax sox 4.wav -c2 12.wav mixer 1,0,0,0,0,1,0,0 suggested in 'man soxeffect'? Is it something not implemented yet? Thanks! Marcelo On Sat, Jun 28, 2008 at 8:16 PM, robs <aquegg@...> wrote: > --- On Sun, 29/6/08, robs <aquegg@...> wrote: >> sox 4.wav -c1 1.wav mixer -1 >> sox 4.wav -c1 2.wav mixer -2 >> sox -M [12].wav 12.wav >> sox 4.wav 4s.wav swap 3 4 1 2 >> sox 4s.wav -c1 3.wav mixer -1 >> sox 4s.wav -c1 4.wav mixer -2 > ^ whoops, might not want to overwrite original file here! > > > > __________________________________________________________ > Not happy with your email address?. > Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Sox-users mailing list > Sox-users@... > https://lists.sourceforge.net/lists/listinfo/sox-users > ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Sox-users mailing list Sox-users@... https://lists.sourceforge.net/lists/listinfo/sox-users |
|
|
Re: selecting 2 channels out of 4--- On Sun, 29/6/08, Marcelo Queiroz <mqz.mqz@...> wrote:
> what about the > syntax > > sox 4.wav -c2 12.wav mixer 1,0,0,0,0,1,0,0 > > suggested in 'man soxeffect'? Is it something not > implemented yet? I've done a bit more digging (and remembering): the mixer effect is built around a specific set of use-cases and the one you want appears not to be supported, though there was another bug fixed in 14.0.1 and now you can get closer to what you want: sox 4.wav -c2 12.wav mixer 1,0,0,0,0,1,0,0 *does* work in 14.0.1, but sox 4.wav -c2 34.wav mixer 0,0,1,0,0,0,0,1 doesn't. There's no reason why this couldn't be fixed too, but at the time of 14.0.1, I got fed up with fixing bugs in mixer since I concluded that even if I fixed all the bugs, its user interface is difficult to use and would only get worse if support for 5.1 surround sound etc. were to be added; hence the new remix effect in 14.1. Cheers, Rob __________________________________________________________ Not happy with your email address?. Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Sox-users mailing list Sox-users@... https://lists.sourceforge.net/lists/listinfo/sox-users |
| Free Forum Powered by Nabble | Forum Help |