2025-03-14 21:59:59 -06:00
|
|
|
# gst-launch-1.0
|
|
|
|
|
|
|
|
|
|
> Build and run a GStreamer pipeline.
|
2025-05-08 12:26:01 -06:00
|
|
|
> More information: <https://gstreamer.freedesktop.org/documentation/tools/gst-launch.html>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Play test video in a window:
|
|
|
|
|
|
|
|
|
|
`gst-launch-1.0 videotestsrc ! xvimagesink`
|
|
|
|
|
|
|
|
|
|
- Play a media file in a window:
|
|
|
|
|
|
|
|
|
|
`gst-launch-1.0 playbin uri={{protocol}}://{{host}}/{{path/to/file}}`
|
|
|
|
|
|
|
|
|
|
- Re-encode a media file:
|
|
|
|
|
|
|
|
|
|
`gst-launch-1.0 filesrc location={{path/to/file}} ! {{file_type}}demux ! {{codec_type}}dec ! {{codec_type}}enc ! {{file_type}}mux ! filesink location={{path/to/file}}`
|
|
|
|
|
|
|
|
|
|
- Stream a file to an RTSP server:
|
|
|
|
|
|
|
|
|
|
`gst-launch-1.0 filesrc location={{path/to/file}} ! rtspclientsink location=rtsp://{{host_IP}}/{{path/to/file}}`
|