CN101409098B - Method for implementing real time CD-RW of digital HD video recorder - Google Patents
Method for implementing real time CD-RW of digital HD video recorder Download PDFInfo
- Publication number
- CN101409098B CN101409098B CN200810162109XA CN200810162109A CN101409098B CN 101409098 B CN101409098 B CN 101409098B CN 200810162109X A CN200810162109X A CN 200810162109XA CN 200810162109 A CN200810162109 A CN 200810162109A CN 101409098 B CN101409098 B CN 101409098B
- Authority
- CN
- China
- Prior art keywords
- video
- buffer
- file
- time
- road
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Landscapes
- Signal Processing For Digital Recording And Reproducing (AREA)
Abstract
The invention relates to a method for realizing real-time CD recording in a digital video recorder, comprising the steps of: (1) the establishing process of a data buffer; (2) the process of writing video data files in the buffer: 21) searching for the initialized buffer files in subsection when a certain branch in a path Q needs to start real-time recording, initializing next buffer file and covering the first buffer file when all the buffer files are used up; 22) writing the video and audio data stream compressed in the branch in the data file found in the step 21) according to file serial number; (23) executing the process of reading the video data in CD when the video time reaches T minute and simultaneously, switching from the path Q to the step 21) for continuing the read-in process of buffer data files; and (3) the process of writing video data files in CD. The invention has the beneficial effects of ensuring the fast availability of recorded CD at the end of the whole process as the data is recorded to the CD in the video process.
Description
Technical field
The present invention relates to the carving method of digital hard disc video recorder, particularly a kind of method that in digital hard disc video recorder, realizes real-time CD recording.
Background technology
At some special occasions, such as hearing occasion in procuratorate, law court and public security organ etc., digital hard disc video recorder need carry out real-time CD burning to litigant and hearing scene, so that picture archive and reproduction Interrogation Procedure in the built-in hard disk video recording.Traditional video file CDRW method is such: earlier all video files are saved on the hard disk, finish to backup in the CD more afterwards etc. whole Interrogation Procedure, because the video file data amount is big, all video files of disposable imprinting will expend the quite a long time.
Summary of the invention
Purpose of the present invention is just in order to overcome long deficiency of traditional video file CD burning time, and a kind of method that in digital hard disc video recorder, realizes real-time CD recording that provides.
The technical scheme that realizes the object of the invention is: this method that in digital hard disc video recorder, realizes real-time CD recording, and step is as follows:
(1), the process of setting up of data buffer: digital hard disc video recorder has the Q road to look audio compression data needs record, and Q is any one positive integer in 1,2,4,8,12,16;
11), formatting hard disk and creating the division: format hard disk that digital hard disc video recorder is joined according to the hard disc physical size, is divided into several subregions to each hard disk;
12) set up real-time imprinting buffer zone: each fdisk is made up of common video file and 2 parts of buffering video file, and common video file is used for normal video recording, and the record buffering during buffering video file conduct imprinting in real time uses; Each subregion comprises Q buffer culture, looks audio compression data in order to write down the Q road simultaneously;
(2), the video recording data file writes the buffer zone process:
21) a certain road need begin real-time imprinting in the Q road, searches initialized buffer culture in the subregion, and the next buffer culture of initialization, when using all buffer cultures, covers first buffer culture;
22) video/audio data flow after the compression of this road is write 21 according to the file sequence number) in the data file that finds;
23) when video time arrives T minute, finish this video file, carry out the video recording data file and write the CD process, the Q road forwards step 21 to simultaneously) continuation buffered data file ablation process;
24) arbitrary road video recording data file writes buffer zone all according to step 21 in the Q road), 22), 23) carry out, move in circles;
(3), the video recording data file writes the CD process:
31) end of pending buffer file;
32) find the information of the buffer culture of current end, find buffer culture to carry out CD burning according to this information;
33) forward 31 to after imprinting is finished) continue to wait for;
34) arbitrary road video recording data file writes CD all according to step 31 in the Q road), 32), 33) carry out, move in circles.
The size of each buffer culture is the M byte-sized in the present invention, with the video/audio that to guarantee to hold T minute bit rate be N bps.
The CD burning time just writes the data of recording a video in the CD in the process of video recording much smaller than video time T in the present invention, only needs very short a period of time of wait can take CD away and finish the back in whole process.
The effect that the present invention is useful is: according to above operation steps since in the process of video recording just data recording in CD, so can guarantee can take soon when whole process finishes the good CD of imprinting.
Description of drawings
Fig. 1 is a workflow diagram of the present invention;
Fig. 2 is the composition synoptic diagram of fdisk of the present invention;
Embodiment
The present invention is described in further detail below in conjunction with drawings and Examples, but content of the present invention is not limited thereto.
This method that realizes real-time CD recording in digital hard disc video recorder of the present invention comprises that mainly the process of setting up of data buffer, the data file of recording a video write the buffer zone process and the video recording data file writes the CD process.Digital hard disc video recorder has the Q road to look audio compression data needs record, and Q is any one positive integer in 1,2,4,8,12,16;
One, the data buffer to set up process as follows:
1, formatting hard disk and creating the division: at first hard disk is done format, the format back is according to the disk size subregion, minimumly is divided into 1 subregion, is divided into 4 subregions at most.For example: the hard disk of 1 120GB, can be divided into 2 fdisks as required, each partition size is that 60GB is (behind the formatting hard disk, actual available partition size is generally about 95% of original size, be about 57GB, according to the corresponding adjustment of actual available size, together following during subregion), also can be divided into 3 subregions as required, each partition size is 40GB.
Being pre-created 4 index files in each subregion is respectively simple index file 1, simple index file 2, buffer index file 1 and buffering index file 2, then create the common video file of N fixing M byte (such as the 128M byte) size and form common video file district, in remaining space, create 4 buffering video files (as shown in Figure 2) at last.
2, set up real-time imprinting buffer zone: each fdisk is made up of common video file and 2 parts of buffering video file, and common video file is used for normal video recording, and the record buffering during buffering video file conduct imprinting in real time uses; Each subregion comprises Q buffer culture, looks audio compression data in order to write down the Q road simultaneously;
Calculated the size of data buffer, suppose that current digital hard disc video recorder port number is 4 the tunnel, a file that is 2M bps by maximum 30 minutes code checks calculates, that is: 30 * 60 * 2 ÷ 8=450MB, be worth the buffer culture of each channel allocation 512M according to this, 4 total buffer culture sizes of passage are 2GB so.If DISK to Image is divided into 4 subregions, buffer culture will take the space of 8GB size so.
If be connected to the polylith hard disk on the digital hard disc video recorder, the usefulness that each hard disk all cushions during in order to following real-time imprinting by above-mentioned 2 step initialization.
Two, to write the buffer zone process as follows for the video recording data file: suppose that digital hard disc video recorder has 4 the tunnel to look the real-time imprinting of audio compression data needs.
1, when the real-time imprinting of system start-up, can remove to search initialized buffer culture earlier, then the sequence number of data file (title), video recording start time, data file state etc. are write in the buffer culture index; Simultaneously the initialization next one writes in the buffered data file with the buffer culture that is used and with the video/audio data flow after this road compression, when using all buffer cultures, covers first buffer culture;
2, when video time arrives the time that sets, such as 30 minutes, finish this file and switch to next initialized buffered data file to continue video recording, carry out the video recording data file simultaneously and write the CD process.
Three, to write the CD process as follows for the video recording data file:
At first judge the current message whether the buffered data end of file is arranged, if otherwise continue to wait for; If then search current all finished the buffer culture of passage, open the imprinting program then and carry out imprinting, judge whether to finish real-time imprinting process after imprinting finishes, quit a program if then stop imprinting; If otherwise continue the message that the new buffer culture of wait finishes.
By instantiation as can be known, when second buffered data file writes hard disk, first buffered data file is written in the CD, whole real-time imprinting process video recording and imprinting are carried out synchronously, have shortened the stand-by period of backup video file greatly.
Certainly; the present invention can also have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence; those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection domain of the appended claim of the present invention.
Claims (2)
1. method that in digital hard disc video recorder, realizes real-time CD recording, it is characterized in that: step is as follows:
(1), the process of setting up of data buffer: digital hard disc video recorder has the Q road to look audio compression data needs record, and Q is any one positive integer in 1,2,4,8,12,16;
11), formatting hard disk and creating the division: format hard disk that digital hard disc video recorder is joined according to the hard disc physical size, is divided into several subregions to each hard disk;
12) set up real-time imprinting buffer zone: each fdisk is made up of common video file and 2 parts of buffering video file, and common video file is used for normal video recording, and the record buffering during buffering video file conduct imprinting in real time uses; Each subregion comprises Q buffer culture, looks audio compression data in order to write down the Q road simultaneously;
(2), the video recording data file writes the buffer zone process:
21) a certain road need begin real-time imprinting in the Q road, searches initialized buffer culture in the subregion, and the next buffer culture of initialization, when using all buffer cultures, covers first buffer culture;
22) video/audio data flow after the compression of this road is write 21 according to the file sequence number) in the buffered data file that finds;
23) when video time arrives T minute, finish this video file, carry out the video recording data file and write the CD process, the Q road forwards step 21 to simultaneously) continuation buffered data file ablation process;
24) arbitrary road video recording data file writes buffer zone all according to step 21 in the Q road), 22), 23) carry out, move in circles;
(3), the video recording data file writes the CD process:
31) end of pending buffer file;
32) find the information of the buffer culture of current end, find buffer culture to carry out CD burning according to this information;
33) forward 31 to after imprinting is finished) continue to wait for;
34) arbitrary road video recording data file writes CD all according to step 31 in the Q road), 32), 33) carry out, move in circles.
2. the method that in digital hard disc video recorder, realizes real-time CD recording according to claim 1, it is characterized in that: the CD burning time is much smaller than video time T, in the process of video recording, just the video recording data are write in the CD, can take out CD and after whole process finishes, wait for a period of time.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200810162109XA CN101409098B (en) | 2008-11-12 | 2008-11-12 | Method for implementing real time CD-RW of digital HD video recorder |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200810162109XA CN101409098B (en) | 2008-11-12 | 2008-11-12 | Method for implementing real time CD-RW of digital HD video recorder |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101409098A CN101409098A (en) | 2009-04-15 |
CN101409098B true CN101409098B (en) | 2011-11-09 |
Family
ID=40572066
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN200810162109XA Active CN101409098B (en) | 2008-11-12 | 2008-11-12 | Method for implementing real time CD-RW of digital HD video recorder |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101409098B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102930875B (en) * | 2011-08-10 | 2016-04-27 | 上海康纬斯电子技术有限公司 | A kind of method of real-time synchronization video and audio recording |
CN106652152A (en) * | 2016-10-17 | 2017-05-10 | 深圳市穗彩科技开发有限公司 | Data storage method and device for electronic lottery drawing system |
CN112346648B (en) * | 2019-08-06 | 2023-05-02 | 杭州海康威视数字技术股份有限公司 | Hard disk partitioning method and device and electronic equipment |
CN112053707B (en) * | 2020-09-10 | 2021-12-17 | 浙江大华技术股份有限公司 | Recording method and device for multimedia equipment, storage medium and electronic device |
-
2008
- 2008-11-12 CN CN200810162109XA patent/CN101409098B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN101409098A (en) | 2009-04-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100669616B1 (en) | Dvd file system for recording/reproducing of hd stream | |
CN1643605B (en) | Data recording method, data recording device, data recording medium, data reproduction method, and data reproduction device | |
CN102750962B (en) | A kind of back method of video file and device | |
TW563103B (en) | Recording/reproducing apparatus and method of voice/image information | |
TW200602945A (en) | Reproducer, program, and reproducing method | |
JP2003219363A5 (en) | ||
CN101409098B (en) | Method for implementing real time CD-RW of digital HD video recorder | |
RU2010149063A (en) | DEVICE FOR PROCESSING DATA, METHOD OF PROCESSING DATA, PLAYBACK DEVICE, METHOD OF PLAYBACK AND PROGRAM | |
WO2007129524A1 (en) | Information processing device, information processing method, and computer program | |
CN103731625A (en) | Method for simultaneously and synchronously playing multiple paths of audios and videos | |
CN101296323A (en) | Lossless time-delay broadcasting system | |
CN1957609B (en) | Data processor | |
CN101198073B (en) | Recording method | |
JP5129790B2 (en) | Data control device, data backup device, and program | |
CN100592414C (en) | Method and apparatus for managing information for editing recorded data | |
JP4979533B2 (en) | Information processing apparatus and control method thereof | |
JP2001291374A (en) | Data recording and reproducing device and method | |
EP2234392B1 (en) | Material processing apparatus and material processing method | |
WO2010109738A1 (en) | Recording/reproducing method and recording/reproducing device | |
WO2005074273A1 (en) | Data recording method, data reproduction device, and recording medium | |
WO2010007727A1 (en) | Video recording device, video reproduction device, and method thereof | |
CN101673571B (en) | DVD optical disc data compression method and system | |
JP2008199077A (en) | Video recording/reproducing method and device | |
JP4255796B2 (en) | DATA RECORDING DEVICE, DATA RECORDING METHOD, DATA RECORDING PROGRAM, AND RECORDING MEDIUM CONTAINING THE PROGRAM | |
CN101198071A (en) | Recording 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 |