ALSA: Recording Playback Audio with HDA-Intel

Hello,
My alsa-info. I only use analog output.
Alsamixer looks like this: http://ompldr.org/vYmE4Mw http://ompldr.org/vYmE4NA
I would like to record audio which is being played back on my computer. I need it for recording of gameplay videos. I want to use only ALSA for this and want to avoid PulseAudio, if possible.
Recording audio playing on the computer with Alsamixer tells me that I should use the "Mix" control of the Capture device. However, HDA-Intel appears not to provide such a control.
Does anyone know how I can create such control? Or perhaps I can somehow fake a capture device, that in fact simply plays back the hw:0,0 playback device?
Perhaps the snd-aloop module is a solution.
I will now start reading about .asoundrc files but wanted to leave this question here, because I feel that I'm likely to fail in my search for knowledge.
Cheers

I can't see a straightforward way to configure icecast to do this on the Arch Wiki.
I tried alsaloop, but it blocks devices when in use. Maybe I'm doing it wrong.
alsaloop -C hw:0,0 -P hw:0,0 -t 10000
I'm not the first to have this problem (thread of 2010-05-22)
I managed to get play-to-file working but ffmpeg doesn't seem to be able to handle the raw output and I'd have to make "default" play to file, as most games don't allow to set what alsa device to use for sound.

Similar Messages

  • Unable to record internal audio with RecordMyDesktop

    In order to record sound and video from my desktop, I installed RecordMyDesktop (https://wiki.archlinux.org/index.php/RecordMyDesktop) and followed the instructions from post #4 and #6 on a thread about "Recording internal audio with alsa and recordmydesktop" (https://bbs.archlinux.org/viewtopic.php … 3#p1359593). When I try to record with "recordmydesktop --device looprec", it will not start recording and closes with the following error:
    Initial recording window is set to:
    X:0 Y:0 Width:1920 Height:1080
    Adjusted recording window is set to:
    X:0 Y:4 Width:1920 Height:1072
    Your window manager appears to be i3
    Initializing...
    Buffer size adjusted to 4096 from 4096 frames.
    Opened PCM device looprec
    Couldn't set format.
    Error while opening/configuring soundcard looprec
    Try running with the --no-sound or specify a correct device.
    If this information would be helpful, I use alsamixer and "aplay -l" gives the following:
    **** List of PLAYBACK Hardware Devices ****
    card 0: PCH [HDA Intel PCH], device 0: ALC663 Analog [ALC663 Analog]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 0: PCH [HDA Intel PCH], device 1: ALC663 Digital [ALC663 Digital]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: Loopback [Loopback], device 0: Loopback PCM [Loopback PCM]
    Subdevices: 7/8
    Subdevice #0: subdevice #0
    Subdevice #1: subdevice #1
    Subdevice #2: subdevice #2
    Subdevice #3: subdevice #3
    Subdevice #4: subdevice #4
    Subdevice #5: subdevice #5
    Subdevice #6: subdevice #6
    Subdevice #7: subdevice #7
    card 1: Loopback [Loopback], device 1: Loopback PCM [Loopback PCM]
    Subdevices: 8/8
    Subdevice #0: subdevice #0
    Subdevice #1: subdevice #1
    Subdevice #2: subdevice #2
    Subdevice #3: subdevice #3
    Subdevice #4: subdevice #4
    Subdevice #5: subdevice #5
    Subdevice #6: subdevice #6
    Subdevice #7: subdevice #7
    I can record from the microphone with with the command "recordmydesktop". I succeeded in recording the internal audio with audacity by choosing the device "looprec" for recordings. I'm not sure why RecordMyDesktop gives an error while Audacity does not. Below is my ~/.asoundrc, which I copied from the aforementioned thread. I am not knowledgeable, but I guess there is a mistake in it? Would you please assist me solving this error? Thank you for your time.
    pcm.!default {
    type asym
    playback.pcm "LoopAndReal"
    #capture.pcm "looprec"
    capture.pcm "hw:0,0"
    pcm.looprec {
    type hw
    card "Loopback"
    device 1
    subdevice 0
    pcm.LoopAndReal {
    type plug
    slave.pcm mdev
    route_policy "duplicate"
    pcm.mdev {
    type multi
    slaves.a.pcm pcm.MixReale
    slaves.a.channels 2
    slaves.b.pcm pcm.MixLoopback
    slaves.b.channels 2
    bindings.0.slave a
    bindings.0.channel 0
    bindings.1.slave a
    bindings.1.channel 1
    bindings.2.slave b
    bindings.2.channel 0
    bindings.3.slave b
    bindings.3.channel 1
    pcm.MixReale {
    type dmix
    ipc_key 1024
    slave {
    pcm "hw:0,0"
    rate 48000
    #rate 44100
    periods 128
    period_time 0
    period_size 1024 # must be power of 2
    buffer_size 8192
    pcm.MixLoopback {
    type dmix
    ipc_key 1025
    slave {
    pcm "hw:Loopback,0,0"
    rate 48000
    #rate 44100
    periods 128
    period_time 0
    period_size 1024 # must be power of 2
    buffer_size 8192
    Last edited by rayanamukami (2014-07-05 14:05:20)

    You might want to take a look here and here.

  • Mic only seems to record / playback audio in LEFT channel/speaker

    when i record videos / audio with my phone, online playback only comes from the LEFT speaker.
    ie:
    http://www.facebook.com/video/video.php?v=427597527682&ref=mf
    this has occurred with every video.
    anyone else having this?

    i'm not talking about on the phone itself.
    if i import the audio from something i record, it's only the left channel. not the split mono, as it should be,

  • [SOLVED] ALSA no sound interrnal speaker with HDA Intel PCH

    Hi, i have no sound from the internal speaker of my laptop but the headphones work.
    configuration : http://www.alsa-project.org/db/?f=68a08 … 6d1a1242ae
    i have tried to install the driver from realtek and to add the option "model=auto", "model=generic", "model=3stack" to the snd-hda-intel" module without success.
    the command "aplay -vv -D hw:0,0  /usr/share/sounds/alsa/test.wav" plays a sound only through the headphones.
    have you any idea to help me ?
    thanks
    Last edited by walkyrie (2012-06-02 13:22:49)

    This seems pretty similar to my issue... No sound from my from headphone output at all... I do get sound from the rear output BUT it stops when I plug in the front one!
    Ran the monitor option on the python script and see the following...
    PLUG HEADPHONES IN:
    ======================================
    Diff for codec 0/2 (0x11060441):
    +++
    @@ -220,17 +220,16 @@
       Control: name="Line-Out Jack", index=0, device=0
       Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
       Amp-Out vals: [0x00 0x00]
       Pincap 0x0001001c: OUT HP EAPD Detect
       EAPD 0x2: EAPD
       Pin Default 0x01014010: [Jack] Line Out at Ext Rear
         Conn = 1/8, Color = Green
         DefAssociation = 0x1, Sequence = 0x0
    -  Pin-ctls: 0x40: OUT
       Unsolicited: tag=0x02, enabled=1
       Power: setting=D0, actual=D0
       Connection: 1
          0x18
    Node 0x25 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
       Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
       Amp-Out vals: [0x80 0x80]
       Pincap 0x0000001c: OUT HP Detect
    ======================================
    PULL HEADPHONES OUT:
    ======================================
    Diff for codec 0/2 (0x11060441):
    +++
    @@ -220,16 +220,17 @@
       Control: name="Line-Out Jack", index=0, device=0
       Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
       Amp-Out vals: [0x00 0x00]
       Pincap 0x0001001c: OUT HP EAPD Detect
       EAPD 0x2: EAPD
       Pin Default 0x01014010: [Jack] Line Out at Ext Rear
         Conn = 1/8, Color = Green
         DefAssociation = 0x1, Sequence = 0x0
    +  Pin-ctls: 0x40: OUT
       Unsolicited: tag=0x02, enabled=1
       Power: setting=D0, actual=D0
       Connection: 1
          0x18
    Node 0x25 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
       Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
       Amp-Out vals: [0x80 0x80]
       Pincap 0x0000001c: OUT HP Detect
    ======================================
    Not a lot of difference, but enough to see that the system sees the event...
    Now I need to know what to do to make sure the sound starts on the front headphone output when the rear one is disconnected, or if they are parallel, not have the sound stop ;-)

  • No sound with HDA Intel HDMI

    I've got no sound with the Intel HDMI (work only with headphone)
    Here are some hardware informations :
    I've run the alsa-info.sh and my informations are there --> http://www.alsa-project.org/db/?f=82540 … 847ccaaccc
    [root@archeee ~]# aplay -l
    **** List of PLAYBACK Hardware Devices ****
    card 0: Intel [HDA Intel], device 0: ALC662 rev1 Analog [ALC662 rev1 Analog]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 0: Intel [HDA Intel], device 1: ALC662 rev1 Digital [ALC662 rev1 Digital]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 1: HDMI [HDA ATI HDMI], device 3: ATI HDMI [ATI HDMI]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    [root@archeee ~]# lsmod | grep snd
    snd_seq_dummy           1099  0
    snd_hda_codec_atihdmi     2051  1
    snd_seq_oss            25304  0
    snd_seq_midi_event      4452  1 snd_seq_oss
    snd_hda_codec_realtek   179443  1
    snd_seq                42628  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
    snd_seq_device          4313  3 snd_seq_dummy,snd_seq_oss,snd_seq
    snd_pcm_oss            33693  0
    snd_mixer_oss          14810  1 snd_pcm_oss
    snd_hda_intel          18921  0
    snd_hda_codec          56728  3 snd_hda_codec_atihdmi,snd_hda_codec_realtek,snd_hda_intel
    snd_hwdep               5102  1 snd_hda_codec
    snd_pcm                57479  3 snd_pcm_oss,snd_hda_intel,snd_hda_codec
    snd_timer              16117  2 snd_seq,snd_pcm
    snd                    43847  11 snd_seq_oss,snd_hda_codec_realtek,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
    soundcore               5007  1 snd
    snd_page_alloc          5809  2 snd_hda_intel,snd_pcm
    DAEMONS Section in rc.conf :
    DAEMONS=(syslog-ng network netfs crond hal alsa)
    The PC is an eeebox EB1006
    http://www.productwiki.com/asus-eeebox-pc-eb1006/
    Things I checked :
    done a alsamixer and seleted HDA ATI HDMI, enabled sound with the m key
    ┌───────────────────────────── AlsaMixer v1.0.22 ────────
    │ Card: HDA ATI HDMI                                   F1:  Help                                                               
    │ Chip: ATI R6xx HDMI                                  F2:  System information
    │ View: F3:[Playback] F4: Capture  F5: All             F6:  Select sound card
    │ Item: S/PDIF                                         Esc: Exit               
    │                                                                             
    │                                                                             
    │                                                                             
    │                                                                             
    │                                                                             
    │                                                                             
    │                                                                             
    │                                     ┌──┐                                     
    │                                     │OO│                                     
    │                                     └──┘                                     
    │                                  < S/PDIF >                                 
    │                                             
    I've readed a lot of thread with the ATI HDMI sound probleme, and my config seems good, but still there is no sound.
    Last edited by drev (2010-02-26 17:17:10)

    I seem to be having the same problem playing HDMI audio.  Do you happen to remember how you got this resolved?
    For any interested parties, my alsa mixer screen looks something like this as well:
    ──────────────────────────── AlsaMixer v1.0.24.2 ─────────────────────────────
    Card: HD-Audio Generic                               F1:  Help               
    Chip: ATI R6xx HDMI                                  F2:  System information
    View: F3:[Playback] F4: Capture  F5: All             F6:  Select sound card 
    Item: S/PDIF                                         Esc: Exit               
                                         ┌──┐                                     
                                         │OO│                                     
                                         └──┘                                     
                                      < S/PDIF >
    Audio works fine through the Realtek chip (HDA ATI SB card). Just not through HDMI.

  • Adobe Connect 9 Meeting Recording Playback & Audio

    Hello All,
    I have noticed a strange issue with my meeting recording playbacks.
    First Adobe Connect 9.0.2
    Windows 7 Platform
    I have noticed that after the recording is over, and I run playback to confirm we got what we need...the connected telephone feed (pgi/centurylink) does not come through on first press of play.
    The video stream (slides, screen share) will run properly, but there is no sound upon first press of play. If I click the scrubber and drag it back to the open, then the audio will start to play.
    I am ok with this work around...however my learners/audience will not be. I am looking for "Press Play and Listen" functionality to keep it simple.
    A curious note (these are often good clues, so I figured I would share) The MP3 player pod which is running in the lobby prior to the start of the speaker, is PC sound and it plays back in the recording with no issue. It is only when the telephone feed starts (layout change, and speaker introduction) that the issue begins.
    Any thoughts?
    Thanks!

    As I understand it, it is on the road map for Adobe. Though I've not heard anything other than rumors, so more information would be hard to provide.
    I don't know of any third party extensions, other than using something like Camtasia or another screen capture tool.

  • Unable to record just audio with Mac Mini - no isight

    I am trying to use Podcast Capture on a mac mini connected to a generic monitor (no isight) and it is unable to initialize the audio subsystem. I am assuming this has to do with it needing a video camera, but surely that isn't required to record an audio only podcast. I have a microphone plugged into the line in and it works successfully in Garageband. Please help!

    Take a look at Soundflower, which will allow you to record audio from any source:
    http://soundflower.en.softonic.com/mac
    http://www.macworld.com/article/1159440/soundflower_capture.html

  • Record streaming audio with XFI Xtreme Audio C

    I just got a new pc with this card and unfortunately it has no what u hear or stereo? mix record option.Can I loop the Digital output device(SPDIF) into the Digital input device(SPDIF) to record streaming audio? I can't install a different card because it will void my extended warranty. Thanks

    I had no trouble recording "what you hear" streaming audio with my extreme audio (pcie). If you are using the same card I'll walk you through it, if you're using the pci version, take a look to see if it's the same and try it. Open Creative console launcher (by clicking the icon in the system tray), select the mixer, find the record ("rec") slider, (on my console it's on the far right) click the little triangle in the box at the top of the slider, select "what u hear", open creative mediasource, hit record, and start the streaming audio.

  • Record streaming audio with Audiophile 2496

    Hi.
    I installed a M-Audio Audiophile 2496 PCI sound card and I have normal output thru speakers. The problem is I can't figure out how to record streaming audio on my computer. I read elsewhere that all I had to do is launch a sound recording app and configure sound input/ output. I have used Sound Studio 2 and Audacity, tweaked thru various settings but to no avail, as I just have no input indication at all. Wd greatly appr your instructions, thanks.

    http://www.ambrosiasw.com/utilities/wiretap/

  • [Solved] Recording internal audio with alsa and recordmydesktop

    I record Let's Plays and wanted to record them with recordmydesktop.
    I first tried to record using ALSA but after reading much threads about that problem I decided to use pulseaudio because it seems to be easier.
    But I want ALSA back so I decided to ask here if anyone knows a solution for the ALSA sound server.
    Can anyone help me?
    Last edited by TheRatze94 (2012-08-31 19:25:42)

    modprobe snd-aloop
    should give you another virtual sound card with an input connected to an output.
    Then set up a /~.asoundrc that let you play the stream to the loopback interface and the real speakers too, i used this in the past and it worked:
    pcm.!default {
    type asym
    playback.pcm "LoopAndReal"
    #capture.pcm "looprec"
    capture.pcm "hw:0,0"
    pcm.looprec {
    type hw
    card "Loopback"
    device 1
    subdevice 0
    pcm.LoopAndReal {
    type plug
    slave.pcm mdev
    route_policy "duplicate"
    pcm.mdev {
    type multi
    slaves.a.pcm pcm.MixReale
    slaves.a.channels 2
    slaves.b.pcm pcm.MixLoopback
    slaves.b.channels 2
    bindings.0.slave a
    bindings.0.channel 0
    bindings.1.slave a
    bindings.1.channel 1
    bindings.2.slave b
    bindings.2.channel 0
    bindings.3.slave b
    bindings.3.channel 1
    pcm.MixReale {
    type dmix
    ipc_key 1024
    slave {
    pcm "hw:0,0"
    rate 48000
    #rate 44100
    periods 128
    period_time 0
    period_size 1024 # must be power of 2
    buffer_size 8192
    pcm.MixLoopback {
    type dmix
    ipc_key 1025
    slave {
    pcm "hw:Loopback,0,0"
    rate 48000
    #rate 44100
    periods 128
    period_time 0
    period_size 1024 # must be power of 2
    buffer_size 8192
    Last edited by kokoko3k (2012-08-31 20:00:00)

  • Cannot record/playback script with certificate in OpenScript.

    Hi all,
    We are trying to record a simple load testing login script with a certificate, in OpenScript.
    But Internet Explorer just "hangs" for a long time where the certificate selection dialog is supposed to show up, then the message "Content-Length: 0 Connection: Keep-Alive" is shown in the browser.
    It doesn't work as an OpneScript functional test either. We can record the functional script, but at playback it fails to select a certificate in the "choose a digital certificate" dialog and eventually gets a timeout.
    Anyone having this problem?
    Axel

    Hi,
    I can't post the information here but might be able to send them on mail if needed.
    Addition: We can not make a simple HTTPS login-script even without a client-side certificate.
    Axel

  • How can I use an external mic to record meeting audio with quicktime player

    I'm trying to use a SoundTech CM-1000 conference mic to record meetings at a conference I am running. 
    I'm using Quicktime for the recordings.
    The SoundTech CM-1000 conference mic does not transmit any sound when connected to the Audio-in plug on my MacBook Pro.
    Does my MacBook Pro require external mics that are also powered - connected via a usb port rather than, or at least in addition to, the audio-in plug, for instance?
    What's happening here?
    Steve

    Macbook Pro does not have a microphone input
    You have two options:
    1 buy a USB mic and connect to a USB port
    2 buy a small very cheap sound mixer that has 3.5 mic level input and a line level out put
    something like this:
    DAP Audio

  • Movie recording playback artifacts with scalable output?

    I've recorded a movie in Captivate 7.01 in demo mode. But I need to have the output scalable. When I publish with scalable html I get all these screen artifacts as the movie plays back. I have video compression turned off and the screen color set to 32 bit? Is there any way to fix this???
    Thanks!

    You need to work out what is the lowest practical resolution of your main target audience group.  If most of your audience is only on 800x600 then by all means build for 800x600.  However, I tend to believe that only a small minority of your users would be on such a resolution.  Given that most people would be on 1024x768, I would tend to build for something around that size.  The ones on 800x600 would of course be disadvantaged. You need to decide if they are a big enough user group to matter.
    Whatever you decide, turning on HTML scaling is going to make everybody's output look worse.

  • Problem with hda-intel

    Hi!
    I'm posting a new topic because i'm sure anyone ever had this problem
    I have a notebook amilo m1437 and i'm going to talk about the integrated subwoofer.. i noticed that it works only if the headphones are plugged in at boot.. seems that headphones work like a "switch" and turn on subwoofer
    does anyone know how i can turn on subwoofer without this trick with headphones?!?! maybe settings something in /proc..
    thanks for help in advance!!
    Last edited by baghera (2007-08-26 18:56:55)

    bump...

  • Problem Recording Audio Stream: audacity, HDA Intel ALC882, Stereo Mix

    Hi,
    I am trying to record an audio stream using Audacity, but I am having problems. From the mixer toolbar dropdown, I have various options for mic, line, cd, but there is no option for 'stereo mix.'  I have looked at alsamixer, and none of the capture channels are muted.  I would be grateful if someone could point me in the correct direction.
    Regards,
    Ian Sutherland

    You need pulseaudio to capture from the mixer. Try this:
    http://www.ubuntugeek.com/sound-solutio … users.html
                    it worked for me in my Lenovo T61 with HDA Intel sound
    Good luck

Maybe you are looking for