RTSP Streaming for Virtual Camera
CompletedHi,
I use Nx Witness 4.2.0.34860.
I used RTSP streaming url from Video API like "rtsp://192.168.16.98:7001/<cameraId>", but I cannot open the stream from virtual camera using this url.
I am wondering how to get the RTSP streaming url for a virtual camera?
Thanks.
-
Hi Yihsuan,
Virtual cameras usually used to import previously recorded footage to the archive and there is no live stream to access for such cameras. As a result, when you accessing rtsp://192.168.16.98:7001/<cameraId>, mediaserver fails to find live stream for requested camera.
However, you can access archived data for Virtual camera. Here is an example:
1. Get to list of recorded time periods for virtual camera:
https://127.0.0.1:7001/ec2/recordedTimePeriods?cameraId=1
"error": "0",
"errorId": "ok",
"errorString": "",
"reply": [
{
"guid": "{726a51c4-d15e-34d9-c394-19b7bcf9402e}",
"periods": [
{
"durationMs": "1328618",
"startTimeMs": "1650802821000"
}
]
}
]
}2. Open rtsp steam with specifying position parameter:
rtsp://127.0.0.1:7001/1?pos=1650802821000
Please sign in to leave a comment.
Comments
1 comment