How to record ALSA (mixed) output (similar to whatUhear)?
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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:
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?
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)
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.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.