CN103137159A - Direct-to-disc fault-tolerant method for videos in hard-disk based digital video recorder and device thereof - Google Patents

Direct-to-disc fault-tolerant method for videos in hard-disk based digital video recorder and device thereof Download PDF

Info

Publication number
CN103137159A
CN103137159A CN2011103842402A CN201110384240A CN103137159A CN 103137159 A CN103137159 A CN 103137159A CN 2011103842402 A CN2011103842402 A CN 2011103842402A CN 201110384240 A CN201110384240 A CN 201110384240A CN 103137159 A CN103137159 A CN 103137159A
Authority
CN
China
Prior art keywords
data
imprinting
buffer memory
mend
fault
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
CN2011103842402A
Other languages
Chinese (zh)
Other versions
CN103137159B (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

Images

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Optical Recording Or Reproduction (AREA)

Abstract

The invention relates to the field of digitalized interrogation, and discloses a direct-to-disc fault-tolerant method for videos in a hard-disk based digital video recorder and a device of the direct-to-disc fault-tolerant method for the videos in the hard-disk based digital video recorder. In a video direct-to-disc process, if a certain optical disc fails in recording due to various reasons and is popped out of a compact disc (CD) driver, a system can restore the videos automatically after a user places a novel disc, videos from a starting time of the self-recording failure disc to a current time are all restored to the novel disc, seamless connection is maintained between the videos and subsequently generated video data, the stability and the reliability of the system are effectively improved, and the problem of video data incompleteness caused by recording errors is solved. An additional supplementary recording method is utilized for achieving data fault-tolerant technique, the completeness of the video data in the direct-to-disc process can be guaranteed, and the seamless connection can be maintained between the video data before an optical disc recording failure and the video data after the optical disc recording failure.

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 the digital trial field, particularly the straight fault-tolerant technique of carving of hearing video recording.
Background technology
The straight quarter refers to a kind ofly in the imprinting process, by third party's storage medium, data do not carried out transfer, directly video code flow is fixed to the carving method in CD.
In application number is 200810121223.8 Chinese patent, a kind of method that many CD-ROM drives synchronizing direct is carved is disclosed, can real time data not produced temporary file, the CD that writes direct, and can synchronously be written in a plurality of CD-ROM drives.But the situation of the CD burning failure that imprinting is not directly produced in the process at quarter is processed.If producing the situation of CD burning mistake in process the straight quarter of code stream in real time, can not effectively keep the integrality of data.
The hearing digital hard disc video recorder refers to use in Interrogation Procedure, video recording equipment take hard disk as storage medium, the video recording of hearing can be stored in hard disk, and the synchronous CD-ROM drive imprinting that video data is carried by equipment is to CD, the video recording that hearing is produced is fixed.
But, in prior art, directly carve the fault tolerance that trial system exists not enough, namely in Interrogation Procedure due to the compatibility of CD-ROM drive and CD, CD quality, the reasons such as CD-ROM drive serviceable life cause inquesting in process at straight quarter can't be recovered hearing video recording data after the CD burning failure.
Therefore, carve trial system straight, can realize straight imprinting is carried out as data fault-tolerant, guarantee that the method for Interrogation Procedure authenticity and integrity 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 that video recording is straight carves fault-tolerant method and device thereof, effectively having improved Systems balanth and reliability, having solved due to the imprinting mistake incomplete problem of data that causes recording a video.
For solving the problems of the technologies described above, embodiments of the present invention disclose a kind of video recording fault-tolerant method at straight quarter in digital hard disc video recorder, comprise the following steps:
The real-time video code stream of receiving directly is burnt to the first CD, and before the first CD was successfully carved completely, buffer memory the first CD is the data of imprinting;
If the first CD burning is made mistakes, first the first CD of institute's buffer memory data of imprinting is burnt in the second CD again, buffer memory the first CD burning rear real-time video code stream of newly receiving of makeing mistakes simultaneously, and then mend and carve simultaneously the first CD burning of buffer memory rear real-time video code stream of newly receiving of makeing mistakes;
Wait mend carved all data that are buffered after, the more direct current real-time video code stream of receiving of imprinting.
Embodiments of the present invention also disclose video recording fault-tolerant device at straight quarter in a kind of digital hard disc video recorder, comprising:
The first imprinting unit is used for the real-time video code stream of receiving directly is burnt to the first CD;
The first buffer unit was used for before the first CD is successfully carved completely, and buffer memory the first CD is the data of imprinting;
The first judging unit, whether imprinting makes mistakes to be used for judging the first CD;
The second buffer unit is used for when first judgment unit judges the first CD burning is made mistakes, buffer memory the first CD rear real-time video code stream of newly receiving of makeing mistakes;
Mend and carve the unit, be used for when first judgment unit judges the first CD burning is made mistakes, first the data of the first CD of the first buffer unit buffer memory imprinting are mended and be carved in the second CD, and then mend the first CD of carving the second buffer unit buffer memory rear real-time video code of newly receiving of makeing mistakes;
The second judging unit is used for judge whether all data of the first buffer unit and the second buffer unit institute buffer memory have all been carved by benefit;
The second imprinting unit, all data that are used for being buffered in the second judgment unit judges have all been mended when having carved, the direct current real-time video code stream of receiving of imprinting.
Embodiment of the present invention compared with prior art, the key distinction and effect thereof are:
In video recording process at straight quarter, if certain Zhang Guangpan is because a variety of causes imprinting unsuccessfully is ejected CD-ROM drive, after the user puts into new CD, system can recover video recording automatically, will be in the extremely new CD of the video recording full recovery of imprinting failure CD start time to current time, and keep seamless link with the video recording data of follow-up generation, and effectively improved Systems balanth and reliability, solved due to the imprinting mistake incomplete problem of data that causes recording a video.
Further, utilization is appended and is mended the fault-tolerant technique that the method for carving realizes data, can guarantee the integrality of video recording data in process at quarter directly, in straight process of carving, the situation of CD burning failure occurs in any moment, the video recording data can not lost, and the video recording data that produce after the content in the last CD of imprinting in new CD and the failure of last CD burning keep seamless link.
Description of drawings
Fig. 1 is the straight schematic flow sheet of carving fault-tolerant method of recording a video in a kind of digital hard disc video recorder in first embodiment of the invention;
Fig. 2 is the structural drawing 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 schematic flow sheet of carving fault-tolerant method of recording a video in a kind of digital hard disc video recorder in second embodiment of the invention;
Fig. 9 is the straight schematic flow sheet of carving fault-tolerant method of recording a video in a kind of digital hard disc video recorder in third embodiment of the invention;
Figure 10 is the hearing imprinting process flow diagram of a preferred embodiment of the present invention;
Figure 11 is the straight structural representation of carving fault-tolerant device of recording a video in a kind of digital hard disc video recorder in fifth embodiment of the invention.
Embodiment
In the following description, in order to make the reader understand the application better, many ins and outs have been proposed.But, persons of ordinary skill in the art may appreciate that even without these ins and outs with based on many variations and the modification of following each embodiment, also can realize each claim of the application technical scheme required for protection.
For making the purpose, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, embodiments of the present invention are 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 comprises the following steps:
In step 101, the real-time video code stream of receiving directly is burnt to the first CD;
After this enter step 102, buffer memory the first CD is the data of imprinting;
The real-time video code stream of receiving directly is burnt to the first CD, and before the first CD was successfully carved completely, buffer memory the first CD is the data of imprinting.
After this enter step 103, whether imprinting is successful to judge the first CD.
If enter step 109; If not, enter step 104.
In step 104, the first CD of institute's buffer memory data of imprinting is burnt in the second CD again.
After this enter step 105, simultaneously buffer memory the first CD burning rear real-time video code stream of newly receiving of makeing mistakes.
After this enter step 106, mend to carve the first CD burning rear real-time video code stream of newly receiving of makeing mistakes.
The first CD burning of buffer memory rear real-time video code stream of newly receiving of makeing mistakes is burnt in the second CD and follow-up CD.
If the first CD burning is made mistakes, first the first CD of institute's buffer memory data of imprinting is burnt in the second CD again, buffer memory the first CD burning rear real-time video code stream of newly receiving of makeing mistakes simultaneously, and then mend and carve simultaneously the first CD burning of buffer memory rear real-time video code stream of newly receiving of makeing mistakes.
After this enter step 107, whether all data that judgement is buffered have all been mended is carved.
If enter step 108; If not, again get back to step 105.
In step 108, the direct current real-time video code stream of receiving of imprinting.
Wait mend carved all data that are buffered after, 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, process ends; If not, again get back to step 101.
In video recording process at straight quarter, if certain Zhang Guangpan is because a variety of causes imprinting unsuccessfully is ejected CD-ROM drive, after the user puts into new CD, system can recover video recording automatically, will be in the extremely new CD of the video recording full recovery of imprinting failure CD start time to current time, and keep seamless link with the video recording data of follow-up generation, and effectively improved Systems balanth and reliability, solved due to the imprinting mistake incomplete problem of data that causes recording a video.
Here, digital hard disc video recorder is hearing special digital DVR.
In addition, be appreciated that digital hard disc video recorder also can be used in other application scenario in some other embodiment of the present invention.
The straight trial system of carving comprises straight formula hearing at a quarter digital hard disc video recorder (embedded CD writer), and CD is some, 4, video camera.Straight formula hearing at quarter digital hard disc video recorder is used for recording the audiovisual information of video camera transmission, and by digitized processing, it is stored in memory device; Wherein directly carve the CD writer that the formula digital hard disc video recorder carries and be mainly used in the real-time recording data are directly carved to CD, for the judicial process in later stage provides strong evidence; Video camera is used for Interrogation Procedure is carried out video monitoring, and video data is sent to the 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, all the essential equipment of trial system, the present invention need to be in trial system adding hardware equipment, design by the control flow to direct-type hearing digital hard disc video recorder, realize carrying out fault-tolerant to straight imprinting as data.Guarantee the authenticity and integrity of Interrogation Procedure.
Video camera transfers to straight formula hearing at quarter digital hard disc video recorder with the scene that collects by video transmission line in Interrogation Procedure.Directly quarter, the formula digital hard disc video recorder carried out digitized processing to the vision signal that receives.According to H.264 compression standard, video data is compressed.Video data after compression is stored in hard disk by memory module on the one hand, passes through on the other hand the CD writer synchronous RW to CD.Wherein the data flow of system as shown in Figure 3.
By the video code flow of straight formula digital hard disc video recorder output at quarter, flow to simultaneously CD writer and hard disk in Interrogation Procedure, be kept at respectively in CD and hard disk.And can produce at least one Zhang Guangpan in Interrogation Procedure, CD can be preserved the video recording data of a plurality of hours.The corresponding relation of wherein inquesting time and CD content can represent with Fig. 4.
Wherein the pre-resolved problem of the present invention can describe by Fig. 4, if certain hearing is from the T1 time, wherein time T 1 is to T2, the video file of two time periods of T2 to T3 all by straight quarter mode normally write in CD 1 and CD 2, these two sections hearings are all the hearing CDs that produces in normal processes.The problem that this place solves is constantly to occur in situation in CD 3 at T4.
If the situation of CD burning failure has occured constantly at T4, and the user has changed new CD 4 to CD writer constantly at T5.The data storage condition can represent with form shown in Figure 5 before T5 is constantly not fault-tolerant:
Because the CD mistake has occured CD 3 at this moment, loss has occured in the video recording data that are stored in the T3 to T4 in CD 3.The user after T5 puts into new CD 4, native system can be first returns to the video recording data of T3 to T5 in CD 4, then continues to write the video recording data after T5 in CD 4.So just guaranteed newly to put into the video recording data of CD and the video recording content of last Zhang Zhengchang CD (CD 2) has continuity in time.Wherein fault-tolerant data storage condition afterwards as shown in Figure 6.
We are T1 to T2 in this process, and T2 to T3 is called hearing segment 1, hearing segment 2, and T3 is until the full data of CD 4 imprintings are called hearing segment 4.
The hearing segment refers to, the large young pathbreaker's video data according to CD capacity in Interrogation Procedure carries out segmentation, conveniently utilizes CD that data are stored, and every one piece of data is called a hearing segment.
The requirement of synthesizing map 4 needs to satisfy following the requirement in system design process:
(1) in the hearing digital hard disc video recorder process of directly carving, the situation of any moment generation CD burning failure is newly put into after CD the video recording data of last damaged compact disk and can not be lost.Content in new CD need comprise this partial content.
(2) the video recording data that produce after the content in the last CD of imprinting and last disc damage in new CD need keep continuity, and namely two segment datas need seamless link.
Prior art and technological gap of the present invention can be described with Fig. 7.
If wherein at T1, the abnormal situation of CD burning occurs constantly, producing respectively two ends video recording data before imprinting and after imprinting is D1 and D2.
Prior art can only guarantee that with the D1 imprinting D2 imprinting is to CD 2 to CD 1.And if the mistake of CD 1 generation this moment is situation about can't recover, loss has occured in the video recording data of data D1.
And above-mentioned situation is when occuring in the present invention, D1 can imprinting to CD 1, and D1+D2 in the lump imprinting to CD 2, even the mistake that CD 1 occurs be expendable situation data D1 still can be stored in CD 2.So just effectively kept 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 are:
Before the real-time video code stream that will receive directly is burnt to the step of the first CD, further comprising the steps of:
Judge whether CD is ready.
If CD is not ready, detect in CD-ROM drive CD and according to the form initialization CD at straight quarter.
Whether initialization is successful to judge CD.
If CD initialization success arranges the CD ready flag.
If the CD initialization unsuccessfully, arranges CD not ready flag and needs benefit blaze will.
Specifically, as shown in Figure 8, the initialized flow process of this CD mainly comprises the following steps:
In step 801, judge whether CD is ready;
If, process ends; If not, enter step 802.
Judge whether CD is ready, think all that without CD or CD mistake CD is not ready.Only have the CD that initialization is completed just to think ready CD.
In step 802, detect and the initialization CD.
Whether the CD that detects in CD-ROM drive is satisfactory CD, if CD meets that require straight quarter according to the form initialization CD at straight quarter.
After this enter step 803, whether initialization is successful to judge CD.
If enter step 804; If not, enter step 805.
In step 804, the CD ready flag is set.
After this process ends.
If CD initialization success arranges the CD ready flag.
In step 805, CD not ready flag and needs benefit blaze will are set.
If CD initialization failure arranges not ready flag of CD, because these data that need to write need to be saved in fixed disk file, need simultaneously to arrange needs and mend the 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, main improvements are: utilize to append and mend the fault-tolerant technique that the method for carving realizes data, can guarantee the integrality of video recording data in process at quarter directly, in straight process of carving, the situation of CD burning failure occurs in any moment, the video recording data can not lost, and the video recording data that produce after the content in the last CD of imprinting in new CD and the failure of last CD burning keep seamless link.
Specifically:
If in CD initialization success, 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 newly received of buffer memory, mend the data of carving buffer memory according to the sequencing of buffer memory simultaneously, wait mend has carved all data that are buffered after, then empty and need to mend the zone bit at quarter.
Mainly utilize the segment buffer culture that the video recording data are cushioned in as the process of data mending imprinting, if the data in the segment buffer culture are not written in CD fully, this real-time code stream is first written in the segment buffer culture, reading the video recording data from the segment buffer culture is written in CD again, if the data in the segment buffer culture are complete all being written in CD, these real-time recording data directly write in CD.
Specifically, as shown in Figure 9, this appends the flow process of mending quarter and mainly comprises the following steps:
In step 901, the real-time video code stream A that need to write CD there is this moment.
After this whether enter step 902, judging to have in the fragment buffer culture needs to mend the video recording data of carving.
If enter step 903; If not, enter step 905.
In step 903, real-time code stream A is written to the fragment buffer culture.
Need to mend the data of carving need code stream A is written in the segment buffer culture if exist in the segment buffer culture this moment, being expressed as in the drawings D4, the write pointer of this moment has W1 to be updated to W2.
After this enter step 904, when real-time video code stream A is written to the fragment buffer culture, reads video recording data B and be written in CD from the fragment buffer culture.
Be expressed as in the drawings D2, the read pointer of this moment 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 the segment buffer culture have been mended to carve and completed, real-time bit stream data need to be directly write in CD this moment.
The length of data D2 need to be mended the video recording data in the segment buffer culture after guarantee benefit a period of time at quarter and carve to CD so fully greater than D4 in mending the process at quarter, and the data in the assurance CD are connected with the data seamless in last CD.
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 are: specifically:
The first CD successfully carve full before, buffer memory the first CD is after the step of the data of imprinting, and is further comprising the steps of.
If the first CD is successfully carved full, remove the data of buffer memory.
The first CD and popping up drive that the envelope dish is completed.
Not ready flag of CD is set.
If after the step that the first CD is made mistakes, further comprising the steps of:
CD not ready flag and needs benefit blaze will are set.
Further comprising the steps of after waiting to mend the step of having carved all data that are buffered:
Emptying needs to mend the zone bit at quarter.
Hearing imprinting process flow diagram shown in Figure 10 is a preferred embodiment of the present invention, and specifically, as shown in the figure, this hearing imprinting flow process mainly comprises the following steps:
In step S202, begin hearing.
After this enter step S204, the CD initialization is mainly straight quarter CD and carries out initialization, and the predistribution storage space distributes the storage space of 4G herein to every DVD CD.
After this enter step S206, the information of record hearing segment 1, essential record begins the start time of this segment.
The hearing segment refers to, the large young pathbreaker's video data according to CD capacity in Interrogation Procedure carries out segmentation, conveniently utilizes CD that data are stored, and every one piece of data is called a hearing segment.
After this enter step S208, judge whether CD is ready.
If enter step S210; If not, enter step S226.
Think all that without CD or CD mistake CD is not ready.Only have the CD that initialization is completed to think ready CD.
Whether in step S210, judging to have in system needs to mend the data of carving, as: change the data that are not carved into that produce in the dish process, the data that break down in the CD burning process and produce.
If enter step S234; If not, enter step S212;
In step S212, imprinting real-time recording data are in the CD that real-time stream imprinting to the initialization in the bit stream buffer district is completed.
After this enter step S214, when the data of recording a video are directly carved, the video data of this hearing segment is saved in the buffer culture of hard disk and keeps in (being mainly used in fault-tolerant).
After this enter step S216, judge whether this secondary data writes CD successful.
If enter step S218; If not, enter step S240.
In step S218, whether imprinting is full to judge this Zhang Guangpan.
If 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 is completed, remove the video recording data of this hearing segment temporary in the record buffering file.
After this enter step S222, this Zhang Guangpan is sealed dish, fixing video recording data, and the CD popping up drive that the envelope dish is completed.
After this enter step S224, due to the CD popping up drive of this hearing segment, needing to put zone bit is the 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 that detects in CD-ROM drive is satisfactory CD, if CD meets that require straight quarter according to the form initialization CD at straight quarter.
After this enter step S228, whether initialization is successful to judge CD.
If enter step S230; If not, enter step S232.
In step S230, if CD initialization success arranges the CD ready flag.
After this enter step S214.
In step S232, if CD initialization failure arranges not ready flag of CD, because these data that need to write need to be saved in fixed disk file, need simultaneously to arrange needs and mend the Data Labels at quarter.
After this enter step S214.
In step S234, mend imprinting as data, mend the video recording data that quarter, the toe-out CD was lost because of damage herein after putting into new CD.
After this enter step S236, whether exist in judgment device and mend the video recording data of carving.
If again get back to step S208; If not, enter step S238.
In step S238, do not carve zone bit if do not existed this moment to need to mend the video recording data of carving empty to need to mend, directly be carved in CD during next imprinting.
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 CD not ready flag and needs benefit blaze will.
After this again get back to step S208.
More than for the control flow chart of hearing imprinting, wherein mend the imprinting process and mainly occur in situation about damaging after the CD burning partial data, change over to and mend imprinting as the flow process of data.If benefit is carved data owner, this hearing segment is begun to enter in new CD to current video recording data imprinting again.
In overall flow figure, the related content for mend carving that partly relates to of A wherein, wherein B relates to be the process flow diagram of normal imprinting, what wherein C related to is the initialized process flow diagram of CD.
Each method embodiment of the present invention all can be realized in modes such as software, hardware, firmwares.No matter the present invention realizes with software, hardware or firmware mode, instruction code can be stored in the storer of computer-accessible of any type (for example permanent or revisable, volatibility or non-volatile, solid-state or non-solid-state, fixing or removable medium etc.).equally, storer can be for example programmable logic array (Programmable Array Logic, be called for short " PAL "), random access memory (Random Access Memory, be called for short " RAM "), programmable read only memory (Programmable Read Only Memory, be called for short " PROM "), ROM (read-only memory) (Read-Only Memory, be called for short " ROM "), Electrically Erasable Read Only Memory (Electrically Erasable Programmable ROM, be called for short " EEPROM "), disk, CD, digital versatile disc (Digital Versatile Disc, be 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, in this digital hard disc video recorder, video recording fault-tolerant device at straight quarter mainly comprises:
The first imprinting unit is used for the real-time video code stream of receiving directly is burnt to the first CD.
The first buffer unit was used for before the first CD is successfully carved completely, and buffer memory the first CD is the data of imprinting.
The first judging unit, whether imprinting makes mistakes to be used for judging the first CD.
The second buffer unit is used for when first judgment unit judges the first CD burning is made mistakes, buffer memory the first CD rear real-time video code stream of newly receiving of makeing mistakes.
Mend and carve the unit, be used for when first judgment unit judges the first CD burning is made mistakes, first the data of the first CD of the first buffer unit buffer memory imprinting are mended and be carved in the second CD, and then mend the first CD of carving the second buffer unit buffer memory rear real-time video code of newly receiving of makeing mistakes.
The second judging unit is used for judge whether all data of the first buffer unit and the second buffer unit institute buffer memory have all been carved by benefit.
The second imprinting unit, all data that are used for being buffered in the second judgment unit judges have all been mended when having carved, the direct current real-time video code stream of receiving of imprinting.
The first embodiment is the method embodiment corresponding with present embodiment, present embodiment can with the enforcement of working in coordination of the first embodiment.The correlation technique details of mentioning in the first embodiment is still effective in the present embodiment, in order to reduce repetition, repeats no more here.Correspondingly, the correlation technique details of mentioning in present embodiment 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 are:
Also comprise:
The 3rd judging unit is used for judging whether CD is ready before the first imprinting unit directly is burnt to the first CD with the real-time video code stream of receiving.
Initialization unit is used for the CD of CD-ROM drive is carried out initialization according to the form at straight quarter.
The 4th judging unit is used for judging whether to need to mend to carve before the first imprinting unit directly is burnt to the first CD with the real-time video code stream of receiving.If so, the real-time video code stream newly received of buffer memory, mend the data of carving buffer memory according to the sequencing of buffer memory simultaneously, wait mend has carved all data that are buffered after, then empty and need to mend the zone bit at quarter.
Digital hard disc video recorder is hearing special digital DVR.
In addition, be appreciated that digital hard disc video recorder also can be used in other application scenario in some other embodiment of the present invention.
Second, third is the method embodiment corresponding with present embodiment with the 4th embodiment, present embodiment can with the enforcement of working in coordination of second, third and the 4th embodiment.The correlation technique details of mentioning in second, third and the 4th embodiment is still effective in the present embodiment, in order to reduce repetition, repeats no more here.Correspondingly, the correlation technique details of mentioning in present embodiment also can be applicable in second, third and the 4th embodiment.
Need to prove, each unit of mentioning in each device embodiments of the present invention is all logical block, physically, a logical block can be a physical location, it can be also the part of a physical location, can also realize with the combination of a plurality of physical locations, the physics realization mode of these logical blocks itself is not most important, and the combination of the function that these logical blocks realize is the key that just solves technical matters proposed by the invention.In addition, for outstanding innovation part of the present invention, above-mentioned each device embodiments of the present invention will not introduced not too close unit with solving technical matters relation proposed by the invention, and this does not show that there is not other unit in the said equipment embodiment.
Although pass through with reference to some of the preferred embodiment of the invention, the present invention is illustrated and describes, but those of ordinary skill in the art should be understood that and can do various changes to it in the form and details, and without departing from the spirit and scope of the present invention.

Claims (10)

1. in a digital hard disc video recorder, video recording is straight carves fault-tolerant method, it is characterized in that, comprises the following steps:
The real-time video code stream of receiving directly is burnt to the first CD, and before the first CD was successfully carved completely, buffer memory the first CD is the data of imprinting;
If the first CD burning is made mistakes, first the first CD of institute's buffer memory data of imprinting is burnt in the second CD again, buffer memory the first CD burning rear real-time video code stream of newly receiving of makeing mistakes simultaneously, and then mend and carve simultaneously the first CD burning of buffer memory rear real-time video code stream of newly receiving of makeing mistakes;
Wait mend carved all data that are buffered after, 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, is characterized in that, and is if after the step that described the first CD is made mistakes, further comprising the steps of:
CD not ready flag and needs benefit blaze will are set.
3. in digital hard disc video recorder according to claim 2, video recording is straight carves fault-tolerant method, it is characterized in that, described the real-time video code stream of receiving directly is burnt to the step of the first CD before, further comprising the steps of:
Judge whether CD is ready;
If CD is not ready, detect in CD-ROM drive CD and according to the form initialization CD at straight quarter;
Whether initialization is successful to judge CD;
If CD initialization success arranges the CD ready flag;
If the CD initialization unsuccessfully, arranges CD not ready flag and needs benefit blaze will.
4. video recording fault-tolerant method at straight quarter in digital hard disc video recorder according to claim 3, is characterized in that, and is if in described CD initialization success, 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 newly received of buffer memory, mend the data of carving buffer memory according to the sequencing of buffer memory simultaneously, wait mend has carved all data that are buffered after, then empty and need to mend the zone bit at quarter.
5. in digital hard disc video recorder according to claim 4, video recording is straight carves fault-tolerant method, it is characterized in that, described the first CD successfully carve full before, buffer memory the first CD is after the step of the data of imprinting, and is further comprising the steps of;
If the first CD is successfully carved full, remove the data of buffer memory;
The first CD and popping up drive that the envelope dish is completed;
Not ready flag of CD is set.
6. in digital hard disc video recorder according to claim 5, video recording is straight carves fault-tolerant method, it is characterized in that, described further comprising the steps of after waiting to mend the step of having carved all data that are buffered:
Emptying needs to mend the zone bit at quarter.
7. record a video in the described digital hard disc video recorder of any one according to claim 1 to 6 and directly carve fault-tolerant method, it is characterized in that, described digital hard disc video recorder is hearing special digital DVR.
8. in a digital hard disc video recorder, video recording is straight carves fault-tolerant device, it is characterized in that, comprising:
The first imprinting unit is used for the real-time video code stream of receiving directly is burnt to the first CD;
The first buffer unit was used for before the first CD is successfully carved completely, and buffer memory the first CD is the data of imprinting;
The first judging unit, whether imprinting makes mistakes to be used for judging the first CD;
The second buffer unit is used for when described first judgment unit judges the first CD burning is made mistakes, buffer memory the first CD rear real-time video code stream of newly receiving of makeing mistakes;
Mend and carve the unit, be used for when described first judgment unit judges the first CD burning is made mistakes, first the data of the first CD of the first buffer unit buffer memory imprinting are mended and be carved in the second CD, and then mend the first CD of carving the second buffer unit buffer memory rear real-time video code of newly receiving of makeing mistakes;
The second judging unit, whether all data that are used for judging described the first buffer unit and described the second buffer unit institute buffer memory have all been mended has been carved;
The second imprinting unit is used for all having been mended when having carved in described all data that are buffered of described the second judgment unit judges the direct 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, is characterized in that, also comprises:
The 3rd judging unit is used for judging whether CD is ready before described the first imprinting unit directly is burnt to the first CD with the real-time video code stream of receiving;
Initialization unit is used for the CD of CD-ROM drive is carried out initialization according to the form at straight quarter;
The 4th judging unit is used for judging whether to need to mend to carve before described the first imprinting unit directly is burnt to the first CD with the real-time video code stream of receiving; If so, the real-time video code stream newly received of buffer memory, mend the data of carving buffer memory according to the sequencing of buffer memory simultaneously, wait mend has carved all data that are buffered after, then empty and need to mend the zone bit at quarter.
10. video recording fault-tolerant device at straight quarter according to claim 8 or 9 described digital hard disc video recorders, 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 true CN103137159A (en) 2013-06-05
CN103137159B 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)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106507010A (en) * 2016-11-21 2017-03-15 深圳顺泰伟成科技有限公司 A kind of straight quarter unit, the straight etching system of modularity CD and its date storage method
CN107103919A (en) * 2016-02-23 2017-08-29 杭州海康威视数字技术股份有限公司 A kind of method imprinted CDs, apparatus and system
CN111145794A (en) * 2018-11-02 2020-05-12 杭州海康威视数字技术股份有限公司 Recording method, device, system, recording equipment and storage medium
CN114242119A (en) * 2021-12-17 2022-03-25 统信软件技术有限公司 Optical disc data repairing method, optical disc data checking method and computing device

Citations (5)

* 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
CN1527308A (en) * 2003-01-15 2004-09-08 松下电器产业株式会社 Digital video frequency recorder and driving method and program thereof
US20050008346A1 (en) * 2002-10-07 2005-01-13 Pioneer Corporation Recording apparatus, method for controlling the same and playback apparatus
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

Patent Citations (5)

* 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
US20050008346A1 (en) * 2002-10-07 2005-01-13 Pioneer Corporation Recording apparatus, method for controlling the same and playback apparatus
CN1527308A (en) * 2003-01-15 2004-09-08 松下电器产业株式会社 Digital video frequency recorder and driving method and program thereof
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

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107103919A (en) * 2016-02-23 2017-08-29 杭州海康威视数字技术股份有限公司 A kind of method imprinted CDs, apparatus and system
CN106507010A (en) * 2016-11-21 2017-03-15 深圳顺泰伟成科技有限公司 A kind of straight quarter unit, the straight etching system of modularity CD and its date storage method
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
CN114242119A (en) * 2021-12-17 2022-03-25 统信软件技术有限公司 Optical disc data repairing method, optical disc data checking method and computing device
CN114242119B (en) * 2021-12-17 2024-03-01 统信软件技术有限公司 Optical disk data repairing method, optical disk data checking method and computing device

Also Published As

Publication number Publication date
CN103137159B (en) 2016-05-18

Similar Documents

Publication Publication Date Title
TW417104B (en) Realtime data recording method
CN102033786B (en) Method for repairing consistency of copies in object storage system
CN102932621A (en) Method and device for storing data
WO1997001139A1 (en) Disk array controller with enhanced synchronous write
CN104811645A (en) Embedded video-recording data storage method
CN103226965B (en) Based on the audio/video data access method of time bitmap
CN101815983A (en) Method and system for preventing corruption of hard disk drive file system
CN103137159A (en) Direct-to-disc fault-tolerant method for videos in hard-disk based digital video recorder and device thereof
CN102968360A (en) Storage system with N+1 redundancy function and method
US7234078B2 (en) Data recovery method and data recording apparatus
CN100440352C (en) Power failure recovery method
CN103092719B (en) A kind of power-off protection method of file system
JP5032583B2 (en) Video recording apparatus, video recording method, video recording program, and integrated circuit
US20160037119A1 (en) Video recording apparatus, and video recording method when temporary network failure occurs
CN106933707B (en) Data recovery method and system of data storage device based on raid technology
CN103902227B (en) It is a kind of to support the additional document storage mode write and share and read
CN105653385B (en) A kind of vehicle-mounted kinescope method
CN102930875B (en) A kind of method of real-time synchronization video and audio recording
CN107943610A (en) A kind of method of lifting SSD comprehensive performances
CN102325171A (en) Data storage method in monitoring system and system
CN1945719B (en) Information recording apparatus, imaging device, information-recording controlling method
US20080056674A1 (en) Data recording and recovery method for an optical storage medium and computer-readable storage medium using the method
JP3392173B2 (en) Storage management method for IC memory card
US7490196B2 (en) Data backup using both tape and disk storage
CN111124740A (en) Data reading method and device, storage equipment and machine-readable storage medium

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