How can I capture the audio output with GStreamer?

4

1

I’d like to capture only the output of a machine using GStreamer.

Using the following command:

gst-launch-1.0 -v alsasrc ! wavenc ! filesink location="output.wav"

I can record the microphone, but how can I record/capture just the audio output?

Michael

Posted 2015-09-05T17:25:35.150

Reputation: 143

Answers

0

If you're looking to capture the output of your soundcard, you'll have to use pulsesrc and set the device property to your soundcard's analog-stereo monitor source. Have a look here.

Here the relevant source would be alsa_output.pci-0000_80_01.0.analog-stereo.monitor and you'd change your pipeline's input to

pulsesrc device = "alsa_output.pci-0000_80_01.0.analog-stereo.monitor"

Mayank Joneja

Posted 2015-09-05T17:25:35.150

Reputation: 16