i.MX8 - Multimedia - Gstreamer Support - Pipeline Examples
IMPORTANT NOTES:
- NO PIPELINE HAS BEEN TESTED.
- NO SUPPORT FOR PLUGINS USING HW ACCELERATORS YET.
Pipelines
Audio playback
gst-launch-1.0 -v filesrc location=thesong.mp3 ! decodebin ! audioconvert ! pulsesink
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 ! mp4mux ! filesink location=test.mp4
gst-launch-1.0 -v -e v4l2src device=/dev/video0 ! queue ! x264enc ! matroskamux ! filesink location=test.mkv
H.264 decoding
gst-launch-1.0 -v filesrc location=<PATH-TO_FILE> ! qtdemux ! h264parse ! queue ! avdec_h264 ! xvimagesink async=false enable-last-sample=false qos=false sync=false
H.265 decoding
gst-launch-1.0 -v filesrc location=<PATH-TO_FILE> ! qtdemux ! h265parse ! queue ! avdec_h265 ! xvimagesink async=false enable-last-sample=false qos=false sync=false
VP8 decoding
gst-launch-1.0 -v filesrc location=<PATH-TO_FILE> ! matroskademux ! queue ! vp8dec ! xvimagesink async=false enable-last-sample=false qos=false sync=false
VP9 decoding
gst-launch-1.0 -v filesrc location=<PATH-TO_FILE> ! matroskademux ! queue ! vp9dec ! xvimagesink async=false enable-last-sample=false qos=false sync=false
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