5

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?

1 Answer 1

1

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"

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .