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

Law enforcement recorder video storage testing method Download PDF

Info

Publication number
CN114900689B
CN114900689B CN202210297280.1A CN202210297280A CN114900689B CN 114900689 B CN114900689 B CN 114900689B CN 202210297280 A CN202210297280 A CN 202210297280A CN 114900689 B CN114900689 B CN 114900689B
Authority
CN
China
Prior art keywords
file
video
video file
format
frame
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
CN202210297280.1A
Other languages
Chinese (zh)
Other versions
CN114900689A (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 testing 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 generating stage, and after the video is generated, the relevant parameters are obtained through system analysis of the video file and compared with the set parameters, so that a result of whether a final file is qualified is obtained. The video file checking is to obtain metadata information of a sub-box medium of the video file, compare the metadata information with set parameters, obtain frame_num attribute and timestamp information of the video at the same time, check whether the sequence number is correctly ordered or not and finally confirm whether the video file meets the generated condition or not by checking the difference value of the timestamps, so that the video file of the current testing device can be obtained whether the video file meets the condition or not and the detailed reason of not meeting the condition or not without too much manpower input.

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 video storage testing method of a law enforcement recorder.
Background
During the test of the law enforcement recorder, the stored video files of the recorder are important test items, and when the video storage function of the recorder is tested, a tester needs to analyze and check the stored video files in MP4 format and PS format, so as to ensure that the video files are consistent with expected setting parameters, such as checking the sound sampling rate, resolution, code rate, frame rate, encoding format, file size, file storage format, whether the files are damaged, whether the files have frame skipping conditions, and the like;
the video files in the manual inspection recorder are inspected one by one, whether the related parameters of each video file conform to the expected results or not needs to be inspected sequentially by using different tools for each file, the labor input cost is relatively high, the more files are, the cost is relatively high, time is consumed, the condition of incomplete inspection coverage area possibly occurs, the test effect and the test efficiency are affected, the product quality is not ensured, the whole product iteration process is also affected, the whole product progress is slow, and therefore, the automatic storage test of the video of the law enforcement recorder is needed to be solved.
Disclosure of Invention
The invention aims to provide a method for testing video storage of a law enforcement recorder, which realizes automatic storage testing of video of the law enforcement recorder so as to solve the problems in the background technology.
In order to achieve the above purpose, the present invention provides the following technical solutions: a law enforcement recorder video storage test method comprises the steps of firstly, generating video files by recorder equipment according to a fixed parameter format:
the method comprises the steps of reading attribute values in parameter configuration files, configuring parameters on a recorder through a parameter configuration interface provided by the recorder, realizing timing video recording by using an automatic script, placing each video recording file and a corresponding parameter configuration file under the same folder, and naming the files by file names;
the specific parameters of the parameter configuration file are categorized as follows:
resolution (Screen): 720P, 1080P, 1296P, 1512P;
code rate (codeRate): 4096. 1536, 768;
frame rate (frameRate): 25. 30;
sampling rate (samplingRate): 16K;
file duration (fileTime): 20min;
file format (fileFormat): ps, MP4;
step two, converting video file formats:
if the file format parameter is MP4 format, converting the ps-format video file into MP4 format by using a multimedia video processing tool (ffmpeg), finally generating the MP 4-format video file, and adding ps name identification to the file name to distinguish the original video file format;
step three, checking parameters of video files:
reading the information of the moovbox in the video file, acquiring parameter information, comparing the parameter information with the parameters in the step one, and returning an abnormality and an abnormality attribute if the parameter information is different from the parameters in the step one;
fourth, video file frame loss checking:
the method comprises the steps of circularly obtaining frame_num attribute values in slice_header of an I frame and a P frame in a video file, obtaining values of the first I frame and the P frame, storing the values, comparing the values obtained next time with stored values, wherein a difference value is equal to 1 and is normal, a difference value is greater than 1 and is abnormal, outputting a current serial number frame_num, and knowing whether the video file is lost and the specific frame loss position;
fifthly, video file clamping and checking:
analyzing movbox information of a video file to obtain mov_read_stsd (stts) information in a trak box (atom) module, wherein a sample is a frame of an audio and video, stts is a 'timestamp-sample sequence number' mapping table, a timestamp of each frame is obtained, time differences of a next frame and a last frame are calculated in a circulating mode in sequence, 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 the 1s is set with 25 frames, the time difference is 1000ms/25, one frame is 40ms, the parameter value is 80ms, if the actual time difference of 2 frames in stts is greater than 80ms, the video file is considered to be blocked, and a sample sequence number and an abnormal result are output; in stts, if the actual time difference of 2 frames is less than or equal to 80ms, the video file is considered to be normal;
step six, outputting a test result:
and detecting parameters of the file obtained 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 items of detection are consistent with the parameters initially set, the video file is normal, otherwise, the file is an abnormal file.
Preferably, in the first step, the recorder records 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 describe specific information of each media track.
Preferably, in the third step, if there is a partial error between the code rate and the frame rate, that is, an error interval is set, and the comparison parameter is required to be within the error range.
Preferably, in the sixth step, the detection results of the video files are summarized, 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 of the invention is that the original variable testing flow is solidified, relevant parameter configuration is put into a parameter file, the video file is recorded according to parameters required by setting in the generation stage, and after the video is generated, the system analysis of the video file is used for obtaining the comparison of the relevant parameters and the set parameters, so as to obtain the result whether the final file is qualified or not. The video file checking is to obtain metadata information of a sub-box medium of the video file, compare the metadata information with set parameters, obtain frame_num attribute and timestamp information of the video at the same time, check whether the sequence number is correctly ordered or not and finally confirm whether the video file meets the generated condition or not by checking the difference value of the timestamps, so that the video file of the current testing device can be obtained whether the video file meets the condition or not and the detailed reason of not meeting the condition or not without too much manpower input.
Drawings
FIG. 1 is a schematic flow chart of the present invention;
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, the present invention provides a technical solution: a method for testing video storage of law enforcement recorder includes
Step one, recording equipment generates a video file according to a fixed parameter format:
the method comprises the steps of reading attribute values in parameter configuration files, configuring parameters on a recorder through a parameter configuration interface provided by the recorder, realizing timing video recording by using an automatic script, placing each video recording file and a corresponding parameter configuration file under the same folder, and naming the files by file names;
the specific parameters of the parameter configuration file are categorized as follows:
resolution (Screen): 720P, 1080P, 1296P, 1512P;
code rate (codeRate): 4096. 1536, 768;
frame rate (frameRate): 25. 30;
sampling rate (samplingRate): 16K;
file duration (fileTime): 20min;
file format (fileFormat): ps, MP4;
the above parameters are written into the parameter configuration file, examples are as follows:
resolution (Screen) =720p
Code rate (code) =4096
Frame rate (frameRate) =30
Sample rate (samplingRate) =16k
File duration (fileTime) =20 min
File format (fileFormat) =mp4
Step two, converting video file formats:
in the video file, the file format is ps format and cannot be directly analyzed, the ps format is required to be converted into MP4 format for video analysis, if the file format parameter is MP4 format, a multimedia video processing tool (ffmpeg) is used for converting the ps format video file into the MP4 format, the MP4 format video file is finally generated, and ps name identification is added to the file name to distinguish the original video file format; the ps in the file name indicates that the original video file format is ps format, and the ps in the file name indicates that the original video file format is mp4 format.
Step three, checking parameters of video files:
reading the information of the moovbox in the video file, acquiring parameter information, comparing the parameter information with the parameters in the step one, and returning an abnormality and an abnormality attribute if the parameter information is different from the parameters in the step one;
fourth, video file frame loss checking:
the method comprises the steps of circularly obtaining frame_num attribute values in slice_header of an I frame and a P frame in a video file, obtaining values of the first I frame and the P frame, storing the values, comparing the values obtained next time with stored values, wherein a difference value is equal to 1 and is normal, a difference value is greater than 1 and is abnormal, outputting a current serial number frame_num, and knowing whether the video file is lost and the specific frame loss position;
fifthly, video file clamping and checking:
analyzing movbox information of a video file to obtain mov_read_stsd (stts) information in a trak box (atom) module, wherein a sample is a frame of an audio and video, stts is a 'timestamp-sample sequence number' mapping table, a timestamp of each frame is obtained, time differences of a next frame and a last frame are calculated in a circulating mode in sequence, 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 the 1s is set with 25 frames, the time difference is 1000ms/25, one frame is 40ms, the parameter value is 80ms, if the actual time difference of 2 frames in stts is greater than 80ms, the video file is considered to be blocked, and a sample sequence number and an abnormal result are output; in stts, if the actual time difference of 2 frames is less than or equal to 80ms, the video file is considered to be normal;
step six, outputting a test result:
and detecting parameters of the file obtained 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 items of detection are consistent with the parameters initially set, the video file is normal, otherwise, the file is an abnormal file.
In the first step, the recorder records one video file every 30 minutes, and each recorder records 10 video files.
In the third step, mvhd in the moovbox contains the 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 the moovbox describe specific information of each media track.
And step three, if partial errors exist in the code rate and the frame rate, namely an error interval is set, and the comparison parameter requirement is within an error range.
And step six, summarizing the detection results of the video files, and outputting a test report according to the corresponding file names and results, so that the detection results of each file can be clearly and definitely known.
The above-described embodiments are intended to illustrate the present invention, not to limit it, and any modifications and variations made thereto are within the spirit of the invention and the scope of the appended claims.
While the fundamental and principal features of the invention and advantages of the invention have been shown and described, 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 may be embodied in 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 disclosure describes embodiments, not every embodiment is provided with a separate embodiment, and that this description is provided for clarity only, and that the disclosure is not limited to the embodiments described in detail below, and that the embodiments described in the examples may be combined as appropriate to form other embodiments that will be apparent to those skilled in the art.

Claims (7)

1. A method for testing video storage of law enforcement recorder is characterized by comprising the following steps
Step one, recording equipment generates a video file according to a fixed parameter format:
the method comprises the steps of reading attribute values in parameter configuration files, configuring parameters on a recorder through a parameter configuration interface provided by the recorder, realizing timing video recording by using an automatic script, placing each video recording file and a corresponding parameter configuration file under the same folder, and naming the files by file names;
step two, converting the video file format into an mp4 format;
step three, checking parameters of video files;
reading the information of the moovbox in the video file, acquiring parameter information, comparing the parameter information with the parameters in the step one, and returning an abnormality and an abnormality attribute if the parameter information is different from the parameters in the step one;
fourth, video file frame loss checking:
the method comprises the steps of circularly obtaining frame_num attribute values in slice_header of an I frame and a P frame in a video file, obtaining values of the first I frame and the P frame, storing the values, comparing the values obtained next time with stored values, wherein a difference value is equal to 1 and is normal, a difference value is greater than 1 and is abnormal, outputting a current serial number frame_num, and knowing whether the video file is lost and the specific frame loss position;
fifthly, video file clamping and checking:
analyzing movbox information of a video file to obtain mov_read_stsd (stts) information in a trakbox (atom) module, wherein a sample is a frame of an audio and video, stts is a 'timestamp-sample sequence number' mapping table, a timestamp of each frame is obtained, time differences of a next frame and a previous frame are calculated in a circulating mode in sequence, 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 the 1s is set with 25 frames, the time difference is 1000ms/25, one frame is 40ms, the parameter value is 80ms, if the actual time difference of 2 frames in stts is greater than 80ms, the video file is considered to be blocked, and a sample sequence number and an abnormal result are output; in stts, if the actual time difference of 2 frames is less than or equal to 80ms, the video file is considered to be normal;
step six, outputting a test result:
and detecting parameters of the file obtained 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 items of detection are consistent with the parameters initially set, the video file is normal, otherwise, the file is an abnormal file.
2. The method of claim 1, wherein the recorder records one video file every 30 minutes and 10 video files per recorder in step one.
3. The method of claim 1, wherein mvhd in moovbox in step three contains media creation and modification time, time scale, default volume, color gamut and duration information, and a series of sub-boxes in trak in moovbox describe specific information of each media track.
4. The method for video storage and test of law enforcement recorder according to claim 1, wherein in step three, if there is a partial error between code rate and frame rate, an error interval is set, and the comparison parameter is required to be within the error range.
5. The method for video storage testing of law enforcement recorder according to 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 result.
6. The method for video storage testing of a law enforcement recorder according to claim 1, wherein the specific parameters of the parameter configuration file in step one are categorized as follows:
resolution (Screen): 720P, 1080P, 1296P, 1512P;
code rate (codeRate): 4096. 1536, 768;
frame rate (frameRate): 25. 30;
sampling rate (samplingRate): 16K;
file duration (fileTime): 20min;
file format (fileFormat): ps, MP4.
7. The method for testing video storage of law enforcement recorder according to claim 6, wherein in the second step, in the video file, the file format is ps format, which cannot be directly analyzed, and the ps format is converted into mp4 format, so that video analysis can be performed;
if the file format parameter is MP4 format, converting the ps-format video file into MP4 format by using a multimedia video processing tool (ffmpeg), finally generating the MP 4-format video file, and adding ps name identification to the file name to distinguish the original video file format;
the ps in the file name indicates that the original video file format is ps format, and the ps in the file name indicates that the original video file format 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 CN114900689A (en) 2022-08-12
CN114900689B true 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 (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016103968A1 (en) * 2014-12-22 2016-06-30 ソニー株式会社 Information processing device, information recording medium, information processing method, and program
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

Family Cites Families (6)

* 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
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
CN113127680B (en) * 2019-12-30 2023-05-02 Tcl新技术(惠州)有限公司 Cross-network alarm condition association method, storage medium and system
CN113382189A (en) * 2021-05-24 2021-09-10 深圳市爱为物联科技有限公司 Electronic equipment damaged file repairing method
CN114007112B (en) * 2021-11-30 2023-06-02 四川效率源信息安全技术股份有限公司 Method for repairing mdat box data errors in MP4 video file

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016103968A1 (en) * 2014-12-22 2016-06-30 ソニー株式会社 Information processing device, information recording medium, information processing method, and program
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

Also Published As

Publication number Publication date
CN114900689A (en) 2022-08-12

Similar Documents

Publication Publication Date Title
US7062696B2 (en) Algorithmic test pattern generator, with built-in-self-test (BIST) capabilities, for functional testing of a circuit
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
CN105472385A (en) Video decoding and image output quality detection method and system
CN110113598A (en) A kind of Network Personal Video Recorder test method and system
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
US20140163940A1 (en) Method and system for modeling rf emissions occurring in a radio frequency band
CN112423121A (en) Video test file generation method and device and player test method and device
CN110147313B (en) Log output method and device
CN115203034A (en) Hil-based perceptual version iteration data effect quantitative contrast analysis system and method
KR100490154B1 (en) DTV Test Stream Generator
US7050590B2 (en) Method and apparatus for checking audio signals
CN113593536B (en) Device and system for detecting voice recognition accuracy
CN113055667B (en) Video quality detection method and device, electronic equipment and storage medium
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
CN108337503B (en) Digital television field environment simulation method, terminal and computer readable medium
EP2060126B1 (en) Systems and methods for generating video test sequences based upon captured video data
CN109696591B (en) Testing method for intelligently acquiring fault recording based on ATS automatic testing platform
CN114527315A (en) System and method for monitoring reliability of measuring equipment
Kim et al. Audiovisual Quality Control and Preservation Case Studies from Libraries, Archives, and Museums
CN115278357B (en) Data processing method, device, communication device and storage medium
CN113542724B (en) Automatic detection method and system for video resources
US20230403390A1 (en) Method and apparatus for evaluating performance of drive video record system

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

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

PE01 Entry into force of the registration of the contract for pledge of patent right