Media Transcode

As discussed in the media decode pages, the 4Kopen image comes with various GStreamer components, as well as a suite of STiH418 drivers and firmware.

This means that we can decode and re-encode media.

gst-launch-1.0

An example GStreamer pipeline is provided below.

This pipeline will decode a BBC One stream captured from a DVB-T2 broadcast, and re-encode it.

The original stream is encoded with MPEG2 video and audio, and the output stream is produced using the h.264 and AAC codecs.

This pipeline will also change the container format from an MPEG Transport Stream to the Matroska format.

$ gst-launch-1.0 filesrc location=./bbcone.ts ! tsdemux name=demux \
    matroskamux name=mux ! filesink location=./bbcone.mkv \
    demux.video_0_0065 ! queue ! mpegvideoparse ! stvideo ! sth264encode ! h264parse ! mux.video_0 \
    demux.audio_0_0066 ! queue ! mpegaudioparse ! staudio ! staacencode ! aacparse ! mux.audio_0