Xiaomi (Mi Home / Xiaofang) makes very popular low-cost smart cameras. They are cloud-focused, but many models expose an RTSP stream after flashing community or official RTSP firmware; connect with a direct RTSP URL — click a model below for an example. Add a Xiaomi camera to Agent DVR for free local recording, detection and remote viewing without the cloud.
Xiaomi connection URLs
Tip: Click a model to generate a video connection URL for your Xiaomi camera
| Models | Type | Protocol | URL |
|---|---|---|---|
| Unknown | FFMPEG | RTSP | /ch0.h264 |
| Unknown, SXJ01ZM | VLC | RTSP | /live/ch00_0 |
| Unknown, Xiaofang, XiaoYi | FFMPEG | RTSP | /ch0_0.h264 |
| Dafang, Dafang3, T20, Xiaofang | FFMPEG | RTSP | /unicast |
| Dafang | FFMPEG | HTTPS | /cgi-bin/currentpic.cgi?width=1920&height=1080&nightvision=1 |
| Unknown | FFMPEG | HTTP | /video?profile=0 |
| Unknown | FFMPEG | HTTP | /videostream.asf?user=[USERNAME]&pwd=[PASSWORD]&resolution=320x240 |
| M1901F7H | JPEG | HTTP | /shot.jpg |
| Unknown | MJPEG | HTTP | /video |
| Unknown, MI-3 | FFMPEG | HTTP | /videofeed |
| MJSXJ02CM | MJPEG | HTTP | /?action=stream |
| MJSXJ02CM, MJSXJ05CM | FFMPEG | RTSP | /mainstream |
| MJSXJ02HL, Unknown | FFMPEG | RTSP | /11 |
| MJSXJ05CM, V380 | FFMPEG | RTSP | /user=[USERNAME]_password=[PASSWORD]_channel=1_stream=0.sdp |
| MJSXJ05CM, Unknown | FFMPEG | HTTP | / |
| MJSXJ05CM | FFMPEG | RTSP | /substream |
| Unknown | JPEG | HTTP | /image.jpg |
| Unknown | JPEG | HTTP | /snapshot.cgi?user=[USERNAME]&pwd=[PASSWORD] |
| Unknown | MJPEG | HTTP | /video?profile=[CHANNEL] |
* iSpyConnect has no affiliation, connection, or association with Xiaomi’s products. The connection details provided here are crowd sourced from the community and may be incomplete, inaccurate or out of date. We provide no guarantee or warranty that you will be able to connect to your cameras using these URLs.
How to connect Xiaomi cameras to Agent DVR
- Download and install Agent DVR - free for local use on Windows, macOS, Linux, Docker and Raspberry Pi.
- Open Agent DVR in your browser and click the + (Add) button, then choose "IP Camera Wizard".
- Select Xiaomi from the manufacturer list.
- Enter your camera's IP address, username and password. These stay on your machine and are never sent to iSpyConnect.
- Pick the RTSP connection URL (default port 8554) and save. Agent DVR begins live streaming, motion detection and recording.
Xiaomi Camera FAQ
How many Xiaomi camera models does iSpyConnect support?
iSpyConnect's crowd-sourced database lists 13 Xiaomi models with 19 connection URLs, updated daily by the community.
What is the RTSP URL for Xiaomi cameras?
Xiaomi cameras typically connect over RTSP on port 8554. For example, the Xiaomi Dafang3 connects at rtsp://[camera-ip]:8554/unicast - replace [camera-ip] with your camera's address and add your username and password, or click any model in the table above to generate the exact URL.
Do Xiaomi cameras support ONVIF?
It varies by model. If your Xiaomi camera supports ONVIF, Agent DVR can auto-discover it; otherwise use a direct RTSP URL from the table above.
How do I connect Xiaomi cameras to Agent DVR?
Install Agent DVR (free), click the + button, choose the IP Camera Wizard, select Xiaomi, enter your camera's IP address, username and password, then pick a connection URL. Agent DVR starts live streaming, motion detection and recording immediately.
Other makes starting with "X"
| X | X Zhang, X-price, X-security, X-view, X10, Xaimoi, Xanboo, Xblitz, Xblock, Xdh, Xelpon, Xenocam, Xenta, Xfinity, Xgody, Xiaomi, Xiaovv, Xiaoyi, Xin Ling, Xineron, Xinfi, Xingchuang, Xinsan, Xiongmai Dvr, Xipcam, Xka, Xmarto, Xmate, Xmeye, Xonz, Xperia, Xpia, Xseries, Xshcam, Xtendrobotics, Xtremepro, Xts Corp, Xtsy, Xtu, Xvi, Xvim, Xvision, Xvr, Xxcamera, Xxk, Xy-ip, Xyclop |
|---|
* iSpyConnect has no affiliation, connection, or association with Xiaomi’s products. The connection details provided here are crowd sourced from the community and may be incomplete, inaccurate or out of date. We provide no guarantee or warranty that you will be able to connect to your cameras using these URLs.