Media Decode

The 4Kopen image that we provide comes with various GStreamer components, as well as a suite of STiH418 drivers and firmware.

This means that it should be possible to play a media file (such as Big Buck Bunny or Tears of Steel) using compatible GUI applications such as our build of parole.

gst-apps

If you want to decode video from the command line, then you'll need to use GStreamer more directly - using gst-apps is a great way to get started.

For example:

$ gst-apps ${MY_MEDIA_FILE}

This will build the GStreamer pipeline for you, using elements like decodebin that will do their best to setup and configure the various elements correctly.

gst-launch-1.0

There are a number of reasons why you might prefer a more advanced approach, such as building a GStreamer pipeline more manually.

This can be achieved with the gst-launch-1.0 utility, or from within your own application, using the GStreamer API.

For example:

$ gst-launch-1.0 filesrc location=./bbcone.ts ! tsdemux name=demux \
    demux.video_0_0065 ! queue ! mpegvideoparse ! stvideo ! stdisplaysink \
    demux.audio_0_0066 ! queue ! mpegaudioparse ! staudio ! staudiosink