[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN112752100B - Method and device for determining video integrity and readable storage medium - Google Patents

Method and device for determining video integrity and readable storage medium Download PDF

Info

Publication number
CN112752100B
CN112752100B CN202011597178.0A CN202011597178A CN112752100B CN 112752100 B CN112752100 B CN 112752100B CN 202011597178 A CN202011597178 A CN 202011597178A CN 112752100 B CN112752100 B CN 112752100B
Authority
CN
China
Prior art keywords
video
time
recording
event
integrity
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
CN202011597178.0A
Other languages
Chinese (zh)
Other versions
CN112752100A (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.)
Hangzhou Hikvision System Technology Co Ltd
Original Assignee
Hangzhou Hikvision System Technology 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 Hangzhou Hikvision System Technology Co Ltd filed Critical Hangzhou Hikvision System Technology Co Ltd
Priority to CN202011597178.0A priority Critical patent/CN112752100B/en
Publication of CN112752100A publication Critical patent/CN112752100A/en
Application granted granted Critical
Publication of CN112752100B publication Critical patent/CN112752100B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/06Diagnosis, testing or measuring for television systems or their details for recorders
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The application provides a method and a device for determining the integrity of a video and a readable storage medium, relates to the technical field of video monitoring, and solves the problem that a determination result in a method for determining the integrity of the video is inaccurate. The method for determining the integrity of the video comprises the following steps: acquiring state information of a trigger event and time information of a video file; the trigger event is used for triggering generation of the video file, the state information comprises event starting time of the trigger event, and the time information comprises video starting time and video ending time of the video file; and determining the integrity of the video files according to the state information and the time information.

Description

Method and device for determining video integrity and readable storage medium
Technical Field
The present application relates to the field of video surveillance technologies, and in particular, to a method and an apparatus for determining video integrity, and a readable storage medium.
Background
Event recording generally refers to linked recording after an event occurs. The current methods for determining the integrity of an event recording are generally: and acquiring device logs of two events of starting video recording and ending video recording, and then judging whether the event video recording is complete according to the video recording starting time and the video recording ending time in the acquired device logs.
However, in an actual application scenario, since the device logs may not correspond to one recording start time and one recording end time, the device logs including the recording start time and the recording end time cannot be identified by the device. In addition, after the event occurs, the video recording log is not generated under the condition that the video recording equipment fails and the video recording is not linked. Thus, the above method determines inaccurate results.
Disclosure of Invention
The application provides a method and a device for determining the integrity of a video and a readable storage medium, which solve the problem that the determination result in the method for determining the integrity of the video is inaccurate.
In order to achieve the purpose, the following technical scheme is adopted in the application:
in a first aspect, the present application provides a method for determining video integrity, where the method is applied to a device for determining video integrity, and the device for determining video integrity acquires state information of a trigger event (including an event start time of the trigger event) and time information of a video file (including a video start time and a video end time of the video file), and determines the integrity of the video file according to the state information and the time information. The triggering event is used for triggering generation of the video file.
In the above solution, the device for determining the integrity of the video recording determines the integrity of the video recording file according to the event start time of the trigger event, the video recording start time of the video recording file, and the video recording end time of the video recording file. The video file in the application is generated by triggering a triggering event, the event starting time of the triggering event represents that the triggering event occurs at the moment, and the video starting time and the video ending time of the video file represent the recording moment of the video file. Therefore, the state information of the trigger event can accurately reflect whether the trigger event occurs, and the time information of the video file can accurately reflect whether the video file is recorded or not when the trigger event occurs. Therefore, the result of the completeness of the video file determined by the method is accurate.
Optionally, the method for determining the integrity of the video file according to the state information and the time information includes: and determining at least two recording moments of the video file according to the video starting moment and the video ending moment of the video file, and determining the integrity of the video file according to the state information and the at least two recording moments.
In the above scheme, the device for determining the integrity of the video record is the recording time of filling the video record file between the video record starting time and the video record ending time. Therefore, when the integrity of the video file is determined according to the at least two recording moments and the state information of the filled video file, each of the at least two recording moments can be compared with the event starting moment, so that the problem of mistaken determination (the complete video file is identified as incomplete) caused by network delay and other factors when the video starting moment, the video ending moment and the event starting moment are only compared is solved, and the accuracy of the determined result of the integrity of the video file is improved.
Optionally, the method for determining the integrity of the video file according to the state information and the at least two recording moments includes: and under the condition that the intersection of the event starting moment and at least two recording moments is determined, determining that the video file is complete. And under the condition that the intersection between the event starting moment and at least two recording moments does not exist, determining that the video files are incomplete.
In the above scheme, the determining device for the integrity of the video records intersects the event starting time and at least two recording times, when the intersection exists in the intersection result, the integrity of the video files is determined, and when the intersection does not exist in the intersection result, the incompleteness of the video files is determined. The problem that the determined result is inaccurate when the integrity of the video file is judged according to the video starting time and the video ending time in the equipment log is solved.
Optionally, the state information further includes an event end time of the trigger event and a delay parameter. The delay parameter is used for representing the minimum recording time length of the video file or the delay video recording time length of the video file. The method for determining the integrity of the video file according to the state information and at least two recording moments comprises the following steps: and determining at least one jitter parameter of the video file according to the event starting time, the event ending time, the delay parameter and the at least two recording times. In the event that it is determined that the at least one jitter parameter includes a target jitter parameter, determining that the video file is complete. And determining that the video file is incomplete when the target jitter parameter is not included in the at least one jitter parameter. The target jitter parameter is a jitter parameter of which the value is less than or equal to a preset threshold value; the jitter parameter is the difference between the duration of the trigger event and the duration of the video file.
In the above scheme, the device for determining the integrity of the video records calculates the difference between the duration of the trigger event and the duration of the video file according to the event starting time, the event ending time, the delay parameter and at least two recording times. The delay parameter in the application is the time length of the delayed video of the video file, and when the trigger event is the transient event, the time length of the delayed video is the recording time length of the video file of the transient event. Therefore, the duration of the trigger event can be accurately calculated according to the event starting time, the event ending time and the delay parameter. Therefore, according to the method and the device, when the integrity of the video file is determined according to the difference between the duration of the trigger event and the duration of the video file, the accuracy of the result of the determined integrity of the video file is further improved.
Optionally, the apparatus for determining the integrity of the video recording is applied to a server, and before the state information of the trigger event is acquired, the method for determining the integrity of the video recording further includes: the status signal is received and status information is determined based on the status signal. The state signal comprises the state of the trigger event and the time corresponding to the state of the trigger event.
Optionally, the state information further includes an event end time of the trigger event. The method for determining status information according to the status signal includes: when it is determined that the status signal includes the end status, a time corresponding to the end status is determined as an event end time. In a case where it is determined that the status signal does not include the end status, the target time is determined as an event end time. The target time is the latest time in the time included in all the received state signals.
In the above scheme, the video integrity determination device receives the status signal and determines the status information according to the status signal, so as to determine the integrity of the video file subsequently according to the status information.
In a second aspect, the present application provides an apparatus for determining video integrity. The device for determining the integrity of the video comprises an acquisition module and a determination module. And the acquisition module is used for acquiring the state information of the trigger event and the time information of the video file. And the determining module is used for determining the integrity of the video file according to the state information and the time information acquired by the acquiring module. The trigger event is used for triggering generation of the video file, the state information comprises event starting time of the trigger event, and the time information comprises video starting time and video ending time of the video file.
Optionally, the determining module is specifically configured to determine at least two recording moments of the video file according to the video starting moment and the video ending moment of the video file, and determine the integrity of the video file according to the state information and the at least two recording moments.
Optionally, the determining module is specifically configured to determine that the video file is complete when it is determined that the event start time and the at least two recording times intersect with each other. And under the condition that the intersection between the event starting moment and at least two recording moments does not exist, determining that the video files are incomplete.
Optionally, the state information further includes an event end time of the trigger event and a delay parameter. The delay parameter is used for representing the minimum recording time length of the video file or the delay video recording time length of the video file. A determination module specifically configured to: and determining at least one jitter parameter of the video file according to the event starting time, the event ending time, the delay parameter and the at least two recording times. And determining that the video file is complete when the target jitter parameter is included in the at least one jitter parameter, and determining that the video file is incomplete when the target jitter parameter is not included in the at least one jitter parameter. The target jitter parameter is a jitter parameter with a value smaller than or equal to a preset threshold value. The jitter parameter is the difference between the duration of the trigger event and the duration of the video file.
Optionally, the video integrity determination device is applied to a server. The acquisition module is further used for receiving the status signal. And the determining module is also used for determining the state information according to the state signal. The state signal comprises the state of the trigger event and the time corresponding to the state of the trigger event.
Optionally, the state information further includes an event end time of the trigger event. A determination module specifically configured to: when it is determined that the status signal includes the end status, a time corresponding to the end status is determined as an event end time. Determining the target time as an event end time under the condition that the state signal does not comprise an end state; the target time is the latest time among the times included in all the received status signals.
In a third aspect, the present application provides a device for determining video integrity, where the device for determining video integrity includes a memory and a processor. The memory is coupled to the processor. The memory is for storing computer program code comprising computer instructions. When the computer instructions are executed by a processor, the video integrity determination apparatus performs the method of determining video integrity as described in the first aspect and any of its optional video integrity.
In a fourth aspect, the present application provides a computer-readable storage medium comprising computer instructions which, when run on a video recording integrity determination device, cause the video recording integrity determination device to perform the method of determining video recording integrity as described in the first aspect and any optional method thereof.
In a fifth aspect, the present application provides a computer program product comprising computer instructions which, when run on a video recording integrity determination device, cause the video recording integrity determination device to perform the method of determining video recording integrity according to the first aspect and any optional method of determining video recording integrity thereof.
Reference may be made in detail to the second to fifth aspects and various implementations thereof in the present application to the first aspect and its various implementations; in addition, for the beneficial effects of the second aspect to the fifth aspect, reference may be made to the beneficial effect analysis of the first aspect, which is not described herein again.
In a sixth aspect, the present application provides a method for determining video integrity, where the method for determining video integrity is applied to a video recording device. And the video equipment records the video file and sends a state signal to the server in the process of triggering a preset triggering event. The state signal comprises the state of the trigger event and the time corresponding to the state of the trigger event. The status signal is used to determine the integrity of the video file.
In the above scheme, the video recording device records the video recording file in the process of triggering the trigger event, and sends the status signal to the server, so that the video integrity determination device determines the integrity of the video recording file according to the time information of the video recording file and the status information of the trigger event. The problem that the determined result is inaccurate when the integrity of the video file is judged according to the video starting time and the video ending time in the equipment log is solved.
In a seventh aspect, the present application provides a video recording apparatus, where the determining device includes a processing module and a sending module. And the processing module is used for recording the video file in the process of triggering the preset triggering event. And the sending module is used for sending the state signal to the server. The state signal comprises the state of the trigger event and the time corresponding to the state of the trigger event; the status signal is used to determine the integrity of the video file.
In an eighth aspect, the present application provides a device for determining video integrity, which is applied to a video recording device, and includes a memory and a processor. The memory is coupled to the processor. The memory is for storing computer program code comprising computer instructions. When the processor executes the computer instructions, the video recording integrity determination device performs the video recording integrity determination method according to the sixth aspect.
In a ninth aspect, the present application provides a computer-readable storage medium, which includes computer instructions, when the computer instructions are executed on a video recording integrity determination device, causing the video recording integrity determination device to execute the video recording integrity determination method according to the sixth aspect.
In a tenth aspect, the present application provides a computer program product comprising computer instructions which, when run on a video recording integrity determination device, cause the video recording integrity determination device to perform the video recording integrity determination method according to the sixth aspect.
For a detailed description of the seventh to tenth aspects and their various implementations in this application, reference may be made to the sixth aspect and its various implementations; moreover, for the beneficial effects of the seventh aspect to the tenth aspect, reference may be made to the beneficial effect analysis of the sixth aspect, and details are not repeated here.
These and other aspects of the present application will be more readily apparent from the following description.
Drawings
Fig. 1A is a schematic structural diagram of a video integrity determination system according to an embodiment of the present application;
fig. 1B is a second schematic structural diagram of a video integrity determination system according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a computing device according to an embodiment of the present application;
fig. 3 is a flowchart illustrating a method for determining video integrity according to an embodiment of the present application;
fig. 4 is a second flowchart illustrating a method for determining video integrity according to an embodiment of the present application;
fig. 5 is a timing diagram for determining the integrity of a video file according to an embodiment of the present disclosure;
fig. 6 is a third schematic flowchart of a video integrity determination method according to an embodiment of the present application;
fig. 7 is a fourth flowchart illustrating a video integrity determination method according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a video integrity determination apparatus according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a video recording device according to an embodiment of the present application.
Detailed Description
In the following, the terms "first", "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present embodiment, "a plurality" means two or more unless otherwise specified.
Video recording can be generally divided into timer recording and event recording.
Timer recording generally refers to performing a recording task according to a configured timer recording schedule. For example, if the timer recording schedule configured by the user is all-weather recording, the recording device performs 24-hour continuous recording. For another example, if the timer recording schedule configured by the user is monday to friday recording, the recording apparatus executes the recording task at the designated time of the timer recording schedule.
The event recording generally refers to recording in a linked manner after an event (a trigger event according to the embodiment of the present application) occurs. For example, if the trigger event is configured as a movement event occurring in the monitoring area of the image capturing device (image sensor), the video recording device is triggered to execute a video recording task when an object moves in the monitoring area of the image capturing device.
In the process of executing the video recording task, a video recording video (a video recording file according to the embodiment of the present application) is generated. The hard disk failure, the damage of the server operating system, the loss of the configuration data, the error of the network transmission, the instability of the equipment program and other reasons can cause the interruption or the loss of the video file, and for the scene with the requirement of calling the video file (such as an accident), the loss of the video file can cause the loss of persons and property which are difficult to measure. Therefore, the integrity or continuity of the video file is critical.
The current method for determining the integrity of an event video record is generally as follows: and acquiring device logs of two events of starting video recording and ending video recording, and then judging whether the event video recording is complete according to the video recording starting time and the video recording ending time in the acquired device logs. However, in an actual application scenario, since the device logs may not correspond to one recording start time and one recording end time, the device logs including the recording start time and the recording end time cannot be identified by the device. In addition, after the event occurs, the video recording log is not generated under the condition that the video recording equipment fails and the video recording is not linked. Therefore, the above method determines inaccurate results.
Therefore, the embodiment of the application provides a method for determining the integrity of a video. The determining method can determine the integrity of the video file according to the state information of the trigger event (including the event starting time of the trigger event) and the time information of the video file (including the video starting time and the video ending time of the video file). The state information of the trigger event can accurately reflect whether the trigger event occurs or not, and the time information of the video file can accurately reflect whether the video file is recorded or not when the trigger event occurs. Therefore, the determined result of the integrity of the video file is more accurate.
The method for determining the video integrity provided by the embodiment of the application can be suitable for a system for determining the video integrity. Fig. 1A and 1B show the structure of the system for determining the integrity of a video recording. As shown in fig. 1A and 1B, the system for determining video recording integrity provided by the embodiment of the present application includes a video recording device 10, a server 11, a device 12 for determining video recording integrity, and a sensor 13.
The recording device 10 may be a device for recording a recording file, for example: cameras, snap-action cameras, video cameras, Network Video Recorders (NVRs), and the like. The server 11 may be various computing devices such as a personal computer, a notebook computer, a smart phone, and a tablet computer. The video integrity determination means 12 may include, but is not limited to, such as: mobile terminals, wearable devices, personal computers, and the like. The mobile terminal may include, for example, a mobile phone, a tablet computer, a notebook computer, a Personal Digital Assistant (PDA), and the like. Wearable devices may include devices such as smart watches, smart glasses, smart bracelets, virtual reality devices, augmented reality devices, mixed reality devices (i.e., devices that can support virtual reality and augmented reality), and so forth, to which the disclosure is not limited. The sensor 13 may be various sensors, such as an image sensor, a position sensor, a liquid level sensor, an energy consumption sensor, a speed sensor, an acceleration sensor, an infrared sensor, and the like, and the specific type of the sensor 13 is related to the type of the trigger event, and if the trigger event is configured to generate a movement event, the sensor 13 may be a position sensor, a speed sensor, and the like, which is not limited in this disclosure.
The server 11 and the video integrity determination device 12 may be integrated into one device, or may be located in two devices independent from each other, and the embodiment of the present application does not limit the positional relationship between the server 11 and the video integrity determination device 12.
In the following description of the embodiment of the present application, the server 11 and the video integrity determination device 12 are provided as separate devices.
In one possible implementation manner, as shown in fig. 1A, the video recording device 10 and the server 11, the sensor 13, and the video integrity determination device 12 may be connected through a network, and the video integrity determination device 12 and the server 11 may be connected through a network.
In the above-mentioned system for determining the integrity of the recorded video, the sensor 13 is used for sensing a trigger event and triggering the recording device 10 to record the recorded video file in case of determining that the trigger event occurs. The recording apparatus 10 transmits a status signal to the server 11 during recording of the recording file. The server 11 is configured to receive the status signal and determine status information according to the status signal. The video integrity determination device 12 is configured to obtain the state information of the trigger event and the time information of the video file, and determine the integrity of the video file according to the state information and the time information. When the server 11 and the video integrity determination device 12 are integrated into one device, the step of the video integrity determination device 12 obtaining the state information of the trigger event from the server 11 is an internal interaction in the one device.
In one possible implementation manner, as shown in fig. 1B, the video recording device 10 may be connected to the video integrity determination device 12 and the video integrity determination sensor 13 through a network, and the server 11 may be connected to the video integrity determination device 12 and the video integrity determination sensor 13 through a network.
In the above-mentioned system for determining the integrity of the recorded video, the sensor 13 is used for sensing a trigger event, and in case of determining that the trigger event occurs, the recording device 10 is triggered to record the recorded video file, and a status signal is sent to the server 11. The server 11 is configured to receive the status signal and determine status information according to the status signal. The video integrity determination device 12 is configured to obtain the state information of the trigger event and the time information of the video file, and determine the integrity of the video file according to the state information and the time information. When the server 11 and the video integrity determination device 12 are integrated into one device, the step of the video integrity determination device 12 obtaining the state information of the trigger event from the server 11 is an internal interaction in the one device.
The basic hardware structure of the video recording device 10, the server 11, the video integrity determination means 12 and the sensor 13 are similar and all comprise the elements comprised by the computing means shown in fig. 2. The hardware configuration of the recording device 10, the server 11, the recording integrity determination device 12, and the sensor 13 will be described below by taking the computing device shown in fig. 2 as an example.
As shown in fig. 2, the computing device may include a processor 21, a memory 22, a communication interface 23, and a bus 24. The processor 21, the memory 22 and the communication interface 23 may be connected by a bus 24.
The processor 21 is a control center of the computing device, and may be a single processor or a collective term for a plurality of processing elements. For example, the processor 21 may be a Central Processing Unit (CPU), other general-purpose processors, or the like. Wherein a general purpose processor may be a microprocessor or any conventional processor or the like.
For one embodiment, processor 21 may include one or more CPUs, such as CPU 0 and CPU1 shown in FIG. 2.
The memory 22 may be, but is not limited to, a read-only memory (ROM) or other type of static storage device that may store static information and instructions, a Random Access Memory (RAM) or other type of dynamic storage device that may store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
In a possible implementation, the memory 22 may exist separately from the processor 21, and the memory 22 may be connected to the processor 21 via a bus 24 for storing instructions or program codes. The processor 21, when calling and executing the instructions or program codes stored in the memory 22, can implement the video integrity determination method provided in the following embodiments of the present application.
In the embodiment of the present application, the functions implemented by the video recording device 10, the server 11, the recording integrity determination device 12, and the sensor 13 are different because the software programs stored in the memory 22 are different for the video recording device 10, the server 11, the recording integrity determination device 12, and the sensor 13. The functions performed by the devices will be described in connection with the following flow charts.
In another possible implementation, the memory 22 may also be integrated with the processor 21.
The communication interface 23 is used for connecting the computing apparatus and other devices through a communication network, where the communication network may be an ethernet, a Radio Access Network (RAN), a Wireless Local Area Network (WLAN), or the like. The communication interface 23 may include a receiving unit for receiving data, and a transmitting unit for transmitting data.
The bus 24 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 2, but that does not indicate only one bus or one type of bus.
It should be noted that the configuration shown in fig. 2 does not constitute a limitation of the computing device, which may include more or less components than those shown, or some components in combination, or a different arrangement of components than those shown in fig. 2, in addition to the components shown in fig. 2.
The following describes a method for determining video integrity according to an embodiment of the present application with reference to the accompanying drawings.
As shown in fig. 3, the method for determining video integrity according to the embodiment of the present application includes the following steps.
Step 31: the video integrity determination device acquires state information of a trigger event and time information of a video file.
The trigger event is used for triggering generation of the video file, the state information comprises event starting time of the trigger event, and the time information comprises video starting time and video ending time of the video file.
Specifically, referring to fig. 3 and as shown in fig. 4, the method for the video integrity determination device to obtain the status information of the trigger event includes:
step 30: the video integrity determination device receives the status signal and determines status information based on the status signal.
First, the video integrity determination device configures parameters such as event video recording plans and delay parameters for the video integrity determination system.
Specifically, after an event video recording plan is configured for the video integrity determination system, in the linear time of the event video recording plan, if a trigger event occurs, the time of each device in the video integrity determination system falls within the linear interval. After the delay parameters are configured for the system for determining the integrity of the video, if a trigger event occurs, the video equipment prolongs the corresponding recording time according to the delay parameters in the process of recording the video file.
And then, in the process of triggering a preset trigger event, the video equipment records a video file and sends a state signal to the server. The state signal comprises the state of the trigger event and the time corresponding to the state of the trigger event.
Specifically, in terms of time dimension, the trigger events are generally divided into transient events and impulse events, the transient events are events with a duration of 0(t ═ 0), and the impulse events are events with a duration of t (t > 0), and therefore, the transient events are also special impulse events. The states of the trigger event generally include an event start state, an event duration state, and an event end state. Thus, the state of the transient event includes an event start state and an event end state. The states of the impulse event include an event start state, an event duration state, and an event end state.
And according to the event video recording plan configured by the system determined by the video integrity, linking the video equipment to record the video file when the preset trigger event occurs randomly. The method comprises the steps that the video recording equipment sends a first state signal to a server at the moment when a trigger event occurs (when the video recording equipment is not provided with pre-recording, the moment when the video recording equipment starts recording a video recording file is also the moment), wherein the first state signal comprises an event starting state and an event starting moment corresponding to the event starting state. And sending a second state signal to the server at preset time intervals in the process of continuing the trigger event so as to maintain the heartbeat. The second state signal includes an event duration state and an event duration time corresponding to the event duration state. And at the moment when the trigger event is finished, the video recording equipment sends a third state signal to the server, and the video recording file is obtained after the corresponding recording time length is prolonged according to the configured delay parameter. The third state signal includes an event end state and an event end time corresponding to the event end state.
In the above scheme, the video recording device records the video recording file in the process of triggering the trigger event, and sends the status signal to the server, so that the video integrity determination device determines the integrity of the video recording file according to the time information of the video recording file and the status information of the trigger event. The problem that the determined result is inaccurate when the integrity of the video file is judged according to the video starting time and the video ending time in the equipment log is solved.
The server then receives the status signal and determines status information based on the status signal.
Specifically, when the server determines that the status signal includes the end status, the server determines a time corresponding to the end status as the event end time. In a case where it is determined that the status signal does not include the end status, it is determined that the latest time among the times included in all the received status signals is the event end time.
Optionally, the server determines that the latest time among the times included in all the received status signals is the event end time when it is determined that the status signals do not include the end status and the preset time duration is exceeded. The preset time length is a preset numerical value, for example, a default value, or a numerical value which is an integral multiple of a preset time interval, or a numerical value which is written by a relevant person according to an actual situation, which is not limited in the present application.
In the above scheme, the server receives the status signal and determines the status information according to the status signal, so that the subsequent video integrity determination device determines the integrity of the video file according to the status information.
And finally, the video integrity determination device acquires the state information of the trigger event and the time information of the video file.
Specifically, when a requirement (including a requirement time period) for determining the integrity of the video exists, state information of a trigger event in the requirement time period is called, and a video file in the requirement time period is acquired from the video equipment, so that time information of the video file is acquired.
Further, when the demand time period includes a plurality of trigger events, the video integrity determination device calls the state information of the plurality of trigger events, and acquires a plurality of video files in the demand time period from the video device to obtain time information of the plurality of video files.
Step 32: the video integrity determination means determines the integrity of the video file based on the status information and the time information.
Specifically, the device for determining the integrity of the video records counts the video recording start time and the video recording end time corresponding to each video recording file in the required time period, and counts the event start time of each trigger event in the required time period. Then, the determining device of the video integrity makes intersection of the event starting time of each triggering event in the required time period and the video starting time and the video ending time corresponding to each video file in the required time period. And when determining that the starting time of the first event and the video starting time and the video ending time corresponding to each video file in the required time period are not intersected, determining that the video files of the trigger event corresponding to the starting time of the first event are incomplete. The first event starting time is the event starting time of any trigger event in the demand time period. Then, the video integrity determination device determines the number of the start time of the first event, which is the number of times of video file loss in the required time period.
For example, fig. 5 is a timing chart for determining the integrity of a video recording file according to an embodiment of the present disclosure. As shown in fig. 5, between time a and time p, 7 trigger events and 6 video files are included. Wherein, the event starting time and the event ending time (expression form: event starting time-event ending time) of the 7 triggering events are respectively as follows: time (a-b), time (c-d), time (e-g), time (h-i), time (j-l), time (m-n), and time (o-p). The video recording start time and the video recording end time (expression form: video recording start time-video recording end time) of the 6 video recording files are respectively as follows: time (a-b), time (c-d), time (e-f), time (h-i), time (j-k), and time (m-n).
Then, when the required time period is from the time a to the time p, the determining device for video integrity respectively sets the event start times of the 7 trigger events as: the time a, the time c, the time e, the time h, the time j, the time m, the time o, and the video starting time and the video ending time corresponding to each video file in the required time period are respectively as follows: and (c) intersecting (moment a-moment b), (moment c-moment d), (moment e-moment f), (moment h-moment i), (moment j-moment k) and (moment m-moment n) to obtain moment o, wherein the moment o does not intersect with the video recording starting moment and the video recording ending moment corresponding to the video recording file in the required time period, and then the video recording file corresponding to the moment o is determined to be lost. The number of times of loss of the video file in the required time period is 1.
In the above solution, the apparatus for determining the integrity of the video recording determines the integrity of the video recording file according to the event start time of the trigger event, the video recording start time of the video recording file, and the video recording end time of the video recording file. The video file in the application is generated by triggering a triggering event, the event starting time of the triggering event represents that the triggering event occurs at the moment, and the video starting time and the video ending time of the video file represent the recording moment of the video file. Therefore, the state information of the trigger event can accurately reflect whether the trigger event occurs, and the time information of the video file can accurately reflect whether the video file is recorded or not when the trigger event occurs. Therefore, the result of the completeness of the video file determined by the method is accurate.
Optionally, the determining device for video recording integrity determines the integrity of the video recording file according to the state information and the time information, and may further include the following implementation manners.
The implementation mode is as follows: referring to fig. 3, as shown in fig. 6, the method includes:
step 32 a: the device for determining the integrity of the video records determines at least two recording moments of the video files according to the video recording starting moment and the video recording ending moment of the video files.
Specifically, the video files are linked videos after the trigger event occurs, so the video files in the required time period are discrete line segment sequences in the time dimension, and no correlation exists between the line segment sequences. For example, the time information of a plurality of video files in the required time period is represented as R (x) ={T x -T x-1 ,T x-1 -T x-2 ,T x-2 -T x-3 ,…,T x-m -T x-m-1 X is more than or equal to 0, m is more than or equal to 0, wherein R (x) Time information T representing a plurality of video files in a required time period x-m-1 For the recording start time, T, of the mth recording file among the plurality of recording files x-m The recording end time of the mth recording file in the plurality of recording files.
And then, the video integrity determination device fills the time for the time information of each video file in the required time period. Specifically, the time in the time information of each video file in the default required time period is a time sequence set composed of uniformly distributed time points, and the time is automatically filled in the time information of each video file.
For example, the time information of the mth video file among the plurality of video files is represented by R (m) ={T x-m -T x-m-1 In which T is x-m-1 For the recording start time, T, of the mth recording file x-m The recording end time of the mth recording file. The moment in the time information of the mth video file in the default required time period of the video integrity determining device is a time sequence set T consisting of uniformly distributed time points footage (x) And T is footage (x)={T ts (ω)|T ts (ω)=T x-m-1 + k ω }, x is not less than 0, m is not less than 0, wherein T ts (ω) is a line of time in the set of time sequencesA linear function, k is a sequence parameter and is a complex number, ω represents the number of time instants in the set of time instants and is an integer, T x-m-1 + k ω is less than or equal to T x-m
Wherein the time in the time information is accurate to seconds(s). Thus, the time information R of a plurality of video files in the required time period (x Can be represented as T footage Set of (ω), i.e. R (x) ={T footage (1),T footage (2),…,T footage (x)},x≥0。
Step 32 b: the video integrity determination device determines whether an intersection exists between the event starting time and at least two recording times.
Specifically, the video integrity determination device retrieves state information of trigger events in the required time period, and determines a set of event start times of a plurality of trigger events in the required time period according to the state information of the trigger events.
For example, a set of event start times, denoted P, for a plurality of trigger events within a demand period (y) ,P (y) ={T y ,T y+1 ,T y+2 ,T y+3 ,…,T y+n },n≥0,T y+n Representing the nth event start time in the set of multiple event start times. Wherein the time in the set of event start times is accurate to seconds(s).
Then, the device for determining the integrity of the video records sets P of the event starting moments of a plurality of trigger events in the required time period (y) Time information R of a plurality of video files in a required time period (x) And performing intersection, and judging whether the event starting moment and the at least two recording moments have intersection or not.
In the above scheme, the device for determining the integrity of the video record is the recording time of filling the video record file between the video record starting time and the video record ending time. Therefore, when the integrity of the video file is determined according to the at least two recording moments and the state information of the filled video file, each recording moment of the at least two recording moments can be compared with the event starting moment, the problem of mistaken determination (incomplete identification of the complete video file) caused by factors such as network delay and the like when the video starting moment, the video finishing moment and the event starting moment are only compared is solved, and the accuracy of the determined result of the integrity of the video file is improved.
Step 32b 1: and the video integrity determining device determines that the video file is complete under the condition of determining that the intersection exists between the event starting time and at least two recording times.
Specifically, assume that N represents P within the demand period (y) And R (x) If N is equal to N, it is determined that the video file in the required time period is complete. Where n represents the number of event start times within the demand period (i.e., the number of trigger events within the demand period).
Step 32b 2: the video integrity determination device determines that the video file is incomplete when determining that the intersection does not exist between the event starting moment and at least two recording moments.
Specifically, assume that N represents P within the demand period (y) And R (x) If N is less than N, the video files in the required time period are determined to be incomplete, and the number of lost video files is N-N. Where n represents the number of event start times within the demand period (i.e., the number of trigger events within the demand period).
In the scheme, the determining device for the video integrity is used for intersecting the event starting moment and at least two recording moments, when intersection exists in the intersection result, the video file is determined to be complete, and when intersection does not exist in the intersection result, the video file is determined to be incomplete. The problem that the determined result is inaccurate when the integrity of the video file is judged according to the video starting time and the video ending time in the equipment log is solved.
The implementation mode two is as follows: referring to fig. 3, as shown in fig. 7, the method includes:
step 32 a: the device for determining the integrity of the video records determines at least two recording moments of the video files according to the video recording starting moment and the video recording ending moment of the video files.
In particular, the means for determining the integrity of the recorded video determine at least two recordings of the recorded video fileThe method for carving is the same as the method for determining at least two recording moments of the video files in the first implementation mode, namely the time information R of the video files in the required time period (x) Can be represented as T footage Set of (ω), i.e. R (x) ={T footage (1),T footage (2),…,T footage (x) And x is more than or equal to 0. And will not be described in detail herein.
Step 32 c: the device for determining the integrity of the video determines at least one jitter parameter of the video file according to the event starting time, the event ending time, the delay parameter and the at least two recording times, and judges whether the at least one jitter parameter comprises a target jitter parameter.
The jitter parameter is the difference between the duration of the trigger event and the duration of the video file, and the target jitter parameter is the jitter parameter with the value smaller than or equal to the preset threshold value. The preset threshold is a preset numerical value, for example, a default value, or a numerical value written by a relevant person according to an actual situation, which is not limited in the present application.
Specifically, the determining device for video integrity retrieves an event start time, an event end time and a delay parameter of a trigger event in a required time period, and determines a set of target end times of a plurality of trigger events in the required time period according to the event start time, the event end time and the delay parameter of the trigger event, wherein the target end time is an end time of a video file calculated according to state information of the trigger event.
For example, if the trigger event is a transient event, the set of target end times within the demand period is denoted Ptransient (y) ,Ptransient (y) =P (y) +t delay ={T y +t delay ,T y+1 +t delay ,…,T y+n +t delay },n≥0,T y+n +t delay Representing the nth target end time, t, of the set of target end times delay Representing a delay parameter. Wherein the time in the set of target end times is accurate to seconds(s).
Thus, at least one jitter parameter of each video file in the demand time period is determined according to the set of target end times and at least two recording times in the demand time period.
Specifically, the jitter parameter of the trigger event satisfies the formula β ═ T start -T 1 |+|T end +t delay -T 2 Where β represents the jitter parameter of the trigger event, T start Indicating the event start time, T, of the trigger event end Event end time, t, representing a trigger event delay Denotes a delay parameter, T 1 Indicating the first recording time, T 2 Indicating a second recording time; the first video recording time and the second video recording time are both time information R (x) Time of day (c). Since the transient event has a duration of 0(T ═ 0), the jitter parameter of the transient event may also be represented as β ═ T start -T 1 |+|T start +t delay -T 2 L. In particular, T 1 Time and T 2 The time can be any time in the time information of the video file corresponding to the instant event, so that at least one jitter parameter of the video file corresponding to the instant event is obtained.
If the trigger event is a pulse event, the set of target end times within the required time period is denoted as Pimpulsive (y) ,Pimpulsive (y) =P (y) +t duration +t delay ={T y +t duration +t delay ,T y+1 +t duration +t delay ,…,T y+n +t duration +t delay },n≥0,T y+n +t duration +t delay Indicating the nth target end time, t, in the set of target end times delay Denotes a delay parameter, t duration Represents the duration of the trigger event, and t duration =T end -T start ,T end Event end time, T, representing a trigger event start Indicating the event start time of the triggering event. Wherein the time in the set of target end times is accurate to seconds(s).
Thus, at least one jitter parameter of each video file in the demand time period is determined according to the set of target end times and at least two recording times in the demand time period.
Specifically, the jitter parameter of the trigger event satisfies the formula β ═ T start -T 1 |+|T end +t delay -T 2 |=|T start -T 1 |+|T start +t duration +t delay -T 2 L. Where β represents the jitter parameter of the trigger event, T start Indicating the event start time, T, of the trigger event end Event end time, t, representing a trigger event delay Denotes a delay parameter, t duration Indicating the duration of the trigger event (t if the trigger event is a transient event duration Is 0), T 1 Indicating the first recording time, T 2 Indicating a second recording time; the first video recording time and the second video recording time are both time information R (x) Time of day (c). In particular, T 1 Time and T 2 The value of the moment is the same as that of the instantaneous event, and any moment in the time information of the video file corresponding to the pulse event can be taken, so that at least one jitter parameter of the video file corresponding to the pulse event can be obtained.
Then, the video integrity determination means determines whether or not the target jitter parameter is included in the plurality of jitter parameters.
Step 32c 1: the video integrity determination means determines that the video file is complete when it is determined that the target jitter parameter is included in the at least one jitter parameter.
Step 32c 2: the video integrity determination means determines that the video file is incomplete when it is determined that the target jitter parameter is not included in the at least one jitter parameter.
Illustratively, in the timing diagram of fig. 5 for determining the integrity of video files, 7 trigger events (including impulse events and transient events) and 6 video files are included between time a and time p. Wherein, the event starting time and the event ending time (expression form: event starting time-event ending time) of the 7 triggering events are respectively as follows: time (a-b), time (c-d), time (e-g), time (h-i), time (j-l), time (m-n), and time (o-p). The video recording start time and the video recording end time (expression form: video recording start time-video recording end time) of the 6 video recording files are respectively as follows: time (a-b), time (c-d), time (e-f), time (h-i), time (j-k), and time (m-n).
Then, when the required time period is from time a to time p, the delay parameter is 0, and the preset threshold is 0, the jitter parameter between the corresponding trigger event and the corresponding video file within time a to time p is as follows. In this case, the target jitter parameter is a jitter parameter whose value is smaller than or equal to the preset threshold, and the video integrity determination device determines that the video file is complete when determining that at least one of the jitter parameters includes the target jitter parameter.
Time a-b: the duration of the trigger event is b-a, the duration of the video file is b-a, the minimum jitter parameter corresponding to the video file with the duration of b-a is | a-a | + | b-b | ═ 0, and the video file at the moment a and the moment b is lossless.
c time-d time: the duration of the trigger event is d-c, the duration of the video file is d-c, the minimum jitter parameter corresponding to the video file with the duration of d-c is | c-c | + | d-d | ═ 0, and the video file at the moment c-d is lossless.
Time e-time g: the duration of the trigger event is g-e, the duration of the video file is f-e, the minimum jitter parameter corresponding to the video file with the duration of f-e is | e-e | + | g-f | -g-f > 0, the video file at the c moment-d moment is lost, and the incomplete times of the video file in the required time period are added by 1 time.
Time h-time i: the duration of the trigger event is i-h, the duration of the video file is i-h, the minimum jitter parameter corresponding to the video file with the duration of i-h is | h-h | + | i-i | ═ 0, and the video file at the h moment-i moment is lossless.
Time j-time l: the duration of the trigger event is l-j, the duration of the video file is k-j, the minimum jitter parameter corresponding to the video file with the duration of k-j is | j-j | + | l-k | -l-k | > 0, the video file at the time j and the time l is lost, and the incomplete times of the video file in the required time period are added by 1 time.
Time m-time n: the duration of the trigger event is n-m, the duration of the video file is n-m, the minimum jitter parameter corresponding to the video file with the duration of n-m is | m-m | + | n-n | ═ 0, and the video file at the moment of m and the moment of n is lossless.
Time o-p: the duration of the trigger event is p-o, the duration of the video file is 0, the minimum jitter parameter corresponding to the video file with the duration of 0 is | o-0| + | p-0| -, o + p > 0, the video file at the time of o moment-p is lost, and the incomplete times of the video file in the required time period are added by 1 time.
In summary, in the timing chart of fig. 5, the number of incomplete video files in the required time period is 3.
Optionally, the video integrity determination device determines that the video files in the required time period are incomplete and sends an alarm when the number of times of the lost video files is greater than i times in the required time period.
In the above scheme, the device for determining the integrity of the video records calculates the difference between the duration of the trigger event and the duration of the video file according to the event starting time, the event ending time, the delay parameter and at least two recording times. The delay parameter in the application is the time length of delayed video recording of the video file, and when the trigger event is the transient event, the time length of delayed video recording is the recording time length of the video file of the transient event. Therefore, the duration of the trigger event can be accurately calculated according to the event starting time, the event ending time and the delay parameter. Therefore, according to the method and the device, when the integrity of the video file is determined according to the difference between the duration of the trigger event and the duration of the video file, the accuracy of the result of the determined integrity of the video file is further improved.
The scheme provided by the embodiment of the application is mainly introduced from the perspective of a method. To implement the above functions, it includes hardware structures and/or software modules for performing the respective functions. Those of skill in the art would readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
Fig. 8 is a schematic structural diagram of a video integrity determination apparatus according to an embodiment of the present application. As shown in fig. 8, the device for determining the video recording integrity is configured to perform any one of the methods for determining the video recording integrity shown in fig. 3-4 and fig. 6-7. The video integrity determination means may include an acquisition module 81 and a determination module 82.
An obtaining module 81, configured to obtain state information of a trigger event and time information of a video file; the trigger event is used for triggering generation of the video file, the state information comprises event starting time of the trigger event, and the time information comprises video starting time and video ending time of the video file. For example, in conjunction with fig. 3, the obtaining module 81 may be used to perform step 31. And the determining module 82 is configured to determine the integrity of the video file according to the state information and the time information acquired by the acquiring module 81. For example, in conjunction with fig. 3, the determination module 82 may be configured to perform step 32.
Optionally, the determining module 82 is specifically configured to: determining at least two recording moments of a video file according to the video starting moment and the video ending moment of the video file; and determining the integrity of the video file according to the state information and at least two recording moments.
Optionally, the determining module 82 is specifically configured to: under the condition that the intersection of the event starting moment and at least two recording moments is determined, the integrity of a video file is determined; and under the condition that the intersection between the event starting moment and at least two recording moments does not exist, determining that the video files are incomplete.
Optionally, the state information further includes an event end time of the trigger event and a delay parameter; the delay parameter is used for representing the minimum recording time length of the video file or the delay video recording time length of the video file; the determining module 82 is specifically configured to: determining at least one jitter parameter of the video file according to the event starting time, the event ending time, the delay parameter and the at least two recording times; the jitter parameter is the difference between the duration of the trigger event and the duration of the video file; determining that the video file is complete under the condition that at least one jitter parameter comprises a target jitter parameter; the target jitter parameter is a jitter parameter with a value smaller than or equal to a preset threshold value; and determining that the video file is incomplete if the target jitter parameter is not included in the at least one jitter parameter.
Optionally, the video integrity determination device is applied to a server; the obtaining module 81 is further configured to receive a status signal; the state signal comprises the state of the trigger event and the time corresponding to the state of the trigger event; the determining module 82 is further configured to determine status information according to the status signal.
Optionally, the state information further includes an event end time of the trigger event; the determining module 82 is specifically configured to: determining a time corresponding to the ending state as an event ending time under the condition that the state signal is determined to comprise the ending state; determining the target time as an event end time under the condition that the state signal does not comprise an end state; the target time is the latest time among the times included in all the received status signals.
Of course, the device for determining video integrity provided in the embodiment of the present application includes, but is not limited to, the above modules.
In actual implementation, the obtaining module 81 and the determining module 82 can be implemented by the processor 21 shown in fig. 2 calling the program code in the memory 22. For the specific implementation process, reference may be made to the description of any one of the video integrity determination methods shown in fig. 3 to 4 and fig. 6 to 7, which is not described herein again.
Fig. 9 is a schematic structural diagram of a video recording device according to an embodiment of the present application. As shown in fig. 9, the recording apparatus is configured to execute the method for determining the recording integrity shown in fig. 4. The recording device may include a processing module 91 and a transmitting module 92.
The processing module 91 is configured to record the video file in a process that a preset trigger event is triggered. A sending module 92, configured to send a status signal to the server; the state signal comprises the state of the trigger event and the time corresponding to the state of the trigger event; the status signal is used to determine the integrity of the video files.
Of course, the video recording device provided in the embodiment of the present application includes, but is not limited to, the above modules.
In practical implementation, the processing module 91 and the sending module 92 can be implemented by the processor 21 shown in fig. 2 calling the program code in the memory 22. For a specific implementation process, reference may be made to the description of the video integrity determination method portion shown in fig. 4, which is not described herein again.
Another embodiment of the present application further provides a computer-readable storage medium, where computer instructions are stored in the computer-readable storage medium, and when the computer instructions are executed on a device for determining video integrity, the device for determining video integrity executes the steps executed by the device for determining video integrity in the method flow shown in the foregoing method embodiment.
Another embodiment of the present application further provides a chip system, and the chip system is applied to a device for determining video integrity. The chip system includes one or more interface circuits, and one or more processors. The interface circuit and the processor are interconnected by a line. The interface circuit is configured to receive signals from a memory of the video cassette integrity determination device and to send signals to the processor, the signals including computer instructions stored in the memory. When the processor executes the computer instructions, the video integrity determination apparatus performs the steps performed by the video integrity determination apparatus in the method flow shown in the above-described method embodiment.
In another embodiment of the present application, a computer program product is further provided, where the computer program product includes instructions that, when executed on a device for determining video recording integrity, cause the device for determining video recording integrity to perform the steps performed by the device for determining video recording integrity in the method flow shown in the foregoing method embodiment.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented using a software program, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The processes or functions according to the embodiments of the present application are generated in whole or in part when the computer-executable instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). Computer-readable storage media can be any available media that can be accessed by a computer or can comprise one or more data storage devices, such as servers, data centers, and the like, that can be integrated with the media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
The foregoing is only illustrative of the present application. Those skilled in the art can conceive of changes or substitutions based on the specific embodiments provided in the present application, and all such changes or substitutions are intended to be included within the scope of the present application.

Claims (10)

1. A method for determining the integrity of a video, which is applied to a device for determining the integrity of the video, is characterized by comprising the following steps:
acquiring state information of a trigger event and time information of a video file; the trigger event is used for triggering generation of the video file, the state information comprises an event starting time of the trigger event and an event ending time of the trigger event, and the time information comprises at least two recording times of the video file; the at least two recording moments comprise: recording start time and recording end time;
determining at least one jitter parameter of the video file according to the state information and the time information; the jitter parameter is the difference between the duration of the trigger event and the duration of the video file;
determining that the video file is complete if the at least one jitter parameter is determined to include a target jitter parameter.
2. The method of claim 1, wherein the determining that the video file is complete if the at least one jitter parameter is determined to comprise a target jitter parameter comprises:
and under the condition that the intersection of the event starting moment and the at least two recording moments is determined, and the at least one jitter parameter comprises a target jitter parameter, determining that the video file is complete.
3. The determination method according to claim 1,
the state information further comprises an event end time and a delay parameter of the trigger event; the delay parameter is used for representing the minimum recording time length of the video file or the delay video recording time length of the video file;
determining at least one jitter parameter of the video file according to the status information and the time information, including:
determining at least one jitter parameter of the video file according to the event starting time, the event ending time, the delay parameter and the at least two recording times; specifically, the target ending time of the trigger event is determined according to the event starting time, the event ending time and the delay parameter; determining at least one jitter parameter of the video file according to the target ending time and the at least two recording times; and the target end time is the time after the event end time.
4. The method according to any one of claims 1 to 3, wherein the device for determining the integrity of the video recording is applied to a server, and before acquiring the status information of the triggering event, the method further comprises:
receiving a status signal; the state signal comprises the state of the trigger event and the time corresponding to the state of the trigger event;
determining the status information from the status signal.
5. The determination method according to claim 4, wherein the status information further includes an event end time of the trigger event; the determining the status information according to the status signal includes:
determining a time corresponding to the end state as the event end time when the state signal is determined to include the end state;
determining a target time as the event end time if it is determined that the status signal does not include an end status; the target time is the latest time in the time included in all the received state signals.
6. A method for determining the integrity of a video recording device is provided,
recording a video file in the process of triggering a preset trigger event;
sending a status signal to a server; the state signal comprises the state of the trigger event and the time corresponding to the state of the trigger event; the status signal is used by the server to determine the integrity of the video file based on the method of any of claims 1 to 5.
7. An apparatus for determining video integrity, the apparatus comprising:
the acquisition module is used for acquiring the state information of the trigger event and the time information of the video file; the trigger event is used for triggering generation of the video file, the state information comprises an event starting time of the trigger event and an event ending time of the trigger event, and the time information comprises at least two recording times of the video file; the at least two recording moments comprise: recording start time and recording end time;
a determining module, configured to determine at least one jitter parameter of the video file according to the state information and the time information acquired by the acquiring module; the jitter parameter is the difference between the duration of the trigger event and the duration of the video file;
the determining module is further configured to determine that the video file is complete if it is determined that the at least one jitter parameter includes a target jitter parameter.
8. A video recording apparatus, comprising:
the processing module is used for recording the video file in the process of triggering a preset triggering event;
the sending module is used for sending a state signal to the server; the state signal comprises the state of the trigger event and the time corresponding to the state of the trigger event; the status signal is used by the server to determine the integrity of the video file based on the method of any of claims 1 to 5.
9. A video integrity determination device, wherein the video integrity determination device comprises a memory and a processor; the memory and the processor are coupled; the memory for storing computer program code, the computer program code comprising computer instructions; when the processor executes the computer instructions, the video cassette integrity determination device executes the video cassette integrity determination method according to any one of claims 1 to 5, or the video cassette integrity determination device executes the video cassette integrity determination method according to claim 6.
10. A computer-readable storage medium, comprising computer instructions, which, when run on a video recording integrity determination device, cause the video recording integrity determination device to perform the video recording integrity determination method according to any one of claims 1 to 5, or cause the video recording integrity determination device to perform the video recording integrity determination method according to claim 6.
CN202011597178.0A 2020-12-28 2020-12-28 Method and device for determining video integrity and readable storage medium Active CN112752100B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011597178.0A CN112752100B (en) 2020-12-28 2020-12-28 Method and device for determining video integrity and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011597178.0A CN112752100B (en) 2020-12-28 2020-12-28 Method and device for determining video integrity and readable storage medium

Publications (2)

Publication Number Publication Date
CN112752100A CN112752100A (en) 2021-05-04
CN112752100B true CN112752100B (en) 2022-08-12

Family

ID=75647648

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011597178.0A Active CN112752100B (en) 2020-12-28 2020-12-28 Method and device for determining video integrity and readable storage medium

Country Status (1)

Country Link
CN (1) CN112752100B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114329066B (en) * 2021-12-27 2024-09-17 广东履安实业有限公司 Video data processing method, device, electronic equipment and storage medium
CN117411987B (en) * 2023-12-13 2024-05-28 深圳万物安全科技有限公司 Drop-out time detection method, drop-out time detection equipment and storage medium for monitoring video

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104683738A (en) * 2013-11-28 2015-06-03 杭州海康威视数字技术股份有限公司 Method for storing vehicle-mounted DVR (Digital Video Recorder) alarm recording fragments
CN107211109A (en) * 2014-11-20 2017-09-26 博拉斯特运动有限公司 video and motion event integrated system
CN109977260A (en) * 2019-02-12 2019-07-05 深圳绿米联创科技有限公司 Video recording acquisition methods, device, system, electronic equipment and storage medium
CN111428080A (en) * 2019-04-25 2020-07-17 杭州海康威视数字技术股份有限公司 Storage method, search method and device for video files

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9235765B2 (en) * 2010-08-26 2016-01-12 Blast Motion Inc. Video and motion event integration system
AU2015249884B2 (en) * 2014-04-21 2019-07-18 Blast Motion Inc. Motion event recognition and video synchronization system and method
EP3159853B1 (en) * 2015-10-23 2019-03-27 Harman International Industries, Incorporated Systems and methods for advanced driver assistance analytics
US20170300751A1 (en) * 2016-04-19 2017-10-19 Lighthouse Al, Inc. Smart history for computer-vision based security system
CN111090777B (en) * 2019-12-04 2023-07-28 浙江大华技术股份有限公司 Video data management method, management equipment and computer storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104683738A (en) * 2013-11-28 2015-06-03 杭州海康威视数字技术股份有限公司 Method for storing vehicle-mounted DVR (Digital Video Recorder) alarm recording fragments
CN107211109A (en) * 2014-11-20 2017-09-26 博拉斯特运动有限公司 video and motion event integrated system
CN109977260A (en) * 2019-02-12 2019-07-05 深圳绿米联创科技有限公司 Video recording acquisition methods, device, system, electronic equipment and storage medium
CN111428080A (en) * 2019-04-25 2020-07-17 杭州海康威视数字技术股份有限公司 Storage method, search method and device for video files

Also Published As

Publication number Publication date
CN112752100A (en) 2021-05-04

Similar Documents

Publication Publication Date Title
CN112752100B (en) Method and device for determining video integrity and readable storage medium
US20220121641A1 (en) Multi-sensor-based state estimation method and apparatus and terminal device
CN107845114B (en) Map construction method and device and electronic equipment
CN108415041B (en) Receiver of mobile device and improved method thereof
CN110572691B (en) Video reading method, device, equipment and storage medium
TW202211082A (en) Crowd overdensity prediction method, apparatus, electronic device and storage medium
JPS60201573A (en) Sector start signal generating circuit of optical disc device
CN110234029B (en) Playing processing method, device, equipment and storage medium of multi-sensor data
EP2926721A1 (en) Information processing technique for eye gaze movements
CN113498625A (en) Clock synchronization method and device, chip system, unmanned aerial vehicle and terminal
CN111427417A (en) Time obtaining method and device and electronic equipment
CN109061585B (en) Radar data storage method and device
CN111158999A (en) Method and device for calculating formatting time
CN108619700B (en) Motion recording method and device
CN112689963B (en) Data processing method and device
CN101606203A (en) The method and system that is used for the subframe precise synchronization
CN108896070B (en) Method and device for detecting sensor error in mobile equipment and terminal
US10819896B1 (en) Computer readable recording medium can perform image sensing system control method and image sensing system
CN111683215B (en) Video playback method and device, electronic equipment and computer readable storage medium
CN113938631B (en) Reference monitor, image frame interception method and system
CN111564165B (en) Data storage method, device, equipment and storage medium
KR101950945B1 (en) Apparatus for produciing motion image of motion capture system and mtehod thereof
CN116996760A (en) Video data processing method and device, computer readable medium and electronic equipment
CN113313909A (en) Data processing method and device of intelligent glasses and intelligent glasses
CN112306892A (en) Page response duration testing method and related equipment

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
GR01 Patent grant
GR01 Patent grant