How can I capture the audio output with GStreamer?

来源:互联网 发布:时标网络计划图软件 编辑:程序博客网 时间:2024/05/13 10:45

1
down votefavorite

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?

shareimprove this question
 

1 Answer

activeoldestvotes
up vote0down voteaccepted

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.monitorand you'd change your pipeline's input to

pulsesrc device = "alsa_output.pci-0000_80_01.0.analog-stereo.monitor"
0 0
原创粉丝点击