RTSP Setup Guide

Xiaomi Camera RTSP Setup

Stream Xiaomi Mi Home cameras and Aqara security cameras to SmartRTSP on iPhone, iPad, or Mac. Most Mi cameras require RTSP custom firmware; Aqara cameras have built-in RTSP support.

RTSP URL Formats
Mi Home / Xiaofang / Dafang (custom firmware)
rtsp://<IP>:8554/unicast
Aqara Camera G2H / G3 (main stream)
rtsp://admin:<password>@<IP>:554/live/ch00_0
Port
554 / 8554
Protocol
RTSP
ONVIF
Aqara only
Firmware
Custom req.
Important: Most Xiaomi Mi Home cameras (Xiaofang, Dafang) do not support RTSP by default. You must install third-party custom firmware to enable RTSP. Aqara cameras (G2H, G2H Pro, G3) support RTSP natively and are the easier option.

Mi Home Cameras (Xiaofang / Dafang)

These compact indoor cameras require custom firmware to expose an RTSP stream.

1

Install custom RTSP firmware

The most widely used option is the Xiaomi-Dafang-Hacks firmware (available on GitHub). It enables RTSP streaming over your local network. Follow the project's flashing guide for your specific camera model — you will need a microSD card.

⚠ Installing custom firmware may void your warranty. Proceed at your own risk and follow the official instructions carefully.
2

Enable RTSP in the web interface

After flashing, open a browser and navigate to http://<camera-IP>. In the web interface, go to Streaming → Enable RTSP. The default port is 8554.

3

Connect in SmartRTSP

In SmartRTSP, tap + → Manual, then enter the stream URL:

rtsp://192.168.1.xxx:8554/unicast

No username/password by default with custom firmware. Replace the IP with your camera's actual local IP address.

Aqara Cameras (G2H, G2H Pro, G3)

Aqara cameras support RTSP natively — no custom firmware required. They also support ONVIF for auto-discovery.

1

Enable RTSP in Aqara Home app

Open the Aqara Home app → tap the camera → Settings (gear icon) → Advanced → Enable RTSP. Copy the generated RTSP URL and credentials shown in the app.

2

Option A: ONVIF auto-discovery

In SmartRTSP, tap the ONVIF Scan button. Aqara cameras with ONVIF support will be discovered automatically on your local network with no manual URL entry required.

3

Option B: Manual RTSP URL

In SmartRTSP, tap + → Manual and enter the URL shown in the Aqara app. The typical format is:

rtsp://admin:YourPassword@192.168.1.xxx:554/live/ch00_0

For sub-stream (lower resolution), replace ch00_0 with ch00_1.

Xiaomi & Aqara RTSP URL Reference

Camera Model RTSP URL Port
Mi Camera (Xiaofang/Dafang, custom fw)rtsp://<IP>:8554/unicast8554
Aqara Camera G2H — main streamrtsp://admin:pass@<IP>:554/live/ch00_0554
Aqara Camera G2H — sub-streamrtsp://admin:pass@<IP>:554/live/ch00_1554
Aqara Camera G2H Prortsp://admin:pass@<IP>:554/live/ch00_0554
Aqara Camera G3 (Hub G3)rtsp://admin:pass@<IP>:554/live/ch00_0554
Xiaomi 360 Home (some models, custom fw)rtsp://<IP>:554/unicast554

Frequently Asked Questions

Do all Xiaomi cameras support RTSP?
Not natively. Most Mi Home cameras (like the Xiaofang and Dafang series) require custom third-party firmware to expose an RTSP stream. Aqara cameras (G2H, G2H Pro, G3) are the exception — they support RTSP and ONVIF natively through the Aqara Home app. Aqara cameras are the recommended choice if you need RTSP support without custom firmware.
What is the Xiaomi-Dafang-Hacks firmware?
Xiaomi-Dafang-Hacks is a popular open-source alternative firmware for Mi Home cameras. It adds features including RTSP streaming, MQTT integration, and a local web interface. You can find the project and flashing instructions on GitHub. Install it at your own risk — the process involves flashing your camera's memory via a microSD card.
Does Aqara G2H / G3 support ONVIF auto-discovery?
Yes. The Aqara G2H Pro and G3 support ONVIF Profile S, which means SmartRTSP's built-in ONVIF scanner can find them automatically on your local network. Tap "Scan" in SmartRTSP and your Aqara camera will appear in the results — no manual URL entry needed.
What is the default username and password for Aqara cameras?
The default username is admin. The password is set when you enable RTSP in the Aqara Home app — it is shown once on screen. If you missed it, disable and re-enable RTSP in the app to generate a new one.
My Xiaomi camera shows a black screen or won't connect
Common causes: wrong camera IP (check your router's device list), wrong port (try both 554 and 8554), wrong URL path, camera on a different network VLAN, or RTSP not enabled. For Mi Home cameras, confirm the custom firmware is running correctly. For Aqara, ensure RTSP is enabled in the Aqara Home app and your phone is on the same Wi-Fi network as the camera.