| docker | ||
| getendpoints@82f1f66646 | ||
| src | ||
| templates | ||
| .env.dev | ||
| .gitignore | ||
| .gitmodules | ||
| .pre-commit-config.yaml | ||
| mhotspot.ps1 | ||
| README.md | ||
StartStreaming
Prerequisites
-
Install:
- Docker Desktop
- OBS Studio
-
Clone the repository and its submodule (use
git clone --recursiveor rungit submodule update --initif you didn't clone it with the recursive parameter). -
Prepare the
.envfilesIn the root directory, copy
.env.devto.envand update with your environment-specific values.cp .env.dev .envIn the
.envfile:IPis the IP address to which the WebRTC server will be bound.PORT_Xis the WebRTC HTTP listener port, which can be used for WHIP and WHEP.LISTENER_PORT_Xis the WebRTC ICE/UDP port.
Next, navigate to
./getendpoints/srcand copy.env.devto.env.Refer to theREADME.mdin thegetendpointsdirectory for further documentation. -
Set up the necessary OBS profiles and scene collections:
Let
Nbe the number of instances you want to create (i.e., the maximum number ofPORT_Xdefined in the.envfile).Repeat for each profile from
X=1toX=N:- Create a scene collection called
ProfileX. - Add scenes and configure the input source (e.g., an HDMI card).
- Create a profile called
ProfileX. - Go to
Settings->Stream, set theServiceto WHIP, and enter the endpoint for the respective MediaMTX server:http://{{IP}}:{{PORT_X}}/mystream/whip. You may need to tweak as well the streaming settings.
- Create a scene collection called
Run
The Docker image will automatically generate the necessary configurations for you. After finishing with the prerequisites, simply run the following command from the root repository:
docker run --rm -v ${PWD}:/app/data se23m504/configure
Then, run the powershell auto-generated script:
./start.bat
Build
The image is already available on DockerHub, but if you need to build it again for any reason, run the following command from the root directory:
docker build -t se23m504/configure ./src -f ./docker/Dockerfile