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?

Giacomo1968
  • 53,069
  • 19
  • 162
  • 212
Michael
  • 153
  • 1
  • 1
  • 5

1 Answers1

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"
Andrews
  • 3
  • 2