A kind of video monitoring and playing back videos security mechanism method of digital signage
Technical field
The present invention relates to video monitorings and playing back videos, and in particular to a kind of video monitoring and playing back videos of digital signage
Security mechanism method.
Background technique
RTSP (Real-Time Stream Protocol) is a kind of text based application layer protocol, in grammer and one
A little message parameters etc., RTSP agreement is similar with http protocol.
RTSP is the multimedia series flow agreement for controlling sound or image, and allows multiple crossfire demand controls simultaneously,
Network communication used is reached an agreement on not in the range of its definition when transmission, and server end can be selected voluntarily using TCP or UDP
Streamed content is transmitted, its grammer and running is with HTTP 1.1 similar, but is not specifically addressed by time synchronization, so comparing energy
Tolerant network delay.And above-mentioned permission while multiple crossfire demand controls (Multicast), in addition to service can be reduced
The network dosage at device end more and then supports multi-party video conference (Video Conference).Because of the running side with HTTP1.1
Formula is similar, so the cache function < Cache > of proxy server < Proxy > is applied equally to RTSP, and because RTSP has weight
New guide function, visual actual loading situation come convert provide service server, to avoid excessive load centralization in same
Server and cause to postpone.
It is received firstly, client is connected to streaming server and sends the method that an OPTIONS order query service device provides
To after the response of server, the SDP information that some media file is inquired in DESCRIBE order is sent.Streaming server passes through one
SDP describes to be responded, and echo message includes the information such as stream quantity, medium type.Client analyzes SDP description, and is
Each of session stream sends a SETUP order, and SETUP order Tell server client is for receiving media data
Port.After the completion of Streaming Media connection is established, client sends a PLAY order, and server begins to transmission media stream data.
Client can also send the broadcasting of other order control streams such as PAUSE to server in playing process.Communication finishes, client
Transmittable TERADOWN order is held to terminate flow media session.
The window's position, window size, setting circulation video play lists, video cannot be arbitrarily arranged in art methods
Supervision interval switching time.It is necessary to be directed to the video monitoring of digital signage and playing back videos security mechanism method to be created thus
Newly, to solve the problems, such as the video monitoring and playing back videos of digital signage.
Summary of the invention
The present invention is in view of the above-mentioned problems, provide video monitoring and the playing back videos security mechanism side of a kind of digital signage
Method.
The technical solution adopted by the present invention is that: a kind of video monitoring and playing back videos security mechanism method of digital signage,
The following steps are included:
S1 obtains RTSP broadcasting and video recording address;
S2 starts video record function;
Video monitoring address list is arranged in S3;
Video monitoring the window's position, size, monitor duration interval is arranged in S4;
S5, starting circulation video monitoring;
S6, picture are shown.
The step S1 includes:
Camera playlist is set, digital signage APP software is sent to from server push using MQTT message interface, will be counted
According to being saved in local data file;
Instance object;
By the broadcast address in data file by getString, it is added in memory playlist.
The step S2 specifically:
Start video recording and start all addresses IPC brought from server push: in receiving portion, defining a data
Class, for storing and processing a RTP data packet;For each sub thread, the quantity of one of buffering queue is variable
, according to lattice maximum delay time, determine the quantity of buffering queue;Buffering queue is responsible for data packet coding and other of processing
Business;Buffer area is being received, is handling data packet as early as possible, in addition to the network of a packet delay, is waiting and postpones threshold value until reaching,
And by code stream to player.
The step S3 specifically:
Video monitoring list is set, by obtain local data base obtain server push mostly come RTSP address be arranged
Watch-list.
Advantages of the present invention:
By means of the present invention, can arbitrarily be arranged the window's position, window size, setting circulation video play lists,
Video monitoring interval switching time.Solve the problems, such as the video monitoring of digital signage and playing back videos.
Other than objects, features and advantages described above, there are also other objects, features and advantages by the present invention.
Below with reference to figure, the present invention is described in further detail.
Detailed description of the invention
The attached drawing constituted part of this application is used to provide further understanding of the present invention, schematic reality of the invention
It applies example and its explanation is used to explain the present invention, do not constitute improper limitations of the present invention.
Fig. 1 is the video monitoring and playing back videos security mechanism method flow diagram of a kind of digital signage of the invention.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
With reference to Fig. 1, the video monitoring and playing back videos security mechanism method of a kind of digital signage as shown in Figure 1, including
Following steps:
S1 obtains RTSP broadcasting and video recording address;
S2 starts video record function;
Video monitoring address list is arranged in S3;
Video monitoring the window's position, size, monitor duration interval is arranged in S4;
S5, starting circulation video monitoring;
S6, picture are shown.
The step S1 includes:
Camera playlist is set, digital signage APP software is sent to from server push using MQTT message interface, will be counted
According to being saved in local data file;
Instance object;
By the broadcast address in data file by getString, it is added in memory playlist.
The step S2 specifically:
Start video recording and start all addresses IPC brought from server push: in receiving portion, defining a data
Class, for storing and processing a RTP data packet;For each sub thread, the quantity of one of buffering queue is variable
, according to lattice maximum delay time, determine the quantity of buffering queue;Buffering queue is responsible for data packet coding and other of processing
Business;Buffer area is being received, is handling data packet as early as possible, in addition to the network of a packet delay, is waiting and postpones threshold value until reaching,
And by code stream to player.
The step S3 specifically:
Video monitoring list is set, by obtain local data base obtain server push mostly come RTSP address be arranged
Watch-list.
Present invention is mainly used for digital signage, real-time monitored picture is shown on digital signage, while picture being saved as
.h264 video file is stored in digital signage, is checked if what contingency encountered and can be recalled video file
The whole process that thing occurs.Present invention can also apply to other scenes, usually some scenes in life such as: life
Supermarket, pet shop, household safety-protection, corporate security, parking lot, automobile data recorder etc..
The present invention can monitor the overall process that dining room is cooked, and can solve the safety problem of people's food, eat people
Trust, feel at ease.It can be applied in family or company or shop, only need to set the IP address of IP Camera i.e.
It can!Support the camera product of most of type.
By means of the present invention, can arbitrarily be arranged the window's position, window size, setting circulation video play lists,
Video monitoring interval switching time.Solve the problems, such as the video monitoring of digital signage and playing back videos.
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and
Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.