i.MX8 - Multimedia - Gstreamer Support - Pipeline Examples
NO PIPELINE HAS BEEN TESTED!
Pipelines
Audio playback
gst-launch-1.0 -v filesrc location=thesong.mp3 ! decodebin ! audioconvert ! pulsesink
Video playback
gst-launch-1.0 -v filesrc location=<PATH-TO_FILE> ! qtdemux ! h264parse ! avdec_h264 ! xvimagesink async=false enable-last-sample=false qos=false sync=false
H.264 encoding
gst-launch-1.0 -v -e videotestsrc is-live=true ! queue ! x264enc ! mp4mux ! filesink location=test.avi
gst-launch-1.0 -v -e v4l2src device=/dev/video0 ! queue ! x264enc ! matroskamux ! filesink location=test.mkv
gst-launch-1.0 -v -e v4l2src device=/dev/video0 ! queue ! x264enc ! mp4mux ! filesink location=test.mp4
Display video stream
gst-launch-1.0 -v videotestsrc is-live=true ! xvimagesink async=false enable-last-sample=false qos=false sync=false
gst-launch-1.0 -v v4l2src device=/dev/video0 ! xvimagesink async=false enable-last-sample=false qos=false sync=false