Base info
Here you can find simple gstreamer dockerfile and necessary scripts to work with GUI.
Scripts will not work on windows directly. It is assumed that you will be using WSL for work.
Because I wasn't able to start it up without running directly from WSL2 :D But there are someone who was able to do this: https://stackoverflow.com/questions/73092750/how-to-show-gui-apps-from-docker-desktop-container-on-windows-11
Usage
- Start run.sh script with -b flag (build):
run.sh -b- you can just use run.sh if image is already built
- you can specify image name with -c flag
- In opened bash verify that gui is opening correctly:
gst-launch1.0 videotestsrc ! autovideoconvert ! autovideosink
Note: if you are using wsl2 you should see wsl=true line in terminal
If video sink is not visible on the screen:
- Make sure that wsl2 is active.
- Make sure that WSLg is supported (should be built-in on windows 11)
Authorization issue
Authorization required, but no authorization protocol specified docker
$ xhost +local:
Description
Languages
Shell
65.4%
Dockerfile
34.6%