CN111835993A - Damage-proof video storage method, device, equipment and medium - Google Patents

Damage-proof video storage method, device, equipment and medium Download PDF

Info

Publication number
CN111835993A
CN111835993A CN202010971079.8A CN202010971079A CN111835993A CN 111835993 A CN111835993 A CN 111835993A CN 202010971079 A CN202010971079 A CN 202010971079A CN 111835993 A CN111835993 A CN 111835993A
Authority
CN
China
Prior art keywords
video
block
transmitted
video data
creating
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.)
Pending
Application number
CN202010971079.8A
Other languages
Chinese (zh)
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.)
Shenzhen Adas High Tech Co ltd
Original Assignee
Shenzhen Adas High Tech 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 Shenzhen Adas High Tech Co ltd filed Critical Shenzhen Adas High Tech Co ltd
Priority to CN202010971079.8A priority Critical patent/CN111835993A/en
Publication of CN111835993A publication Critical patent/CN111835993A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/91Television signal processing therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/907Television signal recording using static stores, e.g. storage tubes or semiconductor memories

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The invention discloses a video storage method, which comprises the following steps: acquiring video data to be transmitted, and creating a header block of a target video according to the video data to be transmitted; writing video data to be transmitted into a video data block of a target video, and storing the video data to be transmitted, which are written at intervals of unit time, into a corresponding unit data block in the video data block; and acquiring the current number of the unit data blocks in the current video data block at intervals of a preset period, and creating or updating the tail block of the target video according to the current number of the unit data blocks until at least one of preset writing conditions is met. The invention does not need extra operation load, and can effectively avoid the situation that the target video cannot be played due to illegal power failure, accidental damage and the like in the storage process of the video storage device. Furthermore, a video storage apparatus, a device and a storage medium are proposed.

Description

Damage-proof video storage method, device, equipment and medium
Technical Field
The present invention relates to the field of data storage technologies, and in particular, to a method, an apparatus, a device, and a medium for storing a video with damage prevention.
Background
In a video file that can be played normally, the video structures such as file head and file tail in the file data structure must be completely existed before playing. But in some cases, for example: the video recording device is powered off illegally, the video recorder is damaged accidentally, the storage medium is taken out of the video recording device illegally, and the video playing is abnormal due to serious bad blocks or abnormity of the storage medium, and the phenomena are specifically shown as follows: in a computer or mobile phone system, the system will determine that the video file is a bad file, so that the video file cannot be played. If the file header and the file trailer are lost or damaged seriously, the video file segment may disappear directly. Therefore, a method for storing the video with the damage prevention function is urgently needed to store the video with higher safety and reliability.
Disclosure of Invention
In view of the foregoing, there is a need to provide a video storage method, apparatus, device, and medium that prevent damage to video during storage.
A method of damage-resistant video storage, the method comprising:
acquiring video data to be transmitted, and creating a header block of a target video according to the video data to be transmitted;
writing the video data to be transmitted into a video data block of the target video, and storing the video data to be transmitted, which are written at intervals of unit time, into a corresponding unit data block in the video data block;
and acquiring the current number of the unit data blocks in the current video data block at intervals of a preset period, and creating or updating the tail block of the target video according to the current number of the unit data blocks until at least one of preset writing conditions is met.
In one embodiment, the preset writing condition includes: and the current number of the unit data blocks is greater than or equal to the preset threshold number, and/or a video storage stopping instruction is obtained.
In one embodiment, the step of creating or updating the end block of the target video according to the current number of the unit data blocks comprises:
creating or updating the content of the end-of-file block such that the end-of-file block indicates that the target video ends at the current number of unit data blocks.
In one embodiment, the step of creating or updating the end block of the target video according to the current number of the unit data blocks comprises:
creating or updating the content of the end-of-file block such that the end-of-file block indicates that the target video ends at more than the current number of unit data blocks.
In one embodiment, the causing the end block to indicate that the target video ends at more than the current number of unit data blocks includes:
acquiring the extra amount of unit time included in each preset period; adding the current number and the extra number to obtain a final number;
creating or updating the content of the end-of-file chunk such that the end-of-file chunk indicates that the target video ends at the final number of unit data chunks.
In one embodiment, the obtaining video data to be transmitted and creating a header block of a target video according to the video data to be transmitted includes:
acquiring a target specification definition of the video data to be transmitted, and determining a header structure of the header block according to the target specification definition;
and creating the header block of the target video according to the header structure.
In one embodiment, before the obtaining the video data to be transmitted, the method further includes:
driving the image sensor to send the obtained video sensing signal to the main control chip;
and driving the main control chip to perform coding operation and compression operation on the video sensing signal, and sending the video data to be transmitted, which is obtained by performing post-processing on the coding operation and the compression operation, to a data memory for temporary storage.
A video storage device, the device comprising:
the device comprises a header block creating module, a header block generating module and a video transmission module, wherein the header block creating module is used for acquiring video data to be transmitted and creating a header block of a target video according to the video data to be transmitted;
the data block creating module is used for writing the video data to be transmitted into the video data block of the target video and storing the video data to be transmitted, which are written at intervals of unit time, into the corresponding unit data block in the video data block;
and the end block creating module is used for acquiring the current number of the unit data blocks in the current video data block at intervals of a preset period, and creating or updating the end block of the target video according to the current number of the unit data blocks until any at least one preset writing condition is met.
A computer-readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of:
acquiring video data to be transmitted, and creating a header block of a target video according to the video data to be transmitted;
writing the video data to be transmitted into a video data block of the target video, and storing the video data to be transmitted, which are written at intervals of unit time, into a corresponding unit data block in the video data block;
and acquiring the current number of the unit data blocks in the current video data block at intervals of a preset period, and creating or updating the tail block of the target video according to the current number of the unit data blocks until at least one of preset writing conditions is met.
A video storage device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of:
acquiring video data to be transmitted, and creating a header block of a target video according to the video data to be transmitted;
writing the video data to be transmitted into a video data block of the target video, and storing the video data to be transmitted, which are written at intervals of unit time, into a corresponding unit data block in the video data block;
and acquiring the current number of the unit data blocks in the current video data block at intervals of a preset period, and creating or updating the tail block of the target video according to the current number of the unit data blocks until at least one of preset writing conditions is met.
The invention provides a method, a device, equipment and a medium for storing damage-proof videos, which do not need extra operation load, and create or update a file tail block of a target video in real time according to the current number of unit data blocks, thereby ensuring that the video structure of the target video is kept complete in most of the video storage stage, and effectively avoiding the situation that the target video cannot be played due to illegal power failure, accidental damage and the like in the storage process of a video storage device.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Wherein:
FIG. 1 is a flow diagram illustrating a method for storing tamper-resistant video according to one embodiment;
FIG. 2 is a diagram illustrating an embodiment of writing video data to be transmitted into a unit data block;
FIG. 3 is a first schematic diagram of the creation of a tail block;
FIG. 4 is a first schematic diagram of a target video store;
FIG. 5 is a second schematic diagram of the creation of a tail block;
FIG. 6 is a second schematic of target video storage;
FIG. 7 is a diagram illustrating an exemplary video storage device;
fig. 8 is a block diagram of a video storage device in one embodiment.
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.
As shown in fig. 1, fig. 1 is a schematic flow chart of a method for storing a damage-proof video in an embodiment, and is applied to a video recording device, which may specifically be a digital camera, a car recorder, or the like. The method for storing the damage-proof video in the embodiment comprises the following steps:
step 102, obtaining video data to be transmitted, and creating a header block of a target video according to the video data to be transmitted.
The video Data to be transmitted is pre-stored in a DDR (Double Data Rate) Data memory of the video recording device. Before video storage, the video recording equipment drives the image sensor to send the acquired video sensing signals to the main control chip, and drives the main control chip to perform coding operation and compression operation on the video sensing signals, and the steps are continuously performed until video recording is completed along with continuous video recording. And then the video recording equipment drives the main control chip to send the video data to be transmitted, which is obtained by the processing after the coding operation and the compression operation, to the data memory for temporary storage. When data storage is performed, the video data to be transmitted in the data Memory is sent to a storage medium of the video recording device, such as an SD Card (Secure Digital Memory Card), a hard disk, and a Flash Memory.
In one embodiment, the step of creating the header block includes: first, a target specification definition of video data to be transmitted is obtained. The target specification definition includes attribute information such as format configuration, overall code rate, codec information and the like of the target video. Further, the header structure of the header block is determined according to the target specification definition, i.e. the header structure of the header block is required to include the attribute type. And finally, creating a header block of the target video according to the header structure, namely requiring the content recorded in the header block of the target video to comprise the specific attribute information of all attribute categories of the target video. This is because the player must know the specific attribute information to correctly decode and play, otherwise, it is determined that the target video is a bad file and cannot play the target video.
And 104, writing the video data to be transmitted into the video data block of the target video, and storing the video data to be transmitted, which is written at intervals of unit time, into the corresponding unit data block in the video data block.
The video data block is used for storing all video contents of the target video. In this embodiment, the unit time is 1s, and as shown in fig. 2, after the header is created, the video data to be transmitted are sequentially stored in one unit data block every 1s, that is, one unit data block includes the video content of the target video 1 s.
And 106, acquiring the current number of the unit data blocks in the current video data block at intervals of a preset period, and creating or updating the tail block of the target video according to the current number of the unit data blocks until at least one of preset writing conditions is met.
The interval preset period is specifically set by combining the read-write speed of the storage medium and the read-write capability of the main control chip. When the main control chip in the video recording device has sufficient performance to support the additional read/write pressure of the storage medium or the storage medium can support the sufficient read/write speed, the preset interval period can be set to be 1 second or 2 seconds.
In one embodiment, the preset interval preset period is 2s, the current number of unit data blocks in the current video data block is obtained every 2s, and the content of the end block is created or updated, so that the end block indicates that the target video ends at a unit data block larger than the current number. More specifically, the extra amount per unit time included in each preset period is first acquired, and as shown in fig. 3, the extra amount per unit time is 2 (i.e., 3 rd and 4 th). Further, the current number and the extra number are added to obtain a final number, i.e. the final number is 4. Finally, the contents of the end-of-file block are synchronously created or updated such that the end-of-file block indicates that the target video ends at the final number of unit data blocks. That is, as shown in fig. 3, the end time of the end of the file is set to 4s, which means that for the target video, the target video is declared to end playing at the 4 th second. And when the video data area is written into the 4 th second, the structure of the rail end is synchronously modified at the moment, so that the end time of the rail end is 6s, namely for the target video, the target video is declared to be played at the 6 th second.
In one embodiment, as shown in FIG. 4, the target video has an unexpected write exception at 159s, but since the end of the file has been modified at the time of writing the 158 th second unit data block, the target video is declared to end at 160 seconds. When the target video is played, since the target video has the complete header block, video data block and trailer block, the target video can be identified and played normally, but the 159 th and 160 th seconds are blank data, and the player may be in a black screen or a flower screen state at the time of playing.
In another embodiment, the contents of the end-of-file chunk are created or updated such that the end-of-file chunk indicates that the target video ends at the current number of unit data chunks. That is, as shown in FIG. 5, when the video data area is being written for the 2 nd second, the synchronization establishes the footer structure in the video file structure. The end time of the end of the file is 2s, that is, for the target video, the target video is declared to end playing in 2 s. And when the video data area is written into the 4 th second, the structure of the file tail is synchronously modified at the moment, so that the end time of the file tail is 4 th s, namely for the target video, the target video is declared to be played at the end of the 4 th second.
In one embodiment, as shown in fig. 6, the target video has an unexpected write exception at 159s, but because the end of the file has been modified when the 158 s unit data block is written, and the target video has a complete header block, video data block and end of file block, the target video can be recognized and played normally, and the player will not have a black frame or a flower frame.
In this embodiment, the preset writing condition specifically includes that the current number of unit data blocks is greater than or equal to a preset threshold number (e.g. 180), and further includes obtaining a video stop storage command. And stopping the storage of the target video when any preset writing condition is detected to be met or all preset writing conditions are met.
According to the damage-prevention video storage method, no extra operation load is needed, and the file tail block of the target video is created or updated in real time according to the current number of the unit data blocks, so that the video structure of the target video is ensured to be kept complete in most of the video storage stage, and the problem that the target video cannot be played due to illegal power failure, accidental damage and the like in the storage process of the video storage device can be effectively avoided.
In one embodiment, as shown in fig. 7, a video storage apparatus is proposed, the apparatus comprising:
a header block creation module 702, configured to obtain video data to be transmitted, and create a header block of a target video according to the video data to be transmitted;
a data block creating module 704, configured to write video data to be transmitted into a video data block of a target video, and store the video data to be transmitted, which is written every unit time, in a corresponding unit data block in the video data block;
and a buffer tail block creating module 706, configured to obtain the current number of unit data blocks in the current video data block at intervals of a preset period, and create or update a buffer tail block of the target video according to the current number of unit data blocks until any at least one of preset writing conditions is met.
According to the video storage device, no extra operation load is needed, and the file tail block of the target video is created or updated in real time according to the current number of the unit data blocks, so that the video structure of the target video is ensured to be kept complete in most of the video storage stage, and the situation that the target video cannot be played due to illegal power failure, accidental damage and the like in the storage process of the video storage device can be effectively avoided.
In one embodiment, the preset writing conditions include: and the current number of the unit data blocks is greater than or equal to the preset threshold number, and/or a video storage stopping instruction is acquired.
In an embodiment, the end block creating module 706 is further specifically configured to: the contents of the end-of-file block are created or updated such that the end-of-file block indicates that the target video ends at the current number of unit data blocks.
In an embodiment, the end block creating module 706 is further specifically configured to: the content of the end-of-track block is created or updated such that the end-of-track block indicates that the target video ends at more than the current number of unit data blocks.
In an embodiment, the end block creating module 706 is further specifically configured to: acquiring the extra amount of unit time included in each preset period; adding the current number and the extra number to obtain a final number; the contents of the end-of-file block are created or updated such that the end-of-file block indicates that the target video ends at the final number of unit data blocks.
In one embodiment, the header block creation module 702 is further configured to: acquiring a target specification definition of video data to be transmitted, and determining a header structure of a header block according to the target specification definition; and creating a header block of the target video according to the header structure.
In one embodiment, the video storage apparatus further comprises an encoding compression module for: driving the image sensor to send the obtained video sensing signal to the main control chip; and the driving main control chip performs coding operation and compression operation on the video sensing signals, and sends the video data to be transmitted, which is obtained by post-processing of the coding operation and the compression operation, to the data memory for temporary storage.
Fig. 8 shows an internal structural diagram of a video storage device in one embodiment. As shown in fig. 8, the video storage device includes a processor, a memory, and a network interface connected by a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the video storage device stores an operating system and may also store a computer program that, when executed by the processor, causes the processor to implement a tamper-resistant video storage method. The internal memory may also have a computer program stored therein, which when executed by the processor, causes the processor to perform a method of storing video for protection against corruption. Those skilled in the art will appreciate that the structure shown in fig. 8 is a block diagram of only a portion of the structure associated with the present application and does not constitute a limitation on the video storage device to which the present application is applied, and that a particular video storage device may include more or less components than those shown, or combine certain components, or have a different arrangement of components.
A video storage device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the following steps when executing the computer program: acquiring video data to be transmitted, and creating a header block of a target video according to the video data to be transmitted; writing video data to be transmitted into a video data block of a target video, and storing the video data to be transmitted, which are written at intervals of unit time, into a corresponding unit data block in the video data block; and acquiring the current number of the unit data blocks in the current video data block at intervals of a preset period, and creating or updating the tail block of the target video according to the current number of the unit data blocks until at least one of preset writing conditions is met.
In one embodiment, the preset writing conditions include: and the current number of the unit data blocks is greater than or equal to the preset threshold number, and/or a video storage stopping instruction is acquired.
In one embodiment, the step of creating or updating the end-of-line block of the target video according to the current number of unit data blocks comprises: the contents of the end-of-file block are created or updated such that the end-of-file block indicates that the target video ends at the current number of unit data blocks.
In one embodiment, the step of creating or updating the end-of-line block of the target video according to the current number of unit data blocks comprises: the content of the end-of-track block is created or updated such that the end-of-track block indicates that the target video ends at more than the current number of unit data blocks.
In one embodiment, causing the end block to indicate that the target video ends at more than the current number of unit data blocks comprises: acquiring the extra amount of unit time included in each preset period; adding the current number and the extra number to obtain a final number; the contents of the end-of-file block are created or updated such that the end-of-file block indicates that the target video ends at the final number of unit data blocks.
In one embodiment, acquiring video data to be transmitted, and creating a header block of a target video according to the video data to be transmitted includes: acquiring a target specification definition of video data to be transmitted, and determining a header structure of a header block according to the target specification definition; and creating a header block of the target video according to the header structure.
In one embodiment, before obtaining the video data block to be transmitted, the method further includes: driving the image sensor to send the obtained video sensing signal to the main control chip; and the driving main control chip performs coding operation and compression operation on the video sensing signals, and sends the video data to be transmitted, which is obtained by post-processing of the coding operation and the compression operation, to the data memory for temporary storage.
A computer-readable storage medium storing a computer program which, when executed by a processor, performs the steps of: acquiring video data to be transmitted, and creating a header block of a target video according to the video data to be transmitted; writing video data to be transmitted into a video data block of a target video, and storing the video data to be transmitted, which are written at intervals of unit time, into a corresponding unit data block in the video data block; and acquiring the current number of the unit data blocks in the current video data block at intervals of a preset period, and creating or updating the tail block of the target video according to the current number of the unit data blocks until at least one of preset writing conditions is met.
In one embodiment, the preset writing conditions include: and the current number of the unit data blocks is greater than or equal to the preset threshold number, and/or a video storage stopping instruction is acquired.
In one embodiment, the step of creating or updating the end-of-line block of the target video according to the current number of unit data blocks comprises: the contents of the end-of-file block are created or updated such that the end-of-file block indicates that the target video ends at the current number of unit data blocks.
In one embodiment, the step of creating or updating the end-of-line block of the target video according to the current number of unit data blocks comprises: the content of the end-of-track block is created or updated such that the end-of-track block indicates that the target video ends at more than the current number of unit data blocks.
In one embodiment, causing the end block to indicate that the target video ends at more than the current number of unit data blocks comprises: acquiring the extra amount of unit time included in each preset period; adding the current number and the extra number to obtain a final number; the contents of the end-of-file block are created or updated such that the end-of-file block indicates that the target video ends at the final number of unit data blocks.
In one embodiment, acquiring video data to be transmitted, and creating a header block of a target video according to the video data to be transmitted includes: acquiring a target specification definition of video data to be transmitted, and determining a header structure of a header block according to the target specification definition; and creating a header block of the target video according to the header structure.
In one embodiment, before obtaining the video data block to be transmitted, the method further includes: driving the image sensor to send the obtained video sensing signal to the main control chip; and the driving main control chip performs coding operation and compression operation on the video sensing signals, and sends the video data to be transmitted, which is obtained by post-processing of the coding operation and the compression operation, to the data memory for temporary storage.
It should be noted that the above-mentioned method, apparatus, device and computer-readable storage medium for storing damage-proof video belong to a general inventive concept, and the contents in the embodiments of the method, apparatus, device and computer-readable storage medium for storing damage-proof video are mutually applicable.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for storing damage-resistant video, the method comprising:
acquiring video data to be transmitted, and creating a header block of a target video according to the video data to be transmitted;
writing the video data to be transmitted into a video data block of the target video, and storing the video data to be transmitted, which are written at intervals of unit time, into a corresponding unit data block in the video data block;
and acquiring the current number of the unit data blocks in the current video data block at intervals of a preset period, and creating or updating the tail block of the target video according to the current number of the unit data blocks until at least one of preset writing conditions is met.
2. The method according to claim 1, wherein the preset writing condition comprises: and the current number of the unit data blocks is greater than or equal to the preset threshold number, and/or a video storage stopping instruction is obtained.
3. The method of claim 1, wherein the step of creating or updating the end block of the target video according to the current number of unit data blocks comprises:
creating or updating the content of the end-of-file block such that the end-of-file block indicates that the target video ends at the current number of unit data blocks.
4. The method of claim 1, wherein the step of creating or updating the end block of the target video according to the current number of unit data blocks comprises:
creating or updating the content of the end-of-file block such that the end-of-file block indicates that the target video ends at more than the current number of unit data blocks.
5. The method of claim 4, wherein the causing the end block to indicate that the target video ends at more than the current number of unit data blocks comprises:
acquiring the extra amount of unit time included in each preset period; adding the current number and the extra number to obtain a final number;
creating or updating the content of the end-of-file chunk such that the end-of-file chunk indicates that the target video ends at the final number of unit data chunks.
6. The method of claim 1, wherein the obtaining video data to be transmitted and creating a header block of a target video according to the video data to be transmitted comprises:
acquiring a target specification definition of the video data to be transmitted, and determining a header structure of the header block according to the target specification definition;
and creating the header block of the target video according to the header structure.
7. The method of claim 1, prior to said obtaining the block of video data to be transmitted, further comprising:
driving the image sensor to send the obtained video sensing signal to the main control chip;
and driving the main control chip to perform coding operation and compression operation on the video sensing signal, and sending the video data to be transmitted, which is obtained by performing post-processing on the coding operation and the compression operation, to a data memory for temporary storage.
8. A video storage apparatus, the apparatus comprising:
the device comprises a header block creating module, a header block generating module and a video transmission module, wherein the header block creating module is used for acquiring video data to be transmitted and creating a header block of a target video according to the video data to be transmitted;
the data block creating module is used for writing the video data to be transmitted into the video data block of the target video and storing the video data to be transmitted, which are written at intervals of unit time, into the corresponding unit data block in the video data block;
and the end block creating module is used for acquiring the current number of the unit data blocks in the current video data block at intervals of a preset period, and creating or updating the end block of the target video according to the current number of the unit data blocks until any at least one preset writing condition is met.
9. A computer-readable storage medium, storing a computer program which, when executed by a processor, causes the processor to carry out the steps of the method according to any one of claims 1 to 7.
10. A video storage device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method of any one of claims 1 to 7.
CN202010971079.8A 2020-09-16 2020-09-16 Damage-proof video storage method, device, equipment and medium Pending CN111835993A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010971079.8A CN111835993A (en) 2020-09-16 2020-09-16 Damage-proof video storage method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010971079.8A CN111835993A (en) 2020-09-16 2020-09-16 Damage-proof video storage method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN111835993A true CN111835993A (en) 2020-10-27

Family

ID=72919146

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010971079.8A Pending CN111835993A (en) 2020-09-16 2020-09-16 Damage-proof video storage method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN111835993A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101739308A (en) * 2008-11-06 2010-06-16 英业达股份有限公司 Method for generating image file and storage system for image file
WO2013165215A1 (en) * 2012-05-04 2013-11-07 엘지전자 주식회사 Method for storing image data, method for parsing image data, and an apparatus for using the same
US20150163283A1 (en) * 2013-12-05 2015-06-11 Samsung Electronics Co., Ltd. Data reuse method and electronic device
CN105847724A (en) * 2016-04-12 2016-08-10 深圳市极酷威视科技有限公司 Method and apparatus protecting video recording against outage
CN105872484A (en) * 2016-06-04 2016-08-17 武汉诚迈科技有限公司 Protection method of monitoring video abnormity
CN109167951A (en) * 2018-09-13 2019-01-08 深圳市信丰伟业科技有限公司 Powered-off fault based on Android framework automobile data recorder can play video method
CN111063380A (en) * 2020-01-02 2020-04-24 南京美乐威电子科技有限公司 MP4 file generation method, processing device, equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101739308A (en) * 2008-11-06 2010-06-16 英业达股份有限公司 Method for generating image file and storage system for image file
WO2013165215A1 (en) * 2012-05-04 2013-11-07 엘지전자 주식회사 Method for storing image data, method for parsing image data, and an apparatus for using the same
US20150163283A1 (en) * 2013-12-05 2015-06-11 Samsung Electronics Co., Ltd. Data reuse method and electronic device
CN105847724A (en) * 2016-04-12 2016-08-10 深圳市极酷威视科技有限公司 Method and apparatus protecting video recording against outage
CN105872484A (en) * 2016-06-04 2016-08-17 武汉诚迈科技有限公司 Protection method of monitoring video abnormity
CN109167951A (en) * 2018-09-13 2019-01-08 深圳市信丰伟业科技有限公司 Powered-off fault based on Android framework automobile data recorder can play video method
CN111063380A (en) * 2020-01-02 2020-04-24 南京美乐威电子科技有限公司 MP4 file generation method, processing device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN104063447A (en) Monitoring video file restoring method
CN108322808B (en) Video recording processing method and device, computer device and storage medium
US7921341B2 (en) System and method for reproducing memory error
JP4583270B2 (en) Recording device
US8270813B2 (en) Apparatus, method and computer program for processing information
CN107093436B (en) Prerecorded audio and video data storage method and device and mobile terminal
US20130024466A1 (en) System event logging system
US7633695B2 (en) Medium scan method for use in disk device
KR101475993B1 (en) Method for controlling overwriting of data by tape recording apparatus, program for controlling overwriting, and tape recording apparatus
CN105721809A (en) Storage method and video recording system
CN111835993A (en) Damage-proof video storage method, device, equipment and medium
JP2005525668A (en) Hard disk drive system, method and apparatus using such a system
CN110806840A (en) Flash memory card data storage method based on multiple data streams, flash memory card and equipment
CN115022650A (en) Video processing method of automobile data recorder and automobile data recorder
CN105139870A (en) Real-time recording method of optical disc and device
US7443624B2 (en) Method for recording data freshness degrees by a tape drive
CN111104256A (en) Data reading method, device, equipment and storage medium
CN111356003B (en) Data writing method, system and terminal equipment
US20070174739A1 (en) Disk device, method of writing data in disk device, and computer product
CN112905112B (en) Data processing method and system of embedded equipment
CN113127265B (en) Method and system for repairing driving record file
CN117608500B (en) Method for rescuing effective data of storage system when data redundancy is insufficient
CN116701042B (en) Memory data retention method, retention device and related equipment
US6804075B1 (en) Logical expiration of media having embedded non-volatile memory
KR20020081342A (en) Video recording/reproducing apparatus and video recording/reproducing method

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20201027

RJ01 Rejection of invention patent application after publication