CN110266987B - Passive video recording method and computer readable storage medium - Google Patents

Passive video recording method and computer readable storage medium Download PDF

Info

Publication number
CN110266987B
CN110266987B CN201910675571.8A CN201910675571A CN110266987B CN 110266987 B CN110266987 B CN 110266987B CN 201910675571 A CN201910675571 A CN 201910675571A CN 110266987 B CN110266987 B CN 110266987B
Authority
CN
China
Prior art keywords
video
time
passive
monitoring device
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910675571.8A
Other languages
Chinese (zh)
Other versions
CN110266987A (en
Inventor
张宇
王剑波
陈绪军
贺勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Santachi Video Technology Shenzhen Co ltd
Original Assignee
Santachi Video Technology Shenzhen Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Santachi Video Technology Shenzhen Co ltd filed Critical Santachi Video Technology Shenzhen Co ltd
Priority to CN201910675571.8A priority Critical patent/CN110266987B/en
Publication of CN110266987A publication Critical patent/CN110266987A/en
Application granted granted Critical
Publication of CN110266987B publication Critical patent/CN110266987B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/27Server based end-user applications
    • H04N21/274Storing end-user multimedia data in response to end-user request, e.g. network recorder
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47202End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for requesting content on demand, e.g. video on demand
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/64Addressing
    • H04N21/6405Multicasting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/91Television signal processing therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast

Abstract

The invention discloses a passive video recording method and a computer readable storage medium, wherein the method comprises the following steps: associating the video monitoring device with a passive video recording server; the method comprises the steps that a central platform receives a real-time video viewing request sent by a client or a decoder and sends the real-time video viewing request to a corresponding video monitoring device; the video monitoring device sends the real-time video data to a corresponding streaming media forwarding server; the streaming media forwarding server returns the received real-time video data to the client or the decoder, and simultaneously distributes the real-time video data to a passive video server corresponding to the video monitoring device; and the passive video recording server stores the real-time video data into at least one video recording file according to the preset video recording file duration, and records the video starting time and the video ending time corresponding to each video recording file. The invention can solve the problem of repeated transmission of the video stream.

Description

Passive video recording method and computer readable storage medium
Technical Field
The present invention relates to the field of video surveillance technology, and in particular, to a passive video recording method and a computer-readable storage medium.
Background
In the field of traditional video monitoring, video recording is an important evidence for performing on-site monitoring video analysis afterwards and tracing events. In a common project, a video monitoring device is required to record 24 hours in a system, and the storage time is stored for 3 months and 6 months according to the importance degree of the deployment position of the monitoring device. But in some industry-specific scenarios, for example: in the power transmission industry, a video monitoring device is installed on a remote mountain, a monitoring device is connected into a platform system through a mobile network (3G/4G/5G), and if 24-hour video recording is carried out on a central platform, expensive mobile communication cost and high-requirement bandwidth are required, the project cannot be normally implemented. Therefore, in the project, a storage device is usually installed in the video monitoring device, and when the equipment is in an operating state, video recording storage is performed locally in the video monitoring device. When needing to inquire the video in a certain period of time of a certain video monitoring device, needing to transmit the video data back from the video device through the mobile network, and if needing to watch the video repeatedly, needing to transmit the video data back repeatedly by the mobile network; in addition, when a real-time video of a certain video device is checked in the system, the video device transmits the real-time video data back, and if the video content in the process needs to be analyzed or stored again, the video content needs to be repeatedly transmitted from the video device through the video inquiry function. The process will result in the waste of the video device traffic and the increase of the bandwidth load of the whole system, especially when a serious natural disaster occurs, the data transmitted from the video device to the platform is invaluable, the repeated transmission will waste time and bandwidth, and even the accurate and fast processing of the disaster will be affected.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: a passive video recording method and a computer readable storage medium are provided to solve the problem of repeated transmission of video streams.
In order to solve the technical problems, the invention adopts the technical scheme that: a passive video recording method, comprising:
when a video monitoring device starts a passive video recording function, associating the video monitoring device with a passive video recording server;
the method comprises the steps that a central platform receives a real-time video viewing request sent by a client or a decoder, wherein the video on demand request comprises a video device number;
the central platform sends the real-time video viewing request to the video monitoring device corresponding to the video device number;
the video monitoring device sends real-time video data to a corresponding streaming media forwarding server;
the streaming media forwarding server returns the received real-time video data to the client or the decoder, and simultaneously distributes the real-time video data to a passive video server corresponding to the video monitoring device;
and the passive video recording server stores the real-time video data into at least one video recording file according to preset video recording file duration, and records the video starting time and the video ending time corresponding to each video recording file.
The invention also relates to a computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps as described above.
The invention has the beneficial effects that: by storing the video data requested by the user from the video monitoring device into the passive video recording server and recording the corresponding video starting time and video ending time, the video monitoring device is not required to repeatedly transmit when the video corresponding to the video monitoring device in the corresponding time range is requested next time as long as the real-time video or the video-on-demand requested by the user is requested, and the video data transmitted by the video monitoring device can be fully utilized. The invention can solve the problems that the video bandwidth, the video flow and the on-site continuous power supply can not meet the requirement because the video data needs to be continuously requested from the video monitoring device when the existing active video recording technology carries out video recording, reduces the consumption of the flow and the electric energy of the front-end video monitoring device, and optimizes the front-end access bandwidth load.
Drawings
FIG. 1 is a flow chart of a passive video recording method according to the present invention;
FIG. 2 is a flowchart illustrating passive recording of real-time video according to a first embodiment of the present invention;
fig. 3 is a flowchart of passively recording an on-demand video according to an embodiment of the present invention.
Detailed Description
In order to explain technical contents, objects and effects of the present invention in detail, the following detailed description is given with reference to the accompanying drawings in conjunction with the embodiments.
The most key concept of the invention is as follows: as long as the real-time video or the on-demand video requested by the user is stored in the passive video recording server, if the video data of the subsequent request is stored in the passive video recording server, the video data can be directly obtained from the passive video recording server without requesting a video monitoring device.
Referring to fig. 1, a passive video recording method includes:
when a video monitoring device starts a passive video recording function, associating the video monitoring device with a passive video recording server;
the method comprises the steps that a central platform receives a real-time video viewing request sent by a client or a decoder, wherein the video on demand request comprises a video device number;
the central platform sends the real-time video viewing request to the video monitoring device corresponding to the video device number;
the video monitoring device sends real-time video data to a corresponding streaming media forwarding server;
the streaming media forwarding server returns the received real-time video data to the client or the decoder, and simultaneously distributes the real-time video data to a passive video server corresponding to the video monitoring device;
and the passive video recording server stores the real-time video data into at least one video recording file according to preset video recording file duration, and records the video starting time and the video ending time corresponding to each video recording file.
From the above description, the beneficial effects of the present invention are: the problem of repeated transmission of video streams can be solved, the flow and the consumption of electric energy of the front-end video monitoring device are reduced, and the front-end access bandwidth load is optimized.
Further, still include:
the method comprises the steps that a central platform receives a video query request sent by a client or a decoder, wherein the video query request comprises a video device number, query starting time and query ending time;
the central platform inquires the video data within the range of the inquiry starting time and the inquiry ending time from the video monitoring device corresponding to the video device number and the passive video server corresponding to the video monitoring device, and obtains the storage position of the video data corresponding to the video inquiry request;
and the central platform returns the storage position of the video data corresponding to the video query request to the client or the decoder.
As can be seen from the above description, by querying the storage location of the video data in the specified time period, it is convenient for the subsequent user to request the video data.
Further, still include:
the method comprises the steps that a central platform receives a video-on-demand request sent by a client or a decoder, wherein the video-on-demand request comprises a video device number and a video time point;
the central platform judges whether a video file is stored in a passive video server corresponding to the video device number, wherein the video time point is within the video starting time and the video ending time of the video file;
if the video data exists, the video time point in the video file and the video data after the video time point are sent to the client or the decoder through a streaming media forwarding server;
if the video data does not exist, the video monitoring device corresponding to the video device number sends the video time point and the on-demand video data behind the video time point to a corresponding streaming media forwarding server;
the streaming media forwarding server returns the on-demand video data to the client or the decoder, and simultaneously distributes the on-demand video data to a passive video server corresponding to the video monitoring device;
and the passive video recording server stores the video-on-demand data into at least one video file according to preset video file duration, and records video starting time and video ending time corresponding to each video file.
According to the above description, the requested video requested by the user is stored in the passive video server, and when the subsequent user requests to request the video data in the same time period, the video data can be directly acquired from the passive video server. The problem that the video device needs to repeatedly transmit the video in the same time period when the video monitoring device carries out video recording for multiple video requests can be solved; the problem that the video device needs to be repeatedly transmitted if the video data in the time range needs to be checked again in the time range of the real-time video of the video device can be solved.
Further, after the video data in the video file at the video time point and after the video time point is sent to the client or the decoder through the streaming media forwarding server, the method further includes:
and when the video data after the video time point in the video file is sent, returning a message of finishing sending to the client or the decoder.
As can be seen from the above description, after receiving the sent message, the client or the decoder can determine whether to continue requesting the video on demand according to the policy.
Further, still include:
if two video files exist in the passive video server, the video time lengths in the two video files are both smaller than the preset video file time length, and the video end time of one video file is consistent with the video start time of the other video file, merging the two video files according to the time;
and if the video time length in the combined video file exceeds the preset video file time length, dividing the combined video file according to the video file time length.
According to the description, the storage mode of the video data in the passive video recording server is optimized through the merged storage of the video files.
Further, when a video monitoring apparatus starts a passive video recording function, associating the video monitoring apparatus with a passive video recording server specifically includes:
respectively allocating a unique passive video number for each passive video server;
respectively allocating unique video device numbers to the video monitoring devices;
when a video monitoring device starts a passive video recording function, a passive video recording server is configured for the video monitoring device, and the video device number of the video monitoring device is associated with the passive video recording number of the passive video recording server.
As can be seen from the above description, by configuring a passive video recording server for a video monitoring apparatus, the passive video recording server in which video data of the video monitoring apparatus is stored can be determined.
Further, the sending, by the central platform, the real-time video viewing request to the video monitoring device corresponding to the video device number specifically includes:
the central platform judges whether the video monitoring device corresponding to the video device number is on-line;
if not, the central platform returns an offline message to the client or the decoder;
if the real-time video viewing request is online, the central platform sends the real-time video viewing request to a video monitoring device corresponding to the video device number and a streaming media forwarding server corresponding to the video monitoring device;
and the streaming media forwarding server establishes video transmission connection with a passive video recording server corresponding to the video monitoring device.
As can be seen from the above description, the streaming media forwarding server and the passive video recording server establish a video transmission connection first, so that the subsequent streaming media forwarding server can distribute video data to the passive video recording server for storage.
The invention also proposes a computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps as described above.
Example one
Referring to fig. 2-3, a first embodiment of the present invention is: a passive video recording method can be applied to a video monitoring system. The method is based on a passive video architecture, the architecture comprises a central platform, a passive video server (a server with a passive video module, wherein the passive video module is provided with a storage device), a streaming media forwarding server and a video monitoring device, the central platform is respectively connected with the passive video server, the streaming media forwarding server and the video monitoring device, and the streaming media forwarding server is respectively connected with the passive video server and the video monitoring device; optionally, the system may further comprise a central on-demand server, and the central on-demand server is connected to the central platform, the passive video recording server, and the video monitoring device, respectively.
Since the number of the video monitoring devices may reach 10 ten thousand levels, the number of the passive video recording servers, the streaming media forwarding servers and the central on-demand servers may be multiple, and the passive video recording servers, the streaming media forwarding servers and the central on-demand servers may be deployed in multiple ways according to the deployment range of the video monitoring devices. The video monitoring device is registered on the streaming media forwarding server, the association relationship between the video monitoring device and the streaming media forwarding server is established after the registration, and the subsequent video data sent to the client or the decoder by the video monitoring device is carried out through the streaming media forwarding server.
Each passive video server is assigned a unique passive video recording number (pmuid), and each video monitoring device is assigned a unique video device number (GUID). When a video monitoring device starts a passive video recording function, a passive video recording server is configured for the video monitoring device, and the video device number of the video monitoring device is associated with the passive video recording number of the passive video recording server. In this embodiment, one passive video recording server may be associated with a plurality of video monitoring devices, but one video monitoring device is associated with only one passive video recording server.
Furthermore, the passive video serial number of the passive video server can be associated with the IP address of the passive video server, the association relation is stored in the central platform, and subsequently the authenticity of the passive video server can be verified according to the association relation, so that the purpose of authentication is realized.
Optionally, the video monitoring device and the central platform are deployed through a VPN, or the video monitoring device and the central platform are in the same local area network, and multicast is allowed in the network, the video monitoring device sets a video multicast address for real-time video/video on demand, all network devices added in the multicast can acquire a video stream, and the passive video server can perform passive video recording by monitoring whether the video stream exists in the multicast address.
The method mainly comprises two parts, namely real-time video passive recording and on-demand video passive recording, and further comprises the inquiry of a video storage position before the on-demand video passive recording. The passive video recording in the method means that the passive video recording server does not actively request to acquire the video stream of the video monitoring device for storage, but the video stream of the video monitoring device exists in the central platform or the streaming media forwarding server, and the video monitoring device is configured with a passive video recording function, so that the passive video recording server passively receives and stores the video stream. That is, as long as the video stream is requested by the user, the video stream is stored in the passive video recording server, so as to solve the problem of repeated transmission of the video stream.
As shown in fig. 2, the passive real-time video recording mainly includes the following steps:
s101: the central platform receives a real-time video viewing request sent by a client or a decoder, wherein the video-on-demand request comprises a video device number.
S102: the central platform judges whether the video monitoring device corresponding to the video device number is on-line, if so, step S104 is executed, and if not, step S103 is executed.
S103: the central platform returns an offline message to the client or decoder.
S104: the central platform sends the real-time video viewing request to the video monitoring device corresponding to the video device number; and further, the video monitoring device further sends the video to a streaming media forwarding server corresponding to the video monitoring device, and the streaming media forwarding server establishes video transmission connection with a passive video server corresponding to the video monitoring device.
S105: and the video monitoring device sends the real-time video data to the corresponding streaming media forwarding server until receiving a viewing finishing instruction.
S106: and the streaming media forwarding server returns the received real-time video data to the client or the decoder, and simultaneously distributes the real-time video data to a passive video server corresponding to the video monitoring device.
S107: and the passive video recording server stores the real-time video data into at least one video recording file according to preset video recording file duration, and records the video starting time and the video ending time corresponding to each video recording file. If the duration of the real-time video data does not exceed the preset video file duration, the real-time video data is directly stored as a video file, and if the duration of the real-time video data does not exceed the preset video file duration, the real-time video data is segmented according to the preset video file duration and stored as different video files.
Preferably, the preset video file duration is 10 minutes. For example, when real-time video data of 10:00:00 to 10:15:00 is received, the real-time video data of 10:00:00 to 10:10:00 is saved as a video file, the video start time of the video file is 10:00:00, and the video end time is 10:10: 00; and saving the real-time video data of 10:10:00-10:15:00 as another video file, wherein the video starting time of the video file is 10:10:00, and the video ending time of the video file is 10:15: 00.
Further, when the client or the decoder wants to finish viewing the real-time video, the client or the decoder sends a viewing finishing instruction to the central platform, the central platform forwards the viewing finishing instruction to the video monitoring device, and the video monitoring device stops sending the real-time video data to the client or the decoder through the streaming media forwarding server. The video time is contained in general video data, so the passive video recording server can acquire the video start time and the video end time according to the received real-time video data.
The query of the video storage location comprises the following steps:
firstly, a central platform receives a video query request sent by a client or a decoder, wherein the video query request comprises a video device number, query starting time and query ending time;
then, the central platform inquires the video data within the range of the inquiry starting time and the inquiry ending time from the video monitoring device corresponding to the video device number and the passive video server corresponding to the video monitoring device, and obtains the storage position of the video data corresponding to the video inquiry request;
and finally, the central platform returns the storage position of the video data corresponding to the video query request to the client or the decoder.
For example, when a client inquires about the storage location of video data of a video monitoring device with the video device number of A in a time period of 09:50:00-10:05:00, the central platform inquires whether the video data in the time period range exists or not from the video monitoring device A and a corresponding passive video server B, and if the inquired video monitoring device A has the complete video data in the time period range and the passive video server B only has the video data in the time period range of 10:00:00-10:05:00, the storage location of the video data corresponding to 09:50:00-10:00:00 is the video monitoring device A, and the storage location of the video data corresponding to 10:00:00-10:05:00 is the video monitoring device A and the corresponding passive video server B. The query result can be as "09: 50:00-10:00:00 video monitoring device A; the video monitoring device A/the passive video recording server B' can also be represented in a time axis or file list mode as shown in 10:00:00-10:05: 00. And finally, returning the query result to the client.
As shown in fig. 3, the passive recording of video on demand includes the following steps:
s201: the central platform receives a video-on-demand request sent by a client or a decoder, wherein the video-on-demand request comprises a video device number and a video time point.
S202: the central platform judges whether a video file is stored in the passive video server corresponding to the video device number, the video time point is within the video start time and the video end time of the video file, namely, the passive video server corresponding to the video monitoring device corresponding to the video device number is obtained, whether video data corresponding to the video time point is stored in the passive video server is judged, if yes, step S203 is executed, and if not, step S204 is executed.
Further, if the client and the decoder are on demand based on the video query request, that is, the video time point is within the query start time and the query end time of the video query request, the central platform may perform the determination of the step according to the obtained query result, that is, the storage location of the video data corresponding to the video query request.
Optionally, the central platform sends the vod request to the central vod server, and the central vod server performs the determination of the step.
S203: and sending the video time point in the video file and the video data after the video time point to the client or the decoder through a streaming media forwarding server.
In the method, the on-demand video data is sent in a streaming transmission mode, for example, the video data of 1s or 5s is sent each time, and when an on-demand ending instruction is not received, the next sending is continued; and when the on-demand ending instruction is received, stopping sending. Therefore, in this step, if the on-demand end instruction sent by the client or the decoder is not received all the time, the video data after the video time point in the video file is returned to the client or the decoder in a streaming media manner until the on-demand end instruction is received.
Optionally, the requested video data is sent to the client or decoder by a central on-demand server. Further, if the central on-demand server detects a failure of the client or the decoder (for example, by a heartbeat mechanism), it generates an on-demand end instruction to stop the on-demand process.
S204: the video monitoring device corresponding to the video device number sends the video time point and the on-demand video data after the video time point to a corresponding streaming media forwarding server; furthermore, the streaming media forwarding server establishes a video transmission connection with a passive video recording server corresponding to the video monitoring device.
S205: and the streaming media forwarding server returns the video-on-demand data to the client or the decoder and simultaneously distributes the video-on-demand data to a passive video recording server corresponding to the video monitoring device.
S206: and the passive video recording server stores the video-on-demand data into at least one video file according to preset video file duration, and records video starting time and video ending time corresponding to each video file. This step may refer to step S107.
Further, after step S203, when the video data after the video time point in the video recording file is completely sent, the sent message is returned to the client or the decoder. At this time, the client or the decoder may determine whether to continue sending the vod request according to a preset policy. For example, if the preset policy is that the video on demand request is continued, the video end time of the video file is used as a new video time point, or the video end time of the video file is added by 1 second to be used as a new video time point, and the video on demand request is continuously sent to the central platform.
Further, in the process of on-demand playing, if a drag and drop action (for example, dragging a progress bar) occurs to the user, the video-on-demand request is resent according to the dragged and dropped video time point. If the intermediate skipped video is requested to be requested subsequently, the video files with continuous time can be merged and stored in the passive video server.
Specifically, if two video files exist in the passive video server, the video durations in the two video files are both smaller than the preset video file duration, and the video end time of one video file is consistent with the video start time of the other video file, the two video files are merged according to the time; and if the video time length in the combined video file exceeds the preset video file time length, dividing the combined video file according to the video file time length. Further, the steps can be expanded to merge multiple video files.
For example, assuming that the preset video file duration is 10 minutes, there are three video files W1, W2, and W3, the video start time and the video end time of W1 are 10:00:00 and 10:02:00, respectively, the video start time and the video end time of W2 are 10:08:00 and 10:15:00, respectively, and the video start time and the video end time of W3 are 10:02:00 and 10:08:00, respectively. The video time lengths of the three video files are all less than 10 minutes, the video end time of W1 is consistent with the video start time of W3, the video end time of W3 is consistent with the video start time of W2, therefore, the video data in the three video files can be merged according to the sequence of W1, W3 and W2, the video start time and the video end time of the merged video data are 10:00:00 and 10:15:00 respectively, the video time length is 15 minutes and exceeds 10 minutes, the merged video data are divided into two video files for storage, the video start time and the video end time of the first video file are 10:00:00 and 10:10:00 respectively, and the video start time and the video end time of the second video file are 10:10:00 and 10:15:00 respectively.
The clients or decoders in the above process may be different clients or decoders, and the passive video recording server only stores one copy of video data of the same video monitoring apparatus at the same time point. That is, as long as a segment of video data of the video monitoring apparatus is requested, other subsequent clients or decoders can directly obtain the segment of video data from the passive video recording server when requesting the segment of video data.
In this embodiment, a transmission network for transmitting a video stream (real-time video/video) of the video monitoring apparatus to a streaming media, a transmission protocol, a storage organization manner of the video stream, and a packaging manner of the video stream are not particularly limited. For example: in a 4G network, a video-on-demand request is carried out through an SIP protocol, video streams of a video monitoring device are transmitted in an RTP + PS mode, and video files are packaged and stored in an MP4 file format; in the 4G network, a video-on-demand request is carried out through a southern power grid protocol, video streams of the video monitoring device are transmitted in an RTP + ES mode, and video files are packaged and stored in a proprietary file format of a manufacturer.
In this embodiment, as long as real-time video viewing is performed, video data in the viewing process will be stored in the passive video server, and when the video in this period is viewed again or downloaded for use, the video data can be directly obtained from the passive video server, so that the flow and electric energy consumption of the front-end video monitoring device can be reduced, the access bandwidth load of the front end of the whole system is optimized, and the video data transmitted back to the platform by the video monitoring device is fully utilized. Meanwhile, as long as videos which are requested or downloaded from the video monitoring device are recorded, the videos corresponding to the time period range are stored in the passive video server, and the videos in the time period are viewed or downloaded again next time and are directly acquired from the passive video server.
The embodiment can solve the problems that the video bandwidth, the video flow and the on-site continuous power supply can not meet the requirements because the video data needs to be continuously requested from the video monitoring device when the existing active video technology carries out video recording; the problem that the video device needs to repeatedly transmit the video in the same time period when the video monitoring device carries out video recording for multiple video requests can be solved; the problem that the video device needs to be repeatedly transmitted if the video data in the time range needs to be checked again in the time range of the real-time video of the video device can be solved.
Example two
The present embodiment is a computer-readable storage medium corresponding to the above-mentioned embodiments, on which a computer program is stored, which when executed by a processor implements the steps of:
when a video monitoring device starts a passive video recording function, associating the video monitoring device with a passive video recording server;
the method comprises the steps that a central platform receives a real-time video viewing request sent by a client or a decoder, wherein the video on demand request comprises a video device number;
the central platform sends the real-time video viewing request to the video monitoring device corresponding to the video device number;
the video monitoring device sends real-time video data to a corresponding streaming media forwarding server;
the streaming media forwarding server returns the received real-time video data to the client or the decoder, and simultaneously distributes the real-time video data to a passive video server corresponding to the video monitoring device;
and the passive video recording server stores the real-time video data into at least one video recording file according to preset video recording file duration, and records the video starting time and the video ending time corresponding to each video recording file.
Further, still include:
the method comprises the steps that a central platform receives a video query request sent by a client or a decoder, wherein the video query request comprises a video device number, query starting time and query ending time;
the central platform inquires the video data within the range of the inquiry starting time and the inquiry ending time from the video monitoring device corresponding to the video device number and the passive video server corresponding to the video monitoring device, and obtains the storage position of the video data corresponding to the video inquiry request;
and the central platform returns the storage position of the video data corresponding to the video query request to the client or the decoder.
Further, still include:
the method comprises the steps that a central platform receives a video-on-demand request sent by a client or a decoder, wherein the video-on-demand request comprises a video device number and a video time point;
the central platform judges whether a video file is stored in a passive video server corresponding to the video device number, wherein the video time point is within the video starting time and the video ending time of the video file;
if the video data exists, the video time point in the video file and the video data after the video time point are sent to the client or the decoder through a streaming media forwarding server;
if the video data does not exist, the video monitoring device corresponding to the video device number sends the video time point and the on-demand video data behind the video time point to a corresponding streaming media forwarding server;
the streaming media forwarding server returns the on-demand video data to the client or the decoder, and simultaneously distributes the on-demand video data to a passive video server corresponding to the video monitoring device;
and the passive video recording server stores the video-on-demand data into at least one video file according to preset video file duration, and records video starting time and video ending time corresponding to each video file.
Further, after the video data in the video file at the video time point and after the video time point is sent to the client or the decoder through the streaming media forwarding server, the method further includes:
and when the video data after the video time point in the video file is sent, returning a message of finishing sending to the client or the decoder.
Further, still include:
if two video files exist in the passive video server, the video time lengths in the two video files are both smaller than the preset video file time length, and the video end time of one video file is consistent with the video start time of the other video file, merging the two video files according to the time;
and if the video time length in the combined video file exceeds the preset video file time length, dividing the combined video file according to the video file time length.
Further, when a video monitoring apparatus starts a passive video recording function, associating the video monitoring apparatus with a passive video recording server specifically includes:
respectively allocating a unique passive video number for each passive video server;
respectively allocating unique video device numbers to the video monitoring devices;
when a video monitoring device starts a passive video recording function, a passive video recording server is configured for the video monitoring device, and the video device number of the video monitoring device is associated with the passive video recording number of the passive video recording server.
Further, the sending, by the central platform, the real-time video viewing request to the video monitoring device corresponding to the video device number specifically includes:
the central platform judges whether the video monitoring device corresponding to the video device number is on-line;
if not, the central platform returns an offline message to the client or the decoder;
if the real-time video viewing request is online, the central platform sends the real-time video viewing request to a video monitoring device corresponding to the video device number and a streaming media forwarding server corresponding to the video monitoring device;
and the streaming media forwarding server establishes video transmission connection with a passive video recording server corresponding to the video monitoring device.
In summary, the passive video recording method and the computer-readable storage medium provided by the present invention can solve the problem that the video bandwidth, the video flow and the on-site continuous power supply cannot meet the requirement when the existing active video recording technology needs to continuously request the video data from the video monitoring device during video recording; the problem that the video device needs to repeatedly transmit the video in the same time period when the video monitoring device carries out video recording for multiple video requests can be solved; the problem that the video device needs to be repeatedly transmitted if the video data in the time range needs to be checked again in the time range of the real-time video of the video device can be solved. The video monitoring device can ensure that the video data transmitted by the video monitoring device can be fully utilized as long as the real-time video or the on-demand video requested by the user is not required to be transmitted repeatedly by the video monitoring device when the video corresponding to the corresponding time range of the video monitoring device is requested next time.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all equivalent changes made by using the contents of the present specification and the drawings, or applied directly or indirectly to the related technical fields, are included in the scope of the present invention.

Claims (7)

1. A passive video recording method, comprising:
when a video monitoring device starts a passive video recording function, associating the video monitoring device with a passive video recording server;
the method comprises the steps that a central platform receives a real-time video viewing request sent by a client or a decoder, wherein the real-time video viewing request comprises a video device number;
the central platform sends the real-time video viewing request to the video monitoring device corresponding to the video device number;
the video monitoring device sends real-time video data to a corresponding streaming media forwarding server;
the streaming media forwarding server returns the received real-time video data to the client or the decoder, and simultaneously distributes the real-time video data to a passive video server corresponding to the video monitoring device;
the passive video recording server stores the real-time video data into at least one video recording file according to preset video recording file duration, and records video starting time and video ending time corresponding to each video recording file;
further comprising:
the method comprises the steps that a central platform receives a video query request sent by a client or a decoder, wherein the video query request comprises a video device number, query starting time and query ending time;
the central platform inquires the video data within the range of the inquiry starting time and the inquiry ending time from the video monitoring device corresponding to the video device number and the passive video server corresponding to the video monitoring device, and obtains the storage position of the video data corresponding to the video inquiry request;
and the central platform returns the storage position of the video data corresponding to the video query request to the client or the decoder.
2. The passive video recording method according to claim 1, further comprising:
the method comprises the steps that a central platform receives a video-on-demand request sent by a client or a decoder, wherein the video-on-demand request comprises a video device number and a video time point;
the central platform judges whether a video file is stored in a passive video server corresponding to the video device number, wherein the video time point is within the video starting time and the video ending time of the video file;
if the video data exists, the video time point in the video file and the video data after the video time point are sent to the client or the decoder through a streaming media forwarding server;
if the video data does not exist, the video monitoring device corresponding to the video device number sends the video time point and the on-demand video data behind the video time point to a corresponding streaming media forwarding server;
the streaming media forwarding server returns the on-demand video data to the client or the decoder, and simultaneously distributes the on-demand video data to a passive video server corresponding to the video monitoring device;
and the passive video recording server stores the video-on-demand data into at least one video file according to preset video file duration, and records video starting time and video ending time corresponding to each video file.
3. The passive video recording method according to claim 2, wherein after the video data of the video time point and the video data after the video time point in the video recording file are sent to the client or the decoder through a streaming media forwarding server, the method further comprises:
and when the video data after the video time point in the video file is sent, returning a message of finishing sending to the client or the decoder.
4. The passive video recording method according to claim 1 or 2, further comprising:
if two video files exist in the passive video server, the video time lengths in the two video files are both smaller than the preset video file time length, and the video end time of one video file is consistent with the video start time of the other video file, merging the two video files according to the time;
and if the video time length in the combined video file exceeds the preset video file time length, dividing the combined video file according to the video file time length.
5. The passive video recording method according to claim 1, wherein said associating a video surveillance appliance with a passive video recording server when the video surveillance appliance starts the passive video recording function is:
respectively allocating a unique passive video number for each passive video server;
respectively allocating unique video device numbers to the video monitoring devices;
when a video monitoring device starts a passive video recording function, a passive video recording server is configured for the video monitoring device, and the video device number of the video monitoring device is associated with the passive video recording number of the passive video recording server.
6. The passive video recording method according to claim 1, wherein the sending of the real-time video viewing request to the video monitoring device corresponding to the video device number by the central platform is specifically:
the central platform judges whether the video monitoring device corresponding to the video device number is on-line;
if not, the central platform returns an offline message to the client or the decoder;
if the real-time video viewing request is online, the central platform sends the real-time video viewing request to a video monitoring device corresponding to the video device number and a streaming media forwarding server corresponding to the video monitoring device;
and the streaming media forwarding server establishes video transmission connection with a passive video recording server corresponding to the video monitoring device.
7. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
CN201910675571.8A 2019-07-25 2019-07-25 Passive video recording method and computer readable storage medium Active CN110266987B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910675571.8A CN110266987B (en) 2019-07-25 2019-07-25 Passive video recording method and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910675571.8A CN110266987B (en) 2019-07-25 2019-07-25 Passive video recording method and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110266987A CN110266987A (en) 2019-09-20
CN110266987B true CN110266987B (en) 2021-05-11

Family

ID=67928267

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910675571.8A Active CN110266987B (en) 2019-07-25 2019-07-25 Passive video recording method and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110266987B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113382195B (en) * 2020-02-25 2022-08-26 杭州海康威视数字技术股份有限公司 Video recording method and device
CN113407770A (en) * 2021-06-24 2021-09-17 深圳智多豚物联技术有限公司 Cloud playback index service method and system based on redis

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102572348A (en) * 2011-12-16 2012-07-11 中兴通讯股份有限公司 Method, device and system for mirror image of platform video of video monitoring system
CN103702177A (en) * 2013-12-13 2014-04-02 乐视网信息技术(北京)股份有限公司 Method for storing video file and player
EP2795600A4 (en) * 2011-12-22 2015-10-07 Pelco Inc Cloud-based video surveillance management system
CN105828046A (en) * 2016-05-16 2016-08-03 浙江宇视科技有限公司 Data flow transmission method and device
CN108632568A (en) * 2017-03-17 2018-10-09 北京京东尚科信息技术有限公司 Review method, apparatus, electronic equipment and the readable storage medium storing program for executing of monitor video
CN109714540A (en) * 2019-02-26 2019-05-03 浪潮软件集团有限公司 A kind of H265 format monitor video merging method, device and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102572348A (en) * 2011-12-16 2012-07-11 中兴通讯股份有限公司 Method, device and system for mirror image of platform video of video monitoring system
EP2795600A4 (en) * 2011-12-22 2015-10-07 Pelco Inc Cloud-based video surveillance management system
CN103702177A (en) * 2013-12-13 2014-04-02 乐视网信息技术(北京)股份有限公司 Method for storing video file and player
CN105828046A (en) * 2016-05-16 2016-08-03 浙江宇视科技有限公司 Data flow transmission method and device
CN108632568A (en) * 2017-03-17 2018-10-09 北京京东尚科信息技术有限公司 Review method, apparatus, electronic equipment and the readable storage medium storing program for executing of monitor video
CN109714540A (en) * 2019-02-26 2019-05-03 浪潮软件集团有限公司 A kind of H265 format monitor video merging method, device and system

Also Published As

Publication number Publication date
CN110266987A (en) 2019-09-20

Similar Documents

Publication Publication Date Title
CN106161471B (en) Intelligent driving recording system and live broadcasting method
EP2346250B1 (en) Method and system for downloading internet TV media content using a peer-to-peer exchange area at the server side and a peer-to-peer exchange area at the terminal side
US8429263B2 (en) File content distribution method, device, and system for an interactive network television system
JP5022929B2 (en) Content management system and content management method
US8239546B1 (en) Global access control for segmented streaming delivery
US8166154B2 (en) Method for streaming multimedia content
US20040249965A1 (en) Node caching system for streaming media applications
WO2013178010A1 (en) Multimedia content distribution method, device and system
EP2779658A2 (en) Segmented content delivery
US20090119734A1 (en) Distributed Cache Algorithms and System for Time-Shifted, and Live, Peer-to-Peer Video Streaming
JP5269208B2 (en) Data distribution method and apparatus
EP2566134A1 (en) Method, apparatus and system for intercutting advertisement
US11122108B2 (en) End-to-end file transmission method and system thereof
MXPA06000670A (en) Method and system for providing a transmission link for streaming traffic.
CN110266987B (en) Passive video recording method and computer readable storage medium
CN109600671A (en) A kind of system and method that network machine top box quickly upgrades
CN102571409B (en) Service request management system and method for realizing service across-terminal application
JP3809813B2 (en) Content distribution method and content distribution system using the same
US20110016222A1 (en) Network element for enabling a user of an iptv system to obtain media stream from a surveillance system and corresponding method
JP2012108909A (en) File transmission management system and file transmission controlling method for supporting file transmission on mobile messaging service
US20100306809A1 (en) method for distributing a file content of an interactive network television system
US9832527B2 (en) System and a method for distributing content via static channel assignment in a mobile content gateway
WO2016090912A1 (en) Method, device, terminal and system for generating and playing live video
CN101888406A (en) Set top box, business server, program downloading method and program transmitting method and system
US20130061274A1 (en) Apparatus and method for managing a plurality of services

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 518000 floor 101-5, building J, Shengli Industrial Park, No. 306, Xuegang North Road, Qinghu community, Longhua street, Longhua District, Shenzhen City, Guangdong Province

Applicant after: Shenzhen Jin made video Polytron Technologies Inc

Address before: 518000 Longhua Guangdong New District, Longhua street, Qinghua Road, west side of the south side of the building J Industrial Park, building to 5 level 1

Applicant before: Shenzhen Jin made video Polytron Technologies Inc

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant