IMX8/Multimedia/Gstreamer Support/Pipeline Examples: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<noinclude>{{IMX8/Head}}</noinclude> | <noinclude>{{IMX8/Head}}</noinclude> | ||
NO PIPELINE HAS BEEN TESTED! | |||
=Pipelines= | |||
==Audio playback== | |||
<pre style="background:#d6e4f1"> | |||
gst-launch-1.0 -v filesrc location=thesong.mp3 ! decodebin ! audioconvert ! pulsesink | |||
</pre> | |||
==Video playback== | |||
<pre style="background:#d6e4f1"> | |||
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 | |||
</pre> | |||
==H.264 encoding== | |||
<pre style="background:#d6e4f1"> | |||
gst-launch-1.0 -v -e videotestsrc is-live=true ! queue ! x264enc ! mp4mux ! filesink location=test.avi | |||
</pre> | |||
<pre style="background:#d6e4f1"> | |||
gst-launch-1.0 -v -e v4l2src device=/dev/video0 ! queue ! x264enc ! matroskamux ! filesink location=test.mkv | |||
</pre> | |||
<pre style="background:#d6e4f1"> | |||
gst-launch-1.0 -v -e v4l2src device=/dev/video0 ! queue ! x264enc ! mp4mux ! filesink location=test.mp4 | |||
</pre> | |||
==Display video stream== | |||
<pre style="background:#d6e4f1"> | |||
gst-launch-1.0 -v videotestsrc is-live=true ! xvimagesink async=false enable-last-sample=false qos=false sync=false | |||
</pre> | |||
<pre style="background:#d6e4f1"> | |||
gst-launch-1.0 -v v4l2src device=/dev/video0 ! xvimagesink 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 22:53, 16 October 2018
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