Two processes recording from LINE-IN?
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
On Saturday 01 October 2005 19.27, Jorge Fábregas wrote:
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
Hi! As far as i know, you can only record one thing at the time from "line in". Its just one input. There are different ways to circumvent that. Plugging a second radio into the CD or DVD internal input on the soundcard for example. You can Listen to a file and Line In at the same time. Just as you would be able to listen to CD and Line In at the same time. Those are all different inputs. The software wouldn't be able to differentiate two mixed soundsources and lay them to two different tracks. They would be a mix of the two. There are "professional" cards that have more than one Line In. But i suspect that is a bit of an overkill for you.
On Saturday 01 Oct 2005 18:27, Jorge Fábregas wrote:
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 don't think you can do it without using jack (which is overkill for this.) Easiest way (and the way I do it) is record both programs into one file and split the file down later offline. It's not an issue with the soundcard. sox dominates the audio device so the second instance can't access it. Dylan -- "The man who strikes first admits that his ideas have given out." (Chinese Proverb)
On Saturday 01 October 2005 20.01, Dylan wrote:
On Saturday 01 Oct 2005 18:27, Jorge Fábregas wrote:
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 don't think you can do it without using jack (which is overkill for this.) Easiest way (and the way I do it) is record both programs into one file and split the file down later offline.
It's not an issue with the soundcard. sox dominates the audio device so the second instance can't access it.
Dylan
-- "The man who strikes first admits that his ideas have given out." (Chinese Proverb)
-- 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
What do you use to separate two different soundsources in the same file??
On Saturday 01 October 2005 2:14 pm, Rikard Johnels wrote:
What do you use to separate two different soundsources in the same file??
Hi Rikard, I'm pretty sure Dylan meant, in this example, that you could use an audio editor to split the radio shows. For example, if a radio show starts a 5pm and ends at 7pm...and another show you want to record starts a 7pm and ends at 8pm...you would use sox to record 3 hours (from 5pm to 8pm) and then you would use something like Audacity to cut the audio (get first one from 5-7 and so on...) The audio here was coming from same soundsource (LINE-IN). HTH, Jorge
On Saturday 01 October 2005 20.23, Jorge Fábregas wrote:
On Saturday 01 October 2005 2:14 pm, Rikard Johnels wrote:
What do you use to separate two different soundsources in the same file??
Hi Rikard,
I'm pretty sure Dylan meant, in this example, that you could use an audio editor to split the radio shows.
For example, if a radio show starts a 5pm and ends at 7pm...and another show you want to record starts a 7pm and ends at 8pm...you would use sox to record 3 hours (from 5pm to 8pm) and then you would use something like Audacity to cut the audio (get first one from 5-7 and so on...)
The audio here was coming from same soundsource (LINE-IN).
HTH, 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
I know that is a way to do it if the shows are sequential. But the original thread was asking for parallel recordings, and that was what i thought Dylan was referring to. :) *More tired than i thought* -- /Rikard ----------------------------------------------------------------------------- email : rikard.j@rikjoh.com web : http://www.rikjoh.com mob : +46 (0)736 19 76 25 ------------------------ Public PGP fingerprint ---------------------------- < 15 28 DF 78 67 98 B2 16 1F D3 FD C5 59 D4 B6 78 46 1C EE 56 >
On Saturday 01 Oct 2005 19:14, Rikard Johnels wrote:
What do you use to separate two different soundsources in the same file??
The OP wasn't asking about two sources in one file, but one recording following on from another. I'd either use sox to split it at a specified time index or do it manually in something like audacity or sweep. -- "The man who strikes first admits that his ideas have given out." (Chinese Proverb)
participants (3)
-
Dylan
-
Jorge Fábregas
-
Rikard Johnels