Re: [SLE] Two processes recording from LINE-IN?
A lot of the replies are showing a prespective from Windows so I am going to chime in. In the past, you could run several soundcards under MSDOS. With Windows, that kind of stopped. Linux , as a multiuser/multitasking OS, can do multiple recordings provided you investigate all the hardware and software possibilities FIRST. Investigate via google.com: www.google.com/pda?q=Linux+recording++multiple+sound+cards&hl=en&lr=&newwindow=1&safe=off&btnG=Search&site=search and www.linuxgazette.com first. Nothing prevents you from running multiple instances of sox, for example. Linux supports full-duplex soundcards (that allow recording and playback simulteanously) and supports multiple soundcards installed in the system. If you buy a cheap soundcard, you can make it as /dev/dsp2 and most of the packages will accept it. JACK is not overkill as neither of the other audio subsystems. Look and read what you have available and then try it out. You can also investigate as mentioned before one of the more high end cards that turn your Linux box into a recording studio. One of the nice things about those cards are that the analogue circuitry is superior and it recording at professional bitrates. Adam -----Original Message----- From: Jorge Fábregas <fabregasj@prtc.net> Subj: [SLE] Two processes recording from LINE-IN? Date: Sat Oct 1, 2005 1:28 pm Size: 1K To: suse-linux-e@suse.com Hello all, I've been using my Linux box to record radio shows (the radio is connected to my soundcard's line-in). I basically followed the instructions on the "Linux Radio Timeshift HOWTO" on http://www.osl.iu.edu/~tveldhui/radio/ Right now, I want to record a show that starts about the time another show ends. Basically I'll have a script running with the following line: sox -t ossdsp -w -s -r 44100 -c 1 /dev/dsp -t raw show1.raw and while this is running I want to start another script to record other show: sox -t ossdsp -w -s -r 44100 -c 1 /dev/dsp -t raw show2.raw but I get: sox: Can't open input file '/dev/dsp': Device or resource busy. It won't let me record unless the first sox process ends. Is it possible to grab the audio on soundcard while other process is accessing it? I have a soundblaster live card which I think can handle it. I can play music from various players (without using any sound daemon like ESD or ARTS). The card handles the mixing by itself so I don't understand why can't I have two process capturing audio at the same time. I guess playing simultaneously and recording simultaneously aren't the same thing :) Thanks, Jorge -- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
On Saturday 01 October 2005 4:31 pm, Adam Vazquez Kb2jpd Internet Mobile w/ Treo wrote:
Nothing prevents you from running multiple instances of sox, for example.
That's exactly what I want to do, but it seems it's not the way you say. I 'm trying to use multiple instances of sox to record the same source (LINE-IN) (just to different files). I'm not interested in multiple sound cards. I just want to record my LINE-IN with two sox processes but it seems sox will lock the device. I did the google thing and couldn't find anything. Jorge
On Saturday 01 Oct 2005 21:59, Jorge Fábregas wrote:
On Saturday 01 October 2005 4:31 pm, Adam Vazquez Kb2jpd Internet Mobile w/
Treo wrote:
Nothing prevents you from running multiple instances of sox, for example.
That's exactly what I want to do, but it seems it's not the way you say. I 'm trying to use multiple instances of sox to record the same source (LINE-IN) (just to different files).
If this is two radio programmes AT THE SAME TIME then you cannot have them both input through the same source because you can't separate them (unless they are mono and one coming in on each stereo channel.) If they are two programmes where one immediately follows the other then you can simply split the file with any audio editor after the event. Dylan
I'm not interested in multiple sound cards. I just want to record my LINE-IN with two sox processes but it seems sox will lock the device. I did the google thing and couldn't find anything.
Jorge
-- "The man who strikes first admits that his ideas have given out." (Chinese Proverb)
On Saturday 01 October 2005 5:06 pm, Dylan wrote:
s is two radio programmes AT THE SAME TIME then you cannot have them both input through the same source because you can't separate them (unless they are mono and one coming in on each stereo channel.)
I know...
f they are two programmes where one immediately follows the other then you can simply split the file with any audio editor after the event.
I also know.... This is what I want to avoid. I know how to do it but I'm just curious if there's a way sox can record LINE-IN without locking it. I appreciate the comments/help. I'll let you know if I find a way. Thanks, Jorge
On Saturday 01 October 2005 04:59 pm, Jorge Fábregas wrote:
On Saturday 01 October 2005 4:31 pm, Adam Vazquez Kb2jpd Internet Mobile w/
Treo wrote:
Nothing prevents you from running multiple instances of sox, for example.
That's exactly what I want to do, but it seems it's not the way you say. I 'm trying to use multiple instances of sox to record the same source (LINE-IN) (just to different files). I'm not interested in multiple sound cards. I just want to record my LINE-IN with two sox processes but it seems sox will lock the device. I did the google thing and couldn't find anything.
Jorge
Isn't this just a timing problem... where your 2nd execution of sox is starting before the first is finished??? If so, and the programs truely are back-to-back, a simple script to check if sox is already running and loop until it quits would do it. Would seem to me that carefully specifying the startup in cron jobs would also do it.
participants (4)
-
Adam Vazquez Kb2jpd Internet Mobile w/ Treo
-
Bruce Marshall
-
Dylan
-
Jorge Fábregas