gst-launch-1.0 pipewiresrc
Read data from a PipeWire node. More information: https://github.com/PipeWire/pipewire/tree/master/src/gst.
- Listen to the default microphone:
gst-launch-1.0 pipewiresrc ! autoaudiosink
- Specify node to record and view video in a window:
gst-launch-1.0 pipewiresrc target-object= ! autovideosink
- Record video into a file:
gst-launch-1.0 pipewiresrc ! videoconvert ! ! ! ! filesink location=
- Capture a screenshot from a video node:
gst-launch-1.0 pipewiresrc num-buffers=1 ! videoconvert ! ! filesink location=
- Record audio into a file:
gst-launch-1.0 pipewiresrc ! ! ! filesink location=
- Record the monitor of a device:
gst-launch-1.0 pipewiresrc target-object= stream-properties=props,stream.capture.sink=true !
- Multiplex audio and video into a file:
gst-launch-1.0 pipewiresrc do-timestamp=true ! videoconvert ! ! ! . pipewiresrc do-timestamp=true ! ! . name= ! filesink location=
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
