Back to All Guides
codeAugust 8, 20267 min readRTSPLink Dev Team

Simulating 50 RTSP IP Cameras in Docker with FFmpeg & MediaMTX

Set up an automated load-testing synthetic video camera laboratory generating 50 simultaneous RTSP feeds.

#Docker#MediaMTX#FFmpeg#Load Testing#Simulation
Live Stream Workbench

Need a live RTSP stream link right now to test this setup in VLC or OpenCV?

Test Live Stream

#1Docker Compose Synthetic Camera Lab

Spin up an RTSP server with multiple automated test patterns:

docker-compose.yml
version: '3.8'
services:
  mediamtx:
    image: bluenviron/mediamtx:latest
    ports:
      - "8554:8554"
      - "1935:1935"
      - "8888:8888"

  cam_sim_1:
    image: linuxserver/ffmpeg:latest
    command: >
      -re -f lavfi -i testsrc=size=1920x1080:rate=30
      -c:v libx264 -preset ultrafast -tune zerolatency -pix_fmt yuv420p
      -f rtsp rtsp://mediamtx:8554/cam1
    depends_on:
      - mediamtx

Ready to test your live RTSP video stream?

Generate free authenticated RTSP links with unlimited bandwidth and inspect frame timestamps in seconds.

Generate Free RTSP Link

Related Tutorials & Setup Guides

View all 100+ guides