r3dux.org

A number-pimping side project from the valleys in *NEW* upside-down flavour.

  • Home
  • ABOUT
  • OLD SITE
  • SEARCH
  • FEEDBACK

How To: Enable “Stereo Mix” in PulseAudio and Record Absolutely Any Playing Audio

r3dux | October 23, 2010

I found these instructions on the PulseAudio Wiki a long while back, but they still work (circa Ubuntu 10.10) and are super useful to record streams/record the audio from videos (i.e. YouTube), so I thought I’d put this out here under a different heading to help people find the info…

  1. Install PulseAudio Volume Control by running the following in the Terminal:

    sudo apt-get install pavucontrol
  2. Fire up Audacity and:
    – Go to Preferences by pressing Ctrl+P (or select “Edit” -> “Preferences…” from the drop-down menu).
    – Click the “Devices” .
    – Change the Playback device to “pulse”.
    – Change the Recording device to “pulse”.

  3. Open PulseAudio Volume Control (“Applications” -> “Sound & Video” -> “PulseAudio Volume Control”) and leave it open.
    The first time you use a recording program you need to to edit the recording settings of PulseAudio Volume Control. It should remember your settings after rebooting.

  4. Open Audacity and hit the “Record” button.

  5. While Audacity is recording, open PulseAudio Volume Control and select the “Recording” tab. It will show “Alsa plug-in Audacity. Alsa capture from” and a combo-box. Choose the “Monitor of internal audio…” if you use an internal sound card.
  6. Note: You need to select another monitor if you use any playback device other than an internal sound card. For example, when I play sound with Microsoft LifeChat headphones connected to my computer via USB, I select the “Monitor of Microsoft LifeChat Analogue Stereo” to capture from it with Alsa.

  7. Check Audacity, it should be recording now.

Sling a note in the comments if you’re having any difficulty enabling recording of the “stereo-mix” output – not that you should come up against any problems, but I’m happy to work on clarifying the wording if it’s necessary…

Cheers!

No related posts.

Categories
Linux, Music
Tags
Audacity, PulseAudio, Record, Stereo Mix, Stream
Comments rss
Comments rss
Trackback
Trackback
Print This Post Print This Post

« How To: Draw Motion-Blur/Trails using the Accumulation Buffer in OpenGL Deer Tick – Twenty Miles »

14 Responses to “How To: Enable “Stereo Mix” in PulseAudio and Record Absolutely Any Playing Audio”

  1. nick says:
    December 13, 2010 at 6:42 pm

    I’ve had this working for months, when I rebooted back into ubuntu from the windows partition of my box it suddenly didn’t work. When I enable recording from internal audio it records my microphone. When I select recording from monitor of internal audio the recording cursor just stops. Any ideas?

    Reply
    • r3dux says:
      December 13, 2010 at 6:52 pm

      Maybe your gstreamer-properties audio sinks are corrupt? Try it from the bash and maybe reset your audio input sink if it’s pointing at something quirky…

      There’s a whole heap of sound-debugging related tom-foolery over at this previous article – maybe something in there will help you get to the root of the problem.

      Reply
      • r3dux says:
        December 13, 2010 at 6:53 pm

        Oh, and to see what I mean: try this.

        Reply
  2. Dewa says:
    April 16, 2011 at 10:49 pm

    Wow, magic! It works perfectly. Thanks for the precious tutorial :-) ))

    Reply
  3. Big AL says:
    July 19, 2011 at 7:54 am

    Hi and thanks for the Tut – Here is my problem your tut works great and I can record audio from an outside source like youtube but I cant record from the microphone at the same time which seems odd – for example – if I play a Keroke song on youtube and want to sing along and record the whole thing in audacity only the audio from Youtube will record not the person sing through the Mic – Any help you can give I would be thankful for

    Reply
    • r3dux says:
      July 19, 2011 at 4:07 pm

      Hi there,

      I’m not sure if you can set multiple audio sinks to record at the same time – I have a feeling it’s going to be either from the stereo mix or from the microphone (at least in my experience).

      You can easily do what you want in a two step process, though:
      - Record the stereo mix in Audacity as per normal, then
      - Listen to it on a headset and sing-along and record to microphone, then finally,
      - Mix the two together in audacity.

      Okay, maybe that was three steps, and it means you can’t do the entire thing “live” – but you can definitely play multiple recordings at once in audacity, or play one while recording another (so play the stereo-mix-recording while actually recording from mic – but this wouldn’t be any better than just cranking up the audio and singing over the top of it so both audio and voice come in through the mic input).

      Also, sound in Linux is a horrible, dreadful mess – you’ll be tearing your hair out in no time. I can’t even get my own tutorial to work in Ubuntu 11.04 because the “pulse” selection for recording input has gone, and instead there’s a thousand pulse:Input Mix 0, pulse:Input Mix 1′s and rubbish. None of which do a damned thing as far as I can tell – and I’ve tried them all:


      This list would not even fit on the screen to capture, there are near a dozen entries below this. And this is for a laptop with a single internal sound card… That. Is. Wrong.

      And of course, this is when the pavucontrol applet itself isn’t segfaulting when choosing “stereo monitor of internal audio”:

      [74898.476979] pavucontrol[11529]: segfault at 0 ip 000000000040d502 sp 00007fffda797bb0 error 4 in pavucontrol[400000+38000]

      I hate sound in Linux, and would strongly recommend you record using something which isn’t Ubuntu, or even Linux. Mint or Debian might in some way be sane for recording audio, and you could always try it out with a live CD, but audio in Ubuntu itself is just a time-vampire.

      Cheers!

      Reply
  4. Big AL says:
    July 20, 2011 at 10:36 am

    Hey brother thanks for the Help – Sound seems to be all over the map when it comes to Linux – I was thinking of doing some podcasting using Linux but its not as easy as I thought it would be at least compared to the Other OS’s – The only thing I can think of is to maybe using 2 computers one to talk with and do interviews and maybe pump that audio to a second computer through its Mic input and have
    Audacity set up there to record. Then I should have it all at least I think – Hmm 2 computers seems a bit Much – I cant believe there is not a program that runs on Linux that can make it record all audio but any ways I look forward to reading more on your Blog thanks Again and God Bless

    Reply
  5. Big AL says:
    July 20, 2011 at 10:45 am

    You Know One other thing I was thinking Maybe a virtual computer could Help
    My system is Kind of Beefy so I should have plenty of resources to spear

    I don’t know just a thought – I think I will try – It cant hurt lets see what happens

    Reply
    • r3dux says:
      July 20, 2011 at 11:02 am

      There’s a podcast called Linux Outlaws which did a special episode on the software and hardware they use to produce their podcast which I listened to a while back – that might help point you in the right direction… I can’t seem to find the particular episode in their archives, but I’ve only had a brief look as I’m going to be rushing about like mad today. Have a look to see if you can find, and if not let me know and I’ll dig through my downloaded episodes, and I’ll post it up somewhere for you.

      Oh, and a virtual machine might be a way you could get this done, maybe! I’ll have a think about it and see what I can knock together (might be do-able, might not work at all – would have to try to find out!)

      Cheers!

      Reply
  6. How to enabled the Mix channel on a snd-hda-intel soundcard? says:
    August 29, 2011 at 9:14 am

    [...] I found a work-around to recording any audio via pulse and audacity. Here is the link and it took only a few easy steps. http://r3dux.org/2010/10/how-to-enab…playing-audio/ [...]

    Reply
  7. No audio after setting a default soundcard says:
    August 29, 2011 at 9:28 am

    [...] Long story short, I found a work-around to record any audio with pulaseaudio and audacity. http://r3dux.org/2010/10/how-to-enab…playing-audio/ Now I can play and record audio from internet [...]

    Reply
  8. CleverNickname says:
    October 16, 2012 at 6:04 am

    Thanks, bro. This worked great.

    Reply
  9. Prairiedog says:
    November 29, 2012 at 4:53 am

    Solved it for me too, thanks!

    Reply
  10. Anonymous says:
    January 13, 2013 at 7:32 pm

    works for ubuntu 12
    +1

    Reply

Leave a Reply

Click here to cancel reply.

Translate

Categories

Archives

Tags

3D ActionScript ActionScript 3.0 Adobe AI Ballarat Bash C++ Class Cover CS4 Effect Error Film Flash FPS GLFW Glitch GLSL Hack How-To install Java Kinect Linux Live Mash-Up Microsoft Motion mount OpenGL Particle Problem PS3 Remix Retro script Slides Sound Ubuntu Video VirtualBox Wii Windows XBox

Gamercard

OpenR3dux

Misc.

Flattr this

RSS Feed

r3dux twitter feed



“Those who say it cannot be done should not interrupt the person doing it.”

 - Chinese proverb.

rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox