CN106254806A - A kind of Video data guard method and device - Google Patents

A kind of Video data guard method and device Download PDF

Info

Publication number
CN106254806A
CN106254806A CN201610602345.3A CN201610602345A CN106254806A CN 106254806 A CN106254806 A CN 106254806A CN 201610602345 A CN201610602345 A CN 201610602345A CN 106254806 A CN106254806 A CN 106254806A
Authority
CN
China
Prior art keywords
video data
unit
write
memory element
header file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610602345.3A
Other languages
Chinese (zh)
Other versions
CN106254806B (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.)
Rockchip Electronics Co Ltd
Original Assignee
Fuzhou Rockchip Electronics 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 Fuzhou Rockchip Electronics Co Ltd filed Critical Fuzhou Rockchip Electronics Co Ltd
Priority to CN201610602345.3A priority Critical patent/CN106254806B/en
Publication of CN106254806A publication Critical patent/CN106254806A/en
Application granted granted Critical
Publication of CN106254806B publication Critical patent/CN106254806B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/78Television signal recording using magnetic recording
    • H04N5/781Television signal recording using magnetic recording on disks or drums

Abstract

The invention provides a kind of Video data guard method and device, described device includes write instruction transmitting element, memory element, detector unit, writing unit, processing unit.When the residual capacity in memory element not enough and now apply the most record time, first described device stops application and continues to record, then determine according to the Video data currently recorded and need the header file information size of write, and delete a part of Video data being newly written, make memory element remaining space enough write heads fileinfo, then by header file information write storage unit, make to write Video data and the complete file that run is integrally formed, so that video file can normally preserve, improve Consumer's Experience.

Description

A kind of Video data guard method and device
Technical field
The present invention relates to computer realm, particularly to a kind of Video data guard method and device.
Background technology
Along with the universal of smart machine and quickly updating, user it is also proposed higher wanting to equipment recorded video Asking, wherein, the requirement to resolution is exactly important one.The problem that high definition resolution is brought is exactly to cause the code check of video file Quite big, the situation that external storage is fully written easily occurs.
When external storage is fully written, without information, frequently can lead to the video file finally recorded Can not normally preserve, adverse consequences will be produced.Such as recorded is safety-related video, and such as cell monitoring etc., certain is for the moment Between point recorded file disappear can bring potential safety hazard undoubtedly.Record the video that game is relevant for another example, if at recording process The game video recorded before causing of makeing mistakes cannot be reset, and will have a strong impact on the sensory experience of user.For above-mentioned situation, mesh Before have a kind of way be by use circulation delete method solve, i.e. when external storage is fully written, outside emptying Put the video file that storage device has recorded so that video file can continue to record.But this functional requirement user is prior Arranged, if user be not provided with when function is deleted in circulation arising that video file is destroyed and cannot normally open Situation.Also having a kind of way is to prejudge the amount of capacity of external storage, and then adds the size of recorded video file To limit.Due to obtain SD amount of capacity when be start video recording before, if in video process, user have download or Receive file, also there will be and be also not reaching to video file size and occur as soon as the situation that storage device is fully written.
Summary of the invention
For this reason, it may be necessary to provide the technical scheme that a kind of Video data is protected, recording video recording number in order to solve existing equipment According to time owing to there is no good counter-measure when storage device is fully written, cause video file to be made mistakes, cannot normally preserve, affect Consumer's Experience, there is the problems such as potential safety hazard.
Inventor providing a kind of Video data protection device, described device includes that write instruction transmitting element, storage are single Unit, detector unit, writing unit, processing unit;
Said write instruction sending unit for initiating write operation instruction to memory element;
Whether described detector unit instructs corresponding record more than write operation for the residual capacity detecting current memory cell As the size of data, if then writing unit writes the Video data that the instruction of this write operation is corresponding in memory element;Otherwise write Enter unit not by Video data write storage unit corresponding for the instruction of this write operation;Described processing unit is for according to currently stored In unit written into header file information size corresponding to Video data, delete the video recording that last write operation is write one by one Data, until the remaining capacity of memory element is more than header file information size, then by header file information write storage unit In.
Further, described device also includes that buffer unit, described buffer unit are used for caching Video data, said write Instruction sending unit for initiating write operation instruction when buffer unit storage is expired to memory element, and described detector unit is used for Whether the residual capacity of detection current memory cell is more than the Video data size cached in buffer unit.
Further, described Video data includes that voice data and video data, described voice data and video data are With in the form write storage unit of basic block.
Further, described device also includes state set unit, and described state set unit is for examining in detector unit When measuring the size of the residual capacity of the memory element Video data corresponding less than write operation instruction, depositing current memory cell Storage state is set to expire state.
Further, described header file information includes stsc table, stco table, stss table.
Further, the capacity that described processing unit is additionally operable to memory element is remaining is more than header file information size After, according in current memory cell Video data update header file information, and will update after header file information write storage In unit.
Inventor additionally provides a kind of Video data guard method, and described method is applied to Video data protection device, institute State device and include write instruction transmitting element, memory element, detector unit, writing unit, processing unit;Described method include with Lower step:
Memory element is initiated write operation instruction by write instruction transmitting element;
The Video data that the residual capacity of detector unit detection current memory cell is the most corresponding more than write operation instruction Size, if then writing unit writes the Video data that the instruction of this write operation is corresponding in memory element;Otherwise writing unit is not By Video data write storage unit corresponding for the instruction of this write operation, processing unit according in current memory cell written into record As the header file information size that data are corresponding, delete the Video data that last write operation is write one by one, until storage is single First remaining capacity is more than header file information size, then by header file information write storage unit.
Further, described device also includes that buffer unit, described method include:
Buffer unit caching Video data;
Memory element is initiated write operation instruction, detector unit by write instruction transmitting element when buffer unit storage is expired Whether the residual capacity of detection current memory cell is more than the Video data size cached in buffer unit.
Further, described Video data includes that voice data and video data, described voice data and video data are With in the form write storage unit of basic block.
Further, described device also includes that state set unit, described method include:
State set unit detects the residual capacity record less than write operation instruction correspondence of memory element in detector unit During as the size of data, the storage state of current memory cell is set to expire state.
Further, described header file information includes stsc table, stco table, stss table.
Further, described method includes:
Processing unit is after the capacity that memory element is remaining is more than header file information size, according in current memory cell Video data update header file information, and will update after header file information write storage unit in.
Video data guard method described in technique scheme and device, it is single that described device includes that write instruction sends Unit, memory element, detector unit, writing unit, processing unit;Said method comprising the steps of: first write instruction sends Memory element is initiated write operation instruction by unit;Whether the residual capacity of then detector unit detection current memory cell is more than writing The size of the Video data that operational order is corresponding, if then writing unit writes this write operation instruction correspondence in memory element Video data;Otherwise writing unit is by Video data write storage unit corresponding for the instruction of this write operation, processing unit according to In current memory cell written into header file information size corresponding to Video data, delete last write operation one by one and write The Video data entered, until the remaining capacity of memory element is more than header file information size, then writes header file information In memory element.When the residual capacity in memory element not enough and now apply the most record time, first described device stops Only application continues to record, and then determining according to the Video data currently recorded needs the header file information size of write, And delete a part of Video data being newly written so that and memory element remaining space enough write heads fileinfo, then will In header file information write storage unit so that write Video data is integrally formed a complete file run, thus Video file can normally be preserved, improve Consumer's Experience.
Accompanying drawing explanation
Fig. 1 is the schematic diagram of the Video data protection device that an embodiment of the present invention relates to;
Fig. 2 is the flow chart of the Video data guard method that an embodiment of the present invention relates to;
Description of reference numerals:
101, write instruction transmitting element;
102, memory element;
103, detector unit;
104, writing unit;
105, processing unit;
106, buffer unit;
107, state set unit.
Detailed description of the invention
By describing the technology contents of technical scheme, structural feature in detail, being realized purpose and effect, below in conjunction with concrete real Execute example and coordinate accompanying drawing to be explained in detail.
Refer to Fig. 1, for the schematic diagram of the Video data protection device that an embodiment of the present invention relates to.Described device bag Include write instruction transmitting element 101, memory element 102, detector unit 103, writing unit 104, processing unit 105;
Said write instruction sending unit 101 for initiating write operation instruction to memory element;
Whether described detector unit 103 is for detecting the residual capacity of current memory cell more than write operation instruction correspondence The size of Video data, if then writing unit 104 writes the Video data that the instruction of this write operation is corresponding in memory element;No Then writing unit 104 is not by Video data write storage unit corresponding for the instruction of this write operation, and described processing unit 105 is for root According in current memory cell written into header file information size corresponding to Video data, delete last write operation institute one by one The Video data of write, until the remaining capacity of memory element is more than header file information size, then writes header file information Enter in memory element.
When using Video data protection device, memory element is initiated write operation by first write instruction transmitting element 101 Instruction.Writing the process of Video data on video record process nature exactly in memory element, write instruction transmitting element can To be realized by upper layer application, write operation instruction i.e. writes the instruction of Video data in memory element.Preferably, in this enforcement In mode, described device also includes that buffer unit 106, described buffer unit 106 are used for caching Video data, and said write instructs Transmitting element 101 for initiating write operation instruction when buffer unit storage is expired to memory element.By arranging buffer unit, Can effectively reduce the number of times writing Video data in memory element, and then save power consumption.
Then detector unit 103 detects the video recording that the residual capacity of current memory cell is whether corresponding more than write operation instruction The size of data.Preferably, in the present embodiment, described detector unit for detecting the residual capacity of current memory cell is No more than the Video data size cached in buffer unit.If then writing unit 104 writes this in memory element and writes behaviour Make the Video data that instruction is corresponding;Otherwise writing unit 104 is not by single for Video data write storage corresponding for the instruction of this write operation Unit.If the residual capacity size of current memory cell detected by detector unit is more than the video recording number cached in buffer unit According to size, illustrate that the remaining space of memory element is sufficient, can continue to record, in memory element, write Video data.
Whereas if the residual capacity size of current memory cell detected by detector unit is delayed less than in buffer unit The Video data size deposited, illustrates that the remaining space of memory element is not enough, records and will terminate, the most not toward write record in memory element As Data Data.Simultaneously need to the data of memory element are carried out certain repair process, to ensure what memory element was stored It is a complete video file, i.e. needs to be written in memory element header file information.In the present embodiment.Described record As data include that voice data and video data, described voice data and video data are to write with the form of basic block (chunk) Enter in memory element.Preferably, the form of described video file is .mp4 file, and described header file information includes stsc table、stco table、stss table.Stsc (Sample-To-Chunk Atom), in order to optimize data access, generally Sample is encapsulated in chunk, and a chunk may comprise one or several sample;Stco(Chunk Offset Atom), it is intended that each chunk position hereof;Stss (Sync Sample Atom), identifies the pass in Media Stream Key frame, it is provided that random access point labelling.One recorded file is only being written with header, i.e. stsc table, stco A file that completely can run it is only after table, stss table, but owing to current memory cell has been fully written, because of And need the Video data in memory element is carried out certain repair process, header file information is written in memory element, To ensure that data recording is not lost and can be properly functioning.
And post-processing unit according in current memory cell written into header file information size corresponding to Video data, by One deletes the Video data that last write operation is write, until the remaining capacity of memory element is big more than header file information Little, then by header file information write storage unit.Owing to header file information is made up of several chained lists, it is compared to video recording Space shared by data is the least, and when i.e. writing in memory element or delete certain basic block data, header file is believed The size of breath often changes not quite, thus when memory element is write full, can first estimate the header file information size needing write. In order to header file information be written in memory element, need first to delete the Video data in some memory element, it is preferred that can To proceed by deletion from the Video data of up-to-date write-once one by one with the form of basic block, to ensure the coherent of Video data Property.Often delete a basic block, remaining for memory element space is compared with the header file information needing write, if surplus Complementary space enough can stop deleting Video data and header file information being written in memory element.If remaining space is not Foot, then continue to delete the basic block of a upper write with the form of block, until the remaining capacity of memory element is more than header file letter Breath size.In order to reduce amount of calculation, can in advance by the big small records of basic block each in memory element in chained list, and should Storage of linked list, in buffer unit, so only need to read the size of the basic block being newly written in buffer unit, and then fall literary composition Part information size compares, if coming little than header file information, illustrates to need to continue to delete basic block, then by current base The size of this block adds up with the size of the basic block in a upper write storage unit, again enters with header file information size Row compares, and by that analogy, till cumulative basic block size exceedes header file information size, then deletes in memory element The basic block of corresponding participation accumulation calculating size.
In the present embodiment, described device also includes that state set unit 107, described state set unit 107 are used for When detector unit detects the size that the residual capacity of memory element instructs corresponding Video data less than write operation, will be current The storage state of memory element is set to expire state.When the state of storage is to expire state, in order to avoid upper layer application continues Video recording makes a mistake owing to writing, and can send cue and stop after receiving cue to upper layer application, upper layer application Only video recording.
In the present embodiment, the capacity that described processing unit is additionally operable to memory element is remaining is more than header file information After size, according in current memory cell Video data update header file information, and will update after header file information write In memory element.Due to each basic block of being stored in the memory element that header file information is recorded, (Video data is with substantially Block form stores) corresponding each identification information.When the Video data stored in memory element changes, head literary composition Part information also can respective change.Such as write head fileinfo, delete the basic block being newly written memory element, because of And need correct fileinfo to carry out certain process, i.e. delete these basic blocks (base being deleted in header file information This block) information, the most again will process after header file information be written in memory element.
As in figure 2 it is shown, the flow chart of the Video data guard method related to for an embodiment of the present invention.Shown method bag Include following steps:
Initially enter step S201 write instruction transmitting element and memory element is initiated write operation instruction.Video record process Writing the process of Video data substantially exactly in memory element, write instruction transmitting element can be real by upper layer application Existing, write operation instruction i.e. writes the instruction of Video data in memory element.Preferably, in the present embodiment, described device Also including that buffer unit 106, described buffer unit 106 are used for caching Video data, said write instruction sending unit 101 is used for When buffer unit storage is expired, memory element is initiated write operation instruction.By arranging buffer unit, can effectively reduce past Memory element writes the number of times of Video data, and then saves power consumption.
Whether the residual capacity then entering step S202 detector unit detection current memory cell instructs more than write operation The size of corresponding Video data.Preferably, in the present embodiment, described detector unit is for detecting current memory cell Whether residual capacity is more than the Video data size cached in buffer unit.If then entering step S203 writing unit to depositing Storage unit writes the Video data that the instruction of this write operation is corresponding;Otherwise enter step S204 writing unit not referred to by this write operation The Video data write storage unit that order is corresponding.If the residual capacity size of current memory cell detected by detector unit is big The Video data size cached in buffer unit, illustrates that the remaining space of memory element is sufficient, can continue to record, toward depositing Storage unit writes Video data.
Whereas if the residual capacity size of current memory cell detected by detector unit is delayed less than in buffer unit The Video data size deposited, illustrates that the remaining space of memory element is not enough, records and will terminate, the most not toward write record in memory element As Data Data.Simultaneously need to the data of memory element are carried out certain repair process, to ensure what memory element was stored It is a complete video file, i.e. needs to be written in memory element header file information.In the present embodiment.Described record As data include that voice data and video data, described voice data and video data are to write with the form of basic block (chunk) Enter in memory element.Preferably, the form of described video file is .mp4 file, and described header file information includes stsc table、stco table、stss table.Stsc (Sample-To-Chunk Atom), in order to optimize data access, generally Sample is encapsulated in chunk, and a chunk may comprise one or several sample;Stco(Chunk Offset Atom), it is intended that each chunk position hereof;Stss (Sync Sample Atom), identifies the pass in Media Stream Key frame, it is provided that random access point labelling.One recorded file is only being written with header, i.e. stsc table, stco A file that completely can run it is only after table, stss table, but owing to current memory cell has been fully written, because of And need the Video data in memory element is carried out certain repair process, header file information is written in memory element, To ensure that data recording is not lost and can be properly functioning.
Enter after step S204 step S205 processing unit according in current memory cell written into Video data corresponding Header file information size, delete the Video data that last write operation is write one by one, until memory element is remaining Capacity is more than header file information size, then by header file information write storage unit.Owing to header file information is by several Chained list forms, and its space shared compared to Video data is the least, i.e. writes in memory element or deletes certain During basic block data, the size of header file information often changes not quite, thus when memory element is write full, can first estimate needs The header file information size of write.In order to header file information be written in memory element, need first to delete some memory element In Video data, it is preferred that can proceed by from the Video data of up-to-date write-once one by one with the form of basic block and delete Remove, to ensure the continuity of Video data.Often delete a basic block, by remaining for memory element space and the head needing write Fileinfo compares, if remaining space enough can stop deleting Video data and header file information being written to storage In unit.If remaining space is not enough, then continue to delete the basic block of a upper write with the form of block, until memory element is remaining Remaining capacity is more than header file information size.In order to reduce amount of calculation, can big by basic block each in memory element in advance Small records is in chained list, and by this storage of linked list in buffer unit, so only need to read the base being newly written in buffer unit The size of this block, and then fall fileinfo size compares, if coming little than header file information, illustrates that needs continue to delete Except basic block, then the size of the size of current basic block with the basic block in a upper write storage unit is added up, Again compare with header file information size, by that analogy, until cumulative basic block size exceedes header file information size Till, then delete the basic block of participation accumulation calculating size corresponding in memory element.
In the present embodiment, described device also includes that state set unit, described method include: state set unit exists When detector unit detects the size that the residual capacity of memory element instructs corresponding Video data less than write operation, will currently deposit The storage state of storage unit is set to expire state.When the state of storage is to expire state, in order to avoid upper layer application continues record As making a mistake owing to writing, cue can be sent to upper layer application, stopping after upper layer application reception cue Video recording.
In the present embodiment, described method also includes: processing unit is civilian more than head at the capacity that memory element is remaining After part information size, according in current memory cell Video data update header file information, and will update after header file letter In breath write storage unit.Due to header file information recorded be in memory element each basic block (Video data is with substantially Block form stores) corresponding identification information.When the Video data stored in memory element changes, header file is believed Breath also can respective change.Such as write head fileinfo, delete the basic block being newly written memory element, thus need Want correct fileinfo to carry out certain process, i.e. delete these basic blocks (basic block being deleted) in header file information Information, the most again will update after header file information be written in memory element.
Video data guard method described in technique scheme and device, it is single that described device includes that write instruction sends Unit, memory element, detector unit, writing unit, processing unit;Said method comprising the steps of: first write instruction sends Memory element is initiated write operation instruction by unit;Whether the residual capacity of then detector unit detection current memory cell is more than writing The size of the Video data that operational order is corresponding, if then writing unit writes this write operation instruction correspondence in memory element Video data;Otherwise writing unit is by Video data write storage unit corresponding for the instruction of this write operation, processing unit according to In current memory cell written into header file information size corresponding to Video data, delete last write operation one by one and write The Video data entered, until the remaining capacity of memory element is more than header file information size, then writes header file information In memory element.When the residual capacity in memory element not enough and now apply the most record time, first described device stops Only application continues to record, and then determining according to the Video data currently recorded needs the header file information size of write, And delete a part of Video data being newly written so that and memory element remaining space enough write heads fileinfo, then will In header file information write storage unit so that write Video data is integrally formed a complete file run, thus Video file can normally be preserved, improve Consumer's Experience.
It should be noted that in this article, the relational terms of such as first and second or the like is used merely to a reality Body or operation separate with another entity or operating space, and deposit between not necessarily requiring or imply these entities or operating Relation or order in any this reality.And, term " includes ", " comprising " or its any other variant are intended to Comprising of nonexcludability, so that include that the process of a series of key element, method, article or terminal unit not only include those Key element, but also include other key elements being not expressly set out, or also include for this process, method, article or end The key element that end equipment is intrinsic.In the case of there is no more restriction, statement " including ... " or " comprising ... " limit Key element, it is not excluded that there is also other key element in including the process of described key element, method, article or terminal unit.This Outward, in this article, " be more than ", " being less than ", " exceeding " etc. are interpreted as not including this number;More than " ", " below ", " within " etc. understand For including this number.
Those skilled in the art are it should be appreciated that the various embodiments described above can be provided as method, device or computer program product Product.These embodiments can use complete hardware embodiment, complete software implementation or combine software and hardware in terms of embodiment Form.All or part of step in the method that the various embodiments described above relate to can instruct relevant hardware by program Completing, described program can be stored in the storage medium that computer equipment can read, and is used for performing the various embodiments described above side All or part of step described in method.Described computer equipment, includes but not limited to: personal computer, server, general-purpose computations Machine, special-purpose computer, the network equipment, embedded device, programmable device, intelligent mobile terminal, intelligent home device, Wearable Smart machine, vehicle intelligent equipment etc.;Described storage medium, includes but not limited to: RAM, ROM, magnetic disc, tape, CD, sudden strain of a muscle Deposit, the storage of USB flash disk, portable hard drive, storage card, memory stick, the webserver, network cloud storage etc..
The various embodiments described above are with reference to according to the method described in embodiment, equipment (system) and computer program Flow chart and/or block diagram describe.It should be understood that can every by computer program instructions flowchart and/or block diagram Flow process in one flow process and/or square frame and flow chart and/or block diagram and/or the combination of square frame.These computers can be provided Programmed instruction to the processor of computer equipment to produce a machine so that the finger performed by the processor of computer equipment Order produces for realizing specifying in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame The device of function.
These computer program instructions may be alternatively stored in the computer that computer equipment can be guided to work in a specific way and set In standby readable memory so that the instruction being stored in this computer equipment readable memory produces the manufacture including command device Product, this command device realizes at one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame middle finger Fixed function.
These computer program instructions also can be loaded on computer equipment so that performs a series of on a computing device Operating procedure is to produce computer implemented process, thus the instruction performed on a computing device provides for realizing in flow process The step of the function specified in one flow process of figure or multiple flow process and/or one square frame of block diagram or multiple square frame.
Although being described the various embodiments described above, but those skilled in the art once know basic wound The property made concept, then can make other change and amendment to these embodiments, so the foregoing is only embodiments of the invention, Not thereby the scope of patent protection of the present invention, every equivalent structure utilizing description of the invention and accompanying drawing content to be made are limited Or equivalence flow process conversion, or directly or indirectly it is used in other relevant technical fields, the most in like manner it is included in the patent of the present invention Within protection domain.

Claims (12)

1. a Video data protection device, it is characterised in that described device include write instruction transmitting element, memory element, Detector unit, writing unit, processing unit;
Said write instruction sending unit for initiating write operation instruction to memory element;
Whether described detector unit instructs corresponding video recording number more than write operation for the residual capacity detecting current memory cell According to size, if then writing unit writes the Video data that the instruction of this write operation is corresponding in memory element;Otherwise write list Unit is not by Video data write storage unit corresponding for the instruction of this write operation, and described processing unit is for according to current memory cell In written into header file information size corresponding to Video data, delete the video recording number that last write operation is write one by one According to, until the remaining capacity of memory element is more than header file information size, then by header file information write storage unit.
2. Video data protection device as claimed in claim 1, it is characterised in that described device also includes buffer unit, institute State buffer unit for caching Video data, said write instruction sending unit for buffer unit storage completely time to storage Unit initiates write operation instruction, and whether described detector unit is for detecting the residual capacity of current memory cell more than buffer unit Middle cached Video data size.
3. Video data protection device as claimed in claim 1 or 2, it is characterised in that described Video data includes audio frequency number According to and video data, described voice data and video data are with in the form write storage unit of basic block.
4. Video data protection device as claimed in claim 1, it is characterised in that described device also includes that state arranges list Unit, described state set unit is for detecting that in detector unit the residual capacity of memory element is less than write operation instruction correspondence During the size of Video data, the storage state of current memory cell is set to expire state.
5. Video data protection device as claimed in claim 1, it is characterised in that described header file information includes stsc table、stco table、stss table。
6. the Video data protection device as described in claim 1 or 5, it is characterised in that described processing unit is additionally operable to depositing The remaining capacity of storage unit, more than after header file information size, updates header file according to the Video data in current memory cell Information, and will update after header file information write storage unit in.
7. a Video data guard method, it is characterised in that described method is applied to Video data protection device, described device Including write instruction transmitting element, memory element, detector unit, writing unit, processing unit;Described method includes following step Rapid:
Memory element is initiated write operation instruction by write instruction transmitting element;
The size of the Video data that the residual capacity of detector unit detection current memory cell is the most corresponding more than write operation instruction, If then writing unit writes the Video data that the instruction of this write operation is corresponding in memory element;Otherwise this is not write by writing unit The Video data write storage unit that operational order is corresponding, processing unit according in current memory cell written into Video data Corresponding header file information size, deletes the Video data that last write operation is write, one by one until memory element is remaining Remaining capacity is more than header file information size, then by header file information write storage unit.
8. Video data guard method as claimed in claim 7, it is characterised in that described device also includes buffer unit, institute The method of stating includes:
Buffer unit caching Video data;
Memory element is initiated write operation instruction by write instruction transmitting element when buffer unit storage is expired, and detector unit detects Whether the residual capacity of current memory cell is more than the Video data size cached in buffer unit.
9. Video data guard method as claimed in claim 7 or 8, it is characterised in that described Video data includes audio frequency number According to and video data, described voice data and video data are with in the form write storage unit of basic block.
10. Video data guard method as claimed in claim 7, it is characterised in that described device also includes that state arranges list Unit, described method includes:
State set unit detects the residual capacity video recording number less than write operation instruction correspondence of memory element in detector unit According to size time, the storage state of current memory cell is set to expire state.
11. Video data guard methods as claimed in claim 7, it is characterised in that described header file information includes stsc table、stco table、stss table。
The 12. Video data guard methods as described in claim 7 or 11, it is characterised in that described method includes:
Processing unit is after the capacity that memory element is remaining is more than header file information size, according to the record in current memory cell As data update header file information, and will update after header file information write storage unit in.
CN201610602345.3A 2016-07-28 2016-07-28 A kind of Video data guard method and device Active CN106254806B (en)

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 true CN106254806A (en) 2016-12-21
CN106254806B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108874268A (en) * 2017-05-09 2018-11-23 腾讯科技(深圳)有限公司 The acquisition method and device of user behavior data
CN111212227A (en) * 2020-01-13 2020-05-29 广州视源电子科技股份有限公司 Method, device and equipment for configuring video resolution of camera and storage medium
CN116895039A (en) * 2023-09-11 2023-10-17 中国空气动力研究与发展中心低速空气动力研究所 Icing cloud and fog pseudo particle image identification and characteristic parameter measurement method

Citations (5)

* Cited by examiner, † Cited by third party
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108874268A (en) * 2017-05-09 2018-11-23 腾讯科技(深圳)有限公司 The acquisition method and device of user behavior data
CN108874268B (en) * 2017-05-09 2023-03-10 腾讯科技(深圳)有限公司 User behavior data acquisition method and device
CN111212227A (en) * 2020-01-13 2020-05-29 广州视源电子科技股份有限公司 Method, device and equipment for configuring video resolution of camera and storage medium
CN116895039A (en) * 2023-09-11 2023-10-17 中国空气动力研究与发展中心低速空气动力研究所 Icing cloud and fog pseudo particle image identification and characteristic parameter measurement method
CN116895039B (en) * 2023-09-11 2023-11-17 中国空气动力研究与发展中心低速空气动力研究所 Icing cloud and fog pseudo particle image identification and characteristic parameter measurement method

Also Published As

Publication number Publication date
CN106254806B (en) 2019-05-21

Similar Documents

Publication Publication Date Title
US20200150890A1 (en) Data Deduplication Method and Apparatus
CN107229420B (en) Data storage method, reading method, deleting method and data operating system
CN103546698B (en) A kind of mobile terminal recorded video store method and device
US20180089033A1 (en) Performing data backups using snapshots
CN106886369A (en) A kind of cloud hard disk management method and system based on OpenStack cloud platforms
US9823945B2 (en) Method and apparatus for managing application program
CN103092687B (en) A kind of application program management apparatus and method
US8775742B2 (en) System and method for cache management in a DIF enabled storage system
CN103744875B (en) Data quick migration method and system based on file system
CN105868056B (en) Obtain the method, apparatus and secure virtual machine of deleted document in Windows virtual machine
CN106254806A (en) A kind of Video data guard method and device
US11158352B1 (en) Method and system for indexing video data using a data processing unit
CN104572762B (en) The method and apparatus for deleting and restoring video file
US10509767B2 (en) Systems and methods for managing snapshots of a file system volume
CN107066349A (en) A kind of method and system of cluster file system data protection
CN103686335A (en) Information processing method and electronic equipment
CN104935469A (en) Distributive storage method and system for log information
CN105094811A (en) Method can device for processing events
CN105446848B (en) The test method and device of the data processing performance of electronic equipment
CN104794025B (en) The method of rapid verification storage device
US10050994B2 (en) Method and computing device for processing data
CN110019527B (en) Slave library reading method, related device and equipment
US20130205071A1 (en) Compressed cache storage acceleration
CN206431605U (en) A kind of device of online read-write network interface card Nonvolatile memory
CN111209608A (en) Big data storage system

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
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.