Jump to content

GStreamer Examples for the Dragonwing EVK Board

From RidgeRun Developer Wiki


Follow us on: YouTube Twitter LinkedIn Email Share this page

Share This Page




Problems running the pipelines shown on this page? Please see our GStreamer Debugging guide for help .

Example Pipelines

These are some basic pipelines tested on the Ubuntu Image (Ubuntu 24.04).

For more complete examples, please visit the following links:

For acceleration testing, you can also use the following links:

Simple videotestsrc pipeline

 gst-launch-1.0 -v videotestsrc ! autovideosink

Expected Result:

Smooth image of the test pattern generated.

Video saving in MP4 format (Software Encoding)

gst-launch-1.0 -v videotestsrc num-buffers=300 ! videoconvert ! x264enc ! mp4mux ! filesink location=test-video.mp4

Expected Result:

MP4 file generated correctly.

Video playing of an MP4 file (Software Decoding)

gst-launch-1.0 -v filesrc location=test-video.mp4 ! qtdemux ! h264parse ! avdec_h264 ! autovideosink

Expected Result:

MP4 video played correctly

Video saving in MP4 format (VPU-accelerated Encoding)

gst-launch-1.0 -e -v qtiqmmfsrc camera=0 ! "video/x-raw,format=NV12,width=1920,height=1080,framerate=30/1,interlace-mode=progressive,colorimetry=bt601" ! v4l2h264enc capture-io-mode=4 output-io-mode=5 extra-controls="controls,video_bitrate=12000000,video_bitrate_mode=0;" ! h264parse ! mp4mux ! filesink location=v4l2h264enc-camera-encoding.mp4

Expected Result:

MP4 file generated correctly

Video playing of an MP4 file (VPU-accelerated Decoding)

 gst-launch-1.0 -e -v filesrc location=v4l2h264dec.mp4 ! qtdemux ! h264parse ! v4l2h264dec ! waylandsink

Expected Result:

MP4 video played correctly

Camera recording with qtiqmmfsrc element

gst-launch-1.0 -e qtiqmmfsrc name=camsrc camera=0 ! \
video/x-raw,format=NV12,width=1280,height=720,framerate=30/1,\
interlace-mode=progressive,colorimetry=bt601 ! v4l2h264enc \
capture-io-mode=4 output-io-mode=5 extra-controls="controls,video_bitrate=6000000,\
video_bitrate_mode=0;" ! h264parse ! mp4mux ! filesink location=camera-test.mp4

Expected Result:

MP4 video generated correctly

Video Transformation with qtivtransform

gst-launch-1.0 -e -v qtiqmmfsrc camera=0 ! "video/x-raw,format=NV12,width=1920,height=1080,framerate=30/1" ! qtivtransform rotate=1 ! v4l2h264enc capture-io-mode=4 output-io-mode=5 extra-controls="controls,video_bitrate=12000000,video_bitrate_mode=0;" ! h264parse ! mp4mux ! filesink location=qtivtransform-example.mp4

Expected Result:

MP4 video generated correctly with expected transformation (rotation)

Video Transformation with gltransform

gst-launch-1.0 -v videotestsrc num-buffers=300 ! glupload ! gltransformation rotation-z=45 ! glcolorconvert ! gldownload ! video/x-raw,format=NV12 ! v4l2h264enc ! h264parse ! mp4mux ! filesink location=gpu-transformation.mp4

Expected Result:

MP4 video generated correctly with expected transformation (a rotation in Z axis)

Cookies help us deliver our services. By using our services, you agree to our use of cookies.