CN103137159B - Video recording fault-tolerant method and device thereof at straight quarter in digital hard disc video recorder - Google Patents

Video recording fault-tolerant method and device thereof at straight quarter in digital hard disc video recorder Download PDF

Info

Publication number
CN103137159B
CN103137159B CN201110384240.2A CN201110384240A CN103137159B CN 103137159 B CN103137159 B CN 103137159B CN 201110384240 A CN201110384240 A CN 201110384240A CN 103137159 B CN103137159 B CN 103137159B
Authority
CN
China
Prior art keywords
data
imprinting
video
video recording
hard disc
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201110384240.2A
Other languages
Chinese (zh)
Other versions
CN103137159A (en
Inventor
郭晓宇
吕明成
孙承华
陈军科
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN201110384240.2A priority Critical patent/CN103137159B/en
Publication of CN103137159A publication Critical patent/CN103137159A/en
Application granted granted Critical
Publication of CN103137159B publication Critical patent/CN103137159B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention relates to digital trial field, disclose video recording fault-tolerant method and device thereof at straight quarter in a kind of digital hard disc video recorder. In the present invention, in video recording process at straight quarter, if certain Zhang Guangpan is because a variety of causes imprinting is unsuccessfully ejected CD-ROM drive, put into after new CD user, system can be recovered video recording automatically, by the extremely new CD of the video recording full recovery to current time from the imprinting failure CD time started, and keeps seamless link with the video recording data of follow-up generation, effectively improve stability and the reliability of system, solved due to the imprinting mistake incomplete problem of data that causes recording a video. Utilization is appended and is mended the method for carving and realize the fault-toleranr technique of data, the integrality of the data that can ensure to record a video in process at quarter directly, and also video recording data before and after CD burning failure can keep seamless link.

Description

Video recording fault-tolerant method and device thereof at straight quarter in digital hard disc video recorder
Technical field
The present invention relates to digital trial field, particularly the straight fault-toleranr technique of carving of hearing video recording.
Background technology
Straight quarter, refers to and a kind ofly in imprinting process, by third party's storage medium, data is not carried out to transfer,Directly video code flow is fixed to the carving method in CD.
In the Chinese patent that is 200810121223.8 at application number, a kind of many CD-ROM drives synchronizing direct is disclosedThe method of carving, can not produce temporary file to real time data, the CD that writes direct, and can synchronous writeEnter in multiple CD-ROM drives. But the situation of the CD burning failure imprinting directly not being produced in process at quarter is carried outProcess. If in the situation that produces CD burning mistake straight quarter in process of real-time code stream, can not be effectiveGround keeps the integrality of data.
Hearing digital hard disc video recorder refers to and uses in Interrogation Procedure, record taking hard disk as storage mediumPicture equipment, can be stored in the video recording of hearing in hard disk, and synchronous by video data by equipment fromThe CD-ROM drive imprinting of band is to CD, and the video recording that hearing is produced is fixed.
But, in prior art, directly carve the fault tolerance deficiency that trial system exists, in Interrogation ProcedureIn due to the compatibility of CD-ROM drive and CD, CD quality, CD-ROM drive service life etc., reason caused inquesting straight quarterIn process, after CD burning failure, cannot recover hearing video recording data.
Therefore, carve in trial system straight, can realize and straight imprinting be carried out fault-tolerant as data, ensure to examineThe method of news procedural authenticity and integrality and device thereof are required in a hurry.
Summary of the invention
The object of the present invention is to provide in a kind of digital hard disc video recorder video recording straight carve fault-tolerant method andIt installs, and has effectively improved stability and the reliability of system, has solved because imprinting mistake causes recordThe incomplete problem of picture data.
For solving the problems of the technologies described above, embodiments of the present invention disclose in a kind of digital hard disc video recorderVideo recording fault-tolerant method at straight quarter, comprises the following steps:
The real-time video code stream of receiving is directly burnt to the first CD, successfully carves and expire it at the first CDBefore, buffer memory the first CD data of imprinting;
If the first CD burning makes mistakes, first the first CD of the institute's buffer memory data of imprinting is carved againRecord in the second CD, the real-time video code stream that buffer memory the first CD burning is newly received after makeing mistakes simultaneously, soAfter mend again and carve the real-time video code stream that simultaneously the first CD burning of buffer memory is newly received after makeing mistakes;
Carve after all data that are buffered wait mending, the more direct current real-time video code stream of receiving of imprinting.
Embodiments of the present invention also disclose video recording fault-tolerant dress at straight quarter in a kind of digital hard disc video recorderPut, comprising:
The first imprinting unit, for being directly burnt to the first CD by the real-time video code stream of receiving;
The first buffer unit, for successfully carve at the first CD full before, the imprinting of buffer memory the first CDData;
The first judging unit, for judging the first CD, whether imprinting makes mistakes;
The second buffer unit, in the time that the first judging unit judges that the first CD burning makes mistakes, buffer memoryThe real-time video code stream that one CD is newly received after makeing mistakes;
Mend and carve unit, in the time that the first judging unit judges that the first CD burning makes mistakes, first slow by firstThe first CD of the depositing unit caches data of imprinting is mended and is carved in the second CD, and then mend carve second slowThe real-time video code that the first CD of depositing unit caches is newly received after makeing mistakes;
The second judging unit, for judging all numbers of the first buffer unit and the second buffer unit institute buffer memoryAccording to whether all being mended and carved;
The second imprinting unit, for judging that at the second judging unit all data that are buffered are all mended and carvedWhen complete, the directly current real-time video code stream of receiving of imprinting.
Compared with prior art, the main distinction and effect thereof are embodiment of the present invention:
In video recording process at straight quarter, if certain Zhang Guangpan because a variety of causes imprinting is unsuccessfully ejected CD-ROM drive,Put into after new CD user, system can be recovered video recording automatically, will open from imprinting failure CDTime beginning, and protects with the video recording data of follow-up generation to the video recording full recovery of current time to new CDHold seamless link, effectively improved stability and the reliability of system, solved because imprinting mistake is ledCause the incomplete problem of video recording data.
Further, utilize to append and mend the method for carving and realize the fault-toleranr technique of data, can ensure straight quarterThe integrality of the data of recording a video in process, in straight process of carving, any moment generation CD burning failureSituation, video recording data can not be lost, and content in the last CD of imprinting in new CD and lastThe video recording data that produce after CD burning failure keep seamless link.
Brief description of the drawings
Fig. 1 is the straight fault-tolerant side of carving of recording a video in a kind of digital hard disc video recorder in first embodiment of the inventionThe schematic flow sheet of method;
Fig. 2 is the structure chart of trial system in the present invention;
Fig. 3 is the data flow figure of trial system in the present invention;
Fig. 4 is the corresponding relation figure of hearing time and CD content in the present invention;
Fig. 5 is the correspondence table of fault-tolerant front video recording data and CD in the present invention;
Fig. 6 is the correspondence table of fault-tolerant rear video recording data and CD in the present invention;
Fig. 7 is prior art and technological disparity figure of the present invention;
Fig. 8 is the straight fault-tolerant side of carving of recording a video in a kind of digital hard disc video recorder in second embodiment of the inventionThe schematic flow sheet of method;
Fig. 9 is the straight fault-tolerant side of carving of recording a video in a kind of digital hard disc video recorder in third embodiment of the inventionThe schematic flow sheet of method;
Figure 10 is the hearing imprinting flow chart of a preferred embodiment of the present invention;
Figure 11 be in fifth embodiment of the invention in a kind of digital hard disc video recorder video recording straight carve fault-tolerantThe structural representation of device.
Detailed description of the invention
In the following description, in order to make reader understand the application better, many technology have been proposed thinJoint. But, persons of ordinary skill in the art may appreciate that even without these ins and outs and based onThe many variations of following embodiment and amendment, also can realize the each claim of the application and require to protectThe technical scheme of protecting.
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to thisBright embodiment is described in further detail.
First embodiment of the invention relates to a kind of video recording fault-tolerant method at straight quarter in digital hard disc video recorder.Fig. 1 is the straight schematic flow sheet of carving fault-tolerant method of video recording in this digital hard disc video recorder.
Specifically, as shown in Figure 1, in this digital hard disc video recorder, video recording fault-tolerant method at straight quarter comprisesFollowing steps:
In step 101, the real-time video code stream of receiving is directly burnt to the first CD;
After this enter step 102, buffer memory the first CD data of imprinting;
The real-time video code stream of receiving is directly burnt to the first CD, successfully carves and expire it at the first CDBefore, buffer memory the first CD data of imprinting.
After this enter step 103, whether imprinting is successful to judge the first CD.
If so, enter step 109; If not, enter step 104.
In step 104, the data of the first CD of institute's buffer memory imprinting are burnt to the second CD againIn.
After this enter step 105, the real-time video code that buffer memory the first CD burning is newly received after makeing mistakes simultaneouslyStream.
After this enter step 106, mend and carve the real-time video code stream of newly receiving after the first CD burning makes mistakes.
The real-time video code stream of newly receiving after the first CD burning of buffer memory makes mistakes be burnt to the second CD andIn follow-up CD.
If the first CD burning makes mistakes, first the first CD of the institute's buffer memory data of imprinting is carved againRecord in the second CD, the real-time video code stream that buffer memory the first CD burning is newly received after makeing mistakes simultaneously, soAfter mend again and carve the real-time video code stream that simultaneously the first CD burning of buffer memory is newly received after makeing mistakes.
After this enter step 107, whether all data that judgement is buffered are all mended and are carved.
If so, enter step 108; If not, again get back to step 105.
In step 108, the directly current real-time video code stream of receiving of imprinting.
Carve after all data that are buffered wait mending, the more direct current real-time video code stream of receiving of imprinting.
After this process ends.
In step 109, judge whether the first CD has been carved full.
If so, process ends; If not, again get back to step 101.
In video recording process at straight quarter, if certain Zhang Guangpan because a variety of causes imprinting is unsuccessfully ejected CD-ROM drive,Put into after new CD user, system can be recovered video recording automatically, will open from imprinting failure CDTime beginning, and protects with the video recording data of follow-up generation to the video recording full recovery of current time to new CDHold seamless link, effectively improved stability and the reliability of system, solved because imprinting mistake is ledCause the incomplete problem of video recording data.
Here, digital hard disc video recorder is hearing special digital DVR.
In addition, be appreciated that digital hard disc video recorder also in some other embodiment of the present inventionCan be used in other application scenario.
The straight trial system of carving comprises a straight formula hearing digital hard disc video recorder at quarter (embedded CD writer), lightCoil some, 4, video camera. Straight formula hearing at quarter digital hard disc video recorder is for recording looking of video camera transmissionAudio-frequency information, and be stored in memory device by digitized processing; Wherein directly carve the record of formula digital hard diskThe CD writer that camera carries is mainly used in real-time recording data directly to carve to CD, is the judicial mistake in later stageJourney provides strong evidence; Video camera is used for Interrogation Procedure to carry out video monitoring, and by video dataSend to hearing digital hard disc video recorder by transmission line. System architecture as shown in Figure 2.
Straight formula hearing at quarter digital hard disc video recorder, video camera, hard disk, CD writer are all that trial system mustThe equipment needing, the present invention need to be in trial system adding hardware equipment, by direct-type hearing numberThe control flow of word DVR designs, and realizes and carries out fault-tolerant to straight imprinting as data. Ensure to examineThe authenticity and integrity of news process.
In Interrogation Procedure, video camera transfers to straight quarter formula by the scene collecting by video transmission line and examinesNews digital hard disc video recorder. Directly quarter, formula digital hard disc video recorder carried out digitlization to the vision signal receivingProcess. According to compression standard H.264, video data is compressed. Video data one side after compressionFace is stored in hard disk by memory module, passes through on the other hand CD writer synchronous RW to CD. ItsThe data flow of middle system as shown in Figure 3.
In Interrogation Procedure, by the video code flow of straight formula digital hard disc video recorder output at quarter, flow to and carve simultaneouslyRecord machine and hard disk, be kept at respectively in CD and hard disk. And in an Interrogation Procedure, can produce at least oneZhang Guangpan, CD can be preserved the video recording data of multiple hours. Wherein inquest time and CD contentCorresponding relation can represent with Fig. 4.
Wherein the pre-resolved problem of the present invention can describe by Fig. 4, if certain is inquested from T1Time, wherein time T 1 is to T2, and the video file of two time periods of T2 to T3 is all carved by straightMode normally writes in CD 1 and CD 2, and these two sections of hearings are all the hearing light producing in normal processesDish. The problem that this place solves is to occur in the situation in CD 3 in the T4 moment.
If the situation of CD burning failure occurred in the T4 moment, and user changed in the T5 momentNew CD 4 is to CD writer. Before fault-tolerant in the T5 moment, data storage condition can be used Fig. 5Shown form represents:
Because CD mistake has occurred CD 3 now, be stored in the record of the T3 to T4 in CD 3There is loss as data. Put into after new CD 4 at T5 user, native system can be first by T3 extremelyThe video recording data of T5 return in CD 4, then continue to write T5 video recording number afterwards in CD 4According to. The video recording data of CD and last Zhang Zhengchang CD (CD 2) are so just ensured newly to put intoVideo recording content has continuity in time. Wherein fault-tolerant data storage condition afterwards as shown in Figure 6.
In this process, we are T1 to T2, and T2 to T3 is called hearing segment 1, hearing sheetDisconnected 2, T3 is until the full data of CD 4 imprintings are called hearing segment 4.
Inquest segment and refer to, the large young pathbreaker's video data according to CD capacity in an Interrogation Procedure carries outSegmentation, conveniently utilizes CD to store data, and every one piece of data is called a hearing segment.
The requirement of complex chart 4, needs to meet following requirement in system design process:
(1), in the process of directly carving at hearing digital hard disc video recorder, there is CD burning and lose in any momentSituation about losing, newly puts into the video recording data of last damaged compact disk after CD and can not lose. In new CDContent need comprise this partial content.
(2) record producing after the content in the last CD of imprinting and last disc damage in new CDNeed keep continuity as data, two segment datas need seamless link.
Prior art and technological gap of the present invention can be described with Fig. 7.
If wherein there is the abnormal situation of CD burning in the T1 moment, before imprinting and after imprinting, divideNot producing two ends video recording data is D1 and D2.
Prior art can only ensure that by D1 imprinting D2 imprinting is to CD 2 to CD 1. And nowIf the mistake that CD 1 occurs is situation about cannot recover, the video recording data of data D1 have occurred to loseLose.
And the present invention is occurring when above-mentioned situation, D1 can imprinting to CD 1, and D1+D2 can be in the lumpImprinting is to CD 2, even if the mistake that CD 1 occurs is that data D1 is still for expendable situationCan be stored in CD 2. So just effectively keep the integrality of data.
Second embodiment of the invention relates to a kind of video recording fault-tolerant method at straight quarter in digital hard disc video recorder.Fig. 8 is the straight schematic flow sheet of carving fault-tolerant method of video recording in this digital hard disc video recorder.
The second embodiment improves on the basis of the first embodiment, and main improvements existIn:
Before the real-time video code stream of receiving is directly burnt to the step of the first CD, also comprise followingStep:
Judge that whether CD is ready.
If CD is not ready, detects the CD in CD-ROM drive and initialize CD according to the form at straight quarter.
Judge whether CD initializes successfully.
If CD initializes successfully, CD ready flag is set.
If CD initializes unsuccessfully, not ready flag and need to mend blaze will of CD is set.
Specifically, as shown in Figure 8, the initialized flow process of this CD mainly comprises the following steps:
In step 801, judge that whether CD is ready;
If so, process ends; If not, enter step 802.
Judge that whether CD is ready, all think that without CD or CD mistake CD is not ready. Only have initialThe CD of having changed is just thought ready CD.
In step 802, detect and initialize CD.
Whether the CD detecting in CD-ROM drive is satisfactory CD, if meeting straight quarter, CD requires, byThe form of directly carving initializes CD.
After this enter step 803, judge whether CD initializes successfully.
If so, enter step 804; If not, enter step 805.
In step 804, CD ready flag is set.
After this process ends.
If CD initializes successfully, CD ready flag is set.
In step 805, not ready flag and need to mend blaze will of CD is set.
If CD initializes unsuccessfully, not ready flag of CD is set, due to this number that need to writeBe saved in fixed disk file according to needs, need to arrange needs simultaneously and mend Data Labels at quarter.
After this, again get back to step 801.
Third embodiment of the invention relates to a kind of video recording fault-tolerant method at straight quarter in digital hard disc video recorder.Fig. 9 is the straight schematic flow sheet of carving fault-tolerant method of video recording in this digital hard disc video recorder.
The 3rd embodiment improves on the basis of the second embodiment, and main improvements existIn: utilize to append and mend the method for carving and realize the fault-toleranr technique of data, can ensure directly in process at quarter, to record a videoThe integrality of data, in straight process of carving, there is the situation of CD burning failure in any moment, video recordingData can not be lost, and content and last CD burning in the last CD of imprinting in new CD lostThe video recording data that lose rear generation keep seamless link.
Specifically:
If initialized successfully at CD, after the step of CD ready flag is set, also comprise followingStep:
Judge whether to need to mend to carve.
If so, the real-time video code stream that buffer memory is newly received, mends and carves according to the sequencing of buffer memory simultaneouslyThe data of buffer memory, have carved after all data that are buffered wait mending, then empty and need to benefit carve flag bit.
Mainly utilize in as the process of data segment buffer culture to cushion video recording data mending imprinting,If the data in segment buffer culture are not written in CD completely, this real-time code stream first writesIn segment buffer culture, then from segment buffer culture, read video recording data be written in CD, ifData in segment buffer culture are complete being all written in CD, and these real-time recording data are directBe written in CD.
Specifically, as shown in Figure 9, this append mend carve flow process mainly comprise the following steps:
In step 901, now there is the real-time video code stream A that need to write CD.
After this enter step 902, judge in fragment buffer culture and whether have and need to mend the video recording data of carving.
If so, enter step 903; If not, enter step 905.
In step 903, real-time code stream A is written to fragment buffer culture.
If now exist in segment buffer culture and need to mend the data of carving, need code stream A to be written to sheetIn disconnected buffer culture, be expressed as in the drawings D4, write pointer now has W1 to be updated to W2.
After this enter step 904, when real-time video code stream A is written to fragment buffer culture,From fragment buffer culture, reading video recording data B is written in CD.
Be expressed as in the drawings D2, read pointer now has R1 to be updated to R2.
After this, again get back to step 902.
In step 905, real-time video code stream A is directly write to CD.
After this process ends.
If the data in segment buffer culture are mended and carved, now need real-time bit stream dataDirectly write in CD.
Need to be greater than D4 in the length of mending data D2 in process at quarter, guarantee is mended and is carved a period of time like thisAfter the video recording data in segment buffer culture are mended carved to CD completely, ensure data in CD and frontData seamless in one CD connects.
Four embodiment of the invention relates to a kind of video recording fault-tolerant method at straight quarter in digital hard disc video recorder.
The 4th embodiment improves on the basis of the 3rd embodiment, and main improvements existIn: specifically:
The first CD successfully carve full before, buffer memory the first CD is after the step of the data of imprinting, alsoComprise the following steps.
If the first CD is successfully carved full, remove the data of buffer memory.
The first CD popping up drive that envelope dish completes.
Not ready flag of CD is set.
If after the step of makeing mistakes at the first CD, further comprising the steps of:
Not ready flag and need to mend blaze will of CD is set.
Further comprising the steps of after waiting to mend the step of having carved all data that are buffered:
Empty and need to mend flag bit at quarter.
Hearing imprinting flow chart shown in Figure 10 is a preferred embodiment of the present invention, particularlySay, as shown in the figure, this hearing imprinting flow process mainly comprises the following steps:
In step S202, start hearing.
After this enter step S204, CD initializes, and is mainly straight quarter CD and initializes, and divides in advanceJoin memory space, every DVD CD is distributed the memory space of 4G herein.
After this enter step S206, the information of record hearing segment 1, essential record starts this segmentTime started.
Inquest segment and refer to, the large young pathbreaker's video data according to CD capacity in an Interrogation Procedure carries outSegmentation, conveniently utilizes CD to store data, and every one piece of data is called a hearing segment.
After this enter step S208, judge that whether CD is ready.
If so, enter step S210; If not, enter step S226.
All think that without CD or CD mistake CD is not ready. Only have the CD having initialized to thinkReady CD.
In step S210, judge in system and whether have and need to mend the data of carving, as: change in dish processWhat produce is not carved into data, the data that break down in CD burning process and produce.
If so, enter step S234; If not, enter step S212;
In step S212, imprinting real-time recording data, carve the real-time stream in bit stream buffer districtRecord is to the CD having initialized.
After this enter step S214, when video recording data are directly carved, by the video of this hearing segmentData are saved in the buffer culture of hard disk and keep in (being mainly used in fault-tolerant).
After this enter step S216, whether successfully judge that this secondary data writes CD.
If so, enter step S218; If not, enter step S240.
In step S218, whether imprinting is full to judge this Zhang Guangpan.
If so, enter step S220; If not, again get back to step S208.
In step S220, because the imprinting of video recording data of this hearing segment completes, remove recordThe video recording data of temporary this hearing segment in picture buffer culture.
After this enter step S222, this Zhang Guangpan is carried out to envelope dish, fixing video recording data, and by envelope dishThe CD popping up drive completing.
After this enter step S224, due to the popping up drive of CD of this hearing segment, needPutting flag bit is CD not-ready state, detects usage of CD-ROM for next flow process.
After this enter step S242, if this segment imprinting success needs to upgrade clip information.
After this, again get back to step S208.
In step S226, whether the CD detecting in CD-ROM drive is satisfactory CD, if CDMeet and require straight quarter to initialize CD according to the form at straight quarter.
After this enter step S228, judge whether CD initializes successfully.
If so, enter step S230; If not, enter step S232.
In step S230, if CD initializes successfully, CD ready flag is set.
After this enter step S214.
In step S232, if CD initializes unsuccessfully, not ready flag of CD is set, due toThese data that need to write need to be saved in fixed disk file, need to arrange needs simultaneously and mend data at quarterMark.
After this enter step S214.
In step S234, mend imprinting as data, after putting into new CD, mend toe-out CD at quarter hereinBecause damaging the video recording data of losing.
After this enter step S236, in judgment device, whether exist and mend the video recording data of carving.
If so, again get back to step S208; If not, enter step S238.
In step S238, need to mend the video recording data of carving if now do not existed, empty needsMend and carve flag bit, when next imprinting, be directly carved in CD.
After this again get back to step S208.
In step S240, if this needs the video recording data carving failure of imprinting, need to put lightCoil not ready flag and need to mend blaze will.
After this again get back to step S208.
More than, for the control flow chart of hearing imprinting, wherein mend imprinting process and mainly occur in CD burning portionSituation about damaging after divided data, proceeds to and mends the flow process of imprinting as data. Mending and carving data is mainly by this hearingSegment starts to enter in new CD to current video recording data again imprinting.
In overall flow figure, what wherein A part related to is the benefit related content at quarter, and wherein B relates toBe the flow chart of normal imprinting, wherein C relate to for the initialized flow chart of CD.
Each method embodiment of the present invention all can be realized in modes such as software, hardware, firmwares. No matterThe present invention realizes with software, hardware or firmware mode, and instruction code can be stored in any class(for example permanent or revisable, volatibility or non-in the memory of the computer-accessible of typeVolatibility, solid-state or non-solid-state, fixing or removable medium etc.). Equally,Memory can be for example that (ProgrammableArrayLogic is called for short programmable logic array" PAL "), random access memory (RandomAccessMemory, be called for short " RAM "),Programmable read only memory (ProgrammableReadOnlyMemory is called for short " PROM "),Read-only storage (Read-OnlyMemory, be called for short " ROM "), electrically erasable are read-onlyMemory (ElectricallyErasableProgrammableROM is called for short " EEPROM "),Disk, CD, digital versatile disc (DigitalVersatileDisc is called for short " DVD ") etc.
Fifth embodiment of the invention relates to a kind of digital hard disc video recorder kind video recording fault-tolerant device at straight quarter.Figure 11 is the straight structural representation of carving fault-tolerant device of this digital hard disc video recorder kind video recording.
Specifically, as shown in figure 11, video recording fault-tolerant device master at straight quarter in this digital hard disc video recorderComprise:
The first imprinting unit, for being directly burnt to the first CD by the real-time video code stream of receiving.
The first buffer unit, for successfully carve at the first CD full before, the imprinting of buffer memory the first CDData.
The first judging unit, for judging the first CD, whether imprinting makes mistakes.
The second buffer unit, in the time that the first judging unit judges that the first CD burning makes mistakes, buffer memoryThe real-time video code stream that one CD is newly received after makeing mistakes.
Mend and carve unit, in the time that the first judging unit judges that the first CD burning makes mistakes, first slow by firstThe first CD of the depositing unit caches data of imprinting is mended and is carved in the second CD, and then mend carve second slowThe real-time video code that the first CD of depositing unit caches is newly received after makeing mistakes.
The second judging unit, for judging all numbers of the first buffer unit and the second buffer unit institute buffer memoryAccording to whether all being mended and carved.
The second imprinting unit, for judging that at the second judging unit all data that are buffered are all mended and carvedWhen complete, the directly current real-time video code stream of receiving of imprinting.
The first embodiment is the method embodiment corresponding with present embodiment, and present embodiment can be withThe enforcement of working in coordination of the first embodiment. The correlation technique details of mentioning in the first embodiment is implemented at thisStill effective in mode, in order to reduce repetition, repeat no more here. Correspondingly, in present embodiment, carryTo correlation technique details also can be applicable in the first embodiment.
Sixth embodiment of the invention relates to video recording fault-tolerant device at straight quarter in a kind of digital hard disc video recorder.
The 6th embodiment improves on the basis of the 5th embodiment, and main improvements existIn:
Also comprise:
The 3rd judging unit, for being directly burnt to the real-time video code stream of receiving in the first imprinting unitBefore the first CD, judge that whether CD is ready.
Initialization unit, for initializing according to the form at straight quarter the CD of CD-ROM drive.
The 4th judging unit, for being directly burnt to the real-time video code stream of receiving in the first imprinting unitBefore the first CD, judge whether to need to mend to carve. If so, the real-time video code stream that buffer memory is newly received,Mend the data of carving buffer memory according to the sequencing of buffer memory simultaneously, carved after all data that are buffered wait mending,Empty again and need to mend flag bit at quarter.
Digital hard disc video recorder is hearing special digital DVR.
In addition, be appreciated that digital hard disc video recorder also in some other embodiment of the present inventionCan be used in other application scenario.
Second, third is the method embodiment corresponding with present embodiment with the 4th embodiment, thisEmbodiment can with the enforcement of working in coordination of second, third and the 4th embodiment. Second, third is with the 4thThe correlation technique details of mentioning in embodiment is still effective in the present embodiment, in order to reduce repetition,Here repeat no more. The correlation technique details of correspondingly, mentioning in present embodiment also can be applicable to second,In the third and fourth embodiment.
It should be noted that, each unit of mentioning in the each device embodiments of the present invention is all logical block,Physically, a logical block can be a physical location, can be also one of a physical locationPart, can also realize with the combination of multiple physical locations the physics realization side of these logical blocks itselfFormula is not most important, and the combination of the function that these logical blocks realize is just to solve the present invention to carryThe key of the technical problem going out. In addition, for outstanding innovation part of the present invention, the above-mentioned each dress of the present inventionPutting embodiment does not draw the unit not too close with solving technical problem relation proposed by the inventionEnter, this does not show that the said equipment embodiment does not exist other unit.
Although by with reference to some of the preferred embodiment of the invention, to the present invention carried out diagram andDescribe, but those of ordinary skill in the art should be understood that and can do respectively it in the form and detailsPlant and change, and without departing from the spirit and scope of the present invention.

Claims (10)

1. in digital hard disc video recorder, video recording is straight carves a fault-tolerant method, it is characterized in that, comprise withLower step:
The real-time video code stream of receiving is directly burnt to the first CD, successfully carves and expire it at the first CDBefore, buffer memory the first CD data of imprinting;
If the first CD burning makes mistakes, first the first CD of the institute's buffer memory data of imprinting is carved againRecord in the second CD, the real-time video code stream that buffer memory the first CD burning is newly received after makeing mistakes simultaneously, soAfter mend again and carve the real-time video code stream that simultaneously the first CD burning of buffer memory is newly received after makeing mistakes, wherein, instituteState in described the first CD in the second CD after the data of imprinting and described the first CD burning have been made mistakesThe data seamless of newly receiving connects;
Carve after all data that are buffered wait mending, the more direct current real-time video code stream of receiving of imprinting.
2. video recording fault-tolerant method at straight quarter in digital hard disc video recorder according to claim 1, itsBe characterised in that, if after the step of makeing mistakes at described the first CD, further comprising the steps of:
Not ready flag and need to mend blaze will of CD is set.
3. video recording fault-tolerant method at straight quarter in digital hard disc video recorder according to claim 2, itsBe characterised in that, described the real-time video code stream of receiving is directly burnt to the step of the first CD before,Further comprising the steps of:
Judge that whether CD is ready;
If CD is not ready, detects the CD in CD-ROM drive and initialize CD according to the form at straight quarter;
Judge whether CD initializes successfully;
If CD initializes successfully, CD ready flag is set;
If CD initializes unsuccessfully, not ready flag and need to mend blaze will of CD is set.
4. video recording fault-tolerant method at straight quarter in digital hard disc video recorder according to claim 3, itsBe characterised in that, if initialized successfully at described CD, after the step of CD ready flag is set,Further comprising the steps of:
Judge whether to need to mend to carve;
If so, the real-time video code stream that buffer memory is newly received, mends and carves according to the sequencing of buffer memory simultaneouslyThe data of buffer memory, have carved after all data that are buffered wait mending, then empty and need to benefit carve flag bit.
5. video recording fault-tolerant method at straight quarter in digital hard disc video recorder according to claim 4, itsBe characterised in that, described the first CD successfully carve full before, buffer memory the first CD is the data of imprintingAfter step, further comprising the steps of:
If the first CD is successfully carved full, remove the data of buffer memory;
The first CD popping up drive that envelope dish completes;
Not ready flag of CD is set.
6. video recording fault-tolerant method at straight quarter in digital hard disc video recorder according to claim 5, itsBe characterised in that, treat that described benefit is further comprising the steps of after having carved the step of all data that are buffered:
Empty and need to mend flag bit at quarter.
7. hold according to straight quarter of video recording in the digital hard disc video recorder described in any one in claim 1 to 6Wrong method, is characterized in that, described digital hard disc video recorder is hearing special digital DVR.
8. a video recording fault-tolerant device at straight quarter in digital hard disc video recorder, is characterized in that, comprising:
The first imprinting unit, for being directly burnt to the first CD by the real-time video code stream of receiving;
The first buffer unit, for successfully carve at the first CD full before, the imprinting of buffer memory the first CDData;
The first judging unit, for judging the first CD, whether imprinting makes mistakes;
The second buffer unit, in the time that described the first judging unit judges that the first CD burning makes mistakes, slowDeposit the real-time video code stream of newly receiving after the first CD is made mistakes;
Mend and carve unit, in the time that described the first judging unit judges that the first CD burning makes mistakes, first by theThe first CD of the one buffer unit buffer memory data of imprinting is mended and is carved in the second CD, and then mends and carve theThe real-time video code that the first CD of two buffer unit buffer memorys is newly received after makeing mistakes, wherein, described the second lightIn described the first CD in dish, the data of imprinting and described the first CD burning are newly received after makeing mistakesData seamless connects;
The second judging unit, for judging described the first buffer unit and described the second buffer unit institute buffer memoryAll data whether all mended and carved;
The second imprinting unit, for all data being buffered described in described the second judging unit judgement allMended while quarter the directly current real-time video code stream of receiving of imprinting.
9. video recording fault-tolerant device at straight quarter in digital hard disc video recorder according to claim 8, itsBe characterised in that, also comprise:
The 3rd judging unit, for directly carving the real-time video code stream of receiving in described the first imprinting unitBefore recording the first CD, judge that whether CD is ready;
Initialization unit, for initializing according to the form at straight quarter the CD of CD-ROM drive;
The 4th judging unit, for directly carving the real-time video code stream of receiving in described the first imprinting unitBefore recording the first CD, judge whether to need to mend to carve; If so the real-time video that, buffer memory is newly receivedCode stream is mended the data of carving buffer memory according to the sequencing of buffer memory simultaneously, waits to mend and has carved all numbers that are bufferedAccording to rear, then empty and need to benefit carve flag bit.
10. in digital hard disc video recorder according to claim 8 or claim 9, video recording is straight carves fault-tolerant dressPut, it is characterized in that, described digital hard disc video recorder is hearing special digital DVR.
CN201110384240.2A 2011-11-28 2011-11-28 Video recording fault-tolerant method and device thereof at straight quarter in digital hard disc video recorder Active CN103137159B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110384240.2A CN103137159B (en) 2011-11-28 2011-11-28 Video recording fault-tolerant method and device thereof at straight quarter in digital hard disc video recorder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110384240.2A CN103137159B (en) 2011-11-28 2011-11-28 Video recording fault-tolerant method and device thereof at straight quarter in digital hard disc video recorder

Publications (2)

Publication Number Publication Date
CN103137159A CN103137159A (en) 2013-06-05
CN103137159B true CN103137159B (en) 2016-05-18

Family

ID=48496884

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110384240.2A Active CN103137159B (en) 2011-11-28 2011-11-28 Video recording fault-tolerant method and device thereof at straight quarter in digital hard disc video recorder

Country Status (1)

Country Link
CN (1) CN103137159B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107103919B (en) * 2016-02-23 2019-09-17 杭州海康威视数字技术股份有限公司 A kind of method, apparatus and system imprinted CDs
CN106507010B (en) * 2016-11-21 2023-05-26 深圳顺泰伟成科技有限公司 Direct engraving unit, modularized optical disc direct engraving system and data storage method thereof
CN111145794A (en) * 2018-11-02 2020-05-12 杭州海康威视数字技术股份有限公司 Recording method, device, system, recording equipment and storage medium
CN114242119B (en) * 2021-12-17 2024-03-01 统信软件技术有限公司 Optical disk data repairing method, optical disk data checking method and computing device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1298181A (en) * 1999-09-30 2001-06-06 索尼公司 Recording device, recording method, reproduction apparatus, reproduction method and recording medium
CN1780383A (en) * 2004-11-24 2006-05-31 上海乐金广电电子有限公司 Continuous data recording method for digit composite video recorder
CN101399067A (en) * 2007-09-26 2009-04-01 凌阳科技股份有限公司 Recovery method for write-in error of CD-disc

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004127471A (en) * 2002-10-07 2004-04-22 Pioneer Electronic Corp Recording device and its control method, and reproducing device
US7437053B2 (en) * 2003-01-15 2008-10-14 Matsushita Electric Industrial Co., Ltd. Digital video recorder, method of driving the video recorder and program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1298181A (en) * 1999-09-30 2001-06-06 索尼公司 Recording device, recording method, reproduction apparatus, reproduction method and recording medium
CN1780383A (en) * 2004-11-24 2006-05-31 上海乐金广电电子有限公司 Continuous data recording method for digit composite video recorder
CN101399067A (en) * 2007-09-26 2009-04-01 凌阳科技股份有限公司 Recovery method for write-in error of CD-disc

Also Published As

Publication number Publication date
CN103137159A (en) 2013-06-05

Similar Documents

Publication Publication Date Title
CN103137159B (en) Video recording fault-tolerant method and device thereof at straight quarter in digital hard disc video recorder
CN108319602B (en) Database management method and database system
CN102033786B (en) Method for repairing consistency of copies in object storage system
CN102314383B (en) Failure recovery method and device for data index
US20060095478A1 (en) Consistent reintegration a failed primary instance
WO1997001139A1 (en) Disk array controller with enhanced synchronous write
CN107678892B (en) Continuous data protection method based on jump recovery chain
CN103226965B (en) Based on the audio/video data access method of time bitmap
CN102932621A (en) Method and device for storing data
CN104811645A (en) Embedded video-recording data storage method
US20110271144A1 (en) Approach for data integrity in an embedded device environment
CN102231137B (en) Data memory system and method
CN103914359A (en) Data recovery method and device
CN101815983A (en) Method and system for preventing corruption of hard disk drive file system
CN101281452A (en) Method for automatically rebuilding hard disk
CN102968360A (en) Storage system with N+1 redundancy function and method
CN108170375B (en) Overrun protection method and device in distributed storage system
CN108234465B (en) Redundancy method and device for handling exception in distributed file system
CN103902227B (en) It is a kind of to support the additional document storage mode write and share and read
CN113051428B (en) Method and device for back-up storage at front end of camera
CN105653385B (en) A kind of vehicle-mounted kinescope method
JPWO2009050894A1 (en) Video recording apparatus, video recording method, video recording program, and integrated circuit
CN105446652A (en) Method and device for storing camera shooting data
CN103902232A (en) Data write-in method and device
CN109271100A (en) A kind of flash storage date storage method and read method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant