gst-launch-1.0
Build and run a GStreamer pipeline. See also:
gst-inspect-1.0,ffmpeg. More information: https://gstreamer.freedesktop.org/documentation/tools/gst-launch.html.
- Play test video in a window:
gst-launch-1.0 videotestsrc ! autovideosink
- Play test audio and enable verbose output:
gst-launch-1.0 audiotestsrc ! autoaudiosink
- Play a media file in a window:
gst-launch-1.0 playbin uri=:///
- Re-encode a media file:
gst-launch-1.0 filesrc location= ! demux ! dec ! enc ! mux ! filesink location=
- Stream a file to an RTSP server:
gst-launch-1.0 filesrc location= ! rtspclientsink location=rtsp:///
- Force an End Of Stream event if the pipeline is shut down with
<Ctrl c>for containers that require finalization such asmp4:
gst-launch-1.0 videotestsrc ! x264enc ! mp4mux ! filesink location=
- Multiplex together test video and test audio into a file:
gst-launch-1.0 videotestsrc ! ! . audiotestsrc ! ! . name= ! filesink location=
- Enable debug output and dump a pipeline into a
.dotfile which can then be rendered with tools likedot:
GST_DEBUG= GST_DEBUG_DUMP_DOT_DIR= gst-launch-1.0
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
