Gstreamer cheat sheet

Warning: Parameter 1 to Cite::clearState() expected to be a reference, value given in /storage/content/85/1005285/ on line 204 From MyLabWiki
Revision as of 13:49, 19 June 2010 by Alex (Talk | contribs)

Jump to: navigation, search

This page contains various shortcuts to achieving specific functionality using Gstreamer. These functionalities are mostly related to my Digital Video Transmission experiments. There is no easy to read "user manual" for gstreamerbut the online the plugin documentation[1] often contains command line examples in addition to the API docs. Other sources of documentation:

  • The manual page for gst-launch
  • The gst-inspect tool
  • Online tutorials

Video Test Source

Webcam Capture

The aspectratiocrop[2] plugin can be used to convert the video stream to a specific aspect ratio:

 gst-launch v4l2src ! video/x-raw-yuv,width=640,height=480,framerate=15/1 ! aspectratiocrop aspect-ratio=16/9 ! ffmpegcolorspace ! xvimagesink

Network Streaming

Encoding and Muxing

Decoding and Demuxing


Text Overlay

Time Overlay

Elapsed time can be added using the

Alternatively, cairotimeoverlay[3] can be used but it doesn't seem to have any properties:

 gst-launch videotestsrc ! cairotimeoverlay ! autovideosink


  1. Gstreamer documentation
  2. GStreamer Good Plugins 0.10 Plugins Reference Manual – aspectratiocrop
  3. GStreamer Good Plugins 0.10 Plugins Reference Manual – cairotimeoverlay