CN113409831B - Video covering method of vehicle-mounted video recorder based on virtual timestamp chain - Google Patents

Video covering method of vehicle-mounted video recorder based on virtual timestamp chain Download PDF

Info

Publication number
CN113409831B
CN113409831B CN202110597521.XA CN202110597521A CN113409831B CN 113409831 B CN113409831 B CN 113409831B CN 202110597521 A CN202110597521 A CN 202110597521A CN 113409831 B CN113409831 B CN 113409831B
Authority
CN
China
Prior art keywords
timestamp
virtual
video
linked list
time
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
CN202110597521.XA
Other languages
Chinese (zh)
Other versions
CN113409831A (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.)
Sharpvision Co ltd
Original Assignee
Sharpvision 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 Sharpvision Co ltd filed Critical Sharpvision Co ltd
Priority to CN202110597521.XA priority Critical patent/CN113409831B/en
Publication of CN113409831A publication Critical patent/CN113409831A/en
Application granted granted Critical
Publication of CN113409831B publication Critical patent/CN113409831B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10527Audio or video recording; Data buffering arrangements
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10527Audio or video recording; Data buffering arrangements
    • G11B2020/10537Audio or video recording

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Television Signal Processing For Recording (AREA)
  • Time Recorders, Dirve Recorders, Access Control (AREA)
  • Closed-Circuit Television Systems (AREA)

Abstract

The invention discloses a video covering method of a vehicle-mounted video recorder based on a virtual timestamp chain, which comprises the steps of establishing a virtual timestamp chain table for recording video file timestamp information in a disk directory, comparing the maximum timestamp of the virtual timestamp chain table with the current system time when video equipment is recovered abnormally, adding a preset time value to the maximum timestamp of the virtual timestamp chain table to serve as the initial timestamp of new video file timestamp information if the maximum timestamp of the virtual timestamp chain table is larger than the current system time, and covering an old video file according to the timestamp time sequence of the virtual timestamp chain table when the disk video file is fully stored. The video covering method of the vehicle-mounted video recorder based on the virtual timestamp chain can effectively avoid the problem that the timestamp of the video file in the disk is disordered due to the fact that the RTC of the system is abnormal or the system time is intentionally tampered, so that the newly written video file is mistakenly taken as the oldest video to be covered.

Description

Vehicle-mounted video recorder video coverage method based on virtual timestamp chain
Technical Field
The invention relates to the technical field of flash electronic type external storage vehicle-mounted video recorder videos of a data processing system, in particular to a virtual timestamp chain-based vehicle-mounted video recorder video covering method.
Background
In the field of vehicle monitoring, vehicle-mounted video is generally required, the capacity of a disk for storing the video is limited, and after the disk is fully stored, the video needs to be overwritten, namely, a relatively old (time dimension) video file in the disk is deleted and a new video file is written to ensure the continuity of the video. The traditional management method for video storage is based on time dimension management, and the covering strategy is to cover according to the time dimension, namely, to cover the oldest video file in the disk and write a new video file. Therefore, if the RTC of the system is abnormal or the system time is intentionally tampered, the timestamp of the video file in the disk can be disturbed, so that the newly written video file is mistakenly taken as the oldest video to be covered, the continuity of the video covering is greatly damaged, the important evidence video can be mistakenly covered, and the like.
Disclosure of Invention
The invention aims to provide a video covering method of a vehicle-mounted video recorder based on a virtual time stamp chain, which prevents a newly written video file from being covered as the oldest video.
The invention discloses a video covering method of a vehicle-mounted video recorder based on a virtual timestamp chain, which comprises the following steps:
creating a virtual time stamp linked list for recording the time stamp information of the video file in a disk directory;
when the video equipment is recovered abnormally, comparing the maximum timestamp of the virtual timestamp linked list with the current system time;
if the maximum timestamp of the virtual timestamp linked list is larger than the current system time, adding a preset time value to the maximum timestamp of the virtual timestamp linked list to serve as an initial timestamp of the timestamp information of the new video file;
and when the storage of the disk video files is full, covering the old video files according to the time sequence of the time stamps of the virtual time stamp linked list.
The invention relates to a video covering method of a vehicle-mounted video recorder based on a virtual timestamp chain, which comprises the steps of establishing a virtual timestamp chain table for recording video file timestamp information in a disk directory, comparing the maximum timestamp of the virtual timestamp chain table with the current system time when video equipment recovers abnormally, adding a preset time value to the maximum timestamp of the virtual timestamp chain table to serve as the initial timestamp of new video file timestamp information if the maximum timestamp of the virtual timestamp chain table is larger than the current system time, covering an old video file according to the timestamp time sequence of the virtual timestamp chain table when the storage of the video file of the disk is full, and effectively avoiding the time stamp disorder of the video file in the disk caused by the RTC abnormality of the system or the intentional tampering of the system time, thereby mistakenly taking a newly written video file as the oldest covering problem.
Drawings
FIG. 1 is a schematic flow chart diagram of a video coverage method of a vehicle-mounted video recorder based on a virtual timestamp chain according to the present invention;
FIG. 2 is a schematic diagram of an actual timestamp linked list of the present invention;
FIG. 3 is a schematic diagram of a virtual timestamp chain table according to the present invention.
Detailed Description
As shown in fig. 1, a method for overlaying video of a vehicle-mounted video recorder based on a virtual timestamp chain includes:
creating a virtual time stamp linked list for recording the time stamp information of the video file in a disk directory;
when the video equipment is recovered abnormally, comparing the maximum timestamp of the virtual timestamp linked list with the current system time;
if the maximum timestamp of the virtual timestamp linked list is larger than the current system time, adding a preset time value to the maximum timestamp of the virtual timestamp linked list to serve as an initial timestamp of the timestamp information of the new video file;
and when the storage of the disk video files is full, covering the old video files according to the time sequence of the time stamps of the virtual time stamp linked list.
And creating an actual time stamp linked list for recording the time stamp information of the video file in a disk directory. And when the video equipment is recovered abnormally, the recovered default system time is used as the initial timestamp of the timestamp information of the new video file in the recovery process. The virtual timestamp linked list is combined with the timestamp chains of the disk video files of the actual timestamp linked list, so that each video file has both a virtual timestamp and an actual timestamp, and the video coverage continuity and the integrity of time information are ensured. Moreover, the virtual timestamp linked list and the actual timestamp linked list are also greatly convenient for the client to visually look up the video time distribution information and the abnormal information.
Further comprising: and when the video equipment is recovered abnormally, time correction is carried out on the virtual time stamp linked list and the actual time stamp linked list. The time correction of the virtual time stamp linked list and the actual time stamp linked list comprises: and correcting the delay time of the virtual timestamp linked list and the actual timestamp linked list when the video equipment is abnormally recovered. The time stamps of the corrected virtual time stamp linked list and the actual time stamp linked list are equal to the time difference of the time stamp of the abnormal time stamp interval plus the delay time. The video equipment abnormality comprises an abnormality in a GPS or network environment. Set up the calibration function of the time under GPS or the network environment through video recording equipment, because equipment boot initial stage and equipment GPS or network environment do not well lead to appearing time correction delay in service, during this delay, the time stamp on the time stamp chain is unusual, wait after correcting successfully, on the basis of virtual time stamp chain, through the method of backward motion, can deduce the time difference of unusual time stamp and normal time stamp, then rectify the unusual time stamp in the linked list, the time stamp after the correction equals the time difference of time stamp plus delay time between unusual time stamp interval, thereby can revise unusual time stamp to a certain extent, ensure timestamp furthest's accuracy.
The specific example that a new video file is deleted by mistake due to the abnormality of the system RTC is avoided through the virtual timestamp linked list:
as shown in fig. 2, the physical time of FILE3 in the actual timestamp linked list is the latest, but due to the system time being abnormal, the system time provided by the device is the oldest, and if the disk is full at this time and the video FILE with the oldest time needs to be deleted first, the system deletes FILE3, thereby deleting the latest video FILE.
The maximum timestamp of the virtual timestamp linked list is compared with the current system time, if the maximum timestamp of the virtual timestamp linked list is larger than the current system time, a preset time value is added to the maximum timestamp of the virtual timestamp linked list to serve as a starting timestamp of new video FILE timestamp information, when the storage of the disk video FILEs is full, an automatic time repair mechanism for covering old video FILEs is carried out according to the timestamp time sequence of the virtual timestamp linked list, for example, the maximum timestamp in the virtual timestamp linked list is 2021-03-31-08-03-01 shown in fig. 3, the system time is 1970-01-0100-01-01, the maximum timestamp in the virtual timestamp linked list is larger than the system time, at the moment, the preset time value of the maximum timestamp of the virtual timestamp is added to a preset time value of 15 seconds, namely, the starting timestamp of FILE3, the preset time value can be configured according with the situation, if the disk is full, the FILE with the oldest timestamp needs to be deleted, then the system time can be deleted 1, the system can delete the maximum timestamp of the virtual timestamp linked list, the old FILE, the effective recording mechanism can completely track the problem of the old video FILE when the virtual timestamp linked list is deleted, and the recording system node is completely abnormal, and the problem of the recording of the virtual timestamp can be observed through an actual recording node.
The foregoing is a more detailed description of the invention in connection with specific preferred embodiments and it is not intended that the invention be limited to these specific details. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.

Claims (2)

1. A video covering method of a vehicle-mounted video recorder based on a virtual timestamp chain is characterized by comprising the following steps:
creating a virtual time stamp linked list for recording the time stamp information of the video file in a disk directory;
when the video equipment is recovered abnormally, comparing the maximum timestamp of the virtual timestamp linked list with the current system time;
if the maximum timestamp of the virtual timestamp linked list is larger than the current system time, adding a preset time value to the maximum timestamp of the virtual timestamp linked list to serve as an initial timestamp of the timestamp information of the new video file;
when the storage of the disk video file is full, the old video file is covered according to the time sequence of the timestamps of the virtual timestamp linked list;
further comprising: creating an actual time stamp linked list for recording the time stamp information of the video file in a disk directory;
when the video equipment is recovered abnormally, the recovered default system time is used as the initial timestamp of the timestamp information of the new video file;
further comprising: when the video equipment is recovered abnormally, time correction is carried out on the virtual timestamp linked list and the actual timestamp linked list;
the time correction of the virtual time stamp linked list and the actual time stamp linked list comprises: correcting the delay time of the virtual timestamp linked list and the actual timestamp linked list when the video equipment is abnormally recovered;
and the time stamps of the corrected virtual time stamp linked list and the actual time stamp linked list are equal to the time difference of the time stamp of the abnormal time stamp interval plus the delay time.
2. The method as claimed in claim 1, wherein the video equipment abnormality includes GPS or abnormality in network environment.
CN202110597521.XA 2021-05-31 2021-05-31 Video covering method of vehicle-mounted video recorder based on virtual timestamp chain Active CN113409831B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110597521.XA CN113409831B (en) 2021-05-31 2021-05-31 Video covering method of vehicle-mounted video recorder based on virtual timestamp chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110597521.XA CN113409831B (en) 2021-05-31 2021-05-31 Video covering method of vehicle-mounted video recorder based on virtual timestamp chain

Publications (2)

Publication Number Publication Date
CN113409831A CN113409831A (en) 2021-09-17
CN113409831B true CN113409831B (en) 2022-12-02

Family

ID=77675273

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110597521.XA Active CN113409831B (en) 2021-05-31 2021-05-31 Video covering method of vehicle-mounted video recorder based on virtual timestamp chain

Country Status (1)

Country Link
CN (1) CN113409831B (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102253638A (en) * 2011-08-12 2011-11-23 北京电子工程总体研究所 Frequency stability control and compensation method for automatically keeping time in complex environment
TW201347521A (en) * 2012-05-11 2013-11-16 Hon Hai Prec Ind Co Ltd System and method for adjusting timestamps
CN103426448A (en) * 2012-05-14 2013-12-04 鸿富锦精密工业(深圳)有限公司 System and method for adjusting timestamps
CN109677467B (en) * 2019-02-26 2021-08-06 中车长春轨道客车股份有限公司 Unified time service method, device and system based on TCMS
CN112579820B (en) * 2019-09-27 2023-03-24 浙江宇视科技有限公司 Time hopping video data processing method, device, medium and electronic equipment
CN111797060B (en) * 2020-09-07 2020-12-04 杭州觅睿科技有限公司 Offline video recording method, device and equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN113409831A (en) 2021-09-17

Similar Documents

Publication Publication Date Title
US9008893B2 (en) Systems and methods for vehicle monitoring with processing interruption tolerance
US7617261B2 (en) System for archive integrity management and related methods
US7036041B2 (en) Method, program and system for managing operation
US7831130B2 (en) Circulating recording apparatus, recording method and recording medium storing program of the recording method
CN113158248B (en) Method for credible data acquisition and evidence coexistence of electronic equipment based on block chain technology
US7770065B2 (en) File data restoring system and method of computer operating system and software thereof
CN104811645A (en) Embedded video-recording data storage method
CN102541940A (en) Method for controlling data integrity of industrial database
CN111198889A (en) Data additional recording method and device
CN113409831B (en) Video covering method of vehicle-mounted video recorder based on virtual timestamp chain
CN107342880B (en) Abnormal information acquisition method and system
CN114610567A (en) Container monitoring method, network device and storage medium
CN114356855A (en) File management method, file management device, electronic device and readable storage medium
CN110866004A (en) Method for checking whether block chain filing data is tampered
US20160037119A1 (en) Video recording apparatus, and video recording method when temporary network failure occurs
US20050262033A1 (en) Data recording apparatus, data recording method, program for implementing the method, and program recording medium
CN117271222A (en) Cloud disaster recovery backup method and system for big data
CN112214801A (en) Electronic evidence obtaining management method, electronic evidence obtaining equipment and computer readable storage medium
US20090248745A1 (en) Metadata management apparatus
US7328319B1 (en) Remote asynchronous mirror recovery
CN103137159A (en) Direct-to-disc fault-tolerant method for videos in hard-disk based digital video recorder and device thereof
CN108959504B (en) Method and system for realizing remote data synchronization of file system
CN109756708B (en) Continuous transmission method and device of audio and video data
EP1349067A2 (en) Document management system and method with fault recovery
CN109426589B (en) File repair method and device

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
CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: 101, Building 6, No.1 Ruihua Road, Tianhe District, Guangzhou, Guangdong 510660

Patentee after: SHARPVISION CO.,LTD.

Address before: 510000 fifth floor, No.3, Huangzhou Industrial Park, chebei Road, Tianhe District, Guangzhou City, Guangdong Province

Patentee before: SHARPVISION CO.,LTD.