Summary
NVRs can use different profiles according to streaming purposes. When trying to view a specific stream of NVR through RTSP, determining which profile to look for is not clear. At this time, through the following CGI command, you can easily check the streaming profile number for each channel. This article describes how to check the streaming profile for each channel.
Obtaining Profiles of Every Channel in NVR
To get every profile of every channel in the NVR:
- Enter the CGI command:
/stw-cgi/media.cgi?msubmenu=videoprofilepolicy&action=view
Result sample:
Channel.2.NetworkProfile=6
Channel.2.LiveProfile=3
Channel.2.RecordProfile=2
Channel.2.LiveMode=Auto
Channel.3.NetworkProfile=4
Channel.3.LiveProfile=4
Channel.3.RecordProfile=3
Channel.3.LiveMode=Manual
Channel.5.NetworkProfile=5
Channel.5.LiveProfile=5
Channel.5.RecordProfile=3
Channel.5.LiveMode=ManualGetting Stream RTSP
To get Stream RTSP:
- Enter the following RTSP command:
rtsp://<ip_addr>:<last Device Port>/LiveChannel/<Channel Number>/media.smp/profile=<num>NOTE: The device port is the last device port. The Channel Number starts 0.
Therefore, Channel 1 of NVR is 0, Channel 2 of NVR Is 1 in rtsp.
Every profile of the connected camera can be used in the RTSP streaming address.
Profile information of NVR
- NetworkProfile - NVR path: Setup > Network > Live Streaming
- LiveProfile (& LiveMode) - NVR path: Setup > Device > Camera > Live Setup
- RecordProfile - NVR path: Setup > Record > Record Setup > Camera
Getting Stream URI
Stream URI can be obtained from the NVR through the following CGI. The CGI works for some profiles, which are used in the NVR only.
http://<ip_addr>/stw-cgi/media.cgi?msubmenu=streamuri&action=view&Channel=0&Profile=2&MediaType=Live&Mode=Full&ClientType=PC&StreamType=RTPUnicast&TransportProtocol=TCP&RTSPOverHTTP=FalseExample response:
URI=rtsp://<ip_addr>/LiveChannel/0/media.smp/profile=2
Comments
0 comments
Article is closed for comments.