CN102682794A - 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
CN102682794A
CN102682794A CN2012101509109A CN201210150910A CN102682794A CN 102682794 A CN102682794 A CN 102682794A CN 2012101509109 A CN2012101509109 A CN 2012101509109A CN 201210150910 A CN201210150910 A CN 201210150910A CN 102682794 A CN102682794 A CN 102682794A
Authority
CN
China
Prior art keywords
code stream
optical track
road
write
data
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
CN2012101509109A
Other languages
Chinese (zh)
Other versions
CN102682794B (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

Images

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.Combine Fig. 1 at present, 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 of treating the imprinting file; Step 102, storage space that distributes according to step 101 and the fileinfo spanned file tabulation of treating the imprinting file; Step 103 utilizes optical track that the listed files that step 102 generates is write in the CD.
The fileinfo of treating the imprinting file in the step 101 is include file size and file name at least; The storage space that distributes according to fileinfo is to treat the start-stop position of imprinting file in CD, promptly begins address stored and finishes address stored.
Step 11: with one road code stream imprinting to CD, another road code stream of unloading;
In this step, when having the multichannel code stream need write in the CD, utilize optical track, in other code stream unloading to a storage medium in the multichannel code stream with the corresponding zone of storage space that comprises with listed files in road code stream imprinting to the CD in the multichannel code stream.
Wherein, mention in this step with the respective regions in one road code stream imprinting to the CD, the road code stream that is actually buffer memory in the equipment of carrying out imprinting writes the respective regions in the CD.
Step 12: after treating that one road code stream imprinting is accomplished, with another road code stream imprinting of unloading to CD;
In this step; Be the storage space of this road code stream distribution in one road code stream imprinting to listed files after; From storage medium, read one road code stream of unloading, and, utilize optical track the zone corresponding in this road code stream imprinting to CD with the storage space of listed files according to the information in the listed files.
In the method for existing many code streams imprinting; Storage space in the listed files is pre-assigned when the CD initialization; And imprinting in advance is to CD; Follow-up code stream imprinting can't be again made amendment or is upgraded the listed files in imprinting to the CD to the process of CD, can only read its information that comprises; Because the method for existing many code streams imprinting is to utilize an optical track to carry out the imprinting of CD; When the multichannel code stream needs imprinting to CD; Can only utilize an optical track that the multichannel code stream is carried out imprinting one by one; Can't realize that the multichannel code stream mixes straight the quarter, promptly can't realize one road code stream is directly carved the straight quarter of carrying out other one road code stream to the process of CD that the work efficiency of imprinting is still waiting further raising.
Summary of the invention
In view of this, the object of the present invention is to provide a kind of many code stream to mix straight control method of carving, this method can realize that the mixing of multichannel code stream directly carves, and improves the work efficiency of imprinting.
The object of the present invention is to provide a kind of many code stream to mix straight control system of carving, this system can realize that the mixing of multichannel code stream directly carves, and improves the work efficiency of imprinting.
For achieving the above object, technical scheme of the present invention specifically is achieved in that
A kind of many code streams mix straight control method of carving, and this method comprises:
When A, initialization CD, set up first for listed files and write optical track, set up N bar optical track, on CD, distribute first storage space for listed files for the code stream at N road straight quarter to be mixed; Said N is the integer greater than 1;
B, judge the road code stream that whether exists the data in buffer amount to reach preset value in the N road code stream of buffer memory, if, execution in step C, otherwise execution in step B;
C, the data in buffer amount reached preset value road code stream institute data in buffer through for an optical track of its foundation writes CD, upgrade in the listed files of buffer memory and this road code stream corresponding file information;
D, judge whether the code stream at N road straight quarter to be mixed all writes CD, if, the listed files of buffer memory is write in first storage space that optical track writes CD through first, otherwise execution in step B.
Preferably, steps A is said sets up first for listed files and writes and further comprise before the optical track:
Read compact disc states information, and judge according to compact disc states information whether CD allows to write data, if CD burning speed is set, otherwise finishes initialization CD.
In the said method, steps A is said to be set up first for listed files and writes optical track and comprise:
When the CD initialization, create one in advance and write optical track in order to write first of listed files, preserve first write optical track write address and track size, be first to write optical track and distribute in order to first of cache file tabulation and write buffer zone;
The said code stream for N road straight quarter to be mixed of steps A is set up N bar optical track and is comprised:
When the CD initialization; Create in advance the optical track of N bar in order to the code stream that writes N road straight quarter to be mixed; Preserve every optical track in the N bar optical track the track size that writes address, every optical track, and every optical track and the N road code stream at straight quarter to be mixed in the corresponding relation of road code stream, for N road code stream distributes the individual sub-buffer zone in order to data cached N.
In the said method, said step C comprises:
C1, from the listed files of buffer memory, obtain initial memory address that the data in buffer amount reaches one road code stream of preset value, and the corresponding optical track of this road code stream write address and track size;
C2, according to a corresponding optical track of this road code stream write address and current optical track write the whether different needs switching optical track that judges whether of address; If; With a corresponding optical track of this road code stream write the address as initial memory address, this road code stream data in buffer is write in the CD, otherwise; Do not change the address that writes of current optical track, continuation writes CD with this road code stream data in buffer;
This road code stream corresponding file information in the listed files of C3, renewal buffer memory;
Said fileinfo comprises initial memory address at least, finishes memory address, reaches the size of data of having stored.
In the said method, whether the code stream at the step D said N of judgement road straight quarter to be mixed 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, the said listed files with buffer memory of step D further comprises before writing in first storage space that optical track writes CD through first:
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 through the optical track corresponding with it when receiving END instruction, upgrade the listed files of buffer memory;
Said M is the integer that is less than or equal to N.
In the said method, the said data of the M road code stream of buffer memory in the code stream at N road straight quarter to be mixed will receive END instruction the time write CD successively through the optical track corresponding with it, and the listed files that upgrades buffer memory comprises:
D1, when receiving END instruction, read the data of the M road code stream that does not write CD fully of buffer memory in the code stream at straight quarter to be mixed of N road;
D2, according to the address that writes of the corresponding optical track of M road code stream, each the road code stream institute data in buffer in the code stream of M road is write CD through corresponding optical track with it;
M road code stream corresponding file information in the listed files of D3, renewal buffer memory;
Said fileinfo comprises initial memory address at least, finishes memory address, reaches the size of data of having stored.
A kind of many code streams mix straight control system of carving, and this system connects in order to write the CD writer of data to CD, and this system comprises:
Initialization module; Connect CD writer and mix straight die sinking piece; Behind electrifying startup, set up first for listed files on the CD in CD writer 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,, trigger and mix straight die sinking piece for listed files distributes first storage space; Said N is the integer greater than 1;
Mix straight die sinking piece; Connect CD writer and imprinting and finish module; According to the triggering of initialization module, when in the buffer zone of judging CD writer, existing the data in buffer amount to reach the code stream of preset value in the N road code stream of buffer memory, according to the optical track of initialization module foundation; Each road code stream institute data in buffer that the data in buffer amount is reached preset value is through writing CD respectively for each bar optical track of its foundation; Upgrade in the listed files that imprinting finishes the module buffer memory said each the road code stream corresponding file information that reaches preset value with the data in buffer amount, after the code stream of judging N road straight quarter to be mixed all writes CD, trigger imprinting and finish module;
Imprinting finishes module, connects CD writer, in order to the cache file tabulation, according to the triggering that mixes straight die sinking piece, the listed files of buffer memory is write in first storage space that optical track writes CD through first.
In the said system, said initialization module comprises:
The condition judgement unit reads the status information of the CD in the CD writer, judges according to compact disc states information whether CD allows to write data, if, the CD burning speed of CD writer is set, trigger optical track and set up the unit, otherwise finish initialization CD;
Optical track is set up the unit; Triggering according to the condition judgement unit; Create in advance one and write optical track in order to write first of listed files; With first write optical track write the address and the track size writes first storage unit, in CD writer be first to write optical track and distribute in order to first of cache file tabulation and write buffer zone;
Said optical track is set up the unit and is created the optical track of N bar in order to the code stream that writes N road straight quarter to be mixed in advance; With the track size that writes address, every optical track of every optical track in the N bar optical track, and every optical track and the N road code stream at straight quarter to be mixed in the corresponding relation of road code stream write first storage unit, be that the code stream distribution of N road is in order to the individual sub-buffer zone of data cached N in CD writer;
Said optical track set up the unit on CD for listed files distributes first storage space, trigger to mix straight die sinking piece;
First storage unit, preserve first write optical track the track size that writes address, every optical track that writes every optical track in track size that address, first writes optical track, the N bar optical track, and the code stream at every optical track and N road straight quarter to be mixed in the corresponding relation of road code stream.
In the said system, the straight die sinking piece of said mixing comprises:
The data judging unit; Connect CD writer and the straight control module of carving; Triggering according to initialization module; Read the data of the N road code stream of buffer memory in N the sub-buffer zone of CD writer, when in the N that judges a CD writer buffer zone, existing the data in buffer amount to reach the code stream of preset value in the N road code stream of buffer memory, the information that the data in buffer amount is reached 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 that receives, the optical track that utilizes initialization module to set up, each the road code stream institute data in buffer that successively the data in buffer amount is reached preset value is through writing CD for each bar optical track of its foundation; Reach said each road code stream corresponding file information of preset value with the data in buffer amount in the updating file tabulation and export imprinting end module to; In the END instruction that receives according to the outside, after the code stream of judging N road straight quarter to be mixed all writes CD, trigger imprinting and finish module;
Said fileinfo comprises initial memory address at least, finishes memory address, reaches the size of data of having stored.
In the said system, said imprinting finishes module and comprises:
Data cached imprinting unit, connection initialization module, the straight die sinking piece of mixing and CD writer according to the triggering that mixes straight die sinking piece, when receiving END instruction, read the data of the M road code stream that does not write CD fully of buffer memory in the code stream at straight quarter to be mixed of N road;
Said data cached imprinting unit utilizes the address that writes of the corresponding optical track of M road code stream according to the optical track information in the initialization module, and each the road code stream institute data in buffer in the code stream of M road is write CD through corresponding optical track with it; Said M is the integer that is less than or equal to N;
The list update unit according to the triggering of data cached imprinting unit, writes second storage unit with the listed files after upgrading;
Second storage unit is tabulated in order to cache file.
Visible by above-mentioned technical scheme; The invention provides a kind of many code streams and mix straight control method of carving; In this method, during the initialization CD, set up first for listed files and write optical track; Set up N bar optical track for the code stream at N road straight quarter to be mixed, on CD, distribute first storage space for listed files; Whether judge in the N road code stream of buffer memory exists the data in buffer amount to reach one road code stream of preset value; If; The road code stream that the data in buffer amount is reached preset value is through writing CD for an optical track of its foundation; With this road code stream corresponding file information, whether exist the data in buffer amount to reach one road code stream of preset value in the code stream in the listed files of renewal buffer memory otherwise continue to have judged N; After the road code stream that the data in buffer amount is reached preset value writes CD; Whether the code stream of judging N road straight quarter to be mixed all writes CD; If; The listed files of buffer memory is write in first storage space that optical track writes CD through first, otherwise judge in the N road code stream of buffer memory whether exist the data in buffer amount to reach one road code stream of preset value.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 that the mixing of multichannel code stream is directly carved, improve the work efficiency of imprinting.
Description of drawings
Fig. 1 is the method flow diagram of existing many code streams imprinting.
Fig. 2 mixes the straight control method process flow diagram of carving for the many code streams of the present invention.
Fig. 3 mixes the structural representation of straight control system of carving for the many code streams of the present invention.
Fig. 4 is the structural representation of multiple of the present invention road CD.
Embodiment
For make the object of the invention, technical scheme, and advantage clearer, below with reference to the accompanying drawing embodiment that develops simultaneously, to further explain of the present invention.
The invention provides a kind of many code streams and mix straight control method and system of carving, when the CD in the CD writer was carried out the imprinting of code stream, the multichannel code stream need not the unloading through other storage mediums; But on the CD in the CD writer that writes direct, mix straight the quarter in order to realize many code streams, when CD is carried out initialization; Foundation writes optical track in order to write first of listed files, reaches the N bar in order to realize the straight optical track of carving of N road mixing; Mix in the straight process of carving carrying out the multichannel code stream, carry out according to the data volume of the code stream of buffer memory in the buffer zone of CD writer that optical track switches and data write, in other words; When the data volume of a certain road code stream of buffer memory reaches preset value in the buffer zone of CD writer; Current optical track is switched on the corresponding optical track of this road code stream, the data of this road code stream of buffer memory in the buffer zone are write in the CD, accomplish the straight quarter of a circuit-switched data; The N road is mixed straight the quarter and in N bar optical track, is switched exactly; The code stream that data in buffer amount in the buffer zone is reached preset value writes CD through the optical track of correspondence, writes all listed files of real-time update buffer memory in every completion one secondary data, accomplishes after the N road mixes straight the quarter; Listed files after the final updated is write the fixed storage space of CD, make the information of the data that listed files writes on the recording disk exactly.
For sake of clarity; Existing N of the present invention road is mixed describes straight quarter; Specific as follows: N road that the present invention mentions mixes that straight to carve what refer to be N road code stream can be without the unloading of third party's storage medium carries out the non-while to the CD in the CD writer data carving; Be that N road code stream is not the same time N road code stream to be carried out imprinting when imprinting, but in one road code stream writes the process of CD, can carry out data carving all the other N-1 road code streams; The present invention can adopt existing ISO9660 file system that data are stored when in CD, writing data; Code stream of the present invention can be the data stream of audio/video flow or other types.Wherein, N is the integer greater than 1.
Fig. 2 mixes the straight control method process flow diagram of carving for the many code streams of the present invention.Combine Fig. 2 at present, the many code streams of the present invention are mixed straight control method of carving describe, specific as follows:
Step 20: set up many optical tracks during the initialization CD and distribute first storage space;
This step comprises: step 201, and when the 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 is distributed first storage space for listed files on CD.
Preferably; Before step 201, further comprise: read the compact disc states information in the CD writer, judge according to compact disc states information whether CD allows to write data, if; CD burning speed and execution in step 201 are set, otherwise finish initialization CD.
Setting up first for listed files in the step 201 writes optical track and comprises: create one in advance and write optical track in order to write first of listed files; Preserve first write optical track write address and track size, be first to write optical track and distribute in order to first of cache file tabulation and write buffer zone in the buffer zone of CD writer.
Setting up N bar optical track for the code stream at N road straight quarter to be mixed in the step 201 comprises: create the optical track of N bar in order to the code stream that writes N road straight quarter to be mixed in advance; Preserve every optical track in the N bar optical track the track size that writes address, every optical track, and every optical track and the N road code stream at straight quarter to be mixed in the corresponding relation of road code stream, be that the code stream distribution of N road 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 is represented.
On CD, comprise in the step 202 for listed files distributes first storage space: with one section continuous address on the CD in the CD writer as in order to write first storage space of listed files.
Step 21: judge whether to exist the data in buffer amount to reach one road code stream of preset value, if, execution in step 22, otherwise execution in step 21;
This step comprises: step 211, and the data volume of slowly depositing in the individual sub-buffer zone of the N that comprises in the buffer zone to CD writer reads; Step 212 judges whether to exist the data in buffer amount to reach the sub-buffer zone of preset value, if, execution in step 22, otherwise execution in step 21.
The buffer zone of the CD writer that the present invention mentions does not belong to the buffer memory of data and utilizes storage medium to carry out third party's unloading; But data cached identical during with existing CD writer imprinting; Be CD writer when being opposite to wherein CD and carrying out imprinting, next data constantly to be written of buffer memory when current data is write CD.
Step 22: write the code stream institute data in buffer that the data in buffer amount reaches preset value, the updating file tabulation;
This step comprises: step 221, from the listed files of buffer memory, obtain initial memory address that the data in buffer amount reaches one road code stream of preset value, and the corresponding optical track of this road code stream write address and track size; Step 222; Whether the different needs that judge whether switch optical track according to the address that writes that writes address and current optical track of a corresponding optical track of this road code stream, if write the address as initial memory address with an optical track of this road code stream correspondence; This road code stream data in buffer is write in the CD; Otherwise, not changing the address that writes of current optical track, continuation writes CD with this road code stream data in buffer; Step 223, this road code stream corresponding file information in the listed files of renewal buffer memory.
Wherein, When the data that first one road code stream institute data in buffer amount reached preset value write CD; The address that writes of the optical track of mentioning in the step 221 is the initial memory address of this road code stream; When the data that next time this road code stream institute data in buffer amount reached preset value write CD, the address that writes of the optical track of mentioning in the step 221 was the initial memory address of the current data to be written of this road code stream, promptly once writes the end memory address of confirming after the data before this road code stream.
The initial memory address of the code stream in the step 221 can obtain according to the end memory address that this road code stream in the listed files of buffer memory preceding once writes after the data; The big I of track is provided with according to etch-recording speed.
In the step 222 through judging whether need to switch optical track in the step 221; If the optical track that this road code stream is corresponding write address and current optical track to write the address identical; Then be expressed as same road code stream; Need not to switch optical track, otherwise be expressed as the code stream of not going the same way, need to switch the address that writes of optical track.In other words, writing the address and after whenever writing data in the memory address of CD, all can changing of optical track promptly is updated to the memory address of next data to be written.
Fileinfo in the step 223 comprises initial memory address at least, finishes memory address, reaches the size of data of having stored.
Step 23: whether the code stream of judging N road straight quarter to be mixed all writes CD, if, execution in step 24, otherwise execution in 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, confirm that then the code stream at N road straight quarter to be mixed all writes CD, execution in step 24 if do not receive END instruction, confirms that then the code stream at N road straight quarter to be mixed does not write CD, execution in step 21 fully.
Step 24: the listed files of buffer memory is write in first storage space that optical track writes CD through first;
This step is specially: write the listed files that reads buffer memory the buffer zone from first, utilize first write optical track the address that writes, listed files is write in first storage space.
Integrality for the data that guarantee 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 CD successively through the optical track corresponding, upgrade the listed files of buffer memory with it.M is the integer that is less than or equal to N.
Wherein, step 24 ' specifically comprise: step 241 ', when receiving END instruction, read the data of the M road code stream that does not write CD fully of buffer memory in the code stream at straight quarter to be mixed of N road; Step 242 ', the address that writes according to the corresponding optical track of M road code stream writes CD with each the road code stream institute data in buffer in the code stream of M road through corresponding optical track with it; Step 243 ', the M road said fileinfo of code stream corresponding file information comprises initial memory address at least, finishes memory address, reaches the size of data of having stored in the listed files of renewal buffer memory.
Step 241 ' be the data of preserving according in N the sub-buffer zone, confirm when receiving END instruction, M still data cached sub-buffer zone in N the sub-buffer zone, and then M the corresponding M road code stream of sub-buffer zone confirmed as the code stream that need write data.
Step 242 ' be the address that writes of confirming optical track that M road code stream is corresponding according to the buffer zone and the corresponding relation of code stream in M sub-buffer zone and the listed files; The end memory address of the M road code stream of putting down in writing in the listed files when promptly receiving END instruction; Utilize writing the address and finishing memory address of optical track, successively M road code stream data in buffer is write in the appropriate address of CD.
Step 243 ' be after data with the M road code stream that is through with write, the end memory address of M road code stream is write in the listed files of buffer memory, at this moment, the listed files after the renewal is only the final tabulation that reflects data actual storage address on the CD exactly.
The N road code stream that step 20 to step 24 has been accomplished a CD mixes the straight operation of carving.
Fig. 3 mixes the structural representation of straight control system of carving for the many code streams of the present invention.Combine Fig. 3 at present, the many code streams of the present invention are mixed straight control system of carving describe, specific as follows:
Many code stream of the present invention mixes straight control system of carving and connects in order to writing the CD writer 33 of data to CD, and control CD writer 33 writes data to CD.The laser head that the CD writer 33 that the present invention mentions comprises in order to write data to CD reaches the buffer zone in order to buffer memory data to be written; To be exactly the laser head that comprises of control CD writer 33 begin to carry out data and write from the corresponding address that writes of optical track the switching optical track that the present invention mentions.
Many code streams of the present invention mix straight control system of carving and comprise: initialization module 30, the straight die sinking piece 31 of mixing and imprinting finish module 32.Wherein, initialization module 30, the straight die sinking piece 31 of mixing and imprinting end module 32 are connected CD writer 33 respectively.
Initialization module 30 is behind CD writer 33 and system's electrifying startup; Set up first for listed files on the CD in CD writer 33 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,, trigger and mix straight die sinking piece 31 for listed files distributes first storage space.Wherein, N is the integer greater than 1.
Mix of the triggering of straight die sinking piece 31 according to initialization module 30; When in judging the buffer zone of CD writer 33, existing the data in buffer amount to reach the road code stream of preset value in the N road code stream of buffer memory; Optical track according to initialization module 30 foundation; Each the road code stream that the data in buffer amount is reached preset value is through writing CD for each bar optical track of its foundation; Upgrade in the listed files that imprinting finishes module 32 buffer memorys each the road code stream corresponding file information that reaches preset value with the data in buffer amount, after the code stream of judging N road straight quarter to be mixed all writes CD, trigger imprinting and finish module 32.
Imprinting finishes module 32 in order to the cache file tabulation, according to the triggering that mixes straight die sinking piece 31, the listed files of buffer memory is write in first storage space that optical track writes CD through first.
Wherein, initialization module 30 comprises: condition judgement unit 301, optical track are set up the unit 302 and 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 the CD in the CD writer 33 and write operation.
Condition judgement unit 301 reads the status information of the CD in the CD writer 33; Judge according to compact disc states information whether CD allows to write data, if the CD burning speed of CD writer 33 is set; Trigger optical track and set up unit 302, otherwise finish initialization CD.Wherein, condition judgement unit 301 finishes initialization to CD and can be that control CD writer 33 ejects CDs and/or output can't initialized information.
Optical track is set up the triggering of unit 302 according to condition judgement unit 301; Create in advance one and write optical track in order to write first of listed files; With first write optical track write the address and the track size writes first storage unit, in CD writer 33 be first to write optical track and distribute in order to first of cache file tabulation and write buffer zone.Wherein, what optical track set up that unit 302 distributes first writes the address that writes that buffer zone is about to this buffer zone and sets up a corresponding relation with listed files, and this corresponding relation can be represented through address information.
Optical track is set up unit 302 and is created the optical track of N bars in order to the code stream that writes N road straight quarter to be mixed in advance; With the track size that writes address, every optical track of every optical track in the N bar optical track, and every optical track and the N road code stream at straight quarter to be mixed in the corresponding relation of road code stream write first storage unit 303, be that the code stream distribution of N road is in order to the individual sub-buffer zone of data cached N in CD writer 33.Wherein, Optical track is set up N the sub-buffer zone that distributes unit 302 and exactly N sub-buffer zone and N road code stream is set up corresponding relation; So that the data of arbitrary road code stream in the code stream of N road are write in the corresponding sub-buffer zone; And can confirm the code stream that it is corresponding according to sub-buffer zone, this corresponding relation can be represented through the address.
Optical track set up unit 303 on CD for listed files distributes first storage space, trigger to mix straight die sinking piece 31.Wherein, optical track is set up unit 303 and on CD, is reserved one section continuation address with first storage space as the storage file tabulation.
First storage unit 303 preserve first write optical track the track size that writes address, every optical track that writes every optical track in track size that address, first writes optical track, the N bar optical track, and the code stream at every optical track and N road straight quarter to be mixed in the corresponding relation of road code stream.In addition, also can preserve in first storage unit 303 first write corresponding relation, N road code stream and N the sub-buffer zone that buffer zone and first writes optical track corresponding relation.
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; When in the N that judges a CD writer buffer zone, existing the data in buffer amount to reach the code stream of preset value in the N road code stream of buffer memory; Promptly when judgement exists the data in buffer amount 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.
Straight information of carving control module 312 according to the sub-buffer zone that receives; From initialization module 30, read the address that writes of the optical track corresponding with sub-buffer zone; Utilize the address that writes of the corresponding optical track of each road code stream; Each the road code stream institute data in buffer that successively the data in buffer amount is reached preset value writes CD, reaches each road code stream corresponding file information of preset value and exports imprinting to the data in buffer amount in the updating file tabulation and finish module 32, the END instruction that is receiving according to the outside; After the code stream of judging N road straight quarter to be mixed all writes CD, trigger imprinting and finish module 32.Wherein, fileinfo comprise at least this road code stream initial memory address, finish memory address, and the size of data of having stored.
Wherein, imprinting end module 32 comprises: data cached imprinting unit 321, list update unit 322 and second storage unit 323.Wherein, data cached imprinting unit 321 is connected CD writer 33 with list update unit 322.
Data cached imprinting unit 321 when receiving END instruction, is confirmed the information of the M road code stream that does not write CD fully 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.Particularly, data cached imprinting unit 321 confirms to exist in N the sub-buffer zone M sub-buffer zone still to have data in buffer, with the data of the data in this M the sub-buffer zone as the M road code stream that does not write CD fully according to END instruction.
Data cached imprinting unit 321 writes address, and the information of the corresponding M road code stream of the sub-buffer zone of M according to the optical track in the initialization module 30; Utilize the address that writes of the corresponding optical track of M road code stream; Each road code stream institute data in buffer in the code stream of M road is write CD through corresponding optical track with it; The updating file tabulation also writes in 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, utilize in the initialization module 30 first write optical track the address that writes, the listed files after upgrading in second storage unit 323 is write first storage space of CD.
Second storage unit 323 is tabulated in order to cache file.
Fig. 4 is the structural representation of multiple of the present invention road CD.Three optical tracks have been created in advance on the multiple road CD shown in Figure 4; Wherein optical track is first to write optical track; The two other optical track is article one optical track and second optical track; First writes optical track can be in order to write listed files in the CD, and article one optical track and second optical track can be in order to realize mixing straight 2 optical tracks carving.System of the present invention carries out data to CD shown in Figure 4 and writes, and realizes that dual code stream mixes straight the quarter.
In the above-mentioned preferred embodiment of the present invention; When the initialization CD, set up many in order to mix the optical track at straight quarter; Writing in the process of data to CD, utilizing the laser head that writes address control CD writer of optical track to carry out the switching that many code streams are directly carved, and writing in the process of data writing mutually of multichannel code stream and do not disturb; Realize that not only the multichannel code stream mixes straight the quarter, and the work efficiency of imprinting can be provided; The fileinfo that comprises in the listed files that the present invention generates is the relevant information of the actual data that write on the CD; When being different from existing initialization and the fixing listed files of the content of distribution; The listed files that the present invention generates can conserve storage, and is convenient to accurately searching data.
The above is merely preferred embodiment of the present invention, and is in order to restriction the present invention, not all within spirit of the present invention and principle, any modification of being made, is equal to replacement, improvement etc., all should be included within the scope that the present invention protects.

Claims (11)

1. code stream more than a kind mixes straight control method of carving, and it is characterized in that this method comprises:
When A, initialization CD, set up first for listed files and write optical track, set up N bar optical track, on CD, distribute first storage space for listed files for the code stream at N road straight quarter to be mixed; Said N is the integer greater than 1;
B, judge the road code stream that whether exists the data in buffer amount to reach preset value in the N road code stream of buffer memory, if, execution in step C, otherwise execution in step B;
C, the data in buffer amount reached preset value road code stream institute data in buffer through for an optical track of its foundation writes CD, upgrade in the listed files of buffer memory and this road code stream corresponding file information;
D, judge whether the code stream at N road straight quarter to be mixed all writes CD, if, the listed files of buffer memory is write in first storage space that optical track writes CD through first, otherwise execution in step B.
2. method according to claim 1 is characterized in that, steps A is said to be set up first for listed files and write and further comprise before the optical track:
Read compact disc states information, and judge according to compact disc states information whether CD allows to write data, if CD burning speed is set, otherwise finishes initialization CD.
3. method according to claim 1 and 2 is characterized in that, steps A is said to be set up first for listed files and write optical track and comprise:
When the CD initialization, create one in advance and write optical track in order to write first of listed files, preserve first write optical track write address and track size, be first to write optical track and distribute in order to first of cache file tabulation and write buffer zone;
The said code stream for N road straight quarter to be mixed of steps A is set up N bar optical track and is comprised:
When the CD initialization; Create in advance the optical track of N bar in order to the code stream that writes N road straight quarter to be mixed; Preserve every optical track in the N bar optical track the track size that writes address, every optical track, and every optical track and the N road code stream at straight quarter to be mixed in the corresponding relation of road code stream, for N road code stream distributes the individual sub-buffer zone in order to data cached N.
4. method according to claim 1 and 2 is characterized in that, said step C comprises:
C1, from the listed files of buffer memory, obtain initial memory address that the data in buffer amount reaches one road code stream of preset value, and the corresponding optical track of this road code stream write address and track size;
C2, according to a corresponding optical track of this road code stream write address and current optical track write the whether different needs switching optical track that judges whether of address; If; With a corresponding optical track of this road code stream write the address as initial memory address, this road code stream data in buffer is write in the CD, otherwise; Do not change the address that writes of current optical track, continuation writes CD with this road code stream data in buffer;
This road code stream corresponding file information in the listed files of C3, renewal buffer memory;
Said fileinfo comprises initial memory address at least, finishes memory address, reaches the size of data of having stored.
5. method according to claim 1 and 2 is characterized in that, whether the code stream at the step D said N of judgement road straight quarter to be mixed 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, the said listed files with buffer memory of step D further comprises before writing in first storage space that optical track writes CD through first:
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 through the optical track corresponding with it when receiving END instruction, upgrade the listed files of buffer memory;
Said M is the integer that is less than or equal to N.
7. method according to claim 6 is characterized in that, the said data of the M road code stream of buffer memory in the code stream at N road straight quarter to be mixed will receive END instruction the time write CD successively through the optical track corresponding with it, and the listed files that upgrades buffer memory comprises:
D1, when receiving END instruction, read the data of the M road code stream that does not write CD fully of buffer memory in the code stream at straight quarter to be mixed of N road;
D2, according to the address that writes of the corresponding optical track of M road code stream, each the road code stream institute data in buffer in the code stream of M road is write CD through corresponding optical track with it;
M road code stream corresponding file information in the listed files of D3, renewal buffer memory;
Said fileinfo comprises initial memory address at least, finishes memory address, reaches the size of data of having stored.
8. code stream more than a kind mixes straight control system of carving, and this system connects in order to write the CD writer of data to CD, it is characterized in that this system comprises:
Initialization module; Connect CD writer and mix straight die sinking piece; Behind electrifying startup, set up first for listed files on the CD in CD writer 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,, trigger and mix straight die sinking piece for listed files distributes first storage space; Said N is the integer greater than 1;
Mix straight die sinking piece; Connect CD writer and imprinting and finish module; According to the triggering of initialization module, when in the buffer zone of judging CD writer, existing the data in buffer amount to reach the code stream of preset value in the N road code stream of buffer memory, according to the optical track of initialization module foundation; Each road code stream institute data in buffer that the data in buffer amount is reached preset value is through writing CD respectively for each bar optical track of its foundation; Upgrade in the listed files that imprinting finishes the module buffer memory said each the road code stream corresponding file information that reaches preset value with the data in buffer amount, after the code stream of judging N road straight quarter to be mixed all writes CD, trigger imprinting and finish module;
Imprinting finishes module, connects CD writer, in order to the cache file tabulation, according to the triggering that mixes straight die sinking piece, the listed files of buffer memory is write in first storage space that optical track writes CD through first.
9. system according to claim 8 is characterized in that, said initialization module comprises:
The condition judgement unit reads the status information of the CD in the CD writer, judges according to compact disc states information whether CD allows to write data, if, the CD burning speed of CD writer is set, trigger optical track and set up the unit, otherwise finish initialization CD;
Optical track is set up the unit; Triggering according to the condition judgement unit; Create in advance one and write optical track in order to write first of listed files; With first write optical track write the address and the track size writes first storage unit, in CD writer be first to write optical track and distribute in order to first of cache file tabulation and write buffer zone;
Said optical track is set up the unit and is created the optical track of N bar in order to the code stream that writes N road straight quarter to be mixed in advance; With the track size that writes address, every optical track of every optical track in the N bar optical track, and every optical track and the N road code stream at straight quarter to be mixed in the corresponding relation of road code stream write first storage unit, be that the code stream distribution of N road is in order to the individual sub-buffer zone of data cached N in CD writer;
Said optical track set up the unit on CD for listed files distributes first storage space, trigger to mix straight die sinking piece;
First storage unit, preserve first write optical track the track size that writes address, every optical track that writes every optical track in track size that address, first writes optical track, the N bar optical track, and the code stream at every optical track and N road straight quarter to be mixed in the corresponding relation of road code stream.
10. system according to claim 9 is characterized in that, the straight die sinking piece of said mixing comprises:
The data judging unit; Connect CD writer and the straight control module of carving; Triggering according to initialization module; Read the data of the N road code stream of buffer memory in N the sub-buffer zone of CD writer, when in the N that judges a CD writer buffer zone, existing the data in buffer amount to reach the code stream of preset value in the N road code stream of buffer memory, the information that the data in buffer amount is reached 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 that receives, the optical track that utilizes initialization module to set up, each the road code stream institute data in buffer that successively the data in buffer amount is reached preset value is through writing CD for each bar optical track of its foundation; Reach said each road code stream corresponding file information of preset value with the data in buffer amount in the updating file tabulation and export imprinting end module to; In the END instruction that receives according to the outside, after the code stream of judging N road straight quarter to be mixed all writes CD, trigger imprinting and finish module;
Said fileinfo comprises initial memory address at least, finishes memory address, reaches the size of data of having stored.
11. system according to claim 8 is characterized in that, said imprinting finishes module and comprises:
Data cached imprinting unit, connection initialization module, the straight die sinking piece of mixing and CD writer according to the triggering that mixes straight die sinking piece, when receiving END instruction, read the data of the M road code stream that does not write CD fully of buffer memory in the code stream at straight quarter to be mixed of N road;
Said data cached imprinting unit utilizes the address that writes of the corresponding optical track of M road code stream according to the optical track information in the initialization module, and each the road code stream institute data in buffer in the code stream of M road is write CD through corresponding optical track with it; Said M is the integer that is less than or equal to N;
The list update unit according to the triggering of data cached imprinting unit, writes second storage unit with the listed files after upgrading;
Second storage unit is tabulated in order to cache file.
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 true CN102682794A (en) 2012-09-19
CN102682794B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104240732A (en) * 2013-06-07 2014-12-24 杭州海康威视数字技术股份有限公司 Compact disc write-in method and device
CN104967807A (en) * 2014-12-30 2015-10-07 浙江大华技术股份有限公司 Caching method and apparatus
CN112530467A (en) * 2019-10-08 2021-03-19 北京中科开迪软件有限公司 Optical disk storage additional recording method and system

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

Cited By (5)

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

Also Published As

Publication number Publication date
CN102682794B (en) 2014-09-24

Similar Documents

Publication Publication Date Title
CN101101570A (en) Control method based on multi-passage flash memory apparatus logic strip
CN102682794A (en) Multi-code-stream mixed direct burning control method and system
CN102087586B (en) Data processing method and device
WO2008114389A1 (en) Content reproducing system and its control method
CN101620572A (en) Nonvolatile memory and control method
CN101354633A (en) Method for improving writing efficiency of virtual storage system and virtual storage system thereof
CN104505109A (en) Audio track switching method and system of multimedia player and corresponding player and equipment
CN102981970A (en) Flash memory management method and system
CN104077406A (en) Mass file parallel burning method and device
CN101398822B (en) Method for dynamically extending network memory space by virtual file systems technology
SG126863A1 (en) Recording apparatus
CN101833423A (en) Record and reproducer and record and reproducting method
WO2008146475A1 (en) Recording apparatus
CA2571464A1 (en) Recording medium, and method and apparatus for reformatting the same
MY165370A (en) Optical recording medium, recording/reproducing apparatus, and recording/reproducing method
CN102710481A (en) Token turnover control method, device and system
CN101520688A (en) Method, device and system for storing data
CN101510175A (en) Method for updating target data to memory and apparatus thereof
CN101055509B (en) Highly efficient stream media data read-write system
CA2619358C (en) Content data storage device and its control method
CN100392590C (en) Method and device for modifying software in a control unit and corresponding control unit
EP2183663A1 (en) Mass storage system with improved usage of buffer capacity
CN102446527A (en) Recording device, imaging and recording device, recording method, and program
US20090254570A1 (en) Video server and file management method
US20110010512A1 (en) Method for controlling storage system having multiple non-volatile memory units and storage system using the 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