CN102682794B - Multi-code-stream mixed direct burning control method and system - Google Patents

Multi-code-stream mixed direct burning control method and system Download PDF

Info

Publication number
CN102682794B
CN102682794B CN201210150910.9A CN201210150910A CN102682794B CN 102682794 B CN102682794 B CN 102682794B CN 201210150910 A CN201210150910 A CN 201210150910A CN 102682794 B CN102682794 B CN 102682794B
Authority
CN
China
Prior art keywords
code stream
optical track
road
buffer memory
write
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
CN201210150910.9A
Other languages
Chinese (zh)
Other versions
CN102682794A (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 CN201210150910.9A priority Critical patent/CN102682794B/en
Publication of CN102682794A publication Critical patent/CN102682794A/en
Application granted granted Critical
Publication of CN102682794B publication Critical patent/CN102682794B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

The invention provides a multi-code-stream mixed direct burning control method and a multi-code-stream mixed direct burning control system. The method comprises the following steps of: A, when an optical disk is initialized, establishing a first writing light rail for a file list, establishing N light rails for N code streams to be subjected to mixed direct burning, and distributing a first storage space for the file list on the optical disk; B, judging whether a code stream of which the cached data amount is equal to a preset value in the N cached code streams, if so, executing the step C, otherwise, executing the step B; C, writing data cached by the code stream of which the cached data amount is equal to the preset value into the optical disk through the light rail, and updating the cached file list; and D, judging whether the N code streams to be subjected to mixed direct burning are written into the optical disk, if so, writing the cached file list into the first storage space of the optical disk through the first writing light rail, otherwise, executing the step B. By adopting the method and the system, a plurality of code streams are subjected to mixed direct burning, and the burning working efficiency is improved.

Description

A kind of many code streams mix straight control method and system of carving
Technical field
The present invention relates to data storage technology, particularly a kind of many code streams mix straight control method and system of carving.
Background technology
Fig. 1 is the method flow diagram of existing many code streams imprinting.Now, in conjunction with Fig. 1, the method for existing many code streams imprinting is described, specific as follows:
Step 10: initialization CD;
This step comprises: step 101, according to the fileinfo memory allocated space for the treatment of imprinting file; Step 102, the storage space distributing according to step 101 and treat the fileinfo spanned file list of imprinting file; Step 103, utilizes the listed files that optical track generates step 102 to write in CD.
At least include file size and file name of the fileinfo for the treatment of imprinting file in step 101; The storage space distributing according to fileinfo is to treat the start-stop position of imprinting file in CD, starts the address of storage and the address of finishing storage.
Step 11: the code stream imprinting of Jiang Yi road is to CD, another road code stream of unloading;
In this step, have multichannel code stream need to write CD in time, utilize optical track by multichannel code stream Zhong mono-road code stream imprinting to region corresponding to storage space comprising with listed files in CD, by other code stream unloading to storage medium in multichannel code stream.
Wherein, in this step, mention that Jiang mono-road code stream imprinting is to the respective regions in CD, be actually and write the respective regions in CD by carrying out buffer memory Yi road code stream in the equipment of imprinting.
Step 12: after the code stream imprinting of Dai Yi road completes, by another road code stream imprinting of unloading to CD;
In this step, the code stream imprinting of Yi road is to the storage space of listed files Zhong Weigai road Bit allocation, from storage medium, read unloading Yi road code stream, and according to the information in listed files, utilize the code stream imprinting of optical track Jiang Gai road to the region corresponding with the storage space of listed files in CD.
In the method for existing many code streams imprinting, storage space in listed files is pre-assigned in the time of CD initialization, and imprinting is in advance to CD, follow-up code stream imprinting is to the process of CD, cannot be again imprinting to the listed files in CD is modified or upgraded, the information that can only comprise it reads; Because the method for existing many code streams imprinting is to utilize an optical track to carry out the imprinting of CD, in the time that multichannel code stream needs imprinting to CD, can only utilize an optical track to carry out imprinting one by one to multichannel code stream, cannot realize multichannel code stream and mix straight quarter, cannot realize Jiang Yi road code stream and directly carve to the straight quarter of carrying out an other road code stream in the process of CD, the work efficiency of imprinting need further raising.
Summary of the invention
In view of this, the object of the present invention is to provide a kind of many code streams to mix straight control method of carving, the method can realize the mixing of multichannel code stream and directly carve, and improves the work efficiency of imprinting.
The object of the present invention is to provide a kind of many code streams to mix straight control system of carving, this system can realize the mixing of multichannel code stream and directly carve, and improves the work efficiency of imprinting.
For achieving the above object, technical scheme of the present invention is specifically achieved in that
Many code streams mix a straight control method of carving, and the method comprises:
When A, initialization CD, set up first for listed files and write optical track, for the code stream at N road straight quarter to be mixed is set up N bar optical track, on CD for listed files distributes the first storage space; Described N is greater than 1 integer;
B, judge in the N road code stream of buffer memory whether exist the data volume of buffer memory to reach preset value Yi road code stream, if so, execution step C, otherwise execution step B;
C, the data that the data volume of buffer memory reached to preset value Yi road code stream institute buffer memory write CD by an optical track for its foundation, upgrade the fileinfo corresponding to listed files Zhong Yugai road code stream of buffer memory;
D, judge whether the code stream at N road straight quarter to be mixed all writes CD, if so, the listed files of buffer memory is write in the first storage space that optical track writes CD by first, otherwise execution step B.
Preferably, described in steps A, setting up first for listed files writes before optical track and further comprises:
Read compact disc states information, and judge according to compact disc states information whether CD allows data writing, if so, CD burning speed is set, otherwise finish the initialization to CD.
In said method, set up first for listed files described in steps A and write optical track and comprise:
In the time of CD initialization, pre-create one and write optical track in order to first of writing in files list, preserve the first writing address and track size that writes optical track, be first to write optical track and distribute and write buffer zone in order to first of cache file list;
Described in steps A, setting up N bar optical track for the code stream at N road straight quarter to be mixed comprises:
In the time of CD initialization, pre-create N bar in order to write the optical track of code stream at N road straight quarter to be mixed, preserve the corresponding relation of the track size of the writing address of every optical track in N bar optical track, every optical track and every optical track and the code stream Zhong mono-road code stream at N road straight quarter to be mixed, for N road Bit allocation is in order to the individual sub-buffer zone of data cached N.
In said method, described step C comprises:
C1, the data volume of obtaining buffer memory from the listed files of buffer memory reach the initial memory address of preset value Yi road code stream, writing address and the track size of an optical track that Ji Gai road code stream is corresponding;
C2, need to switch optical track according to the writing address of an optical track corresponding to this road code stream from whether different the judging whether of writing address of current optical track, if, the writing address of the optical track that Yi Gai road code stream is corresponding is as initial memory address, the data of Jiang Gai road code stream buffer memory write in CD, otherwise, do not change the writing address of current optical track, the data that continue Jiang Gai road code stream buffer memory write CD;
The fileinfo corresponding to listed files Zhong Gai road code stream of C3, renewal buffer memory;
The size of data that described fileinfo at least comprises initial memory address, finishes memory address and stored.
In said method, whether the code stream that judges N road straight quarter to be mixed described in step D all writes CD comprises:
Judge according to whether receiving END instruction whether the code stream at N road straight quarter to be mixed all writes CD.
Preferably, before the listed files of buffer memory being write in the first storage space that optical track writes CD by first described in step D, further comprise:
The data of the M road code stream of buffer memory in the code stream at N road straight quarter to be mixed, write CD successively by the optical track corresponding with it when receiving END instruction, upgrade the listed files of buffer memory;
Described M is the integer that is less than or equal to N.
In said method, described when receiving END instruction the data of the M road code stream of buffer memory in the code stream at N road straight quarter to be mixed, write successively CD by the optical track corresponding with it, the listed files that upgrades buffer memory comprises:
D1, in the time receiving END instruction, read the data of the M road code stream that does not write CD completely of buffer memory in the code stream at straight quarter to be mixed of N road;
D2, according to the writing address of optical track corresponding to M road code stream, the data of each the road code stream institute buffer memory in the code stream of M road are write to CD by optical track corresponding to it;
Fileinfo corresponding to M road code stream in the listed files of D3, renewal buffer memory;
The size of data that described fileinfo at least comprises initial memory address, finishes memory address and stored.
Many code streams mix a straight control system of carving, and this system connects in order to the CD writer to CD data writing, and this system comprises:
Initialization module, connect CD writer and mix straight die sinking piece, after electrifying startup, on CD in CD writer, set up first for listed files and write optical track, for the code stream at N road straight quarter to be mixed is set up N bar optical track, on CD, for listed files distributes the first storage space, trigger and mix straight die sinking piece; Described N is greater than 1 integer;
Mix straight die sinking piece, connect CD writer and imprinting and finish module, according to the triggering of initialization module, while existing the data volume of buffer memory to reach the code stream of preset value in the N road code stream of judging buffer memory in the buffer zone of CD writer, the optical track of setting up according to initialization module, the data that the data volume of buffer memory reached to preset value Ge road code stream institute buffer memory write respectively CD by each the optical track for its foundation, upgrading imprinting finishes in the listed files of module buffer memory to reach with the data volume of buffer memory the fileinfo that described each road code stream of preset value is corresponding, all write after CD at the code stream of judging N road straight quarter to be mixed, trigger imprinting and finish module,
Imprinting finishes module, connects CD writer, in order to cache file list, according to mixing the triggering of straight die sinking piece, the listed files of buffer memory is write in the first storage space that optical track writes CD by first.
In said system, described initialization module comprises:
Condition judgement unit, reads the status information of the CD in CD writer, judges according to compact disc states information whether CD allows data writing, if so, the CD burning speed of CD writer is set, and triggers optical track and sets up unit, otherwise finish the initialization to CD;
Optical track is set up unit, according to the triggering of condition judgement unit, pre-create one and write optical track in order to first of writing in files list, the first writing address and track size that writes optical track write to the first storage unit, in CD writer, be first write optical track distribute write buffer zone in order to first of cache file list;
Described optical track is set up unit and is pre-created N bar in order to write the optical track of code stream at N road straight quarter to be mixed, the corresponding relation of the code stream Zhong mono-road code stream at the track size of the writing address of every optical track in N bar optical track, every optical track and every optical track and N road straight quarter to be mixed is write to the first storage unit, is that N road Bit allocation is in order to data cached N sub-buffer zone in CD writer;
Described optical track set up unit on CD for listed files distributes the first storage space, trigger mix straight die sinking piece;
The first storage unit, preserves the corresponding relation of the code stream Zhong mono-road code stream at the track size of the writing address that the first writing address, first that writes optical track writes every optical track in the track size, N bar optical track of optical track, every optical track and every optical track and N road straight quarter to be mixed.
In said system, the straight die sinking piece of described mixing comprises:
Data judging unit, connect CD writer and directly carve control module, according to the triggering of initialization module, read the data of the N road code stream of buffer memory in N the sub-buffer zone of CD writer, while existing the data volume of buffer memory to reach the code stream of preset value in N the sub-buffer zone of judging CD writer in the N road code stream of buffer memory, the information that the data volume of buffer memory is reached to the sub-buffer zone of preset value sends to control module at straight quarter;
The straight control module of carving, connect CD writer and initialization module, according to the information receiving, the optical track that utilizes initialization module to set up, the data that successively data volume of buffer memory reached to preset value Ge road code stream institute buffer memory write CD by each the optical track for its foundation, in updating file list, reach the fileinfo that described each road code stream of preset value is corresponding and export imprinting to the data volume of buffer memory and finish module, the END instruction receiving according to outside, the code stream of judging N road straight quarter to be mixed all writes after CD, triggers imprinting and finishes module;
The size of data that described fileinfo at least comprises initial memory address, finishes memory address and stored.
In said system, described imprinting finishes module and comprises:
Data cached imprinting unit, connection initialization module, mixes straight die sinking piece and CD writer, according to the triggering that mixes straight die sinking piece, in the time receiving END instruction, reads the data of the M road code stream that does not write CD completely of buffer memory in the code stream at straight quarter to be mixed of N road;
Described data cached imprinting unit, according to the optical track information in initialization module, utilizes the writing address of the optical track that M road code stream is corresponding, and the data of each the road code stream institute buffer memory in the code stream of M road are write to CD by optical track corresponding to it; Described M is the integer that is less than or equal to N;
List update unit, according to the triggering of data cached imprinting unit, writes the second storage unit by the listed files after upgrading;
The second storage unit, in order to cache file list.
As seen from the above technical solutions, the invention provides a kind of many code streams and mix straight control method of carving, in the method, when initialization CD, set up first for listed files and write optical track, for the code stream at N road straight quarter to be mixed is set up N bar optical track, on CD for listed files distributes the first storage space; Whether judge in the N road code stream of buffer memory exists the data volume of buffer memory to reach preset value Yi road code stream, if, the data volume of buffer memory is reached to preset value Yi road code stream and write CD by an optical track for its foundation, upgrade the fileinfo corresponding to listed files Zhong Yugai road code stream of buffer memory, in code stream, whether exist the data volume of buffer memory to reach preset value Yi road code stream otherwise continue to have judged N; Write after CD the data volume of buffer memory being reached to preset value Yi road code stream, whether the code stream that judges N road straight quarter to be mixed all writes CD, if, the listed files of buffer memory is write in the first storage space that optical track writes CD by first, otherwise judge in the N road code stream of buffer memory whether exist the data volume of buffer memory to reach preset value Yi road code stream.The present invention also provides a kind of many code streams to mix straight control system of carving.Adopt method and system of the present invention, can realize the mixing of multichannel code stream and directly carve, improve the work efficiency of imprinting.
Brief description of the drawings
Fig. 1 is the method flow diagram of existing many code streams imprinting.
Fig. 2 is that the many code streams of the present invention mix the straight control method process flow diagram of carving.
Fig. 3 is that the many code streams of the present invention mix the structural representation of straight control system of carving.
Fig. 4 is the structural representation of multi-track CD of the present invention.
Embodiment
For making object of the present invention, technical scheme and advantage clearer, referring to the accompanying drawing embodiment that develops simultaneously, the present invention is described in more detail.
The invention provides a kind of many code streams and mix straight control method and system of carving, in the time that the CD in CD writer carries out the imprinting of code stream, multichannel code stream is without the unloading through other storage mediums, but on the CD writing direct in CD writer, mix straight quarter in order to realize many code streams, in the time that CD is carried out to initialization, set up and write optical track in order to first of writing in files list, and N bar mixes the straight optical track of carving in order to realize N road, mix in straight process of carving carrying out multichannel code stream, carry out optical track switching and data write according to the data volume of the code stream of buffer memory in the buffer zone of CD writer, in other words, when in the buffer zone of CD writer, the data volume of a certain road code stream of buffer memory reaches preset value, current optical track is switched on the optical track that this road code stream is corresponding, the data of buffer memory Gai road code stream in buffer zone are write in CD, complete the straight quarter of a circuit-switched data, N road is mixed straight quarter and in N bar optical track, is switched exactly, the code stream that the data volume of buffer memory in buffer zone is reached to preset value writes CD by corresponding optical track, write all listed files of updating cache in real time often completing a secondary data, mix after straight quarter having completed N road, listed files after final updated is write to the fixed storage space of CD, make the information of the data that listed files writes on recording disk exactly.
For sake of clarity, now straight quarter being mixed in N of the present invention road describes, specific as follows: what the N road mixing that the present invention mentions directly referred to quarter is N road code stream can carry out without the unloading of third party's storage medium non-while data carving to the CD in CD writer, be that N road code stream is not the same time N road code stream to be carried out to imprinting in the time of imprinting, but Yi road code stream write in the process of CD and can carry out data carving to all the other N-1 road code streams; The present invention, in the time of data writing in CD, can adopt existing ISO9660 file system to store data; Code stream of the present invention can be the data stream of audio/video flow or other types.Wherein, N is greater than 1 integer.
Fig. 2 is that the many code streams of the present invention mix the straight control method process flow diagram of carving.Now, in conjunction with Fig. 2, the many code streams of the present invention are mixed to straight control method of carving and describe, specific as follows:
Step 20: set up many optical tracks when initialization CD and distribute the first storage space;
This step comprises: step 201, and in the time of initialization CD, set up first for listed files and write optical track, for the code stream at N road straight quarter to be mixed is set up N bar optical track; Step 202, on CD for listed files distributes the first storage space.
Preferably, before step 201, further comprise: read the compact disc states information in CD writer, judge according to compact disc states information whether CD allows data writing, if, CD burning speed be set and perform step 201, otherwise finishing the initialization to CD.
In step 201, setting up first for listed files writes optical track and comprises: pre-create one and write optical track in order to first of writing in files list, preserve the first writing address and track size that writes optical track, be first to write optical track and distribute and write buffer zone in order to first of cache file list in the buffer zone of CD writer.
In step 201, setting up N bar optical track for the code stream at N road straight quarter to be mixed comprises: pre-create N bar in order to write the optical track of code stream at N road straight quarter to be mixed, the corresponding relation of preserving the track size of the writing address of every optical track in N bar optical track, every optical track and every optical track and the code stream Zhong mono-road code stream at N road straight quarter to be mixed is that N road Bit allocation is in order to the individual sub-buffer zone of data cached N in the buffer zone of CD writer.Wherein, the code stream at N road straight quarter to be mixed and N bar optical track are relation one to one, and this corresponding relation available address information represents.
In step 202, on CD, for distributing the first storage space, listed files comprises: using one section of continuous address on CD in CD writer as the first storage space in order to writing in files list.
Step 21: judge whether to exist the data volume of buffer memory to reach preset value Yi road code stream, if so, execution step 22, otherwise execution step 21;
This step comprises: step 211, reads the data volume of buffer memory in the N comprising in the buffer zone of CD writer sub-buffer zone; Step 212, judges whether to exist the data volume of buffer memory to reach the sub-buffer zone of preset value, if so, and execution step 22, otherwise execution step 21.
The buffer zone of the CD writer that the present invention mentions does not belong to and utilizes storage medium to carry out third party's unloading the buffer memory of data, but data cached identical during with existing CD writer imprinting, be CD writer when being opposite to CD wherein and carrying out imprinting, next moment of buffer memory data to be written when current data is write to CD.
Step 22: the data volume that writes buffer memory reaches the data of the code stream institute buffer memory of preset value, updating file list;
This step comprises: step 221, and the data volume of obtaining buffer memory from the listed files of buffer memory reaches writing address and the track size of the initial memory address of preset value Yi road code stream, an optical track that Ji Gai road code stream is corresponding; Step 222, need to switch optical track according to the writing address of an optical track corresponding to this road code stream from whether different the judging whether of writing address of current optical track, if, the writing address of the optical track that Yi Gai road code stream is corresponding is as initial memory address, the data of Jiang Gai road code stream buffer memory write in CD, otherwise, not changing the writing address of current optical track, the data that continue Jiang Gai road code stream buffer memory write CD; Step 223, the fileinfo corresponding to listed files Zhong Gai road code stream of renewal buffer memory.
Wherein, when the data that reach preset value in the data volume of Jiang Yi road code stream institute buffer memory first write CD, the initial memory address of the writing address Wei Gai road code stream of the optical track of mentioning in step 221, when the data that the data volume of Jiang Gai road code stream institute buffer memory reaches preset value next time write CD, the initial memory address of the current data to be written of writing address Wei Gai road code stream of the optical track of mentioning in step 221, definite end memory address after the front data writing of Ji Gai road code stream.
The initial memory address of the code stream in step 221 can obtain according to the end memory address after a front data writing of the listed files Zhong Gai road code stream of buffer memory; The large I of track arranges according to etch-recording speed.
In step 222 by judging whether to switch optical track in step 221, if the writing address of the optical track that this road code stream is corresponding is identical with the writing address of current optical track, be expressed as same road code stream, without switching optical track, otherwise be expressed as the code stream of not going the same way, need to switch the writing address of optical track.In other words, the writing address of optical track, often all changing after data writing in the memory address of CD, is updated to the memory address of next data to be written.
The size of data that fileinfo in step 223 at least comprises initial memory address, finishes memory address and stored.
Step 23: whether the code stream that judges N road straight quarter to be mixed all writes CD, if so, execution step 24, otherwise execution step 21;
In this step, judge according to whether receiving END instruction whether the code stream at N road straight quarter to be mixed all writes CD.Particularly, if receive END instruction, determine that the code stream at N road straight quarter to be mixed all writes CD, execution step 24, if do not receive END instruction, determines that the code stream at N road straight quarter to be mixed does not write CD, execution step 21 completely.
Step 24: the listed files of buffer memory is write in the first storage space that optical track writes CD by first;
This step is specially: write the listed files that reads buffer memory buffer zone from first, utilize the first writing address that writes optical track, listed files is write in the first storage space.
In order to ensure the integrality of data of imprinting, between step 24 and step 23, also further comprise: step 24 ', the data of the M road code stream of buffer memory in the code stream at N road straight quarter to be mixed when receiving END instruction, write successively CD by the optical track corresponding with it, upgrade the listed files of buffer memory.M is the integer that is less than or equal to N.
Wherein, step 24 ' specifically comprise: step 241 ', in the time receiving END instruction, read the data of the M road code stream that does not write CD completely of buffer memory in the code stream at straight quarter to be mixed of N road; Step 242 ', according to the writing address of optical track corresponding to M road code stream, the data of each the road code stream institute buffer memory in the code stream of M road are write to CD by optical track corresponding to it; Step 243 ', upgrade the size of data that fileinfo at least comprises initial memory address, finishes memory address and stored described in the fileinfo that in the listed files of buffer memory, M road code stream is corresponding.
Step 241 ' be the data of preserving according in N sub-buffer zone, to determine in the time receiving END instruction, in N sub-buffer zone data cached M sub-buffer zone still, and then M M road code stream corresponding to sub-buffer zone is defined as needing the code stream of data writing.
Step 242 ' be the writing address of determining the optical track that M road code stream is corresponding according to buffer zone in M sub-buffer zone and listed files and the corresponding relation of code stream, the end memory address of the M road code stream of recording in listed files while receiving END instruction, utilize the writing address of optical track and finish memory address, successively the data of M road code stream buffer memory being write in the appropriate address of CD.
Step 243 ' be, after the data of the M road code stream that is through with are write, the end memory address of M road code stream to be write in the listed files of buffer memory, now, the listed files after renewal is only the final list that reflects exactly data actual storage address on CD.
Step 20 to step 24 has completed mixes the straight operation of carving to the N road code stream of a CD.
Fig. 3 is that the many code streams of the present invention mix the structural representation of straight control system of carving.Now, in conjunction with Fig. 3, the many code streams of the present invention are mixed to straight control system of carving and describe, specific as follows:
Many code streams of the present invention mix straight control system of carving and connect in order to the CD writer 33 to CD data writing, control CD writer 33 to CD data writing.The CD writer 33 that the present invention mentions comprises in order to the laser head to CD data writing and in order to the buffer zone of buffer memory data to be written; The switching optical track that the present invention mentions is exactly to control the laser head that comprises of CD writer 33 to start to carry out data from writing address corresponding to optical track and write.
Many code stream of the present invention mixes straight control system of carving and comprises: initialization module 30, mix straight die sinking piece 31 and imprinting finishes module 32.Wherein, initialization module 30, mix straight die sinking piece 31 and finish module 32 with imprinting and be connected respectively CD writer 33.
Initialization module 30 is after CD writer 33 and system electrifying startup, on CD in CD writer 33, set up first for listed files and write optical track, for the code stream at N road straight quarter to be mixed is set up N bar optical track, on CD, for listed files distributes the first storage space, trigger and mix straight die sinking piece 31.Wherein, N is greater than 1 integer.
Mix straight die sinking piece 31 according to the triggering of initialization module 30, while existing the data volume of buffer memory to reach the road code stream of preset value in the N road code stream of judging buffer memory in the buffer zone of CD writer 33, the optical track of setting up according to initialization module 30, the data volume of buffer memory is reached to preset value Ge road code stream and write CD by each the optical track for its foundation, upgrading imprinting finishes to reach with the data volume of buffer memory the fileinfo that preset value Ge road code stream is corresponding in the listed files of module 32 buffer memorys, all write after CD at the code stream of judging N road straight quarter to be mixed, trigger imprinting and finish module 32.
Imprinting finishes module 32 in order to cache file list, according to mixing the triggering of straight die sinking piece 31, the listed files of buffer memory is write in the first storage space that optical track writes CD by first.
Wherein, initialization module 30 comprises: condition judgement unit 301, optical track are set up unit 302 and the first storage unit 303.Wherein, condition judgement unit 301 and optical track are set up unit 302 and are connected CD writer 33, can read and write operation the CD in CD writer 33.
Condition judgement unit 301 reads the status information of the CD in CD writer 33, judge according to compact disc states information whether CD allows data writing, if so, the CD burning speed of CD writer 33 is set, trigger optical track and set up unit 302, otherwise finish the initialization to CD.Wherein, condition judgement unit 301 finish to the initialization of CD can be control CD writer 33 eject CD and/or output cannot initialized information.
Optical track is set up unit 302 according to the triggering of condition judgement unit 301, pre-create one and write optical track in order to first of writing in files list, the first writing address and track size that writes optical track write to the first storage unit, in CD writer 33, be first write optical track distribute write buffer zone in order to first of cache file list.Wherein, what optical track set up that unit 302 distributes first writes buffer zone and sets up a corresponding relation by writing address and the listed files of this buffer zone, and this corresponding relation can represent by address information.
Optical track is set up unit 302 and is pre-created N bar in order to write the optical track of code stream at N road straight quarter to be mixed, the corresponding relation of the code stream Zhong mono-road code stream at the track size of the writing address of every optical track in N bar optical track, every optical track and every optical track and N road straight quarter to be mixed is write to the first storage unit 303, is that N road Bit allocation is in order to data cached N sub-buffer zone in CD writer 33.Wherein, optical track is set up N the sub-buffer zone of distributing unit 302 and exactly corresponding relation is set up in N sub-buffer zone and N road code stream, to the data of arbitrary road code stream in the code stream of N road are write in corresponding sub-buffer zone, and can determine the code stream that it is corresponding according to sub-buffer zone, this corresponding relation can represent by address.
Optical track set up unit 303 on CD for listed files distributes the first storage space, trigger mix straight die sinking piece 31.Wherein, optical track is set up unit 303 and on CD, is reserved one section of continuation address using the first storage space as storage file list.
The first storage unit 303 is preserved the corresponding relation of the code stream Zhong mono-road code stream at the track size of the writing address that the first writing address, first that writes optical track writes every optical track in the track size, N bar optical track of optical track, every optical track and every optical track and N road straight quarter to be mixed.In addition, in the first storage unit 303, also can preserve the first corresponding relation that writes corresponding relation, N road code stream and N the sub-buffer zone that buffer zone and first writes optical track.
Wherein, mixing straight die sinking piece 31 comprises: data judging unit 311 and the straight control module 312 of carving.Wherein, data judging unit 311 is connected CD writer 33 with the straight control module 312 of carving.
Data judging unit 31 is according to the triggering of initialization module 30, read the data of the N road code stream of buffer memory in N the sub-buffer zone of CD writer 33, while existing the data volume of buffer memory to reach the code stream of preset value in N the sub-buffer zone of judging CD writer in the N road code stream of buffer memory, in the time that judgement exists the data volume of buffer memory to reach the sub-buffer zone of preset value, the information of this sub-buffer zone is sent to control module 312 at straight quarter.
The straight control module 312 of carving is according to the information of the sub-buffer zone receiving, from initialization module 30, read the writing address of the optical track corresponding with sub-buffer zone, utilize the writing address of the optical track that each road code stream is corresponding, the data that successively data volume of buffer memory reached to preset value Ge road code stream institute buffer memory write CD, in updating file list, reach the fileinfo that preset value Ge road code stream is corresponding and export imprinting to the data volume of buffer memory and finish module 32, the END instruction receiving according to outside, the code stream of judging N road straight quarter to be mixed all writes after CD, trigger imprinting and finish module 32.Wherein, fileinfo at least comprises the initial memory address of this road code stream, the size of data that finishes memory address and stored.
Wherein, imprinting finishes module 32 and comprises: data cached imprinting unit 321, list update unit 322 and the second storage unit 323.Wherein, data cached imprinting unit 321 is connected CD writer 33 with list update unit 322.
The information of the M road code stream that does not write CD completely of buffer memory in the code stream at straight quarter to be mixed of N road, according to the triggering that mixes straight die sinking piece 31, in the time receiving END instruction, is determined in data cached imprinting unit 321.Particularly, data cached imprinting unit 321 is according to END instruction, determines in N sub-buffer zone and exists M sub-buffer zone still to have the data of buffer memory, using the data in this M sub-buffer zone as the data of M road code stream that do not write CD completely.
Data cached imprinting unit 321 is according to the information of M road code stream corresponding to the writing address of the optical track in initialization module 30 and M sub-buffer zone, utilize the writing address of the optical track that M road code stream is corresponding, the data of each the road code stream institute buffer memory in the code stream of M road are write to CD by optical track corresponding to it, updating file list also writes in the second storage unit 323, triggers list update unit 322.Wherein, M is the integer that is less than or equal to N.
List update unit 322 is according to the triggering of data cached imprinting unit 321, utilizes in initialization module 30 the first writing address that writes optical track, the listed files after upgrading write to the first storage space of CD in the second storage unit 323.
The second storage unit 323 is in order to cache file list.
Fig. 4 is the structural representation of multi-track CD of the present invention.Three optical tracks on multi-track CD shown in Fig. 4, are pre-created, wherein optical track is first to write optical track, two other optical track is Article 1 optical track and Article 2 optical track, first writes optical track can be in order to listed files is write in CD, and Article 1 optical track and Article 2 optical track can mix straight 2 optical tracks carving in order to realize.System of the present invention is carried out data to the CD shown in Fig. 4 and is write, and realizes dual code stream and mixes straight quarter.
In above-mentioned preferred embodiment of the present invention, in the time of initialization CD, set up many in order to mix the optical track at straight quarter, in the process to CD data writing, utilize the laser head of the writing address control CD writer of optical track to carry out the switching that many code streams are directly carved, and in the process of data writing, writing of multichannel code stream do not interfere with each other, not only realize multichannel code stream and mix straight quarter, and the work efficiency of imprinting can be provided; The fileinfo comprising in the listed files that the present invention generates is the relevant information of the actual data that write on CD, while being different from existing initialization and the fixing listed files of the content of distribution, the listed files that the present invention generates can be saved storage space, and is convenient to accurately searching data.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any amendment of making, be equal to replacement, improvement etc., within all should being included in the scope of protection of the invention.

Claims (11)

1. code stream more than mixes a straight control method of carving, and it is characterized in that, the method comprises:
When A, initialization CD, set up first for listed files and write optical track, for the code stream at N road straight quarter to be mixed is set up N bar optical track, on CD for listed files distributes the first storage space; Described N is greater than 1 integer;
B, judge in the N road code stream of buffer memory whether exist the data volume of buffer memory to reach preset value Yi road code stream, if so, execution step C, otherwise execution step B;
C, the data that the data volume of buffer memory reached to preset value Yi road code stream institute buffer memory write CD by an optical track for its foundation, upgrade the fileinfo corresponding to listed files Zhong Yugai road code stream of buffer memory;
D, judge whether the code stream at N road straight quarter to be mixed all writes CD, if so, the listed files of buffer memory is write in the first storage space that optical track writes CD by first, otherwise execution step B.
2. method according to claim 1, is characterized in that, sets up first described in steps A further comprise before writing optical track for listed files:
Read compact disc states information, and judge according to compact disc states information whether CD allows data writing, if so, CD burning speed is set, otherwise finish the initialization to CD.
3. method according to claim 1 and 2, is characterized in that, sets up first described in steps A write optical track and comprise for listed files:
In the time of CD initialization, pre-create one and write optical track in order to first of writing in files list, preserve the first writing address and track size that writes optical track, be first to write optical track and distribute and write buffer zone in order to first of cache file list;
Described in steps A, setting up N bar optical track for the code stream at N road straight quarter to be mixed comprises:
In the time of CD initialization, pre-create N bar in order to write the optical track of code stream at N road straight quarter to be mixed, preserve the corresponding relation of the track size of the writing address of every optical track in N bar optical track, every optical track and every optical track and the code stream Zhong mono-road code stream at N road straight quarter to be mixed, for N road Bit allocation is in order to the individual sub-buffer zone of data cached N.
4. method according to claim 1 and 2, is characterized in that, described step C comprises:
C1, the data volume of obtaining buffer memory from the listed files of buffer memory reach the initial memory address of preset value Yi road code stream, writing address and the track size of an optical track that Ji Gai road code stream is corresponding;
C2, need to switch optical track according to the writing address of an optical track corresponding to this road code stream from whether different the judging whether of writing address of current optical track, if, the writing address of the optical track that Yi Gai road code stream is corresponding is as initial memory address, the data of Jiang Gai road code stream buffer memory write in CD, otherwise, do not change the writing address of current optical track, the data that continue Jiang Gai road code stream buffer memory write CD;
The fileinfo corresponding to listed files Zhong Gai road code stream of C3, renewal buffer memory;
The size of data that described fileinfo at least comprises initial memory address, finishes memory address and stored.
5. method according to claim 1 and 2, is characterized in that, whether the code stream that judges N road straight quarter to be mixed described in step D all writes CD comprises:
Judge according to whether receiving END instruction whether the code stream at N road straight quarter to be mixed all writes CD.
6. method according to claim 5, is characterized in that, further comprises before the listed files of buffer memory being write in the first storage space that optical track writes CD by first described in step D:
The data of the M road code stream of buffer memory in the code stream at N road straight quarter to be mixed, write CD successively by the optical track corresponding with it when receiving END instruction, upgrade the listed files of buffer memory;
Described M is the integer that is less than or equal to N.
7. method according to claim 6, is characterized in that, described when receiving END instruction the data of the M road code stream of buffer memory in the code stream at N road straight quarter to be mixed, write successively CD by the optical track corresponding with it, the listed files that upgrades buffer memory comprises:
D1, in the time receiving END instruction, read the data of the M road code stream that does not write CD completely of buffer memory in the code stream at straight quarter to be mixed of N road;
D2, according to the writing address of optical track corresponding to M road code stream, the data of each the road code stream institute buffer memory in the code stream of M road are write to CD by optical track corresponding to it;
Fileinfo corresponding to M road code stream in the listed files of D3, renewal buffer memory;
The size of data that described fileinfo at least comprises initial memory address, finishes memory address and stored.
8. code stream more than mixes a straight control system of carving, and this system connects in order to the CD writer to CD data writing, it is characterized in that, this system comprises:
Initialization module, connect CD writer and mix straight die sinking piece, after electrifying startup, on CD in CD writer, set up first for listed files and write optical track, for the code stream at N road straight quarter to be mixed is set up N bar optical track, on CD, for listed files distributes the first storage space, trigger and mix straight die sinking piece; Described N is greater than 1 integer;
Mix straight die sinking piece, connect CD writer and imprinting and finish module, according to the triggering of initialization module, while existing the data volume of buffer memory to reach the code stream of preset value in the N road code stream of judging buffer memory in the buffer zone of CD writer, the optical track of setting up according to initialization module, the data that the data volume of buffer memory reached to preset value Ge road code stream institute buffer memory write respectively CD by each the optical track for its foundation, upgrading imprinting finishes in the listed files of module buffer memory to reach with the data volume of buffer memory the fileinfo that described each road code stream of preset value is corresponding, all write after CD at the code stream of judging N road straight quarter to be mixed, trigger imprinting and finish module,
Imprinting finishes module, connects CD writer, in order to cache file list, according to mixing the triggering of straight die sinking piece, the listed files of buffer memory is write in the first storage space that optical track writes CD by first.
9. system according to claim 8, is characterized in that, described initialization module comprises:
Condition judgement unit, reads the status information of the CD in CD writer, judges according to compact disc states information whether CD allows data writing, if so, the CD burning speed of CD writer is set, and triggers optical track and sets up unit, otherwise finish the initialization to CD;
Optical track is set up unit, according to the triggering of condition judgement unit, pre-create one and write optical track in order to first of writing in files list, the first writing address and track size that writes optical track write to the first storage unit, in CD writer, be first write optical track distribute write buffer zone in order to first of cache file list;
Described optical track is set up unit and is pre-created N bar in order to write the optical track of code stream at N road straight quarter to be mixed, the corresponding relation of the code stream Zhong mono-road code stream at the track size of the writing address of every optical track in N bar optical track, every optical track and every optical track and N road straight quarter to be mixed is write to the first storage unit, is that N road Bit allocation is in order to data cached N sub-buffer zone in CD writer;
Described optical track set up unit on CD for listed files distributes the first storage space, trigger mix straight die sinking piece;
The first storage unit, preserves the corresponding relation of the code stream Zhong mono-road code stream at the track size of the writing address that the first writing address, first that writes optical track writes every optical track in the track size, N bar optical track of optical track, every optical track and every optical track and N road straight quarter to be mixed.
10. system according to claim 9, is characterized in that, the straight die sinking piece of described mixing comprises:
Data judging unit, connect CD writer and directly carve control module, according to the triggering of initialization module, read the data of the N road code stream of buffer memory in N the sub-buffer zone of CD writer, while existing the data volume of buffer memory to reach the code stream of preset value in N the sub-buffer zone of judging CD writer in the N road code stream of buffer memory, the information that the data volume of buffer memory is reached to the sub-buffer zone of preset value sends to control module at straight quarter;
The straight control module of carving, connect CD writer and initialization module, according to the information receiving, the optical track that utilizes initialization module to set up, the data that successively data volume of buffer memory reached to preset value Ge road code stream institute buffer memory write CD by each the optical track for its foundation, in updating file list, reach the fileinfo that described each road code stream of preset value is corresponding and export imprinting to the data volume of buffer memory and finish module, the END instruction receiving according to outside, the code stream of judging N road straight quarter to be mixed all writes after CD, triggers imprinting and finishes module;
The size of data that described fileinfo at least comprises initial memory address, finishes memory address and stored.
11. systems according to claim 8, is characterized in that, described imprinting finishes module and comprises:
Data cached imprinting unit, connection initialization module, mixes straight die sinking piece and CD writer, according to the triggering that mixes straight die sinking piece, in the time receiving END instruction, reads the data of the M road code stream that does not write CD completely of buffer memory in the code stream at straight quarter to be mixed of N road;
Described data cached imprinting unit, according to the optical track information in initialization module, utilizes the writing address of the optical track that M road code stream is corresponding, and the data of each the road code stream institute buffer memory in the code stream of M road are write to CD by optical track corresponding to it; Described M is the integer that is less than or equal to N;
List update unit, according to the triggering of data cached imprinting unit, writes the second storage unit by the listed files after upgrading;
The second storage unit, in order to cache file list.
CN201210150910.9A 2012-05-15 2012-05-15 Multi-code-stream mixed direct burning control method and system Active CN102682794B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210150910.9A CN102682794B (en) 2012-05-15 2012-05-15 Multi-code-stream mixed direct burning control method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210150910.9A CN102682794B (en) 2012-05-15 2012-05-15 Multi-code-stream mixed direct burning control method and system

Publications (2)

Publication Number Publication Date
CN102682794A CN102682794A (en) 2012-09-19
CN102682794B true CN102682794B (en) 2014-09-24

Family

ID=46814598

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210150910.9A Active CN102682794B (en) 2012-05-15 2012-05-15 Multi-code-stream mixed direct burning control method and system

Country Status (1)

Country Link
CN (1) CN102682794B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104240732B (en) * 2013-06-07 2017-10-03 杭州海康威视数字技术股份有限公司 CD wiring method and device
CN104967807B (en) * 2014-12-30 2017-03-22 浙江大华技术股份有限公司 Caching method and apparatus
CN112530467B (en) * 2019-10-08 2024-03-12 北京中科开迪软件有限公司 Method and system for additionally burning optical disk storage

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1175770A (en) * 1996-07-16 1998-03-11 三星电子株式会社 Real-time track seek apparatus and method therefor
CN102243615A (en) * 2011-03-21 2011-11-16 广东志成冠军集团有限公司 Memory buffer management mechanism supporting audio/video frame storage

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1175770A (en) * 1996-07-16 1998-03-11 三星电子株式会社 Real-time track seek apparatus and method therefor
CN102243615A (en) * 2011-03-21 2011-11-16 广东志成冠军集团有限公司 Memory buffer management mechanism supporting audio/video frame storage

Also Published As

Publication number Publication date
CN102682794A (en) 2012-09-19

Similar Documents

Publication Publication Date Title
CN103677884B (en) Flash subarea list file is generated and its data updating method, device
CN102279712A (en) Storage control method, system and device applied to network storage system
CN101101570A (en) Control method based on multi-passage flash memory apparatus logic strip
CN106055431A (en) Data backup and recovery method and data backup and recovery device based on snapshot online rollback
CN100433195C (en) Flash memory medium data writing method
CN102682794B (en) Multi-code-stream mixed direct burning control method and system
CN101627373A (en) Memory device performance enhancement through pre-erase mechanism
CN103294615A (en) Method for storing user information of set top box
CN101727293A (en) Method, device and system for setting solid state disk (SSD) memory
CN103064792A (en) Method and device for writing data
CN103984910A (en) System partitioning hiding method
CN103914474A (en) Data migration method and data migration system
CN102135943B (en) Storing and accessing method of flash memory data and device thereof
CN103838521A (en) Data processing method and data processing device
CN101999117A (en) Memory drive that can be operated like optical disk drive and method for virtualizing memory drive as optical disk drive
CN112783449A (en) Data migration method and device
CN103858163A (en) Tape drive data alteration detection method and file system
SG126863A1 (en) Recording apparatus
CN102981970A (en) Flash memory management method and system
CN102314321A (en) Storage system and method and device for accessing data by using same
CN104063284A (en) Method and device operating application program
US7817513B2 (en) Record and reproduction apparatus for reading or writing data during reproducing of stream data
WO2008146475A1 (en) Recording apparatus
WO2008102471A1 (en) Reproducing apparatus, reproducing method, program, and recording medium
CN105404591A (en) Processor system and storer control method for same

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