swick / glc

glc is an ALSA & OpenGL capture tool for Linux.
https://github.com/nullkey/glc/wiki
7 stars 5 forks source link

Can only capture from default pulseaudio device, microphone #10

Open feilen opened 11 years ago

feilen commented 11 years ago

I only seem to be able to capture from the default pulseaudio input, which is configured on my system to be the microphone. I couldn't find any information describing how to select a different audio device, if that is possible. Is there something I'm missing, or is that not supported yet?

swick commented 11 years ago

you should be able to set the device (pactl list) with -a/--audio-devices.

b606 commented 10 years ago

pactl list | grep "Name"

Years later but I think it is still worth noting...

In order to record things from my usb headset (two separate audio files: speaker and microphone), I use something like: glc-capture -p -a "alsa_output.usb-C-Media_Electronics_Inc._USB_PnP_Sound_Device-00-Device.analog-stereo.monitor;alsa_input.usb-C-Media_Electronics_Inc._USB_PnP_Sound_Device-00-Device.analog-mono" -o "$GLCFILE" etc.

pactl stat

gives the names of default sink and source, which in my case was the internal PCI card.

I really lost hours googling around before coming to this thread, so it may be helpful to document this in the glcapture-pulse manual about "-a" or "-p".

For glc without pulseaudio support, the device list can be figured out from (cat /proc/asound/devices).

Thanks for the great job !

Kabup commented 8 years ago

Yes, I did found the same solution, the problem is not with glc-capture, is in your pulseaudio config.

To record audio from mic and game, you'll need to create a monitor in pulseaudio, then redirect the sound of the mic and game to this monitor, and record audio from this monitor in glc-capture.

You can use export PULSE_SOURCE=... before launching the program, it works here. Check the pulseaudio docs.