Difference between revisions of "IMX8/Multimedia/Gstreamer Support/Pipeline Examples"

From RidgeRun Developer Connection
Jump to: navigation, search
(OpenGL (ES) stream processing)
Line 89: Line 89:
 
<pre style="background:#d6e4f1">
 
<pre style="background:#d6e4f1">
 
gst-launch-1.0 -v videotestsrc is-live=true ! glupload ! glcolorbalance contrast=1.5 hue=-1 saturation=1.6 brightness=0.5 ! glcolorconvert ! gldownload ! glimagesink async=false enable-last-sample=false qos=false sync=false
 
gst-launch-1.0 -v videotestsrc is-live=true ! glupload ! glcolorbalance contrast=1.5 hue=-1 saturation=1.6 brightness=0.5 ! glcolorconvert ! gldownload ! glimagesink async=false enable-last-sample=false qos=false sync=false
 +
</pre>
  
 
<noinclude>{{IMX8/Foot|Installing Gstreamer|Gstreamer Support}}</noinclude>
 
<noinclude>{{IMX8/Foot|Installing Gstreamer|Gstreamer Support}}</noinclude>

Revision as of 16:29, 19 October 2018


NXP Partner Program Registered Vertical.jpg NXP Partner Program Horizontal.jpg
  Index  





IMPORTANT NOTES:

  • NO SUPPORT FOR PLUGINS USING HW ENCODER ACCELERATORS YET.

Pipelines

Audio decoding

gst-launch-1.0 -v filesrc location=<PATH-TO_FILE> ! mpegaudioparse ! beepdec !  alsasink

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 ! waylandsink async=false enable-last-sample=false qos=false sync=false
gst-launch-1.0 -v filesrc location=<PATH-TO_FILE> ! qtdemux  ! h264parse ! queue ! vpudec ! waylandsink async=false enable-last-sample=false qos=false sync=false
gst-launch-1.0 -v filesrc location=<PATH-TO_FILE>  ! qtdemux  ! h264parse ! queue ! vpudec ! glimagesink 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
gst-launch-1.0 -v filesrc location=<PATH-TO_FILE> ! qtdemux  ! h265parse ! queue ! vpudec ! waylandsink async=false enable-last-sample=false qos=false sync=false
gst-launch-1.0 -v filesrc location=<PATH-TO_FILE>  ! qtdemux  ! h265parse ! queue ! vpudec ! glimagesink async=false enable-last-sample=false qos=false sync=false

VP8 decoding

gst-launch-1.0 -v filesrc location=<PATH-TO_FILE> ! matroskademux ! queue ! vpudec ! waylandsink async=false enable-last-sample=false qos=false sync=false
gst-launch-1.0 -v filesrc location=<PATH-TO_FILE> ! matroskademux ! queue ! vpudec ! glimagesink async=false enable-last-sample=false qos=false sync=false

VP9 decoding

gst-launch-1.0 -v filesrc location=<PATH-TO_FILE> ! matroskademux ! queue ! vpudec ! waylandsink async=false enable-last-sample=false qos=false sync=false
gst-launch-1.0 -v filesrc location=<PATH-TO_FILE> ! matroskademux ! queue ! vpudec ! glimagesink async=false enable-last-sample=false qos=false sync=false

Display video stream

gst-launch-1.0 -v videotestsrc is-live=true ! glimagesink async=false enable-last-sample=false qos=false sync=false
gst-launch-1.0 -v v4l2src device=/dev/video0 ! glimagesink async=false enable-last-sample=false qos=false sync=false

OpenGL (ES) stream processing

gst-launch-1.0 -v videotestsrc is-live=true ! glupload ! glcolorbalance contrast=1.5 hue=-1 saturation=1.6 brightness=0.5 ! glcolorconvert ! gldownload ! glimagesink async=false enable-last-sample=false qos=false sync=false


Previous: Installing Gstreamer Index Next: Gstreamer Support



Useful links

Gstreamer-IMX