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

Gst Launch 1.0 / Filter Greyscale Format Shortform

Filter Greyscale Format Shortform

Use gst-launch-1.0 to convert video streams to grayscale format efficiently with minimal overhead.

$
Terminal
gst-launch-1.0 <videotestsrc> ! video/x-raw,format=GRAY8 ! <videoconvert ! autovideosink>

When To Use

Quickly test video output formats in grayscale for development purposes.

Terminal Output

Expected runtime feedback

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

** (gst-launch-1.0:1234): WARNING **: Your video format is now GRAY8.

Setting pipeline to PLAYING ...

** (gst-launch-1.0:1234): INFO **: Video output displayed in grayscale.

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.
<videotestsrc>
videotestsrc
The value supplied for videotestsrc.
<videoconvert ! autovideosink>
videoconvert ! autovideosink
The value supplied for videoconvert ! autovideosink.

How To Run

Execution path

  1. Step 1

    Run the command in your terminal.

  2. Step 2

    Ensure GStreamer is installed and configured properly.

  3. Step 3

    Observe the output video in grayscale format.

Alternative Approaches

Comparable commands in other tools

Alternative video processing tools for the same job.