sox-users@lists.sourceforge.net unofficial mirror
 help / color / mirror / code / Atom feed
* Capturing Only 1 Channel of a Stereo Device
@ 2017-03-13 23:51 Kenny Koller
  2017-03-14 12:56 ` Måns Rullgård
  0 siblings, 1 reply; 2+ messages in thread
From: Kenny Koller @ 2017-03-13 23:51 UTC (permalink / raw)
  To: sox-users


[-- Attachment #1.1: Type: text/plain, Size: 501 bytes --]

We have been using Sox, a Mac, and a Focusrite Scarlett 2i2 (configured to
be the default audio input) to capture samples from an electret microphone.
We often capture data for several hours and will use the command below to
do so. Is it possible to only capture one channel of the device to keep the
file sizes smaller?

Thanks.

$ ./rec test.raw

Input File     : 'default' (coreaudio)

Channels       : 2

Sample Rate    : 96000

Precision      : 32-bit

Sample Encoding: 32-bit Signed Integer PCM

[-- Attachment #1.2: Type: text/html, Size: 2229 bytes --]

[-- Attachment #2: Type: text/plain, Size: 202 bytes --]

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

[-- Attachment #3: Type: text/plain, Size: 158 bytes --]

_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Capturing Only 1 Channel of a Stereo Device
  2017-03-13 23:51 Capturing Only 1 Channel of a Stereo Device Kenny Koller
@ 2017-03-14 12:56 ` Måns Rullgård
  0 siblings, 0 replies; 2+ messages in thread
From: Måns Rullgård @ 2017-03-14 12:56 UTC (permalink / raw)
  To: Kenny Koller; +Cc: sox-users

Kenny Koller <kenny@understoryweather.com> writes:

> We have been using Sox, a Mac, and a Focusrite Scarlett 2i2 (configured to
> be the default audio input) to capture samples from an electret microphone.
> We often capture data for several hours and will use the command below to
> do so. Is it possible to only capture one channel of the device to keep the
> file sizes smaller?
>
> Thanks.
>
> $ ./rec test.raw
> Input File     : 'default' (coreaudio)
> Channels       : 2
> Sample Rate    : 96000
> Precision      : 32-bit
> Sample Encoding: 32-bit Signed Integer PCM

Use "remix 1" to discard the second channel.  The Focusrite device
probably doesn't support capturing only one channel.

-- 
Måns Rullgård

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-03-14 13:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-13 23:51 Capturing Only 1 Channel of a Stereo Device Kenny Koller
2017-03-14 12:56 ` Måns Rullgård

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/sox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).