Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 08-29-2011, 06:13 PM   #1
LQ Newbie
Registered: Aug 2011
Posts: 3

Rep: Reputation: Disabled
Record audio from several audio cards in MP3 / 30 minutes chunks

Hello, and thanks in advance.

I need to continuosly record audio from 4 fm radios, in 30 minutes chunks. For that, I have 4 FM analog radios, and 4 audio cards in the PC, with a minijack-stereo cable connecting them. Currently I'm using a MS-Windows program called TotalRecorder to record in MP3 from these 4 audio cards, but it hangs frequently -what a surprise, is windoze.

So I need an advice. Which program can be used to do this same task in Linux? I would rather prefer not to use any GUI, because that seems to make the server a little more fragile. I also can use any distro, but would prefer Centos since my other servers are Centos.

Audio quality can be mono / 32 kbps or something like that, because the source are news in FM Radio, not music. MP3 seems to be the best option to record because is widely supported, but in fact the record format can be anything compact that audacity can edit.

Thanks again,
Old 08-30-2011, 01:24 AM   #2
Senior Member
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411

Okay this is a wild option, just bear with me...

Make 4 users, configure a recording software (sound recorder - light and simple) on a different sound card, let them record. Give these "users" access to a common folder to "deliver" the recording...

Admitted, it's a bit rough on the edges...but it's a humble road sign...


Old 08-30-2011, 03:44 AM   #3
LQ Guru
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044
Provided you have selected your recording application... Simply start it 4 times with a different sound card as parameter.

You could write a simple script in bash which starts arecord, kills the pid after 30 minuttes. In the mean time arecord pipes its output in lame for mp3 encoding and writes it to a file.

You can easily start this process 4 times and run in parallel.

I have written such an application in a PHP script (also to record 4 radio channels for archiving purposes). It runs on a headless P-III 600.



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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I record audio CrashedAgain Linux - Software 6 01-12-2007 03:05 PM
audio cd works - mp3's, streaming audio, flash sound don't spoody_goon Linux - Software 7 07-08-2006 03:11 PM
How to record audio AndreTapxure Linux - General 1 08-10-2004 02:50 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:53 AM.

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