Build and run a GStreamer pipeline. More information: https://gstreamer.freedesktop.org/documentation/tools/gst-launch.html?gi-language=c.
gst-launch-1.0 videotestsrc ! xvimagesink
gst-launch-1.0 playbin uri=protocol://host/path/to/file
gst-launch-1.0 filesrc location=path/to/file ! file_typedemux ! codec_typedec ! codec_typeenc ! file_typemux ! filesink location=path/to/file
gst-launch-1.0 filesrc location=path/to/file ! rtspclientsink location=rtsp://host_IP/path/to/file