IMX6 GStreamer Pipelines - SDK Turrialba

From RidgeRun Developer Connection
Revision as of 09:35, 6 May 2013 by Efernandez (Talk | contribs)

Jump to: navigation, search

*********************PAGE UNDER CONSTRUCTION*********************

The following examples show the usage of GStreamer with the RR iMX6 SDK Turrialba.

Video Preview

Display videotest pattern

gst-launch -v videotestsrc ! mfw_v4lsink

Display only video

This pipeline supports all the containers supported by aiurdemux and formats supported by vpudec.

Containers: ogg, matroska, webm, quicktime, m4a, 3gp, mpeg and flv.

Formats: H264, H263, mpeg

gst-launch -v filesrc location= <testvideo> typefind=true ! aiurdemux ! queue ! vpudec ! mfw_v4lsink

Video + Audio decoding

gst-launch filesrc location= <testvideo> typefind=true ! aiurdemux name=demux demux. \
! queue max-size-buffers=0 max-size-time=0 ! vpudec ! mfw_v4lsink demux. ! queue max-size-buffers=0 max-size-time=0 ! \
beepdec ! audioconvert ! 'audio/x-raw-int, channels=2' ! alsasink

Video Encoding

Videotestsrc H-264 codec in avi container

gst-launch videotestsrc ! queue ! vpuenc codec=6 ! matroskamux ! filesink location=test.avi

Video Transcoding

QuickTime to mkv

gst-launch filesrc location= typefind=true ! aiurdemux ! vpudec ! vpuenc ! matroskamux ! filesink location= output.mkv

Audio Playback

MultiFormat audio Playback

This pipeline decodes the formats supported by the beepdec decoder.

Formats: mpeg, AAC and vorbis.

gst-launch filesrc location= <audiotest> ! mpegaudioparse ! beepdec ! audioconvert ! alsasink

Audio Encoding

WAV to mp3

gst-launch filesrc location= test.wav ! wavparse ! mfw_mp3encoder ! filesink location= test.mp3