swick / glc

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

capturing does not actually work with pulseaudio #12

Open lemmy04 opened 11 years ago

lemmy04 commented 11 years ago

I'm trying to capture the audio of a game, but when I extract the (seemingly existing) audio stream later i get a wave file that is only 44 bytes long.

What am I doing wrong? I'm running KDE 4.9 on openSUSE 12.2 where pulseaudio is the default and can't be gotten rid of...

I'm calling glc-capture like this: glc-capture -b back -i -p ut2004

sriemer commented 10 years ago

Got the same issue. This stuff is broken, unmaintained and needs a major rework. Also error handling has been neglected completely which makes debugging quite difficult.

But what works for me is the stuff in /usr/share/doc/libpulse-dev/examples/: pacat-simple.c parec-simple.c

These record and play all pulseaudio stuff reliably on my system. I guess I have to integrate them into GLC. Anyone who wants to help?

Kabup commented 8 years ago

It works here, the problem was not in the program, it was in my pulseaudio configuration, glc-capture was recording audio from my mic, and the mic was off. So, there was no sound. After I did change things in pulseaudio mixer, it works like a charm. I'm using the 0.5.8-git- version.

To record audio and mic, you'll need to create a monitor in pulseaudio, redirect the sound of the mic and application/game to this monitor, and make the glc-capture record from the monitor. Here, I'm using export PULSE_SOURCE="ladspa_output.mbeq_1197.mbeq.monitor" before I launch glc-capture. Check the pulseaudio docs.