gst-launch-1.0 Verified current stable Not installed? Video Processing

Gst Launch 1.0 / Create Pipewire Node V4l2 Linux

Create Pipewire Node V4l2 Linux

Use gst-launch-1.0 to create a PipeWire node from a V4L2 video source on Linux.

$
Terminal
gst-launch-1.0 v4l2src device=</dev/video0> ! videoconvert ! pipewiresink mode=provide stream-properties="properties,media.class=Video/Source" client-name=<Virtual Camera>

When To Use

Use this command to create a virtual camera node from a V4L2 source.

Command Builder

Tune the command before you copy it

Back to syntax
$
Generated Command
gst-launch-1.0 v4l2src device=</dev/video0> ! videoconvert ! pipewiresink mode=provide stream-properties="properties,media.class=Video/Source" client-name=<Virtual Camera>

Terminal Output

Expected runtime feedback

Simulated preview
>
Output
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock

Command Breakdown

What each part is doing

gst-launch-1.0
Base Command
The executable that performs this operation. Here it runs Gst Launch 1.0 before the shell applies any redirect operators.
</dev/video0>
dev video0
The value supplied for dev video0.
<Virtual Camera>
Virtual Camera
The value supplied for Virtual Camera.

How To Run

Execution path

  1. Step 1

    Install GStreamer and PipeWire on your Linux system.

  2. Step 2

    Run the command with the appropriate device and client name.

  3. Step 3

    Verify the PipeWire node is created successfully.

Alternative Approaches

Comparable commands in other tools

Alternative video processing tools for the same job.