[go: up one dir, main page]

CN100367390C - Method for discriminating CD format of CD-RW - Google Patents

Method for discriminating CD format of CD-RW Download PDF

Info

Publication number
CN100367390C
CN100367390C CNB2004100007153A CN200410000715A CN100367390C CN 100367390 C CN100367390 C CN 100367390C CN B2004100007153 A CNB2004100007153 A CN B2004100007153A CN 200410000715 A CN200410000715 A CN 200410000715A CN 100367390 C CN100367390 C CN 100367390C
Authority
CN
China
Prior art keywords
format
optical disc
disc
finalized
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.)
Expired - Fee Related
Application number
CNB2004100007153A
Other languages
Chinese (zh)
Other versions
CN1641784A (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.)
Industrial Technology Research Institute ITRI
Original Assignee
Industrial Technology Research Institute ITRI
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 Industrial Technology Research Institute ITRI filed Critical Industrial Technology Research Institute ITRI
Priority to CNB2004100007153A priority Critical patent/CN100367390C/en
Publication of CN1641784A publication Critical patent/CN1641784A/en
Application granted granted Critical
Publication of CN100367390C publication Critical patent/CN100367390C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

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

Abstract

The invention relates to a method for discriminating CD format of CD-RW, which is used to discriminate the format of data stored in the CD which has not been finalized, and is characterized in that the method comprises the following steps: confirming that the optical disc is not finalized by comparing the directory table on the optical disc with the index data storage area; reading data of a first audio track of the optical disc; classifying the optical disc by whether the data of the first audio track is empty; reading the data of the second audio track of the optical disc; and judging the format of the optical disk by the first five bytes in the thirty-first sector of the second audio track. The invention can effectively judge the format of the unfinalized optical disk and prevent the problem of reading error after recording.

Description

一种刻录机光盘格式判别的方法 A method for discriminating the disc format of recorder

技术领域 technical field

本发明涉及一种光盘格式判别的方法,特别是涉及一种无需人工输入,可自动进行判别的刻录机光盘格式判别的方法。The invention relates to a method for discriminating the format of an optical disc, in particular to a method for discriminating the format of an optical disc of a recorder that can automatically perform discrimination without manual input.

背景技术 Background technique

随着刻录机技术的蓬勃发展,光盘已经成为最主要的储存媒体,根据其储存的数据的不同,也有许多不同的对应格式,如音乐光盘(CD-DA)、激光视盘(Video CD或VCD)、超级激光视盘(Super VCD或SVCD)、只读光盘(CD-ROM)、可写光盘(CD-R)以及可复写光盘(CD-RW)等格式。With the vigorous development of burner technology, CDs have become the most important storage media. According to the data stored, there are many different corresponding formats, such as music CD (CD-DA), laser video disk (Video CD or VCD) , Super VCD or SVCD, CD-ROM, CD-R, and CD-RW.

而刻录机在刻录光盘时,因为光盘的容量相当大,不见得每一次都能够将其空间完全使用,如果一旦刻录过一次就无法再使用,会造成相当大的浪费,也大大影响光盘的适用性。因此,刻录机与刻录程序都设计有尚未终结化处理(或未封轨)(unfinalized),也就是说,光盘刻录之后,可以利用尚未终结化处理来暂时结束刻录,其余尚未利用的空间,仍可在下次刻录时使用。When the recorder burns a disc, because the capacity of the disc is quite large, it may not be able to fully use its space every time. If it cannot be used after burning once, it will cause considerable waste and greatly affect the applicability of the disc. sex. Therefore, both the recorder and the recording program are designed with unfinalized (or unfinalized), that is to say, after the disc is recorded, the unfinalized process can be used to temporarily end the recording, and the remaining unused space is still available. Available for next burn.

然而,这种方法却面临一个问题,也就是要刻录尚未终结化处理的光盘之前,刻录机必须先知道原先所刻录数据的格式,才能继续进行连续的刻录工作,但是,刻录机本身并无法自动判别原先所刻录的格式为哪一种,因此,只能靠用户自行输入,所以会给用户造成相当大的负担,必须对每一片尚未终结化处理的光盘记录其格式,否则一旦输入错误,将来刻录完成的光盘就会有读取错误的现象,因而大大影响刻录光盘的灵活性。However, this method faces a problem, that is, before burning a disc that has not been finalized, the recorder must first know the format of the previously recorded data in order to continue the continuous recording work. However, the recorder itself cannot automatically Distinguish which format is originally burned, therefore, can only rely on the user to input, so it will cause a considerable burden on the user, must record the format of each disc that has not been finalized, otherwise once the input is wrong, the future There will be read errors in the burned disc, which greatly affects the flexibility of burning the disc.

发明内容 Contents of the invention

本发明所要解决的技术问题在于提供一种刻录机光盘格式判别的方法,解决现有技术中刻录机无法自动判别原先所刻录的格式,而需要用户自行输入的问题。The technical problem to be solved by the present invention is to provide a method for discriminating the disc format of a recorder, so as to solve the problem in the prior art that the recorder cannot automatically discriminate the format originally recorded, and needs to be input by the user.

为了实现上述目的,本发明提供了一种刻录机光盘格式判别的方法,用以判别尚未终结化处理的光盘内所储存数据的格式,包含有下列步骤:In order to achieve the above object, the present invention provides a method for discriminating the format of an optical disc of a recorder, which is used to discriminate the format of the data stored in the optical disc that has not been finalized, and includes the following steps:

通过比较所述光盘上的目录表与索引数据存储区不相等,确认所述光盘尚未终结化处理;Confirming that the optical disc has not been finalized by comparing the table of contents on the optical disc and the index data storage area are not equal;

读取所述光盘的第一影音轨的数据;read the data of the first audio-visual track of the optical disc;

通过所述第一影音轨的数据为空时,将所述光盘判别为CD-DA格式;When the data of the first audio-visual track is empty, the disc is judged to be in CD-DA format;

读取所述光盘的第二影音轨的数据;当所述第二影音轨的第三十一扇区中的前五个字节为00 00 01 BA 21时,判别所述光盘为VCD格式;及Read the data of the second audio-visual track of the optical disc; when the first five bytes in the thirty-first sector of the second audio-visual track are 00 00 01 BA 21, it is judged that the optical disc is in VCD format; and

当所述第二影音轨的第三十一扇区中的前五个字节00 00 01 BA 44时,判别所述光盘为SVCD格式。When the first five bytes in the thirty-first sector of the second video and audio track are 00 00 01 BA 44, it is judged that the optical disc is in SVCD format.

上述刻录机光盘格式判别的方法,其特征在于,所述的确认所述光盘尚未终结化处理的步骤进一步包括:The above-mentioned method for discriminating the disc format of a recorder is characterized in that the step of confirming that the disc has not been finalized further includes:

判断所述光盘上的目录表是否等于所述索引数据存储区,如果否,则确认所述光盘尚未终结化处理;如果是,则进一步判断所述光盘上的目录表或索引数据存储区是否为零,如果为零,则判断为空白光盘可进行刻录,如果不为零,则判断为已经终结化处理的光盘,无法进行刻录只能读取。Judging whether the table of contents on the optical disc is equal to the index data storage area, if not, confirming that the optical disc has not been finalized; if yes, further judging whether the table of contents or the index data storage area on the optical disc is Zero, if it is zero, it is judged that a blank disc can be burned, and if it is not zero, it is judged that a disc that has been finalized cannot be burned and can only be read.

本发明的功效在于,能够有效地判断尚未终结化处理光盘的格式,防止刻录后读取错误的问题。The effect of the present invention is that it can effectively judge the format of the optical disc that has not been finalized, and prevent the problem of reading errors after recording.

以下结合附图和具体实施例对本发明进行详细描述,但不作为对本发明的限定。The present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments, but not as a limitation of the present invention.

附图说明 Description of drawings

图1为本发明的步骤流程图;Fig. 1 is a flow chart of steps of the present invention;

图2为本发明确认光盘封轨的步骤流程图;Fig. 2 is a flow chart of the steps of confirming the sealing of the optical disc in the present invention;

图3为判别光盘格式的步骤流程图。Fig. 3 is a flow chart of steps for discriminating the format of an optical disc.

具体实施方式 Detailed ways

请参阅图1,为本发明的步骤流程图,主要针对未终结化处理的光盘使用。如图1所示,首先执行步骤101,先行确认光盘是否尚未终结化处理,其判断方式,请参阅图2,为本发明确认光盘终结化处理的步骤流程图,首先读取光盘上的TOC与PMA,TOC与PMA记录在光盘的开头,其中TOC为目录表(Tableof Contents;TOC),而PMA为索引数据储存区(Program Memory Area;PMA),通过读取此两部分的数据来进行判断。Please refer to FIG. 1 , which is a flow chart of the steps of the present invention, which is mainly used for unfinalized optical discs. As shown in Figure 1, step 101 is first performed to first confirm whether the optical disc has not been finalized. The way of judging it is shown in Figure 2, which is a flow chart of steps for confirming the finalization of the optical disc in the present invention. First, read the TOC and PMA, TOC and PMA are recorded at the beginning of the disc, where TOC is the table of contents (Table of Contents; TOC), and PMA is the index data storage area (Program Memory Area; PMA), and the judgment is made by reading the data of these two parts.

如图2所示,首先执行步骤201,确认TOC是否等于PMA,如果否,则步骤202,可判定为未终结化处理光盘;如果是,则有两种可能,步骤203,继续判断其值(TOC或PMA)是否为零,如果是,则步骤204,为空白光盘,可以进行正常的刻录工作;如果不是,则步骤205,为已经终结化处理(finalized)的光盘,无法继续对其进行刻录,只能读取。As shown in Figure 2, at first execute step 201, confirm whether TOC is equal to PMA, if not, then step 202, can be judged as unfinalized processing disc; If so, then have two possibilities, step 203, continue to judge its value ( Whether TOC or PMA) is zero, if yes, then step 204 is a blank disc, and normal recording work can be carried out; if not, then step 205 is a finalized disc, and cannot continue to burn it , can only be read.

当确认为未经终结化处理的光盘后,则需要进一步确认其详细的格式,接着执行步骤102,读取其第一影音轨(track)的数据,然后执行步骤103,通过第一影音轨的数据来判断而将光盘大概区分为两大类,其详细判断方式,请参照图3,为判别光盘格式的步骤流程图,先执行步骤301,确认第一影音轨的数据是否为空(blank),如果是,则步骤302,将光盘区分为第一类格式,如果不是,则步骤303,将光盘区分为第二类格式,而就目前已知的格式中,第一类格式的光盘就是音乐光盘(CD-DA)。After being confirmed as an unfinalized optical disc, you need to further confirm its detailed format, then perform step 102, read the data of its first audio-visual track (track), then perform step 103, pass the first audio-visual track The optical disc is roughly divided into two categories based on the data. For the detailed determination method, please refer to FIG. 3, which is a flow chart of the steps for determining the format of the optical disc. Step 301 is first performed to confirm whether the data of the first audio-visual track is empty (blank) , if yes, then step 302, distinguish the optical disc into the first type of format, if not, then step 303, distinguish the optical disc into the second type of format, and in the currently known formats, the optical disc of the first type of format is music Compact disc (CD-DA).

接着,为了更进一步确认详细的格式,执行步骤104,继续读取光盘第二影音轨的数据,步骤105,并且通过其特殊的数据、位内容来判别出详细的格式。同样参照图3,步骤304,其读取的特殊位的数据,是第二影音轨的第三十一扇区(sector 31)中的前五个字节(leading 5 bytes),步骤305,如果其位数据为00 00 01 BA 21则判别为VCD格式(激光视盘(Video CD或VCD)),步骤306,如果其位数据为00 00 01 BA 44则判别为SVCD格式(超级激光视盘(Super VCD或SVCD))。Next, in order to further confirm the detailed format, execute step 104, continue to read the data of the second video and audio track of the optical disc, step 105, and determine the detailed format through its special data and bit content. Referring to Fig. 3 equally, step 304, the data of the special position that it reads, is the first five bytes (leading 5 bytes) in the 31st sector (sector 31) of the second audiovisual track, step 305, if Its bit data is 00 00 01 BA 21 and then it is judged as VCD format (laser video disc (Video CD or VCD)), step 306, if its bit data is 00 00 01 BA 44 then it is judged as SVCD format (super laser video disc (Super VCD) or SVCD)).

判别出来正确的格式后,即可提供用户输入所要刻录的数据,然后进行刻录,刻录完成后,同样需要判断是否进行终结化处理,如果要,则得同时更新PMA及TOC,如果仍不要进行终结化处理,则仅需要更新PMA,然后可供下次再进行刻录。After identifying the correct format, the user can input the data to be recorded, and then perform recording. After the recording is completed, it is also necessary to determine whether to perform finalization processing. If so, update the PMA and TOC at the same time. If not, do not perform finalization If it is optimized, you only need to update the PMA, and then it can be used for burning next time.

当然,本发明还可有其他多种实施例,在不背离本发明精神及其实质的情况下,熟悉本领域的技术人员当可根据本发明作出各种相应的改变和变形,但这些相应的改变和变形都应属于本发明权利要求的保护范围。Of course, the present invention can also have other various embodiments, and those skilled in the art can make various corresponding changes and deformations according to the present invention without departing from the spirit and essence of the present invention, but these corresponding Changes and deformations should all belong to the protection scope of the claims of the present invention.

Claims (2)

1.一种刻录机光盘格式判别的方法,用以判别尚未终结化处理光盘内所储存数据的格式,其特征在于,包含有下列步骤:1. A method for discriminating the disc format of a recorder, for discriminating the format of the stored data in the disc that has not yet been finalized, it is characterized in that it includes the following steps: 通过比较所述光盘上的目录表与索引数据存储区不相等,确认所述光盘尚未终结化处理;Confirming that the optical disc has not been finalized by comparing the table of contents on the optical disc and the index data storage area are not equal; 读取所述光盘的第一影音轨的数据;read the data of the first audio-visual track of the optical disc; 通过所述第一影音轨的数据为空时,将所述光盘判别为CD-DA格式;When the data of the first audio-visual track is empty, the disc is judged to be in CD-DA format; 读取所述光盘的第二影音轨的数据;当所述第二影音轨的第三十一扇区中的前五个字节为00 00 01 BA 21时,判别所述光盘为VCD格式;及Read the data of the second audio-visual track of the optical disc; when the first five bytes in the thirty-first sector of the second audio-visual track are 00 00 01 BA 21, it is judged that the optical disc is in VCD format; and 当所述第二影音轨的第三十一扇区中的前五个字节00 00 01 BA 44时,判别所述光盘为SVCD格式。When the first five bytes in the thirty-first sector of the second video and audio track are 00 00 01 BA 44, it is judged that the optical disc is in SVCD format. 2.根据权利要求1所述的刻录机光盘格式判别的方法,其特征在于,所述的确认所述光盘尚未终结化处理的步骤进一步包括:2. The method for discriminating the disc format of a recorder disc according to claim 1, wherein the step of confirming that the disc has not been finalized further comprises: 判断所述光盘上的目录表是否等于所述索引数据存储区,如果否,则确认所述光盘尚未终结化处理;如果是,则进一步判断所述光盘上的目录表或索引数据存储区是否为零,如果为零,则判断为空白光盘可进行刻录,如果不为零,则判断为已经终结化处理的光盘,无法进行刻录只能读取。Judging whether the table of contents on the optical disc is equal to the index data storage area, if not, confirming that the optical disc has not been finalized; if yes, further judging whether the table of contents or the index data storage area on the optical disc is Zero, if it is zero, it is judged that a blank disc can be burned, and if it is not zero, it is judged that a disc that has been finalized cannot be burned and can only be read.
CNB2004100007153A 2004-01-14 2004-01-14 Method for discriminating CD format of CD-RW Expired - Fee Related CN100367390C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2004100007153A CN100367390C (en) 2004-01-14 2004-01-14 Method for discriminating CD format of CD-RW

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004100007153A CN100367390C (en) 2004-01-14 2004-01-14 Method for discriminating CD format of CD-RW

Publications (2)

Publication Number Publication Date
CN1641784A CN1641784A (en) 2005-07-20
CN100367390C true CN100367390C (en) 2008-02-06

Family

ID=34866866

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100007153A Expired - Fee Related CN100367390C (en) 2004-01-14 2004-01-14 Method for discriminating CD format of CD-RW

Country Status (1)

Country Link
CN (1) CN100367390C (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07272402A (en) * 1994-03-31 1995-10-20 Victor Co Of Japan Ltd Optical disc apparatus
CN1137675A (en) * 1995-01-30 1996-12-11 索尼公司 Disc-shaped recording medium, recording apparatus and reproducing apparatus
JPH113570A (en) * 1997-04-14 1999-01-06 Toshiba Corp Rewritable optical disk and its drive device
CN1268747A (en) * 1999-03-25 2000-10-04 三星电子株式会社 Multiple section CD disc, and recording and/or reproducing device and method
JP2003249010A (en) * 2002-02-21 2003-09-05 Sony Corp Method and program for controlling disk access, and recording medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07272402A (en) * 1994-03-31 1995-10-20 Victor Co Of Japan Ltd Optical disc apparatus
CN1137675A (en) * 1995-01-30 1996-12-11 索尼公司 Disc-shaped recording medium, recording apparatus and reproducing apparatus
JPH113570A (en) * 1997-04-14 1999-01-06 Toshiba Corp Rewritable optical disk and its drive device
CN1268747A (en) * 1999-03-25 2000-10-04 三星电子株式会社 Multiple section CD disc, and recording and/or reproducing device and method
JP2003249010A (en) * 2002-02-21 2003-09-05 Sony Corp Method and program for controlling disk access, and recording medium

Also Published As

Publication number Publication date
CN1641784A (en) 2005-07-20

Similar Documents

Publication Publication Date Title
CN100538857C (en) Be used to manage the optical recording media of method and this method of use of the defect area on the Write once optical recording medium
US6643238B2 (en) Method of discriminating disk type and reproducing apparatus thereof
TWI280575B (en) High-density optical disc and recording/reproducing method thereof
US7180841B2 (en) Recording method, recording medium, program, information recording medium, and information recording device
WO1999041749A1 (en) Information storage medium having multilayer information layer and multi-purpose information processor
JP2009187665A (en) Optical recording / reproducing device
JP4983297B2 (en) Data replication device
RU2373585C2 (en) Method for control of defect zone on write once optical record medium and optical record medium with its application
RU2433490C2 (en) Disc accessing method and device
CN100367390C (en) Method for discriminating CD format of CD-RW
US20070002696A1 (en) Recordable dvd structure
JP3527572B2 (en) CD-E writing system device
US7376342B2 (en) Method of determining disc type for disc burners
US20070065104A1 (en) Recordable dvd structure
US8218412B2 (en) Method and system for determining disc format for recovery of data recording
CN101051502B (en) Method for recovering damaged optical disc table of contents in optical disc
JP2008041141A (en) Video recorder
US20060209656A1 (en) Method For Determining A Write Type Of A Disc
JP4145853B2 (en) Method, program, and computer-readable recording medium for determining whether recording medium is original medium or duplicate medium
KR100496728B1 (en) A Copy-Protected Optical Recording Medium, a Method for Driving thereof and a Method for Manufacturing thereof
KR20060067340A (en) Device and method for correcting defects of write once optical discs
KR20030004522A (en) Method for editting content data in an optical disk reader/writer
KR20010055061A (en) Optical disk with copy protection and method for protecting data copying same
JP2004259364A (en) Device and method for recording information, information recording medium, and device and method for reproducing information
US20070064579A1 (en) Recordable DVD structure

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
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080206

Termination date: 20140114