Record audio from several audio cards in MP3 / 30 minutes chunks
Linux - GeneralThis 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.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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...
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.