Gstreamer pipeline examples

Following 2 tests were done on OrangePI 5

Creating MP4 H264 video decoder to fakesink

gst-launch-1.0 filesrc location=/big.mp4 ! qtdemux name=d d.video_0 ! h264parse  ! mppvideodec ! fakesink

Render video to display

gst-launch-1.0 filesrc location=/big.mp4 ! qtdemux name=d d.video_0 ! h264parse  ! mppvideodec ! glimagesink

Listing available plugins

To list all available system plugins do:

gst-inspect-1.0

To inspect individual plugin arguments

gst-inspect-1.0 <name>

Using capsfilter

gst-launch-1.0 videotestsrc ! capsfilter caps=video/x-raw,format=GRAY8 ! videoconvert ! autovideosink

gst-launch-1.0 videotestsrc ! capsfilter caps=video/x-raw,format=NV12 ! videoconvert ! autovideosink

Enabling debug logs

GST_DEBUG='*:INFO'  gst-launch-1.0 videotestsrc ! capsfilter caps=video/x-raw,format=NV12 ! videoconvert ! autovideosink

https://gstreamer.freedesktop.org/documentation/coretracers/log.html?gi-language=c

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *