CN106254806B - A kind of Video data guard method and device - Google Patents
A kind of Video data guard method and device Download PDFInfo
- Publication number
- CN106254806B CN106254806B CN201610602345.3A CN201610602345A CN106254806B CN 106254806 B CN106254806 B CN 106254806B CN 201610602345 A CN201610602345 A CN 201610602345A CN 106254806 B CN106254806 B CN 106254806B
- Authority
- CN
- China
- Prior art keywords
- video data
- unit
- storage unit
- write
- file information
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
- H04N5/78—Television signal recording using magnetic recording
- H04N5/781—Television signal recording using magnetic recording on disks or drums
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Signal Processing For Digital Recording And Reproducing (AREA)
Abstract
The present invention provides a kind of Video data guard method and device, described device includes write instruction transmission unit, storage unit, detection unit, writing unit, processing unit.It is applied still at this time just when recording when the residual capacity in storage unit is insufficient, described device stops applying first and continues to record, the header file information size for needing to be written then is determined according to the Video data currently recorded, and delete a part of Video data being newly written, so that the enough write head the file informations of storage unit remaining space, it then will be in header file information write storage unit, so that the file that can completely run is integrally formed in write-in Video data, so that video file can be saved normally, user experience is improved.
Description
Technical field
The present invention relates to computer field, in particular to a kind of Video data guard method and device.
Background technique
Universal and quick with smart machine is updated, and user also proposed higher want to equipment recorded video
It asks, wherein the requirement to resolution ratio is exactly important one.The problem of high definition resolution ratio is brought is exactly the code rate for leading to video file
It is quite big, it is easy to appear the case where external storage is fully written.
When external storage is fully written, if frequently can lead to the video file finally recorded without prompt information
It cannot normally save, adverse consequences will be generated.Such as what is recorded is safety-related video, such as cell monitoring, certain is for the moment
Between put recorded file disappearance can undoubtedly bring security risk.The relevant video of game is recorded for another example, if in recording process
The game video that error is recorded before causing can not be reset, and will seriously affect the sensory experience of user.For above situation, mesh
Before there is a kind of way to be that the method deleted by using circulation is solved, i.e., when external storage is fully written, empty outer
The video file that storage equipment has recorded is set, video file is allowed to continue to record.But this functional requirement user is prior
It is arranged, will appear video file if user is not provided with when circulation deletes function and be destroyed and can not normally not open
Situation.It is to prejudge the amount of capacity of external storage, and then add to the size of recorded video file there are also a kind of way
With limitation.Due to obtain SD amount of capacity when be before starting video recording, if in video process, user have downloading or
File is received, also be will appear and video file size has not been reached yet occurred as soon as storage equipment the case where being fully written.
Summary of the invention
For this reason, it may be necessary to provide a kind of technical solution of Video data protection, number of recording a video is being recorded to solve existing equipment
According to when due to storage equipment be fully written when there is no good counter-measure, cause video file error, can not normally save, influence
User experience, the problems such as there are security risks.
A kind of Video data protective device is inventor provided, described device includes write instruction transmission unit, storage list
Member, detection unit, writing unit, processing unit;
Said write instruction sending unit is used to initiate storage unit write operation instruction;
Whether the residual capacity that the detection unit is used to detect current memory cell, which is greater than write operation, instructs corresponding record
As the size of data, if then the corresponding Video data of write operation instruction is written into storage unit for writing unit;Otherwise it writes
Enter unit and the write operation is not instructed into corresponding Video data write storage unit;The processing unit is used for according to currently stored
The corresponding header file information size of the Video data having been written into unit deletes the video recording that last write operation is written one by one
Data, until the remaining capacity of storage unit is greater than header file information size, then by header file information write storage unit
In.
Further, described device further includes cache unit, and the cache unit is for caching Video data, said write
Instruction sending unit is used to initiate write operation instruction to storage unit when cache unit storage has been expired, and the detection unit is used for
Whether the residual capacity of detection current memory cell is greater than the Video data size cached in cache unit.
Further, the Video data includes audio data and video data, and the audio data and video data are
In the form of basic block in write storage unit.
Further, described device further includes state set unit, and the state set unit is used to examine in detection unit
The residual capacity for measuring storage unit is less than write operation when instructing the size of corresponding Video data, by depositing for current memory cell
Storage state is set as having expired state.
Further, the header file information includes stsc table, stco table, stss table.
Further, the processing unit is also used to be greater than header file information size in the remaining capacity of storage unit
Afterwards, header file information is updated according to the Video data in current memory cell, and updated header file information is written and is stored
In unit.
Inventor additionally provides a kind of Video data guard method, and the method is applied to Video data protective device, institute
Stating device includes write instruction transmission unit, storage unit, detection unit, writing unit, processing unit;The method includes with
Lower step:
Write instruction transmission unit initiates write operation instruction to storage unit;
Whether the residual capacity of detection unit detection current memory cell, which is greater than write operation, instructs corresponding Video data
Size, if then the corresponding Video data of write operation instruction is written into storage unit for writing unit;Otherwise writing unit is not
The write operation is instructed into corresponding Video data write storage unit, processing unit is according to the record having been written into current memory cell
As the corresponding header file information size of data, the Video data that last write operation is written is deleted one by one, until storage is single
The remaining capacity of member is greater than header file information size, then will be in header file information write storage unit.
Further, described device further includes cache unit, which comprises
Cache unit caches Video data;
Write instruction transmission unit initiates write operation instruction, detection unit to storage unit when cache unit storage has been expired
Whether the residual capacity of detection current memory cell is greater than the Video data size cached in cache unit.
Further, the Video data includes audio data and video data, and the audio data and video data are
In the form of basic block in write storage unit.
Further, described device further includes state set unit, which comprises
State set unit detects that the residual capacity of storage unit is less than write operation and instructs corresponding record in detection unit
As data size when, be set as the storage state of current memory cell to have expired state.
Further, the header file information includes stsc table, stco table, stss table.
Further, which comprises
Processing unit is after the remaining capacity of storage unit is greater than header file information size, according in current memory cell
Video data update header file information, and will be in updated header file information write storage unit.
Video data guard method and device described in above-mentioned technical proposal, described device include that write instruction sends list
Member, storage unit, detection unit, writing unit, processing unit;The described method comprises the following steps: write instruction is sent first
Unit initiates write operation instruction to storage unit;Whether the residual capacity of then detection unit detection current memory cell, which is greater than, is write
The size of the corresponding Video data of operational order, if then writing unit be written into storage unit the write operation instruction it is corresponding
Video data;Otherwise the write operation is not instructed corresponding Video data write storage unit by writing unit, processing unit according to
The corresponding header file information size of the Video data having been written into current memory cell is deleted last write operation one by one and is write
Then header file information is written until the remaining capacity of storage unit is greater than header file information size for the Video data entered
In storage unit.It is applied still at this time just when recording when the residual capacity in storage unit is insufficient, described device is stopped first
Only application continues to record, and the header file information size for needing to be written then is determined according to the Video data currently recorded,
And a part of Video data being newly written is deleted, so that the enough write head the file informations of storage unit remaining space, then will
In header file information write storage unit, so that the file that can completely run is integrally formed in write-in Video data, thus
Video file is normally saved, user experience is improved.
Detailed description of the invention
Fig. 1 is the schematic diagram for the Video data protective device that an embodiment of the present invention is related to;
Fig. 2 is the flow chart for the Video data guard method that an embodiment of the present invention is related to;
Description of symbols:
101, write instruction transmission unit;
102, storage unit;
103, detection unit;
104, writing unit;
105, processing unit;
106, cache unit;
107, state set unit.
Specific embodiment
Technology contents, construction feature, the objects and the effects for detailed description technical solution, below in conjunction with specific reality
It applies example and attached drawing is cooperated to be explained in detail.
Referring to Fig. 1, the schematic diagram for the Video data protective device being related to for an embodiment of the present invention.Described device packet
Include write instruction transmission unit 101, storage unit 102, detection unit 103, writing unit 104, processing unit 105;
Said write instruction sending unit 101 is used to initiate storage unit write operation instruction;
It is corresponding whether the residual capacity that the detection unit 103 is used to detect current memory cell is greater than write operation instruction
The size of Video data, if then the corresponding Video data of write operation instruction is written into storage unit for writing unit 104;It is no
Then the write operation is not instructed corresponding Video data write storage unit by writing unit 104, and the processing unit 105 is used for root
According to the corresponding header file information size of the Video data having been written into current memory cell, last write operation institute is deleted one by one
The Video data of write-in then writes header file information until the remaining capacity of storage unit is greater than header file information size
Enter in storage unit.
When using Video data protective device, write instruction transmission unit 101 initiates write operation to storage unit first
Instruction.Video record process is substantially exactly that the process of Video data is written into storage unit, and write instruction transmission unit can
To be realized by upper layer application, the instruction of Video data is written in write operation instruction into storage unit.Preferably, in this implementation
In mode, described device further includes cache unit 106, and the cache unit 106 is for caching Video data, said write instruction
Transmission unit 101 is used to initiate write operation instruction to storage unit when cache unit storage has been expired.By the way that cache unit is arranged,
The number that Video data is written into storage unit can be effectively reduced, and then saves power consumption.
Whether the residual capacity that then detection unit 103 detects current memory cell, which is greater than write operation, instructs corresponding video recording
The size of data.Preferably, in the present embodiment, the detection unit, which is used to detect the residual capacity of current memory cell, is
It is no to be greater than the Video data size cached in cache unit.If then this is written into storage unit and writes behaviour for writing unit 104
Make to instruct corresponding Video data;Otherwise the write operation is not instructed corresponding Video data write-in storage single by writing unit 104
Member.If the residual capacity size of current memory cell detected by detection unit is greater than the video recording number cached in cache unit
According to size, illustrates that the remaining space of storage unit is sufficient, can continue to record, Video data is written into storage unit.
Delay, whereas if the residual capacity size of current memory cell detected by detection unit is less than in cache unit
The Video data size deposited illustrates that the remaining space of storage unit is insufficient, and recording will terminate, i.e., record is written not into storage unit
As Data Data.It needs to carry out certain repair process to the data of storage unit simultaneously, to guarantee what storage unit was stored
It is a complete video file, that is, needs for header file information to be written in storage unit.In the present embodiment.The record
As data include audio data and video data, the audio data and video data are write in the form of basic block (chunk)
Enter in storage unit.Preferably, the format of the video file is .mp4 file, and the header file information includes stsc
table,stco table,stss table.Stsc (Sample-To-Chunk Atom), in order to optimize data access, usually
Sample is encapsulated into chunk, a chunk may include one or several sample;Stco(Chunk Offset
Atom), the position of each chunk hereof is specified;Stss (Sync Sample Atom), identifies the pass in Media Stream
Key frame provides random access point label.One recorded file is only being written with information, i.e. stsc table, stco
The file that can completely run is only after table, stss table, but since current memory cell has been fully written, because
And need to carry out the Video data in storage unit certain repair process, header file information is written in storage unit,
To guarantee that data recording is not lost and can be operated normally.
And post-processing unit is according to the corresponding header file information size of the Video data having been written into current memory cell, by
One deletes the Video data that last write operation is written, until the remaining capacity of storage unit is big greater than header file information
It is small, it then will be in header file information write storage unit.Since header file information is made of several chained lists, compared to video recording
Data and shared space is often smaller, i.e., when being written or delete some basic block data in storage unit, header file letter
The size of breath often changes less, thus when storage unit writes full, it can first estimate the header file information size for needing to be written.
In order to which header file information to be written in storage unit, need first to delete the Video data in some storage units, it is preferred that can
It is deleted since the Video data of newest write-once one by one by the form of basic block, to guarantee the coherent of Video data
Property.The remaining space of storage unit is compared, if surplus by one basic block of every deletion with the header file information being written is needed
Complementary space can stop deleting Video data enough and header file information is written in storage unit.If remaining space is not
Foot then continues the basic block that a upper write-in is deleted in the form of block, until the remaining capacity of storage unit is believed greater than header file
Cease size.In order to reduce calculation amount, the size of basic block each in storage unit can be recorded in chained list in advance, and should
Storage of linked list need to only read the size for the basic block being newly written in cache unit, and then fall text in cache unit in this way
Part information size is compared, if coming small than header file information, illustrates to need to continue to delete basic block, then by current base
The size of this block and the size of the basic block in a upper write storage unit add up, again with header file information size into
Row compares, and so on, until cumulative basic block size is more than header file information size, then delete in storage unit
The corresponding basic block for participating in accumulation calculating size.
In the present embodiment, described device further includes state set unit 107, and the state set unit 107 is used for
Detection unit detect storage unit residual capacity be less than write operation instruct the size of corresponding Video data when, will be current
The storage state of storage unit is set as having expired state.When storage state, which is, has expired state, in order to avoid upper layer application continuation
Due to that can not be written mistake occurs for video recording, can issue standby signal to upper layer application, upper layer application is stopped after receiving standby signal
Only record a video.
In the present embodiment, the processing unit is also used to be greater than header file information in the remaining capacity of storage unit
After size, header file information is updated according to the Video data in current memory cell, and updated header file information is written
In storage unit.(Video data is with basic for each basic block stored in the storage unit recorded by header file information
Block form is stored) corresponding each identification information.When the Video data stored in storage unit changes, head text
Part information may also change accordingly.Such as write head the file information, the basic block for being newly written storage unit is deleted, because
And correct the file information is needed to carry out certain processing, that is, delete these basic block (bases being deleted in header file information
This block) information, then again will treated that header file information is written in storage unit.
As shown in Fig. 2, the flow chart for the Video data guard method being related to for an embodiment of the present invention.Shown method packet
Include following steps:
It initially enters step S201 write instruction transmission unit and write operation instruction is initiated to storage unit.Video record process
It is substantially exactly the process that Video data is written into storage unit, write instruction transmission unit can pass through upper layer application reality
Existing, the instruction of Video data is written in write operation instruction into storage unit.Preferably, in the present embodiment, described device
It further include cache unit 106, for caching Video data, said write instruction sending unit 101 is used for the cache unit 106
Write operation instruction is initiated to storage unit when cache unit storage has been expired.By the way that cache unit is arranged, can effectively reduce past
The number of Video data is written in storage unit, and then saves power consumption.
Whether the residual capacity for then entering step S202 detection unit detection current memory cell is greater than write operation instruction
The size of corresponding Video data.Preferably, in the present embodiment, the detection unit is for detecting current memory cell
Whether residual capacity is greater than the Video data size cached in cache unit.If then entering step S203 writing unit to depositing
The write operation is written in storage unit and instructs corresponding Video data;Otherwise S204 writing unit is entered step not refer to the write operation
Enable corresponding Video data write storage unit.If the residual capacity size of current memory cell detected by detection unit is big
The Video data size cached in cache unit illustrates that the remaining space of storage unit is sufficient, can continue to record, past to deposit
Video data is written in storage unit.
Delay, whereas if the residual capacity size of current memory cell detected by detection unit is less than in cache unit
The Video data size deposited illustrates that the remaining space of storage unit is insufficient, and recording will terminate, i.e., record is written not into storage unit
As Data Data.It needs to carry out certain repair process to the data of storage unit simultaneously, to guarantee what storage unit was stored
It is a complete video file, that is, needs for header file information to be written in storage unit.In the present embodiment.The record
As data include audio data and video data, the audio data and video data are write in the form of basic block (chunk)
Enter in storage unit.Preferably, the format of the video file is .mp4 file, and the header file information includes stsc
table,stco table,stss table.Stsc (Sample-To-Chunk Atom), in order to optimize data access, usually
Sample is encapsulated into chunk, a chunk may include one or several sample;Stco(Chunk Offset
Atom), the position of each chunk hereof is specified;Stss (Sync Sample Atom), identifies the pass in Media Stream
Key frame provides random access point label.One recorded file is only being written with information, i.e. stsc table, stco
The file that can completely run is only after table, stss table, but since current memory cell has been fully written, because
And need to carry out the Video data in storage unit certain repair process, header file information is written in storage unit,
To guarantee that data recording is not lost and can be operated normally.
It is corresponding according to the Video data having been written into current memory cell that S205 processing unit is entered step after step S204
Header file information size, the Video data that last write operation is written is deleted one by one, until storage unit is remaining
Capacity is greater than header file information size, then will be in header file information write storage unit.Since header file information is by several
Chained list composition, compared to Video data, space shared is often smaller, i.e., is written in storage unit or deletes some
When basic block data, the size of header file information often changes less, thus when storage unit writes full, it can first estimate needs
The header file information size of write-in.In order to which header file information to be written in storage unit, need first to delete some storage units
In Video data, it is preferred that can be deleted since the Video data of newest write-once one by one in the form of basic block
It removes, to guarantee the continuity of Video data.One basic block of every deletion, by the remaining space of storage unit and the head for needing to be written
The file information is compared, if remaining space can stop deleting Video data enough and header file information is written to storage
In unit.If remaining space is insufficient, continue the basic block that a upper write-in is deleted in the form of block, until storage unit is remaining
Remaining capacity is greater than header file information size.It, can be in advance by the big of basic block each in storage unit in order to reduce calculation amount
Small records need to only read the base being newly written in cache unit in chained list, and by the storage of linked list in cache unit in this way
The size of this block, and then fall the file information size is compared, if coming small than header file information, illustrates to need to continue to delete
Except basic block, then the size of current basic block and the size of the basic block in a upper write storage unit are added up,
It is compared again with header file information size, and so on, until cumulative basic block size is more than header file information size
Until, then delete the corresponding basic block for participating in accumulation calculating size in storage unit.
In the present embodiment, described device further includes state set unit, which comprises state set unit exists
When detection unit detects that the residual capacity of storage unit instructs the size of corresponding Video data less than write operation, will currently it deposit
The storage state of storage unit is set as having expired state.When storage state, which is, has expired state, in order to avoid upper layer application continues to record
As mistake occurs due to that can not be written, standby signal can be issued to upper layer application, upper layer application stops after receiving standby signal
Video recording.
In the present embodiment, the method also includes: processing units is greater than head text in the remaining capacity of storage unit
After part information size, header file information is updated according to the Video data in current memory cell, and updated header file is believed
It ceases in write storage unit.What is recorded by header file information is that (Video data is with basic for each basic block in storage unit
Block form is stored) corresponding identification information.When the Video data stored in storage unit changes, header file letter
Breath may also change accordingly.Such as write head the file information, the basic block for being newly written storage unit is deleted, thus is needed
Correct the file information is wanted to carry out certain processing, i.e. these basic blocks (basic block being deleted) in deletion header file information
Information, then updated header file information is written in storage unit again.
Video data guard method and device described in above-mentioned technical proposal, described device include that write instruction sends list
Member, storage unit, detection unit, writing unit, processing unit;The described method comprises the following steps: write instruction is sent first
Unit initiates write operation instruction to storage unit;Whether the residual capacity of then detection unit detection current memory cell, which is greater than, is write
The size of the corresponding Video data of operational order, if then writing unit be written into storage unit the write operation instruction it is corresponding
Video data;Otherwise the write operation is not instructed corresponding Video data write storage unit by writing unit, processing unit according to
The corresponding header file information size of the Video data having been written into current memory cell is deleted last write operation one by one and is write
Then header file information is written until the remaining capacity of storage unit is greater than header file information size for the Video data entered
In storage unit.It is applied still at this time just when recording when the residual capacity in storage unit is insufficient, described device is stopped first
Only application continues to record, and the header file information size for needing to be written then is determined according to the Video data currently recorded,
And a part of Video data being newly written is deleted, so that the enough write head the file informations of storage unit remaining space, then will
In header file information write storage unit, so that the file that can completely run is integrally formed in write-in Video data, thus
Video file is normally saved, user experience is improved.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or the terminal device that include a series of elements not only include those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or end
The intrinsic element of end equipment.In the absence of more restrictions, being limited by sentence " including ... " or " including ... "
Element, it is not excluded that there is also other elements in process, method, article or the terminal device for including the element.This
Outside, herein, " being greater than ", " being less than ", " being more than " etc. are interpreted as not including this number;" more than ", " following ", " within " etc. understand
Being includes this number.
It should be understood by those skilled in the art that, the various embodiments described above can provide as method, apparatus or computer program production
Product.Complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in these embodiments
Form.The all or part of the steps in method that the various embodiments described above are related to can be instructed by program relevant hardware come
It completes, the program can store in the storage medium that computer equipment can be read, for executing the various embodiments described above side
All or part of the steps described in method.The computer equipment, including but not limited to: personal computer, server, general-purpose computations
It is machine, special purpose computer, the network equipment, embedded device, programmable device, intelligent mobile terminal, smart home device, wearable
Smart machine, vehicle intelligent equipment etc.;The storage medium, including but not limited to: RAM, ROM, magnetic disk, tape, CD, sudden strain of a muscle
It deposits, USB flash disk, mobile hard disk, storage card, memory stick, webserver storage, network cloud storage etc..
The various embodiments described above are referring to the method according to embodiment, equipment (system) and computer program product
Flowchart and/or the block diagram describes.It should be understood that can be realized by computer program instructions every in flowchart and/or the block diagram
The combination of process and/or box in one process and/or box and flowchart and/or the block diagram.It can provide these computers
Program instruction generates a machine to the processor of computer equipment, so that the finger executed by the processor of computer equipment
It enables and generates to specify in one or more flows of the flowchart and/or one or more blocks of the block diagram
The device of function.
These computer program instructions, which may also be stored in, to be able to guide computer equipment computer operate in a specific manner and sets
In standby readable memory, so that the instruction being stored in the computer equipment readable memory generates the manufacture including command device
Product, command device realization refer in one or more flows of the flowchart and/or one or more blocks of the block diagram
Fixed function.
These computer program instructions can also be loaded into computer equipment, so that executing on a computing device a series of
Operating procedure is to generate computer implemented processing, so that the instruction executed on a computing device is provided for realizing in process
The step of function of being specified in figure one process or multiple processes and/or block diagrams one box or multiple boxes.
Although the various embodiments described above are described, once a person skilled in the art knows basic wounds
The property made concept, then additional changes and modifications can be made to these embodiments, so the above description is only an embodiment of the present invention,
It is not intended to limit scope of patent protection of the invention, it is all to utilize equivalent structure made by description of the invention and accompanying drawing content
Or equivalent process transformation, being applied directly or indirectly in other relevant technical fields, similarly includes in patent of the invention
Within protection scope.
Claims (10)
1. a kind of Video data protective device, which is characterized in that described device include write instruction transmission unit, storage unit,
Detection unit, writing unit, processing unit;
Said write instruction sending unit is used to initiate storage unit write operation instruction;
Whether the residual capacity that the detection unit is used to detect current memory cell, which is greater than write operation, instructs corresponding video recording number
According to size, if then writing unit the write operation is written into storage unit instructs corresponding Video data;Otherwise write-in is single
The write operation is not instructed corresponding Video data write storage unit by member, and the processing unit is used for according to current memory cell
In the corresponding header file information size of Video data that has been written into, delete the video recording number that last write operation is written one by one
According to, until the remaining capacity of storage unit is greater than header file information size, it then will be in header file information write storage unit;
The processing unit is also used to after the remaining capacity of storage unit is greater than header file information size, according to currently stored
Video data in unit updates header file information, and will be in updated header file information write storage unit.
2. Video data protective device as described in claim 1, which is characterized in that described device further includes cache unit, institute
It states cache unit and is used for when cache unit storage has been expired for caching Video data, said write instruction sending unit to storage
Unit initiates write operation instruction, and whether the residual capacity that the detection unit is used to detect current memory cell is greater than cache unit
Middle cached Video data size.
3. Video data protective device as claimed in claim 1 or 2, which is characterized in that the Video data includes audio number
According to and video data, the audio data and video data be in the form of basic block in write storage unit.
4. Video data protective device as described in claim 1, which is characterized in that described device further includes that state setting is single
Member, the state set unit are used to detect that the residual capacity of storage unit is corresponding less than write operation instruction in detection unit
When the size of Video data, it is set as the storage state of current memory cell to have expired state.
5. Video data protective device as described in claim 1, which is characterized in that the header file information includes stsc
table、stco table、stss table。
6. a kind of Video data guard method, which is characterized in that the method is applied to Video data protective device, described device
Including write instruction transmission unit, storage unit, detection unit, writing unit, processing unit;The method includes following steps
It is rapid:
Write instruction transmission unit initiates write operation instruction to storage unit;
Whether the residual capacity of detection unit detection current memory cell is greater than the size that write operation instructs corresponding Video data,
If then the write operation is written into storage unit and instructs corresponding Video data for writing unit;Otherwise writing unit is not write this
The corresponding Video data write storage unit of operational order, processing unit is according to the Video data having been written into current memory cell
Corresponding header file information size deletes the Video data that last write operation is written one by one, until storage unit is remaining
Remaining capacity is greater than header file information size, then will be in header file information write storage unit;
Processing unit is after the remaining capacity of storage unit is greater than header file information size, according to the record in current memory cell
As data update header file information, and will be in updated header file information write storage unit.
7. Video data guard method as claimed in claim 6, which is characterized in that described device further includes cache unit, institute
The method of stating includes:
Cache unit caches Video data;
Write instruction transmission unit initiates write operation instruction, detection unit detection to storage unit when cache unit storage has been expired
Whether the residual capacity of current memory cell is greater than the Video data size cached in cache unit.
8. Video data guard method as claimed in claims 6 or 7, which is characterized in that the Video data includes audio number
According to and video data, the audio data and video data be in the form of basic block in write storage unit.
9. Video data guard method as claimed in claim 6, which is characterized in that described device further includes that state setting is single
Member, which comprises
State set unit detects that the residual capacity of storage unit is less than write operation and instructs corresponding video recording number in detection unit
According to size when, be set as the storage state of current memory cell to have expired state.
10. Video data guard method as claimed in claim 6, which is characterized in that the header file information includes stsc
table、stco table、stss table。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610602345.3A CN106254806B (en) | 2016-07-28 | 2016-07-28 | A kind of Video data guard method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610602345.3A CN106254806B (en) | 2016-07-28 | 2016-07-28 | A kind of Video data guard method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106254806A CN106254806A (en) | 2016-12-21 |
CN106254806B true CN106254806B (en) | 2019-05-21 |
Family
ID=57604030
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610602345.3A Active CN106254806B (en) | 2016-07-28 | 2016-07-28 | A kind of Video data guard method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106254806B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108874268B (en) * | 2017-05-09 | 2023-03-10 | 腾讯科技(深圳)有限公司 | User behavior data acquisition method and device |
CN111212227B (en) * | 2020-01-13 | 2021-07-23 | 广州视源电子科技股份有限公司 | Method, device and equipment for configuring video resolution of camera and storage medium |
CN116895039B (en) * | 2023-09-11 | 2023-11-17 | 中国空气动力研究与发展中心低速空气动力研究所 | Icing cloud and fog pseudo particle image identification and characteristic parameter measurement method |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1783314A (en) * | 2004-10-29 | 2006-06-07 | 联发科技股份有限公司 | Medium processing method and its device |
CN103369284A (en) * | 2012-03-31 | 2013-10-23 | 浙江大华技术股份有限公司 | Audio video data prerecording method and device |
JP2014036432A (en) * | 2012-08-10 | 2014-02-24 | Nikon Corp | Imaging apparatus |
CN104008066A (en) * | 2014-05-26 | 2014-08-27 | 武汉光忆科技有限公司 | File access method and device of optical disc storage system |
CN104219538A (en) * | 2014-09-15 | 2014-12-17 | 深圳市云宙多媒体技术有限公司 | Real-time acquiring and uploading and data processing method and system for audio and video |
-
2016
- 2016-07-28 CN CN201610602345.3A patent/CN106254806B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1783314A (en) * | 2004-10-29 | 2006-06-07 | 联发科技股份有限公司 | Medium processing method and its device |
CN103369284A (en) * | 2012-03-31 | 2013-10-23 | 浙江大华技术股份有限公司 | Audio video data prerecording method and device |
JP2014036432A (en) * | 2012-08-10 | 2014-02-24 | Nikon Corp | Imaging apparatus |
CN104008066A (en) * | 2014-05-26 | 2014-08-27 | 武汉光忆科技有限公司 | File access method and device of optical disc storage system |
CN104219538A (en) * | 2014-09-15 | 2014-12-17 | 深圳市云宙多媒体技术有限公司 | Real-time acquiring and uploading and data processing method and system for audio and video |
Also Published As
Publication number | Publication date |
---|---|
CN106254806A (en) | 2016-12-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11853549B2 (en) | Index storage in shingled magnetic recording (SMR) storage system with non-shingled region | |
US9880770B2 (en) | Supporting invalidation commands for non-volatile memory | |
CN103136243B (en) | File system duplicate removal method based on cloud storage and device | |
CN107229420B (en) | Data storage method, reading method, deleting method and data operating system | |
CN105302478B (en) | A kind of date storage method and electronic equipment | |
CN105474200A (en) | Hydration and dehydration with placeholders | |
CN107643880A (en) | The method and device of file data migration based on distributed file system | |
CN106254806B (en) | A kind of Video data guard method and device | |
CN103226965B (en) | Based on the audio/video data access method of time bitmap | |
JP2017079053A (en) | Methods and systems for improving storage journaling | |
CN103546698B (en) | A kind of mobile terminal recorded video store method and device | |
CN106657356A (en) | Data writing method and device for cloud storage system, and cloud storage system | |
CN107797770B (en) | Method and device for synchronizing disk state information | |
CN103164528B (en) | A kind of index establishing method of audio, video data | |
CN107066349A (en) | A kind of method and system of cluster file system data protection | |
CN102280134B (en) | Method for improving data security in removable storage device | |
CN106021027A (en) | Terminal data processing method and system | |
CN104462148A (en) | Data storage management method and device | |
CN105830067B (en) | A kind of file information processing method, device and document handling apparatus, system | |
US9467734B2 (en) | Storing method and processing device thereof | |
CN101911198B (en) | Methods and devices for managing and editing files in a file system | |
CN103210389B (en) | A kind for the treatment of method and apparatus of metadata | |
CN206431605U (en) | A kind of device of online read-write network interface card Nonvolatile memory | |
CN104090829A (en) | Method for realizing logical volume metadata backup storage | |
US20120066181A1 (en) | File removal with no available disk blocks in redirect-on-write file systems |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: 350003 building, No. 89, software Avenue, Gulou District, Fujian, Fuzhou 18, China Patentee after: Ruixin Microelectronics Co., Ltd Address before: 350003 building, No. 89, software Avenue, Gulou District, Fujian, Fuzhou 18, China Patentee before: Fuzhou Rockchips Electronics Co.,Ltd. |
|
CP01 | Change in the name or title of a patent holder |