Get Started Guide

  • 2021.3
  • 10/21/2021
  • Public Content

Run a GStreamer* Video Pipeline using GStreamer* Plugins in Docker* Container

Run the Sample Application

  1. Go to the
    cd <edge_insights_for_amr_path>/Edge_Insights_for_Autonomous_Mobile_Robots_<version>/AMR_containers
  2. Run the command below to start the Docker container:
    ./ amr-ubuntu2004-full-flavour-sdk:<TAG> eiforamr
  3. Run
    with video sample from the Docker container:
    gst-launch-1.0 playbin uri=file:///home/eiforamr/data_samples/media_samples/sample.mpg
    The video file is displayed in a window in the container:
    Expected output:
    gst-launch-1.0 playbin uri=file:///data_samples/media_samples/sample.mpg Setting pipeline to PAUSED ... Pipeline is PREROLLING ... error: XDG_RUNTIME_DIR not set in the environment. Got context from element 'sink':,"\(GstGLDisplayX11\)\ gldisplayx11-0"; Redistribute latency... Got context from element 'playsink':,"\(GstGLDisplayX11\)\ gldisplayx11-0"; Redistribute latency... Pipeline is PREROLLED ... Setting pipeline to PLAYING ... New clock: GstSystemClock Got EOS from element "playbin0". Execution ended after 0:00:13.346589366 Setting pipeline to PAUSED ... Setting pipeline to READY ... Setting pipeline to NULL ... Freeing pipeline ...


If the following error is encountered:
$ ./ amr-ubuntu2004-full-flasvour-sdk:<TAG> eiforamr bash: ./ Permission denied
Give executable permission to the script:
$ chmod 755

Summary and Next Steps

In this tutorial, you learned how to run a GStreamer* video pipeline using GStreamer* plugins, and display a video file in a window in the container.

Product and Performance Information


Performance varies by use, configuration and other factors. Learn more at