Back to All Guides
troubleshootingAugust 12, 2026•6 min read•RTSPLink Engineering

Fixing MediaMTX "source not ready" and "timed out waiting for keyframe"

Troubleshoot publisher disconnects and keyframe generation timeouts in MediaMTX / rtsp-simple-server.

#MediaMTX#Keyframe Timeout#rtsp-simple-server#Troubleshooting
Live RTSP Test Feed

Need an active live RTSP stream to test this integration?

Generate a free 20-minute authenticated live H.264 video feed with frame counters to test in VLC, OpenCV, or NVR software.

#1Increasing Start Timeout in mediamtx.yml

Some cameras take 3-5 seconds to generate the first I-frame. Increase sourceOnDemandStartTimeout to 15s in your configuration:

mediamtx.yml Fix
paths:
  my_camera:
    source: rtsp://admin:[email protected]:554/Streaming/Channels/101
    sourceOnDemand: yes
    sourceOnDemandStartTimeout: 15s

Ready to test your live RTSP video stream?

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

Related Tutorials & Setup Guides

View all 100+ guides