From bd361dadf5468010d99db7286c754a70ac54d962 Mon Sep 17 00:00:00 2001 From: Managor <42655600+Managor@users.noreply.github.com> Date: Fri, 27 Jun 2025 19:37:18 +0300 Subject: [PATCH] gst-launch-1.0: refresh page (#16972) --- pages/common/gst-launch-1.0.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/pages/common/gst-launch-1.0.md b/pages/common/gst-launch-1.0.md index 471aa8a540..2b4382b7d8 100644 --- a/pages/common/gst-launch-1.0.md +++ b/pages/common/gst-launch-1.0.md @@ -1,11 +1,16 @@ # gst-launch-1.0 > Build and run a GStreamer pipeline. +> See also: `gst-inspect-1.0`. > More information: . - Play test video in a window: -`gst-launch-1.0 videotestsrc ! xvimagesink` +`gst-launch-1.0 videotestsrc ! autovideosink` + +- Play test audio: + +`gst-launch-1.0 audiotestsrc ! autoaudiosink` - Play a media file in a window: @@ -18,3 +23,11 @@ - Stream a file to an RTSP server: `gst-launch-1.0 filesrc location={{path/to/file}} ! rtspclientsink location=rtsp://{{host_IP}}/{{path/to/file}}` + +- Force an End Of Stream event if the pipeline is shut down with `` for containers that require finalization such as `mp4`: + +`gst-launch-1.0 {{[-e|--eos-on-shutdown]}} videotestsrc ! x264enc ! mp4mux ! filesink location={{path/to/file.mp4}}` + +- Multiplex together test video and test audio into a file: + +`gst-launch-1.0 {{[-e|--eos-on-shutdown]}} videotestsrc ! x264enc ! {{element_name}}. audiotestsrc ! opusenc ! {{element_name}}. matroskamux name={{element_name}} ! filesink location={{path/to/file.mkv}}`