# Test-only synthetic camera source. Exposes one local RTSP port so an Agent # can be configured through Central to pull this generated H.264 stream. services: synthetic-camera: image: bluenviron/mediamtx:1.21.3 restart: unless-stopped ports: - "127.0.0.1:${HEIMDALL_SYNTHETIC_RTSP_PORT:-18554}:8554/tcp" volumes: - ./mediamtx.synthetic-source.yml:/mediamtx.yml:ro networks: - heimdall-net synthetic-camera-publisher: image: jrottenberg/ffmpeg:7.1-alpine restart: unless-stopped entrypoint: ["/bin/sh", "-c"] command: ["while true; do ffmpeg -nostdin -hide_banner -loglevel error -re -f lavfi -i testsrc2=size=640x360:rate=25 -an -vf format=yuv420p -c:v libx264 -profile:v baseline -tune zerolatency -bf 0 -g 25 -f rtsp -rtsp_transport tcp rtsp://synthetic-camera:8554/synthetic; sleep 2; done"] depends_on: - synthetic-camera networks: - heimdall-net