You are not logged in.

#1 2014-07-05 14:04:57

rayanamukami
Member
Registered: 2014-04-19
Posts: 8

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)

Offline

#2 2014-07-08 01:56:42

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: Unable to record internal audio with RecordMyDesktop

You might want to take a look here and here.

Offline

Board footer

Powered by FluxBB