30 lines
1.1 KiB
Markdown
30 lines
1.1 KiB
Markdown
## 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
|
|
|
|
1. 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_
|
|
2. 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:
|
|
1. Make sure that wsl2 is active.
|
|
2. Make sure that WSLg is supported (should be built-in on windows 11)
|
|
|
|
### Authorization issue
|
|
> Authorization required, but no authorization protocol specified docker
|
|
|
|
```bash
|
|
$ xhost +local:
|
|
```
|