LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

gst-launch-1.0

build and run GStreamer multimedia pipelines

TLDR

Play a video file
$ gst-launch-1.0 filesrc location=[video.mp4] ! decodebin ! autovideosink
copy
Display test video pattern
$ gst-launch-1.0 videotestsrc ! autovideosink
copy
Play audio file
$ gst-launch-1.0 filesrc location=[audio.mp3] ! decodebin ! autoaudiosink
copy
Display webcam
$ gst-launch-1.0 v4l2src ! autovideosink
copy
Stream from RTSP
$ gst-launch-1.0 rtspsrc location=[rtsp://url] ! decodebin ! autovideosink
copy
Verbose output
$ gst-launch-1.0 -v videotestsrc ! autovideosink
copy
Send EOS on interrupt
$ gst-launch-1.0 -e filesrc location=[video.mp4] ! decodebin ! autovideosink
copy

SYNOPSIS

gst-launch-1.0 [options] pipeline-description

DESCRIPTION

gst-launch-1.0 builds and runs GStreamer multimedia pipelines from the command line. Elements are linked with ! (exclamation mark), and properties are set with name=value syntax.Caps filters constrain formats between elements (e.g., video/x-raw,width=640,height=480). Use decodebin or playbin for automatic codec selection.

PARAMETERS

-v, --verbose

Verbose output.
-e, --eos-on-shutdown
Send EOS on interrupt for clean shutdown.
--gst-debug-level N
Set debug level (0-9).
-q, --quiet
Suppress status output.

SEE ALSO

Copied to clipboard
Kai