CN114900689A - Law enforcement recorder video storage testing method - Google Patents

Law enforcement recorder video storage testing method Download PDF

Info

Publication number
CN114900689A
CN114900689A CN202210297280.1A CN202210297280A CN114900689A CN 114900689 A CN114900689 A CN 114900689A CN 202210297280 A CN202210297280 A CN 202210297280A CN 114900689 A CN114900689 A CN 114900689A
Authority
CN
China
Prior art keywords
video
file
format
frame
video file
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.)
Granted
Application number
CN202210297280.1A
Other languages
Chinese (zh)
Other versions
CN114900689B (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 Xujian Weilan Electronic Co ltd
Original Assignee
Hangzhou Xujian Weilan Electronic 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 Xujian Weilan Electronic Co ltd filed Critical Hangzhou Xujian Weilan Electronic Co ltd
Priority to CN202210297280.1A priority Critical patent/CN114900689B/en
Publication of CN114900689A publication Critical patent/CN114900689A/en
Application granted granted Critical
Publication of CN114900689B publication Critical patent/CN114900689B/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
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)

Abstract

The invention discloses a method for testing video storage of a law enforcement recorder, which is characterized in that an original variable test flow is solidified, relevant parameter configuration is put into a parameter file, the video file is recorded according to parameters required by setting in a generation stage, and after a video is generated, the relevant parameters are obtained through system analysis of the video file and compared with the set parameters, so that the result of whether the final file is qualified or not is obtained. The video file inspection is to obtain the metadata information of the sub-box media of the video file, compare the metadata information with the set parameters, and simultaneously obtain the frame _ num attribute and the timestamp information of the video.

Description

Law enforcement recorder video storage testing method
Technical Field
The invention relates to the technical field of law enforcement recording equipment, in particular to a method for testing video storage of a law enforcement recorder.
Background
During the test of the law enforcement recorder, the video storage file of the recorder is an important test item, when the video storage function of the recorder is tested, a tester needs to analyze and check the files in the MP4 format and the PS format of the stored video file, so as to ensure that the video file is consistent with the expected set parameters, such as the sound sampling rate, the resolution, the code rate, the frame rate, the coding format, the file size, the file storage format, whether the file is damaged or not, whether the file has a frame skip condition or not, and the like of the file;
the video files in the artificial examination recorder are examined one by one, whether relevant parameters of each video file meet expected results or not needs to be examined in sequence by different tools for each file, the human input cost is high, the files are more, the cost is higher, the time is consumed, the situation that the examination coverage is incomplete can occur, the test effect and the test efficiency are influenced, the product quality is not guaranteed, the whole product iteration process is influenced, the whole product is slow in progress, and therefore a method for solving the problem of automatic storage test of the video of the law enforcement recorder is needed.
Disclosure of Invention
The invention aims to provide a method for storing and testing video of a law enforcement recorder, which realizes automatic storage test of the video of the law enforcement recorder and solves the problems in the background technology.
In order to achieve the purpose, the invention provides the following technical scheme: a method for storing and testing video of a law enforcement recorder comprises
Step one, the recorder equipment generates a video file according to a fixed parameter format:
reading attribute values in the parameter configuration files, configuring the parameters on a recorder through a parameter configuration interface provided by the recorder, realizing timing video recording by using an automatic script, and placing each video file and the corresponding parameter configuration file under the same folder to name the files by file names;
the specific parameter classes of the parameter configuration file are as follows:
resolution (Screen): 720P, 1080P, 1296P, 1512P;
code rate (codeRate): 4096. 1536, 768;
frame rate (frameRate): 25. 30, of a nitrogen-containing gas;
sampling rate (samplingRate): 16K;
file duration (fileTime): 20 min;
file format (fileFormat): ps, MP 4;
step two, converting the format of the video file:
if the file format parameter is in an MP4 format, converting the video file in the ps format into an MP4 format by using a multimedia video processing tool (ffmpeg), finally generating the video file in the MP4 format, and adding a ps name identifier to the file name to distinguish the original video file format;
step three, video file parameter checking:
reading moovbox information in the video file, obtaining parameter information, comparing the parameter information with the parameters in the step one, and returning abnormal attributes if the parameter information is different from the parameters in the step one;
step four, checking lost frames of the video files:
acquiring the attribute values of frame _ num in slice _ header of an I frame and a P frame in a video file in a circulating manner, acquiring the values of the first I frame and the first P frame, storing the values, comparing the next acquired value with the stored value, judging whether the difference value is equal to 1 and is normal and the difference value is greater than 1 and is abnormal, and outputting the current serial number frame _ num to know whether the video file loses frames and the specific frame loss position;
fifthly, checking the video file blockage:
analyzing moovbox information of a video file to obtain mov _ read _ stsd (stts) information in a trak box (atom) module, wherein sample is a frame of audio and video, stts is a 'timestamp-sample sequence number' mapping table, a timestamp of each frame is obtained, time difference between the next frame and the previous frame is sequentially calculated in a circulating manner, the actual time difference is a time interval of 2 frames, and parameters of the time difference are calculated according to a frame rate: if 1s sets 25 frames, the time difference is 1000ms/25,40s one frame, the parameter value is 80ms, the actual time difference of 2 frames in stts is greater than 80ms, the video file is considered to be blocked, and the sample sequence number and the abnormal result are output; if the actual time difference of 2 frames in stts is less than or equal to 80ms, the video file is considered to be normal;
step six, outputting a test result:
and detecting the parameters of the file acquired in the second, third, fourth and fifth steps to judge whether the parameters are consistent with the parameters initially set in the first step, if the four detections are consistent with the parameters initially set, the video file is normal, otherwise, the file is an abnormal file.
Preferably, in the step one, the recorders record one video file every 30 minutes, and each recorder records 10 video files.
Preferably, mvhd in moovbox in step three contains creation and modification time, time scale, default volume, color gamut and duration information of media, and a series of sub boxes in trak in moovbox describes specific information of each media track.
Preferably, in the third step, if there is a partial error in the code rate and the frame rate, an error interval is set, and the comparison parameter is required to be within the error range.
Preferably, in the sixth step, the video file detection results are collected, and the test report is output according to the corresponding file name and the result.
Compared with the prior art, the invention has the beneficial effects that:
the technical scheme adopted by the invention is that the original changeable testing process is solidified, the related parameter configuration is put into the parameter file, the video file is recorded according to the parameter required by the setting in the generation stage, and the system analysis of the video file is carried out after the video is generated to obtain the related parameter and compare the related parameter with the set parameter, so as to obtain the result whether the final file is qualified or not. The video file inspection is to obtain the metadata information of the sub-box media of the video file, compare the metadata information with the set parameters, and simultaneously obtain the frame _ num attribute and the timestamp information of the video.
Drawings
FIG. 1 is a schematic flow diagram of the present invention;
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, the present invention provides a technical solution: a method for storing and testing video of a law enforcement recorder comprises
Step one, the recorder equipment generates a video file according to a fixed parameter format:
reading attribute values in the parameter configuration files, configuring the parameters on a recorder through a parameter configuration interface provided by the recorder, realizing timing video recording by using an automatic script, and placing each video file and the corresponding parameter configuration file under the same folder to name the files by file names;
the specific parameter classes of the parameter configuration file are as follows:
resolution (Screen): 720P, 1080P, 1296P, 1512P;
code rate (codeRate): 4096. 1536, 768;
frame rate (frameRate): 25. 30, of a nitrogen-containing gas;
sampling rate (samplingRate): 16K;
file duration (fileTime): 20 min;
file format (fileFormat): ps, MP 4;
the above parameters are written into the parameter configuration file, which is exemplified as follows:
resolution (Screen) 720P
Code rate 4096
Frame rate (frameRate) of 30
Sampling rate (samplingRate) 16K
File time (20 min)
File format (fileFormat) MP4
Step two, converting the format of the video file:
in the video files, the file format is a ps format which cannot be directly analyzed, the ps format needs to be converted into an MP4 format for video analysis, if the file format parameter is an MP4 format, a multimedia video processing tool (ffmpeg) is used for converting the video files in the ps format into an MP4 format, finally, video files in an MP4 format are generated, and ps name identification is added to the file names to distinguish the original video file format; with ps in the file name, the format of the original video file is ps format, and without ps, the format of the original video file is mp4 format.
Step three, video file parameter checking:
reading moovbox information in the video file, obtaining parameter information, comparing the parameter information with the parameters in the step one, and returning abnormal attributes if the parameter information is different from the parameters in the step one;
step four, checking lost frames of the video files:
acquiring the attribute values of frame _ num in slice _ header of an I frame and a P frame in a video file in a circulating manner, acquiring the values of the first I frame and the first P frame, storing the values, comparing the next acquired value with the stored value, judging whether the difference value is equal to 1 and is normal and the difference value is greater than 1 and is abnormal, and outputting the current serial number frame _ num to know whether the video file loses frames and the specific frame loss position;
fifthly, checking the video file blockage:
analyzing moovbox information of a video file to obtain mov _ read _ stsd (stts) information in a trak box (atom) module, wherein sample is a frame of audio and video, stts is a 'timestamp-sample sequence number' mapping table, a timestamp of each frame is obtained, time difference between the next frame and the previous frame is sequentially calculated in a circulating manner, the actual time difference is a time interval of 2 frames, and parameters of the time difference are calculated according to a frame rate: if 1s sets 25 frames, the time difference is 1000ms/25,40s one frame, the parameter value is 80ms, the actual time difference of 2 frames in stts is greater than 80ms, the video file is considered to be blocked, and the sample sequence number and the abnormal result are output; if the actual time difference of 2 frames in stts is less than or equal to 80ms, the video file is considered to be normal;
step six, outputting a test result:
and detecting the parameters of the file acquired in the second, third, fourth and fifth steps to judge whether the parameters are consistent with the parameters initially set in the first step, if the four detections are consistent with the parameters initially set, the video file is normal, otherwise, the file is an abnormal file.
In the first step, the recorders record one video file every 30 minutes, and each recorder records 10 video files.
Mvhd in moovbox in step three contains creation and modification time, time scale, default volume, color gamut and duration information of media, and a series of sub boxes in trak in moovbox describes specific information of each media track.
In the third step, if partial errors exist in the code rate and the frame rate, an error interval is set, and the comparison parameter is required to be within the error range.
And step six, summarizing the video file detection results, and outputting a test report according to the corresponding file name and result, so that each file detection result can be clearly and definitely known.
The above-described embodiments are intended to illustrate rather than to limit the invention, and any modifications and variations of the present invention are within the spirit of the invention and the scope of the appended claims.
While there have been shown and described what are at present considered the fundamental principles and essential features of the invention and its advantages, it will be apparent to those skilled in the art that the invention is not limited to the details of the foregoing exemplary embodiments, but is capable of other specific forms without departing from the spirit or essential characteristics thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.
Furthermore, it should be understood that although the present description refers to embodiments, not every embodiment may contain only a single embodiment, and such description is for clarity only, and those skilled in the art should integrate the description, and the embodiments may be combined as appropriate to form other embodiments understood by those skilled in the art.

Claims (7)

1. A method for storing and testing video of a law enforcement recorder is characterized by comprising the following steps
Step one, the recorder equipment generates a video file according to a fixed parameter format:
reading attribute values in the parameter configuration files, configuring the parameters on a recorder through a parameter configuration interface provided by the recorder, realizing timing video recording by using an automatic script, and placing each video file and the corresponding parameter configuration file under the same folder to name the files by file names;
secondly, converting the format of the video file;
step three, checking video file parameters;
reading moovbox information in the video file, obtaining parameter information, comparing the parameter information with the parameters in the step one, and returning abnormal attributes if the parameter information is different from the parameters in the step one;
step four, checking lost frames of the video files:
acquiring the attribute values of frame _ num in slice _ header of an I frame and a P frame in a video file in a circulating manner, acquiring the values of the first I frame and the first P frame, storing the values, comparing the next acquired value with the stored value, judging whether the difference value is equal to 1 and is normal and the difference value is greater than 1 and is abnormal, and outputting the current serial number frame _ num to know whether the video file loses frames and the specific frame loss position;
fifthly, checking the video file blockage:
analyzing moovbox information of a video file to obtain mov _ read _ stsd (stts) information in a trak box (atom) module, wherein sam ple is a frame of audio and video, stts is a mapping table of time stamp-sample sequence number, a time stamp of each frame is obtained, time difference between the next frame and the previous frame is sequentially and circularly calculated, actual time difference is a time interval of 2 frames, and parameters of the time difference are calculated according to a frame rate: if 1s sets 25 frames, the time difference is 1000ms/25,40s one frame, the parameter value is 80ms, the actual time difference of 2 frames in stts is greater than 80ms, the video file is considered to be blocked, and the sample sequence number and the abnormal result are output; if the actual time difference of 2 frames in stts is less than or equal to 80ms, the video file is considered to be normal;
step six, outputting a test result:
and detecting the parameters of the file acquired in the second, third, fourth and fifth steps to judge whether the parameters are consistent with the parameters initially set in the first step, if the four detections are consistent with the parameters initially set, the video file is normal, otherwise, the file is an abnormal file.
2. The method for storing and testing the video of the law enforcement recorder as claimed in claim 1, wherein in the first step, the recorder records one video file every 30 minutes, and each recorder records 10 video files.
3. The method for storing and testing the video of the law enforcement recorder as claimed in claim 1, wherein mvhd in moovbox in step three comprises creation and modification time, time scale, default volume, color gamut and duration information of the media, and a series of sub boxes in trak in moovbox describe specific information of each media track.
4. The video storage testing method of the law enforcement recorder according to claim 1, wherein in the third step, if partial errors exist in the code rate and the frame rate, an error interval is set, and the comparison parameter is required to be within an error range.
5. The method for storing and testing video of a law enforcement recorder as claimed in claim 1, wherein in step six, the video file detection results are summarized, and the test report is output according to the corresponding file name and the result.
6. The method for storing and testing the video of the law enforcement recorder according to claim 1, wherein the specific parameters of the parameter configuration file in the first step are classified as follows:
resolution (Screen): 720P, 1080P, 1296P, 1512P;
code rate (codeRate): 4096. 1536, 768;
frame rate (frameRate): 25. 30, of a nitrogen-containing gas;
sampling rate (samplingRate): 16K;
file duration (fileTime): 20 min;
file format (fileFormat): ps, MP 4.
7. The law enforcement recorder video storage testing method according to claim 6, wherein in the second step, the video files are in a ps format which cannot be directly analyzed, and the ps format needs to be converted into an mp4 format for video analysis;
if the file format parameter is in an MP4 format, converting the video file in the ps format into an MP4 format by using a multimedia video processing tool (ffmpeg), finally generating the video file in the MP4 format, and adding a ps name identifier to the file name to distinguish the original video file format;
with ps in the file name, the format of the original video file is ps format, and without ps, the format of the original video file is mp4 format.
CN202210297280.1A 2022-03-24 2022-03-24 Law enforcement recorder video storage testing method Active CN114900689B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210297280.1A CN114900689B (en) 2022-03-24 2022-03-24 Law enforcement recorder video storage testing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210297280.1A CN114900689B (en) 2022-03-24 2022-03-24 Law enforcement recorder video storage testing method

Publications (2)

Publication Number Publication Date
CN114900689A true CN114900689A (en) 2022-08-12
CN114900689B CN114900689B (en) 2023-05-26

Family

ID=82715126

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210297280.1A Active CN114900689B (en) 2022-03-24 2022-03-24 Law enforcement recorder video storage testing method

Country Status (1)

Country Link
CN (1) CN114900689B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102945678A (en) * 2012-11-09 2013-02-27 中兴通讯股份有限公司 Storage method and system of video documents and video monitoring device
WO2016103968A1 (en) * 2014-12-22 2016-06-30 ソニー株式会社 Information processing device, information recording medium, information processing method, and program
CN106791549A (en) * 2016-11-21 2017-05-31 建荣半导体(深圳)有限公司 A kind of videotape storage means, system and drive recorder
KR101890429B1 (en) * 2017-05-11 2018-08-21 펜타시큐리티시스템 주식회사 Apparatus and method for verifying integrity of video file based on characteristics information of video recording device
CN111654672A (en) * 2020-06-01 2020-09-11 赛特斯信息科技股份有限公司 Method and system for realizing generation processing of alarm pre-trigger video file
CN112148904A (en) * 2020-07-31 2020-12-29 中标慧安信息技术股份有限公司 Indexing method and device for alarm linkage video
CN113127680A (en) * 2019-12-30 2021-07-16 Tcl新技术(惠州)有限公司 Cross-network alarm correlation method, storage medium and system
CN113382189A (en) * 2021-05-24 2021-09-10 深圳市爱为物联科技有限公司 Electronic equipment damaged file repairing method
CN114007112A (en) * 2021-11-30 2022-02-01 四川效率源信息安全技术股份有限公司 Method for repairing mdat box data error in MP4 video file

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102945678A (en) * 2012-11-09 2013-02-27 中兴通讯股份有限公司 Storage method and system of video documents and video monitoring device
WO2016103968A1 (en) * 2014-12-22 2016-06-30 ソニー株式会社 Information processing device, information recording medium, information processing method, and program
CN106791549A (en) * 2016-11-21 2017-05-31 建荣半导体(深圳)有限公司 A kind of videotape storage means, system and drive recorder
KR101890429B1 (en) * 2017-05-11 2018-08-21 펜타시큐리티시스템 주식회사 Apparatus and method for verifying integrity of video file based on characteristics information of video recording device
CN113127680A (en) * 2019-12-30 2021-07-16 Tcl新技术(惠州)有限公司 Cross-network alarm correlation method, storage medium and system
CN111654672A (en) * 2020-06-01 2020-09-11 赛特斯信息科技股份有限公司 Method and system for realizing generation processing of alarm pre-trigger video file
CN112148904A (en) * 2020-07-31 2020-12-29 中标慧安信息技术股份有限公司 Indexing method and device for alarm linkage video
CN113382189A (en) * 2021-05-24 2021-09-10 深圳市爱为物联科技有限公司 Electronic equipment damaged file repairing method
CN114007112A (en) * 2021-11-30 2022-02-01 四川效率源信息安全技术股份有限公司 Method for repairing mdat box data error in MP4 video file

Also Published As

Publication number Publication date
CN114900689B (en) 2023-05-26

Similar Documents

Publication Publication Date Title
CN103376380B (en) A kind of test system and method
EP0117910B1 (en) Apparatus for signal evaluation by accumulation at one rate and releasing and testing at a slower rate
CN107222739B (en) A kind of IPTV service quality dial testing method based on crawler technology
CN111209206B (en) Automatic test method and system for software products
CN101072374A (en) Automatic testing method for multimedia system
CN110113598A (en) A kind of Network Personal Video Recorder test method and system
CN104021055B (en) Automatic testing system and method for multimedia device
CN110379042A (en) Acquire the method and system of vehicle data
KR20090065676A (en) Diagnosis system using simulation for an electronic component and method thereof
CN107483916A (en) The control method of audio frequency and video archival quality detecting system
US20140163940A1 (en) Method and system for modeling rf emissions occurring in a radio frequency band
CN114900689B (en) Law enforcement recorder video storage testing method
US7484142B2 (en) System and method for testing a memory for a memory failure exhibited by a failing memory
CN112423121A (en) Video test file generation method and device and player test method and device
CN109600571B (en) Multimedia resource transmission test system and multimedia resource transmission test method
US8428424B2 (en) Apparatus and method for testing signal channels of digital video recorder
CN115203034A (en) Hil-based perceptual version iteration data effect quantitative contrast analysis system and method
KR100490154B1 (en) DTV Test Stream Generator
CN100396106C (en) A method for testing signal-to-noise ratio of digital video coding-decoding system
CN103245856B (en) A kind of test the method for electronic equipment performance, equipment and system
US7050590B2 (en) Method and apparatus for checking audio signals
CN113055711B (en) Audio and video synchronous detection method and detection system thereof
CN114527315A (en) System and method for monitoring reliability of measuring equipment
CN108337503B (en) Digital television field environment simulation method, terminal and computer readable medium
US7698144B2 (en) Automated audio sub-band comparison

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
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A testing method for recording and storing law enforcement recorders

Granted publication date: 20230526

Pledgee: Bank of Beijing Co.,Ltd. Hangzhou Yuhang sub branch

Pledgor: Hangzhou Xujian Weilan Electronic Co.,Ltd.

Registration number: Y2024980003511