← 返回命令列表

Linux command

gst-launch-1.0 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Play a video file

gst-launch-1.0 filesrc location=[video.mp4] ! decodebin ! autovideosink

Display test video pattern

gst-launch-1.0 videotestsrc ! autovideosink

Play audio file

gst-launch-1.0 filesrc location=[audio.mp3] ! decodebin ! autoaudiosink

Display webcam

gst-launch-1.0 v4l2src ! autovideosink

Stream from RTSP

gst-launch-1.0 rtspsrc location=[rtsp://url] ! decodebin ! autovideosink

Verbose output

gst-launch-1.0 -v videotestsrc ! autovideosink

Send EOS on interrupt

gst-launch-1.0 -e filesrc location=[video.mp4] ! decodebin ! autovideosink

说明

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.

参数

-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.

FAQ

What is the gst-launch-1.0 command used for?

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.

How do I run a basic gst-launch-1.0 example?

Run `gst-launch-1.0 filesrc location=[video.mp4] ! decodebin ! autovideosink` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -v, --verbose do in gst-launch-1.0?

Verbose output.