Visible to Intel only — GUID: GUID-0C05189F-EC5B-49F8-99DE-361F82547D5F
Visible to Intel only — GUID: GUID-0C05189F-EC5B-49F8-99DE-361F82547D5F
GStreamer* Video Pipeline
Run a GStreamer* video pipeline using GStreamer* plugins, and display a video file in a Docker* container window.
Run the Sample Application
Check if your installation has the amr-gstreamer Docker* image.
docker images |grep amr-gstreamer #if you have it installed, the result is: amr-gstreamer
NOTE:If the image is not installed, continuing with these steps triggers a build that takes longer than an hour (sometimes, a lot longer depending on the system resources and internet connection).If the image is not installed, Intel recommends installing the Robot Base Kit or Robot Complete Kit with the Get Started Guide for Robots.
Go to the AMR_containers folder:
cd <edge_insights_for_amr_path>/Edge_Insights_for_Autonomous_Mobile_Robots_*/AMR_containers
Prepare the environment setup:
source ./01_docker_sdk_env/docker_compose/common/docker_compose.source export CONTAINER_BASE_PATH=`pwd` export ROS_DOMAIN_ID=31
Run an automated yml file that opens a GStreamer* sample application inside the EI for AMR Docker* container.
CHOOSE_USER=eiforamr docker-compose -f 01_docker_sdk_env/docker_compose/05_tutorials/gstreamer_video.tutorial.yml up
Expected output: The video file is displayed in a window in the container.
To close this, do one of the following:
Type Ctrl-c in the terminal where you did the up command.
Run this command in another terminal:
CHOOSE_USER=eiforamr docker-compose -f 01_docker_sdk_env/docker_compose/05_tutorials/gstreamer_video.tutorial.yml down
For an explanation of what happened, open the yml file:
The first 23 lines are from the EI for AMR infrastructure.
Line 26 clones some sample videos.
Line 27 play the video using GStreamer*.
To use your own video, use the same yml file but update line 27 to target your own file.
For example, copy the file:
cp test.mp4 ${CONTAINER_BASE_PATH}/01_docker_sdk_env/docker_compose/05_tutorials/test.mp4
And update line 27 to:
gst-launch-1.0 playbin uri=file://${CONTAINER_BASE_PATH}/01_docker_sdk_env/docker_compose/05_tutorials/test.mp4
Troubleshooting
If running the yml file gets stuck at downloading:
gedit 01_docker_sdk_env/docker_compose/05_tutorials/gstreamer_video.tutorial.yml # In the same way open any other yml you want to test behind a proxy.
Add the following lines after “echo “*** Run gst-launch with video sample from the Docker container ***”, replacing http://<http_proxy>:port with your actual environment http_proxy.
export http_proxy="http://<http_proxy>:port" export https_proxy="http://<https_proxy>:port"
Check your system date and time:
date
If the date is incorrect, contact your local support team for help setting the correct date and time.
For general robot issues, go to: Troubleshooting for Robot Tutorials.
Did you find the information on this page useful?
Feedback Message
Characters remaining: