Selenoid can record browser sessions as MPEG-4 files using the H.264 codec. This feature requires browsers to be running in containers and requires the enableVideo capability to be added to your tests.
Prerequisites
Pull the video recorder image:
$ docker pull selenoid/video-recorder:latest-release
Configuration
Running Selenoid in Docker
You must mount a host directory to /opt/selenoid/video and set the OVERRIDE_VIDEO_OUTPUT_DIR environment variable to the absolute path of that host directory. This ensures the video recorder container saves files to your host machine.
Running Selenoid as a Binary
Videos will be stored in a video directory inside the current working directory.
Windows (PowerShell) Setup
When using Windows, ensure paths are in a compatible format (e.g., using /c/path/to/dir).
$ docker run -d \
--name selenoid \
-p 4444:4444 \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /your/directory/config/:/etc/selenoid/:ro \
-v /your/directory/video/:/opt/selenoid/video/ \
-e OVERRIDE_VIDEO_OUTPUT_DIR=/your/directory/video/ \
aerokube/selenoid:latest-release