Free RTSP Test Stream URL (2026): Run Your Own in 5 Minutes
Public RTSP test URLs break or point at exposed cameras. Set up a free, stable RTSP test stream with MediaMTX and FFmpeg, test it in VLC and ffprobe, and fix common errors.
The most reliable free RTSP test stream in 2026 is one you run yourself. Public test URLs that get passed around forums break, move or turn out to be someone's exposed camera. In about five minutes you can start the free MediaMTX server, push a looping video or test pattern into it with FFmpeg, and get a stable address such as rtsp://localhost:8554/test. It works offline, never goes down mid-test, and you know exactly what is in the picture.
Key takeaways
Public RTSP test URLs are unreliable. Demo streams from streaming companies come and go, and rtsp.stream, long recommended in forums, now redirects to a different site.
Never test on random public cameras. Many "public" RTSP addresses are private cameras exposed by mistake. Viewing them can be illegal and is never a fair test.
Run your own stream with MediaMTX and FFmpeg. Both are free and open source, and the setup takes two commands.
Use a test pattern with a clock. A moving pattern with a timestamp makes freezes, lag and dropped frames obvious.
Test like production. Match the codec, resolution and frame rate of your real cameras, and test over TCP.
Then test a real camera or DVR channel. A test stream proves your software works. Only your own cameras prove your estate works.
What is an RTSP test stream?
RTSP (Real-Time Streaming Protocol) is how IP cameras, NVRs and DVRs serve live video to other software. An RTSP test stream is any stream you can point a player or video platform at to check that it connects, decodes and stays up, without needing a real camera.
Developers use test streams to build and debug video software. Security and operations teams use them to check a VMS, AI analytics platform or network path before connecting real cameras.
Why do public RTSP test URLs keep breaking?
Search for a free RTSP test URL and you will find the same handful of addresses on forums and old blog posts. They fail for predictable reasons:
Vendor demo streams are marketing. Streaming companies host sample streams to promote their platforms, then move, rename or switch them off. Wowza's RTSP test stream page, for example, describes its stream as a looping, static video intended only for testing.
Free RTSP Test Stream URL (2026): Set One Up in 5 Minutes
Free services change. rtsp.stream, which offered a small number of free test streams, now redirects to a different site (checked November 2026).
Networks block RTSP. Many corporate and mobile networks block outbound port 554, so a public stream that works at home fails at the office.
Static loops hide problems. A low-resolution clip of a cartoon does not behave like a 4 MP camera at night.
The privacy problem with "public" cameras
Lists of public RTSP URLs often include real cameras in homes, shops and offices that were exposed to the internet by accident. Watching them is a privacy violation and may be unlawful where you are. Even the more careful testing guides warn against using random public cameras and recommend a stream you control.
FFmpeg, the standard command-line tool for encoding and streaming video.
Step 1: Start MediaMTX
With Docker, run:
docker run --rm -it -e MTX_RTSPTRANSPORTS=tcp -p 8554:8554 bluenviron/mediamtx:1
The MediaMTX install guide explains the options. Setting RTSP to TCP only avoids a known problem where Docker's network layer breaks RTSP over UDP. If you prefer not to use Docker, download the standalone binary for your platform from the MediaMTX releases page and run it. No configuration is needed for a basic test.
Step 2: Publish a test pattern with a clock
In a second terminal, this FFmpeg command generates a 720p moving test pattern at 25 frames per second and pushes it to MediaMTX:
The testsrc2 pattern includes a running counter, so a frozen or stuttering stream is easy to spot. The -g 50 setting puts a keyframe every two seconds, similar to many cameras.
Step 3: Or loop a real video file
Test patterns are good for connection checks. For anything involving detection, loop a real clip that looks like your sites, such as a car park, loading dock or corridor you have permission to use:
The -stream_loop -1 option repeats the file forever and -c copy streams it without re-encoding. If your player shows a black screen, re-encode to H.264 with -c:v libx264 -pix_fmt yuv420p instead of -c copy.
Step 4: Use your test URL
Your stream is now available at:
rtsp://localhost:8554/test
From another machine on the same network, replace localhost with the IP address of the computer running MediaMTX, for example rtsp://192.168.1.20:8554/test.
How do you test an RTSP stream?
In VLC
Open VLC, choose Media, then Open Network Stream, paste the URL and press Play. To check what is arriving, open Tools, then Codec Information, which shows codec, resolution and frame rate.
You should see h264, 1280, 720 and 25/1. If ffprobe hangs, the server is unreachable or the path is wrong.
In your VMS or analytics platform
Add the URL as a generic RTSP camera. Leave it running for at least an hour and watch for disconnects, drift between the on-screen counter and real time, and rising latency.
How do you make a test stream behave like a real camera?
A stream that is easy to decode can hide problems your real cameras will expose. Make the test harder on purpose:
Match resolution and codec. Most cameras send H.264 or H.265 at 1080p to 4 MP. Change size=1280x720 to size=1920x1080 or 2560x1440, and try libx265 if your cameras use H.265.
Match frame rate. Many security cameras run at 10 to 15 frames per second to save storage. Set rate=15 and -g 30.
Add a sub-stream. Publish a second, low-resolution path such as rtsp://localhost:8554/test-sub, the way an NVR exposes a main and sub-stream.
Test over the real network path. Run MediaMTX on a machine at the site, not on your laptop, so you test the same switches, firewalls and VPNs your cameras will use.
Add authentication. Real cameras need a username and password. MediaMTX supports authentication in its configuration file, so you can check that your software handles credentials correctly.
Simulate failure. Stop and restart FFmpeg mid-test to see whether your software reconnects on its own.
Why won't my RTSP test stream connect?
Connection refused. MediaMTX is not running, or port 8554 is not mapped or is blocked by a firewall.
404 or "not found". Nothing is publishing to that path yet. Start the FFmpeg command first, and check the path matches exactly.
Plays in VLC but not in other software. The other software may expect UDP, a specific codec or a keyframe soon after connecting. Force TCP and shorten the keyframe interval.
Black or green picture. Usually a codec or pixel-format mismatch. Re-encode to H.264 with yuv420p.
Stream freezes after a while. Check CPU on the publishing machine, and use -re so FFmpeg sends in real time instead of as fast as it can.
When should you move from a test stream to a real camera?
As soon as your software connects reliably. A test stream proves the software works. It does not prove that your cameras, recorders and network will. The next step is to pull one real stream from each camera or recorder model you own:
KoteLab connects to existing IP cameras and RTSP-capable DVR/NVR streams, so the same RTSP addresses you test with are what KoteLab uses in production. Once a site's streams pass your checks, KoteLab can surface events such as after-hours activity, restricted-zone entry, queues and loading delays, with natural-language search across every connected camera. When you are ready to judge results, our guide to why AI camera alerts are noisy explains what to measure.
Frequently asked questions
Is there a free public RTSP stream URL for testing?
Some vendors host demo streams, but they change often and can be blocked by your network. A local stream from MediaMTX and FFmpeg is free, takes a few minutes to set up and does not disappear.
What is a good RTSP test URL?
rtsp://localhost:8554/test, served by MediaMTX on your own machine with FFmpeg publishing a test pattern or video file. From other devices, use the machine's IP address in place of localhost.
Is it legal to use public camera RTSP streams for testing?
Not safely. Many public RTSP addresses belong to private cameras exposed by mistake, and viewing them may break privacy or computer misuse laws. Use a stream you own or a camera you are authorised to access.
What port does RTSP use?
Cameras usually use TCP port 554. MediaMTX uses port 8554 by default, so it can run without administrator rights.
How do I test an RTSP stream online?
Browsers cannot play RTSP directly, so online RTSP players relay the stream through their own servers. That means sending your stream, and often its credentials, to a third party. Testing locally with VLC or ffprobe is safer.
Can I turn a video file into an RTSP stream?
Yes. Run MediaMTX, then use FFmpeg with -re -stream_loop -1 to publish the file to a path such as rtsp://localhost:8554/test. Any RTSP player can then read it.
Comparing platforms? Our guide to the best AI video analytics software for existing cameras covers 9 options, the features to look for and how pricing works.
Setting up many cameras? Our guide to ONVIF vs RTSP.
Ready to test on real cameras?
When your test stream works, the next step is your own footage. Tell us which cameras, NVRs and DVRs you run, and we will help you check which streams are ready for KoteLab. Talk to the KoteLab team.