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
    AMR_containers
    folder:
    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:
    ./run_interactive_docker.sh amr-ubuntu2004-full-flavour-sdk:<TAG> eiforamr
  3. Run
    gst-launch
    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': gst.gl.GLDisplay=context, gst.gl.GLDisplay=(GstGLDisplay)"\(GstGLDisplayX11\)\ gldisplayx11-0"; Redistribute latency... Got context from element 'playsink': gst.gl.GLDisplay=context, gst.gl.GLDisplay=(GstGLDisplay)"\(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 ...

Troubleshooting

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

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

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.