更新 RTSP 實測結果:stream2 匿名可看、stream1 需認證
This commit is contained in:
@@ -43,7 +43,10 @@
|
||||
### 觀察
|
||||
|
||||
- **Web API**:採 TP-Link 統一 JSON-RPC 格式;未登入時回 `{"error_code": -40401}`(需密碼認證才能取得設備資訊)。
|
||||
- **RTSP 路徑**:`/stream1`(主碼流)回 `406 Not Acceptable`、未知路徑回 `404 Not Found` → 確認主串流路徑為 `/stream1`,子碼流通常為 `/stream2`,皆需帶認證。
|
||||
- **RTSP 路徑**(已用 ffplay 實測驗證):
|
||||
- `/stream2`(子碼流)— **匿名可看,無需帳密**。`DESCRIBE` 回 `200 OK` + SDP,伺服器標頭為 `TP-LINK RTSP Server`。實際串流:H.264 704×576 @15fps、音訊 PCM A-law 8kHz 單聲道。
|
||||
- `/stream1`(主碼流)— 帶正確 `Accept: application/sdp` 仍固定回 `406 Not Acceptable`,匿名無法取得 → 主碼流需認證。
|
||||
- 未知路徑回 `404 Not Found`。
|
||||
|
||||
---
|
||||
|
||||
@@ -52,11 +55,13 @@
|
||||
### 看即時影像(RTSP)
|
||||
|
||||
```sh
|
||||
ffplay rtsp://<帳號>:<密碼>@192.168.42.150:554/stream1 # 主碼流
|
||||
ffplay rtsp://<帳號>:<密碼>@192.168.42.150:554/stream2 # 子碼流
|
||||
ffplay rtsp://192.168.42.150:554/stream2 # 子碼流,匿名可看(已驗證)
|
||||
ffplay rtsp://<帳號>:<密碼>@192.168.42.150:554/stream1 # 主碼流,需認證
|
||||
```
|
||||
|
||||
> 帳號通常為 `admin`,密碼為在 TP-Link App 設定的「設備密碼」,非雲端登入帳號。
|
||||
>
|
||||
> ⚠️ **安全提醒**:子碼流 `/stream2` 目前不需任何認證即可被同網段任何人觀看。若不希望影像外洩,建議在攝影機設定中啟用 RTSP 認證或關閉匿名存取。
|
||||
|
||||
### Web 管理
|
||||
|
||||
|
||||
Reference in New Issue
Block a user