record 4 channels in parallel (console only)

What other apps and distros do you use to round out your studio?

Moderators: MattKingUSA, khz

Post Reply
mathisdt
Posts: 1
Joined: Sun Jun 11, 2017 7:04 pm

record 4 channels in parallel (console only)

Post by mathisdt »

Hello,
I plan to use a Focusrite Scarlett 18i8 2nd Gen. and a Zotac ZBox Nano (fanless Core i3 @ 1.50GHz) to record 4 separate mono channels into 4 separate files and to stream them all separately on an Icecast 2 server (in OGG Vorbis format). I have to start and end the recordings at specific times (unattended, via cron).

At the moment I only record and stream one channel using console-only tools like this:

Code: Select all

nice -n -10 arecord -d $SECONDS -f S16_LE -r 44100 -c 1 -t raw - | \
  oggenc -Q -r -B 16 -C 1 -R 44100 -b 48 -o - - | \
  multitee 0-1,4 4>$AUDIO_DIR/$OGG_FILE | \
  oggfwd $ICECAST_SERVER $ICECAST_PORT $ICECAST_PASSWORD /live.ogg
Does anyone have an opinion on how the four different channels could be handled ideally? Should I spawn four different instances of arecord, each recording another channel? Or is there a possibility using console-only tools to do this more elegantly?

Thanks in advance!
Mathis
AndersBiork
Established Member
Posts: 24
Joined: Tue Nov 15, 2016 12:11 pm
Has thanked: 6 times
Been thanked: 5 times

Re: record 4 channels in parallel (console only)

Post by AndersBiork »

Maybe ecasound could be the right tool for your recording needs?
I have only used it for stereo track recording but it should be capable of multitrack.
Check it out https://ecasound.seul.org/ecasound/

Anders

My mother tongue is swedish. Running KXstudio on Xubuntu 22.04. No wine. No whine. But beers.

Post Reply