Documentation

  • 2021.2
  • 06/30/2021
  • Public Content

Run a GStreamer* Audio 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>
  3. Run
    gst-launch
    with audio sample from the Docker container:
    gst-launch-1.0 filesrc location=/data_samples/media_samples/sample.ogg ! oggdemux ! vorbisdec ! audioconvert ! audioresample ! testsink
    Since the Docker container does not contain physical audio hardware, this tutorial is simulated using the
    testsink
    element.
    Execution time is displayed after the audio is finished, for example,
    Execution ended after 0:01:14.349431920
    Expected output:
    #gst-launch-1.0 filesrc location=/data_samples/media_samples/sample.ogg ! oggdemux ! vorbisdec ! audioconvert ! audioresample ! Testsink error: XDG_RUNTIME_DIR not set in the environment. Setting pipeline to PAUSED ... Pipeline is PREROLLING ... Pipeline is PREROLLED ... Setting pipeline to PLAYING ... New clock: GstSystemClock Got EOS from element "pipeline0". Execution ended after 0:01:14.349609320 Setting pipeline to PAUSED ... Setting pipeline to READY ... Setting pipeline to NULL ... Freeing pipeline ...

Summary and Next Steps

In this tutorial, you learned how to run a Gstreamer audio pipeline using Gstreamer plugins.

Product and Performance Information

1

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