Introduction to the
LiveNVR can through simple network camera channel configuration, the traditional monitoring industry in the HIGH-DEFINITION network camera IPCamera, NVR and other devices with RTSP/Onvif protocol output access to LiveNVR, LiveNVR can collect, convert, output the audio/video data source of these devices. Live broadcast on all platform terminals (PC, Android, iOS, wechat and H5), and LiveNVR can connect the live broadcast data of video sources to the third-party CDN network to achieve internet-level live distribution of security devices.
function
1. Access the camera using RTSP
2. Support Onvif protocol, support pte control, focal length zoom
3. All platforms (Web /Android/iOS/ wechat /H5) support RTMP and HLS protocols
4. Support CDN access. Directly fill in the RTMP stream address of the independent Ali Cloud/Tencent Cloud CDN for each channel configuration
5. Support web page configuration management
6. Support user management and permission verification
7. Support video on demand, video plan, time video retrieval and playback
Recommended Hardware Configuration
Port configuration
LiveNVR configuration web port: 10800 (livenvr.ini configuration port)
Nginx Web port: 10800 (HTTP Listen configuration in nvrnginx/liveqing.conf)
Nginx RTMP port: 10935 (RTMP listen configuration in nvrnginx/liveqing.conf)
use
Download the LiveNVR server version and decompress the software
Windows Version Run livenvr.exe executable (close console press Ctrl+C)
LiveNVR can also be run as a service, randomly start, run the Windows service installation script:
In Linux, run the start.sh script in the root directory to stop the stop.sh command
Nginx does not support Chinese paths!!
Running successfully:
The default port is 10800 (http://ip:10800). The login page is displayed. The default user name/password is admin/admin
After logging in to the home page, the video square is empty because the channel has not been configured
Click Channel Configuration to enter the channel configuration page and select the Settings button in the upper right corner of the channel to be configured
The configuration page is displayed, and enter the IP address, port, RTSP address, user name, password, and live on Demand for camera access. If you support Onvif control, enter the Onvif address and click OK.
If you can configure the account and password in the RTSP address option, try to configure the account and password in the URL. If the address format is correct, you can access the camera normally. The camera user name and camera password options provided in the configuration items are compatible with some urls that cannot contain the user name and password. The two are not in conflict.
The RTSP rules vary from camera /NVR manufacturer to manufacturer. Here are a few common RTSP rules:
Hikon DS NVR plays URL rules
Dahua camera URL rules:
rtsp://username:password@ip:port/cam/realmonitor?channel=1&subtype=0
Description:
Username: indicates the username. Such as the admin.
Password: password. Such as the admin.
IP: indicates the IP address of the device. Such as 10.7.8.122.
Port: Indicates the port number. The default value is 554.
Channel: indicates the channel number. The start value is 1. For example, channel 2 is channel=2.
Subtype: indicates the type of the code stream. The primary code stream is 0 (subtype=0) and the secondary code stream is 1 (subtype=1).
For example, the secondary stream of channel 2 on a device is requested at the following Url
RTSP: / / admin: [email protected]:554 / CAM/realmonitor? Channel & subtype = 1 = 2
You can use VLC for the pilot:
The video encoding format must be H264
Which needs special mention “on-demand live” option, check the on-demand broadcast option means that someone through LiveNVR watch, LiveNVR will pull towards the source end live broadcast live audio and video data distribution, nobody see, will automatically stop pull flow from the device to save network resources, this option defaults to no, without on-demand live, Mobile phone client, wechat client will have a better experience;
LiveNVR supports Onvif discovery and detection, select Onvif during configuration, check Onvif detection, click the detection IP input box, the found Onvif camera will appear, select the camera to configure
Verify that onvif detects results using official tools
We can use “ONVIF Device Test Tool” to independently check whether the cause of failure to detect the result is LiveNVR;
ONVIF Device Test Tool
1. Open the software, select the IP address of the host as 192.168.1.130 (automatically displayed), click Discover Devices, and search the address of the front-end device in the same LAN that supports Onvif protocol, which is displayed at the bottom, and the corresponding information of each device is displayed at the top right.
2. Select one of the devices to test and click the Check button to read the IPC information of the response, as shown below.
3. Click the Get button to read IPC’s video stream information, as shown in the big box on the right.
##### Note: If the tool can successfully detect the result, but LiveNVR still cannot detect the result, contact technical personnel #####
Enter the Onvif login user name and password, click Probe, and the detected camera parameters will be filled into the configuration window
If audio is required, select Enable Audio. By default, no audio is available. If necessary, select enable audio and save the configuration
After the configuration is complete, set the camera to be enabled (channel can also be enabled through the configuration page).
Click on the video square page and the camera you just configured will appear in the list
Click to watch live video
If the camera is Onvif connected and supports PTZ control, you can call PTZ control and focal length zooming on the web page:
Why is there no control button on my page? Because in this camera channel configuration, the camera access type must be Onvif so that the camera control function can be enabled and the buttons on the front page will be displayed.
For users who need to record videos, version 4.0 of LiveNVR further improves the video recording function based on the previous version of video recording, adding the video scheduling function. Specific operation mode:
On the channel configuration page, you can set the recording time and recording time according to your plan
It has a convenient video viewing interface
Have timeline and video list two modes to watch back at the same time support the corresponding video file download
Parameter configuration
The local configuration page is used to configure the running parameters of LiveNVR, including the RTMP port, snapshot interval, and whether the playback page requires user permission verification
Note: try not to change the configuration here, for example, the RTMP port. If you change LiveNVR, you also need to change the conf/liveqing.conf file in the nginx directory, and change the RTMP distribution port
\
Client view
LiveNVR runs independently
Through port mapping, the ports 10800 and 10935 required by the LiveNVR service are mapped to the public network through the router, and then the public network address is used for access.
Advanced configuration (for development operations personnel only)
Note: The description in this section is only for professional developers, please do not configure at will!
-
LiveNVR provides a complete set of interfaces for developers to call, interface documents to view: browser access IP:10800/apidoc;
-
Under normal circumstances, the front-end of LiveNVR automatically ADAPTS to PC Web and adopts the low-delay RTMP live broadcast protocol, while other platforms adopt H5 standard HLS live broadcast protocol. If pure H5 plug-in free broadcast mode is also needed on PC, We can change the flash_stream_type field in livenvr. ini to 1 to restrict the live protocol to HLS:
flash_stream_type=0 Copy the code
Authorization way
### Trial version ###
This version does not require any fee and can be used directly. If the remaining period of authorization expires, download the latest trial version from www.liveqing.com.
Hardware dog license ###
Select hardware dog authorization: We will provide a small hardware inserted in USB interface, through which the hardware is inserted into the machine deployed by LiveNVR, the machine will obtain permanent authorization, the hardware dog is removed, the authorization of the machine will be cancelled, suitable for private internal network use;
## Select a Dongle license:
1. Select “Version Information” on the page of the trial version of LiveNVR provided by us.
2. Send the machine code information on the page to [email protected] to apply for the activation code of permanent authorization.
3. Submit the obtained activation code on the “Version Information” page to obtain permanent authorization (LiveNVR will take effect after restart).
FAQ
1. What is the concurrency performance of LiveNVR?
LiveNVR camera access using liveqing underlying framework, streaming media distribution using NGINx, performance has been recognized by industry giants, very reliable!
2. How to group LiveNVR?
The function positioning of LiveNVR is the ability platform layer for the video application layer to output video device access/standard video output. It only provides basic video channel access and video channel output without grouping and group permissions. Specific application service permissions can be customized in the customer’s application system. LiveNVR video ability layer only do video ability output!
3, The iPhone began to play very slow, often play not successful?
Because of HLS protocol is a kind of play after the first slice – principle, also is the need to slice good about three ts file, apple end player to play action, assuming a single slice the minimum set to 2 s, then the slicing process + download the total length will be greater than 6 s, this leads to a lot of players waiting for a long time, Therefore, the success rate of playback is not high, so it is suggested to set the “Live on demand” of each camera channel unchecked, so as to ensure that the channel is always sliced, and the playback will start quickly!
4. What is the cause of FLASH: RtMPConnectFailure?
The RTMP stream connection failed.
Check to see if the port of the accessed RTMP (default 10935) is mapped;
Do not store software packages in Chinese folders.
And whether nVRNginx was quarantined or killed by some protection software.
5. Integrated live video streaming will cause interruption in a few minutes
Since LiveNVR itself is enabled for on-demand live broadcasting by default (only when users watch the video stream, they will pull the corresponding video stream for live broadcasting), we need to send video playing heartbeat to the server regularly during video playing to ensure the continuous streaming of the server. Call the TouchChannelStream interface once every 30 seconds during playback to keep the video stream live uninterrupted (see the interface documentation for specific interface parameters).
6. About the integrated live broadcast page
First of all, LiveNVR’s own live broadcast page provides relevant codes for IFrame integration. Secondly, we also support the integration of sharing address transfer parameters by directly calling and passing corresponding parameters to obtain corresponding functions iframe: whether to embed in the form of IFrame, yes and no can be transmitted; Autoplay: whether to enable automatic live broadcasting. Yes and no parameters are supported. “Stretch” : whether to enable automatic live broadcasting and support transmission parameters yes and no. Aspect: The ratio of the player, passed in the form x:y, default 16:9
Example: IP: port/play. HTML? channel=id&iframe=yes&aspect=4:3&autoplay=yes&stretch=yes
7. Access the following interface: 200 OK or 401 Unauthorized
{ "LiveQing" : { "Body" : { "Token" : "a19cb5f6e7d2449d8d24c8a0fc554ca7" }, "Header" : { "CSeq" : "1", "ErrorNum" : "200", "ErrorString" : "Success OK", "MessageType" : "MSG_SC_SERVER_LOGIN_ACK", "Version" : "1.0"}Copy the code
- Operation: login, after landing returns the token, later call interface need to carry the token information in the cookie “token = a19cb5f6e7d2449d8d24c8a0fc554ca7”
8. Video square returns an error code
For easy viewing, LiveNVR Video Square will feed back error messages from devices that are not online.
The corresponding error codes are as follows:
Socket error codes and RTSP error codes are mostly returned
RTSP error code
401: Unauthorized and incorrect password
404: No device is discovered
A Socket error code
10057: The socket is not connected to the destination
11004: Incorrect name or data for the type of request
For more information
Security streaming media Internet live -QQ exchange group: 615081503
Mail: [email protected]
WEB:www.liveqing.com
Tel: 189-5515-0114
Copyright © 2016-2019 at LiveQing.com