LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
LinkBack Search this Thread
Old 08-21-2006, 03:20 AM   #1
browny_amiga
Member
 
Registered: Dec 2001
Location: /mnt/UNV/Mlkway/Earth/USA/California/Silicon Valley
Distribution: Kubuntu 10.04, Debian Squeeze, Windoze 7
Posts: 512

Rep: Reputation: 34
How to record ALSA (mixed) output (similar to whatUhear)?


Hi

I have batteling with alsa about an issue and so far could not solve it, so I turn to you esteemed community for aid:

Windows provides a feature that some call "what u hear" which lets you record anything the soundcard plays.
Now assuming the complexe nature of ALSA, I am pretty sure that it provides the same, but how?
(this is talking about a compaq laptop, with one simple soundcard, lspci states "Intel Corporation 82801CA/CAM AC'97 Audio Controller (rev 02)"

I found some posts on the net:
-------------------------------------------- SNIP -----------------------
ALSA also has feature that "secure" audio format makers probably hate with passion: the fact that audio can be copied right back from the sound card...

In theory, this thing can be done using ALSA's PCM device "copy"; like this spell put to ~/.asoundrc:

pcm.copy {
type plug
slave {
pcm hw
}
route_policy copy
}

And then recording things from the card like this:

$ arecord -t wav -D copy target.wav

...but personally, I haven't got this to work; either my skills are lacking, or maybe this won't work properly with the OSS emulation layer that I keep loaded...
----------------------------------------- SNIP ----------------------------

I did as indicated in the post.
As the guys states, it also does not work for me. All I get is as record of the microphone as input, which is not what I want of course.
The PCM device "copy" is also mentioned in the arecord man page, but how it works is not explained.
I am quite confused as to what a PCM device is and how it could solve my problem.

Does anybody possess enough ALSA expertise to help me crack this nut?

Thanks in advance

Markus
 
Old 08-21-2006, 08:38 PM   #2
nephish
Member
 
Registered: Jun 2005
Distribution: arch, ubuntu
Posts: 456

Rep: Reputation: 30
i have always done this with an app called audacity. it is gui, not command line, so may not be what your looking for. You may check it out though.
 
Old 08-21-2006, 09:50 PM   #3
browny_amiga
Member
 
Registered: Dec 2001
Location: /mnt/UNV/Mlkway/Earth/USA/California/Silicon Valley
Distribution: Kubuntu 10.04, Debian Squeeze, Windoze 7
Posts: 512

Original Poster
Rep: Reputation: 34
Hi

I know audacity and I love it. But audacity works only with OSS, right? I tried it and it locks the audio channel or cannot access it, when another application is already playing audio (which I would then use audacity to record it from)

But thanks for the suggestion.

Markus
 
Old 08-21-2006, 10:01 PM   #4
nephish
Member
 
Registered: Jun 2005
Distribution: arch, ubuntu
Posts: 456

Rep: Reputation: 30
oh, yeah, that used to happen to me too. You can use alsa with audacity. you just have to load the alsa-oss modules. Try a modprobe snd ( i think ) not sure, but it can be done. I am using alsa now with audacity. It will create the /dev/dsp that audacity is looking for.
 
Old 08-22-2006, 02:55 PM   #5
browny_amiga
Member
 
Registered: Dec 2001
Location: /mnt/UNV/Mlkway/Earth/USA/California/Silicon Valley
Distribution: Kubuntu 10.04, Debian Squeeze, Windoze 7
Posts: 512

Original Poster
Rep: Reputation: 34
Hmm, but let's say I get audacity running parallel to the other application.
What input would I define in it to record? I ran it alone and checked out all of them: vol, mic, line, video, etc... and all of them seem to either go to the microphone (vol) or to the other inputs. I see no way to record what the soundcard is already playing.
Am I overseeing something?

Markus
 
  


Reply

Tags
alsa, configuration, soundcard


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel-2.6.3 compiled with alsa but xmms alsa output dont plays demmylls Linux - General 3 09-01-2006 04:32 AM
Line-In over Alsa: Record mono only Vinter Linux - Hardware 1 04-10-2006 12:37 AM
Sixpack 5.1 can not record with ALSA renard Linux - General 1 11-28-2005 07:24 PM
CLI....ls (or similar command)...formatting output Basslord1124 Linux - Newbie 2 02-27-2005 05:13 PM
ALSA drivers work well, sound channels mixed up (INTEL AD1981A ICH4) fritex Linux - Software 6 05-30-2003 08:59 PM


All times are GMT -5. The time now is 07:20 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration