gst-launch-1.0

Build and run a GStreamer pipeline. More information: <https://gstreamer.freedesktop.org/documentation/tools/gst-launch.html?gi-language=c>.

Install

All systems
curl cmd.cat/gst-launch-1.0.sh
Debian Debian
apt-get install gstreamer1.0-tools
Ubuntu
apt-get install gstreamer1.0-tools
Alpine
apk add gstreamer
Arch Arch Linux
pacman -S gstreamer
image/svg+xml Kali Linux
apt-get install gstreamer1.0-tools
CentOS
yum install gstreamer1
Fedora
dnf install gstreamer1
Windows (WSL2)
sudo apt-get update sudo apt-get install gstreamer1.0-tools
OS X
brew install gstreamer
Raspbian
apt-get install gstreamer1.0-tools
Docker
docker run cmd.cat/gst-launch-1.0 gst-launch-1.0 powered by Commando

Build and run a GStreamer pipeline. More information: <https://gstreamer.freedesktop.org/documentation/tools/gst-launch.html?gi-language=c>.

  • 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_typedemux ! codec_typedec ! codec_typeenc ! file_typemux ! 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

© tl;dr; authors and contributors