CN105139870A - Real-time recording method of optical disc and device - Google Patents

Real-time recording method of optical disc and device Download PDF

Info

Publication number
CN105139870A
CN105139870A CN201510613270.4A CN201510613270A CN105139870A CN 105139870 A CN105139870 A CN 105139870A CN 201510613270 A CN201510613270 A CN 201510613270A CN 105139870 A CN105139870 A CN 105139870A
Authority
CN
China
Prior art keywords
file
imprinting
stored
real
start address
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
CN201510613270.4A
Other languages
Chinese (zh)
Other versions
CN105139870B (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.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua 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 Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN201510613270.4A priority Critical patent/CN105139870B/en
Publication of CN105139870A publication Critical patent/CN105139870A/en
Application granted granted Critical
Publication of CN105139870B publication Critical patent/CN105139870B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Management Or Editing Of Information On Record Carriers (AREA)

Abstract

The invention discloses a real-time recording method of an optical disc and a device. In this way, integrity in an abnormal occasion of recorded files in the real-time recording process is ensured and reliability of real-time recording is improved. The real-time recording method comprises steps of before the real-time recording, establishing at least one configuration file in a nonvolatile storage device connected with an optical disc recording device; for the to-be-recorded files, storing the file names of the files into the configuration files according the recording sequences before the files are recorded, and storing the file sizes of the files into the configuration file after the files are recorded or when the file sizes reach the preset threshold value; and when the real-time recording is finished, generating file system header information according to recording sequences of all recorded files stored in the configuration files and the attribute information of each of the recorded files, storing the file system header information in the preset storage space and deleting at least one configuration files stored in the storage device.

Description

A kind of real-time carving method of CD and device
Technical field
The present invention relates to CD burning technical field, particularly relate to a kind of real-time carving method and device of CD.
Background technology
In the hearing occasion such as law court, public security organ, usually need real-time for Interrogation Procedure imprinting to be become disposable CD, to give over to picture archive and judicial evidence.
Traditional imprinting mode carries out imprinting from CD beginning order, this imprinting mode requires before beginning imprinting, determine to treat the file number of imprinting and the size of each file, but the feature of in real time imprinting is exactly treat that the size of the file number of imprinting and each file is uncertain, so use traditional imprinting mode to carry out real-time imprinting, feasible method is: the file setting up multiple fixed size in advance, then according to the carrying out of inquesting, is filled into one by one by video recording in each file; Another kind of feasible method is: by the spatial cache be saved on hard disk of recording a video, and just this part video recording imprinting is become a file on CD when buffer memory is full.But these all exist, and file is too many is inconvenient to search, and need shortcomings such as waiting for a period of time when terminating imprinting.
Existing real-time imprinting mode, first in the reserved one section of logical tracks of CD beginning, engraving data from section region of after reserved track, first the information such as the size of each data file are kept in internal memory in real-time writing process, at the end of real-time imprinting, then on track reserved before these information are stored into.The essence of this mode is: first write data, rear written document information, as required the video recording imprinting in CD can be become the file of arbitrary size, any number, and substantially do not need when terminating real-time imprinting to wait for, the needs of real-time imprinting can well be adapted to.
But there is a kind of inborn defect in existing real-time imprinting mode: the application scenarios of imprinting in real time generally needs to ensure running into abnormal conditions, such as: the integrality of imprinting video recording when power-off or CD CD-ROM drive fault, but existing real-time imprinting mode because just understand writing in files information at the end of imprinting, if there is power-off in writing process in real time, the fileinfo be kept in internal memory will be lost, thus causes the file None-identified on CD.
In sum, in the real-time imprinting mode of prior art, if run into abnormal conditions, then the fileinfo be kept in internal memory will be lost, and the fileinfo of imprinting file cannot be written in CD, thus cause the file None-identified of imprinting on CD.
Summary of the invention
Embodiments provide a kind of real-time carving method and device of CD, during in order to ensure to run into abnormal conditions in real-time writing process, the integrality of imprinting file, improves the reliability of real-time imprinting.
The real-time carving method of a kind of CD that the embodiment of the present invention provides, the method comprises: before real-time imprinting, in the non-volatile memory device be connected with optical disc inscribing device, set up at least one configuration file, described configuration file treats the attribute information of imprinting file for storing; When real-time imprinting, for each file treating imprinting, before the imprinting starting this file, by the file name of this file according to imprinting sequential storage in described configuration file, when the imprinting or file size that terminate this file reach predetermined threshold value, the file size of this file is stored into described configuration file, and the file name of this file carry out corresponding with file size stores; When terminating real-time imprinting, according to the imprinting order of all files of imprinting stored in described configuration file and the attribute information spanned file system header of each file of imprinting, and described file system header is stored in the retaining space pre-set, delete at least one configuration file stored in described non-volatile memory device.
In the said method that the embodiment of the present invention provides, before real-time imprinting, at least one configuration file is set up in the non-volatile memory device be connected with optical disc inscribing device, when real-time imprinting, for each file treating imprinting, before the imprinting starting this file, by the file name of this file according to imprinting sequential storage in configuration file, when the imprinting or file size that terminate this file reach predetermined threshold value, the file size of this file is stored into configuration file, when terminating real-time imprinting, according to the imprinting order of all files of imprinting stored in configuration file and the attribute information spanned file system header of each file of imprinting, and file system header is stored in the retaining space pre-set, delete at least one configuration file stored in non-volatile memory device, also the attribute information being about to imprinting file is stored in the non-volatile memory device be connected with optical disc inscribing device, thus ensure that when running into abnormal conditions, still the attribute information of imprinting file can be read from the non-volatile memory device be connected with optical disc inscribing device, also namely still can on CD the attribute information of imprinting file review, thus the file of imprinting that can recover fast on CD, lose with the fileinfo be kept at when running into abnormal conditions in prior art in internal memory, the file None-identified of imprinting on CD is caused to be compared, ensure that in real-time writing process the integrality of imprinting file when running into abnormal conditions, improve the reliability of real-time imprinting.
In a kind of possible embodiment, in the said method that the embodiment of the present invention provides, before real-time imprinting, the method also comprises: determine retaining space and data space, and from the start address imprinting file of described data space.
In a kind of possible embodiment, in the said method that the embodiment of the present invention provides, describedly determine retaining space and data space, comprise: from the reference position of last section on CD, choose the orbit space of pre-sizing as described retaining space, the space on CD outside described retaining space is as described data space.
In a kind of possible embodiment, in the said method that the embodiment of the present invention provides, before real-time imprinting, after determining retaining space and data space, the method also comprises: the start address of the orbit number of described retaining space place track, described retaining space, the orbit number of described data space place track and the start address of described data space are stored in described configuration file.
In a kind of possible embodiment, in the said method that the embodiment of the present invention provides, when terminating real-time imprinting, according to the imprinting order of all files of imprinting stored in described configuration file and the attribute information spanned file system header of each file of imprinting, and described file system header is stored in the retaining space pre-set, comprise: when terminating real-time imprinting, the start address of described data space is read from CD or described configuration file, and according to the start address of described data space, the imprinting order of all files of imprinting stored in described configuration file and the file size of each file of imprinting, calculate the start address of each file of imprinting engraving data on CD, according to the start address of each file of imprinting engraving data on CD, file name and file size, structure catalogue listing and listed files, and described catalogue listing and described listed files are stored into the end of described data space, or described catalogue listing and described listed files are stored in described retaining space, according to the root directory information in described catalogue listing, structure file system header, and described file system header is stored in described retaining space.
In a kind of possible embodiment, in the said method that the embodiment of the present invention provides, when real-time imprinting, for each file treating imprinting, before the imprinting starting this file, the method also comprises: be stored in described configuration file by this file start address of engraving data on CD, and wherein, the carrying out that the start address of engraving data is corresponding with the file name of this file on CD stores this file.
In a kind of possible embodiment, in the said method that the embodiment of the present invention provides, when terminating real-time imprinting, according to the imprinting order of all files of imprinting stored in described configuration file and the attribute information spanned file system header of each file of imprinting, and described file system header is stored in the retaining space pre-set, comprise: when terminating real-time imprinting, from described configuration file, obtain the start address of each file of imprinting engraving data on CD; According to the start address of each file of imprinting engraving data on CD, file name and file size, structure catalogue listing and listed files, and described catalogue listing and described listed files are stored into the end of described data space, or described catalogue listing and described listed files are stored in described retaining space; According to the root directory information in described catalogue listing, structure file system header, and described file system header is stored in described retaining space.
In a kind of possible embodiment, in the said method that the embodiment of the present invention provides, the method also comprises: when real-time writing process occurs abnormal, after restarting optical disc inscribing device, if determine to there is not deleted configuration file in the non-volatile memory device be connected with optical disc inscribing device, from described not deleted configuration file, obtain the imprinting order of all files of imprinting and last file size of all files of imprinting before imprinting file, reading in the start address of described data space and described data space next from CD can write address, according to the imprinting of all files of imprinting order, last file size of all files of imprinting before imprinting file, in described data space start address and described data space, next can write address, calculates the file size of the imprinting of last file in described data space, according to the start address of described data space, the imprinting order of all files of imprinting and the file size of each file of imprinting, calculate the start address of each file of imprinting engraving data on CD, and according to the start address of each file of imprinting engraving data on CD, file name and file size, structure catalogue listing and listed files, then according to the root directory information in described catalogue listing, structure file system header, and file system header is stored in described retaining space or is stored in specified location, delete the configuration file in described non-volatile memory device.
In the said method that the embodiment of the present invention provides, when optical disc inscribing device run into abnormal conditions restart time, after restarting, if determine to there is not deleted configuration file in the non-volatile memory device be connected with optical disc inscribing device, when namely optical disc inscribing device breaks down, on CD, the fileinfo of imprinting file is not also written in CD yet, the attribute information of imprinting file now only need be obtained from non-volatile memory device, re-construct the file system header of imprinting file, the file of imprinting on CD can be recovered, therefore, the time of carrying out required for abnormal restoring is very short, and be applicable to power-off, the situations such as CD or CD-ROM drive fault, substantially increase the reliability of real-time imprinting.
In a kind of possible embodiment, in the said method that the embodiment of the present invention provides, when the CD for real-time imprinting is erasable optical disk, the method also comprises: for each file treating imprinting, in described erasable optical disk during this file of imprinting, in real time the file size that this file has write is stored in described configuration file.
The real-time Writing device of a kind of CD that the embodiment of the present invention provides, comprise: the first processing unit, for before real-time imprinting, in the non-volatile memory device be connected with optical disc inscribing device, set up at least one configuration file, described configuration file treats the attribute information of imprinting file for storing; Second processing unit, for when real-time imprinting, for each file treating imprinting, before the imprinting starting this file, by the file name of this file according to imprinting sequential storage in described configuration file, when terminating the imprinting of this file or file size reaches predetermined threshold value, the file size of this file is stored into described configuration file, and the file name of this file carry out corresponding with file size stores; 3rd processing unit, for when terminating real-time imprinting, according to the imprinting order of all files of imprinting stored in described configuration file and the attribute information spanned file system header of each file of imprinting, and described file system header is stored in the retaining space pre-set, delete at least one configuration file stored in described non-volatile memory device.
In the said apparatus that the embodiment of the present invention provides, before real-time imprinting, at least one configuration file is set up in the non-volatile memory device be connected with optical disc inscribing device, when real-time imprinting, for each file treating imprinting, before the imprinting starting this file, by the file name of this file according to imprinting sequential storage in configuration file, when the imprinting or file size that terminate this file reach predetermined threshold value, the file size of this file is stored into configuration file, when terminating real-time imprinting, according to the imprinting order of all files of imprinting stored in configuration file and the attribute information spanned file system header of each file of imprinting, and file system header is stored in the retaining space pre-set, delete at least one configuration file stored in non-volatile memory device, also the attribute information being about to imprinting file is stored in the non-volatile memory device be connected with optical disc inscribing device, thus ensure that when running into abnormal conditions, still the attribute information of imprinting file can be read from the non-volatile memory device be connected with optical disc inscribing device, also namely still can on CD the attribute information of imprinting file review, thus the file of imprinting that can recover fast on CD, lose with the fileinfo be kept at when running into abnormal conditions in prior art in internal memory, the file None-identified of imprinting on CD is caused to be compared, ensure that in real-time writing process the integrality of imprinting file when running into abnormal conditions, improve the reliability of real-time imprinting.
In a kind of possible embodiment, in the said apparatus that the embodiment of the present invention provides, described first processing unit before real-time imprinting, also for: determine retaining space and data space, and indicate described second processing unit from the start address imprinting file of described data space.
In a kind of possible embodiment, in the said apparatus that the embodiment of the present invention provides, described first processing unit determination retaining space and data space, specifically for: described first processing unit chooses the orbit space of pre-sizing as described retaining space from the reference position of last section on CD, and the space on CD outside described retaining space is as described data space.
In a kind of possible embodiment, in the said apparatus that the embodiment of the present invention provides, described first processing unit is before real-time imprinting, after determining retaining space and data space, also for: the start address of the orbit number of described retaining space place track, described retaining space, the orbit number of described data space place track and the start address of described data space are stored in described configuration file.
In a kind of possible embodiment, in the said apparatus that the embodiment of the present invention provides, when terminating real-time imprinting, the imprinting order of described 3rd processing unit according to all files of imprinting stored in described configuration file and the attribute information spanned file system header of each file of imprinting, and described file system header is stored in the retaining space pre-set, specifically for: when terminating real-time imprinting, described 3rd processing unit reads the start address of described data space from CD or described configuration file, and according to the start address of described data space, the imprinting order of all files of imprinting stored in described configuration file and the file size of each file of imprinting, calculate the start address of each file of imprinting engraving data on CD, described 3rd processing unit is according to the start address of each file of imprinting engraving data on CD, file name and file size, structure catalogue listing and listed files, and described catalogue listing and described listed files are stored into the end of described data space, or described catalogue listing and described listed files are stored in described retaining space, described 3rd processing unit, according to the root directory information in described catalogue listing, constructs file system header, and is stored in described retaining space by described file system header.
In a kind of possible embodiment, in the said apparatus that the embodiment of the present invention provides, described second processing unit is when real-time imprinting, for each file treating imprinting, before the imprinting starting this file, also for: be stored in described configuration file by this file start address of engraving data on CD, wherein, the carrying out that the start address of engraving data is corresponding with the file name of this file on CD stores this file.
In a kind of possible embodiment, in the said apparatus that the embodiment of the present invention provides, when terminating real-time imprinting, the imprinting order of described 3rd processing unit according to all files of imprinting stored in described configuration file and the attribute information spanned file system header of each file of imprinting, and described file system header is stored in the retaining space pre-set, specifically for: when terminating real-time imprinting, described 3rd processing unit obtains the start address of each file of imprinting engraving data on CD from described configuration file; Described 3rd processing unit is according to the start address of each file of imprinting engraving data on CD, file name and file size, structure catalogue listing and listed files, and described catalogue listing and described listed files are stored into the end of described data space, or described catalogue listing and described listed files are stored in described retaining space; Described 3rd processing unit, according to the root directory information in described catalogue listing, constructs file system header, and is stored in described retaining space by described file system header.
In a kind of possible embodiment, in the said apparatus that the embodiment of the present invention provides, described 3rd processing unit also for: when real-time writing process occurs abnormal, after restarting optical disc inscribing device, if described 3rd processing unit determines to there is not deleted configuration file in the non-volatile memory device be connected with optical disc inscribing device, from described not deleted configuration file, obtain the imprinting order of all files of imprinting and last file size of all files of imprinting before imprinting file, described 3rd processing unit to read in the start address of described data space and described data space next from CD can write address, according to the imprinting of all files of imprinting order, last file size of all files of imprinting before imprinting file, in described data space beginning address and described data space, next can write address, calculates the file size of the imprinting of last file in described data space, described 3rd processing unit is according to the start address of described data space, the imprinting order of all files of imprinting and the file size of each file of imprinting, calculate the start address of each file of imprinting engraving data on CD, and according to the start address of each file of imprinting engraving data on CD, file name and file size, structure catalogue listing and listed files, then according to the root directory information in described catalogue listing, structure file system header, and file system header is stored in described retaining space or is stored in specified location, delete the configuration file in described non-volatile memory device.
In the said apparatus that the embodiment of the present invention provides, when optical disc inscribing device run into abnormal conditions restart time, after restarting, if determine to there is not deleted configuration file in the non-volatile memory device be connected with optical disc inscribing device, when namely optical disc inscribing device breaks down, on CD, the fileinfo of imprinting file is not also written in CD yet, the attribute information of imprinting file now only need be obtained from non-volatile memory device, re-construct the file system header of imprinting file, the file of imprinting on CD can be recovered, therefore, the time of carrying out required for abnormal restoring is very short, and be applicable to power-off, the situations such as CD or CD-ROM drive fault, substantially increase the reliability of real-time imprinting.
In a kind of possible embodiment, in the said apparatus that the embodiment of the present invention provides, when the CD for real-time imprinting is erasable optical disk, described second processing unit also for: for each file treating imprinting, in described erasable optical disk during this file of imprinting, in real time the file size that this file has write is stored in described configuration file.
Accompanying drawing explanation
The schematic flow diagram of the real-time carving method of a kind of CD that Fig. 1 provides for the embodiment of the present invention;
The schematic diagram of the idiographic flow of the real-time carving method of the CD that Fig. 2 provides for the embodiment of the present invention;
The structural representation of the real-time Writing device of a kind of CD that Fig. 3 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with accompanying drawing, the real-time carving method of a kind of CD that the embodiment of the present invention provides and the embodiment of device are described in detail.
The real-time carving method of the CD that the embodiment of the present invention provides, do not limit using the file system type of CD, file system can be UDF, ISO9660 and other extended file system type etc. based on ISO9660, and is applicable to the CD of the disposable and erasable type such as CD, DVD, BD.
The retaining space mentioned in the embodiment of the present invention and data space, for disposable CD, retaining space can be retain track, specifically, CD is chosen from the reference position of last section one or two track as reservation track (retaining space), other track now on CD except retaining track is as data-track (data space); Certainly, for disposable CD, also can choose the segment space of last section original position track on CD as retaining space, the space on CD except retaining space is as data space.And for erasable optical disk, because erasable optical disk only has a track, therefore, need in the track of erasable optical disk that selected part space is as retaining space, other space on this track is as data space.In the embodiment of the present invention using disposable CD choose from the reference position of last section on CD one or two track as reservation track (retaining space), on CD except reservation track except other track as data-track (data space) for example is described in detail.
The real-time carving method of a kind of CD that the embodiment of the present invention provides, as shown in Figure 1, the method comprises:
Step 102, before real-time imprinting, sets up at least one configuration file in the non-volatile memory device be connected with optical disc inscribing device, and this configuration file treats the attribute information of imprinting file for storing;
Step 104, when real-time imprinting, for each file treating imprinting, before the imprinting starting this file, by the file name of this file according to imprinting sequential storage in configuration file, when terminating the imprinting of this file or file size reaches predetermined threshold value, the file size of this file is stored into configuration file, and the file name of this file carry out corresponding with file size stores;
Step 106, when terminating real-time imprinting, according to the imprinting order of all files of imprinting stored in configuration file and the attribute information spanned file system header of each file of imprinting, and file system header is stored in the reservation track pre-set, delete at least one configuration file stored in non-volatile memory device.
In the method that the embodiment of the present invention provides, before real-time imprinting, at least one configuration file is set up in the non-volatile memory device be connected with optical disc inscribing device, when real-time imprinting, for each file treating imprinting, before the imprinting starting this file, by the file name of this file according to imprinting sequential storage in configuration file, when the imprinting or file size that terminate this file reach predetermined threshold value, the file size of this file is stored into configuration file, when terminating real-time imprinting, according to the imprinting order of all files of imprinting stored in configuration file and the attribute information spanned file system header of each file of imprinting, and file system header is stored in the reservation track pre-set, delete at least one configuration file stored in non-volatile memory device, also the attribute information being about to imprinting file is stored in the non-volatile memory device be connected with optical disc inscribing device, thus ensure that when running into abnormal conditions, still the attribute information of imprinting file can be read from the non-volatile memory device be connected with optical disc inscribing device, also namely still can on CD the attribute information of imprinting file review, thus the file of imprinting that can recover fast on CD, lose with the fileinfo be kept at when running into abnormal conditions in prior art in internal memory, the file None-identified of imprinting on CD is caused to be compared, ensure that in real-time writing process the integrality of imprinting file when running into abnormal conditions, improve the reliability of real-time imprinting.
During concrete enforcement, at least one configuration file is set up in the non-volatile memory device be connected with optical disc inscribing device, this configuration file treats the attribute information of imprinting file for storing, wherein, attribute information until imprinting file at least comprises: until imprinting file file name, terminate each imprinting until imprinting file time this file file size, in other embodiments of the invention, treat that the attribute information of imprinting file can also comprise: the start address treating imprinting file engraving data on CD.Certainly, in other embodiments of the invention, in configuration file, not only can store the attribute information treating imprinting file, the orbit number retaining track, the start address retaining the start address of track, the orbit number of data-track and data-track can also be stored.
What deserves to be explained is, optical disc inscribing device can be the optical disc inscribing device in digital hard disc video recorder, also can be independent optical disc inscribing device, and the non-volatile memory device be connected with optical disc inscribing device, it can be External memory equipment, also can be optical disc inscribing device self with memory device, wherein, non-volatile memory device can be non-volatile, the erasable memory device such as hard disk, flash storage (Flashmemory), safe digital card (SecureDigitalMemoryCard, SD card).
During concrete enforcement, for each file treating imprinting, in real-time writing process, the size of file can be arbitrary, is determined the imprinting of when ends file by user, if but need the size limiting each file, then can set a predetermined threshold value, terminate the imprinting of this file when file size reaches this predetermined threshold value, wherein, predetermined threshold value can free setting as required, such as: 500,000,000 (MB).
During concrete enforcement, a configuration file can be set up in non-volatile memory device, the attribute information of each file in real-time writing process is stored in order in this configuration file, multiple configuration file can certainly be set up, the attribute information of each file in real-time writing process is stored in multiple configuration file, but need the imprinting order identifying each file in configuration file, such as: set up 9 configuration files, configuration file 1-9, preserve the attribute information of 9 files of real-time imprinting respectively, specifically: the attribute information storing first file of real-time imprinting in configuration file 1, the attribute information of second file of real-time imprinting is stored in configuration file 2, the like.Same, in configuration file, carrying out corresponding with file size for the file name of write optical file is stored, such as: storage in the same row or in same row, or sets up mapping relations, adds identical mark etc.
Certainly, the configuration file set up in the non-volatile memory device be connected with optical disc inscribing device, on the one hand for storing the attribute information treating imprinting file, when restarting in real-time writing process for optical disc inscribing device on the other hand, recover the file of imprinting on CD.What deserves to be explained is, when terminating real-time imprinting, if no exceptions in real-time writing process, then also can according to the attribute information structure file system header of the file of imprinting recorded in optical disc inscribing device internal memory, if occur abnormal in real time in writing process, optical disc inscribing device is restarted, the attribute information of the file of imprinting then recorded in optical disc inscribing device internal memory will be lost, now can according to the attribute information structure file system header of the file of imprinting stored in configuration file, recover the file of imprinting on CD, wherein, file system header is stored in and retains in track, after deleting at least one configuration file stored in non-volatile memory device, the method also comprises: close the data-track retaining track and engraving data, and close current session.
In a kind of possible embodiment, in the method that the embodiment of the present invention provides, before real-time imprinting, the method also comprises: determine to retain track and data-track, and from the start address imprinting file of data-track.
In a kind of possible embodiment, in the method that the embodiment of the present invention provides, determine to retain track and data-track, comprising: the track choosing predetermined quantity from the reference position of last section as reservation track, to retain the next track of track as data-track.
In a kind of possible embodiment, in the method that the embodiment of the present invention provides, before real-time imprinting, after determining to retain track and data-track, the method also comprises: the start address of the orbit number of reservation track, the reservation start address of track, the orbit number of data-track and data-track be stored in configuration file.
During concrete enforcement, after determining to retain track and data-track, the start address of the orbit number retaining track, the reservation start address of track, the orbit number of data-track and data-track can be selected to be stored in configuration file, also configuration file can not be stored into, then when needing to use the orbit number retaining track, the start address retaining the start address of track, the orbit number of data-track and data-track, need directly to read from CD.
In a kind of possible embodiment, in the method that the embodiment of the present invention provides, when terminating real-time imprinting, according to the imprinting order of all files of imprinting stored in configuration file and the attribute information spanned file system header of each file of imprinting, and file system header is stored in the reservation track pre-set, comprise: when terminating real-time imprinting, the start address of data-track is read from CD or configuration file, and according to the start address of data-track, the imprinting order of all files of imprinting stored in configuration file and the file size of each file of imprinting, calculate the start address of each file of imprinting engraving data on CD, according to the start address of each file of imprinting engraving data on CD, file name and file size, structure catalogue listing and listed files, and catalogue listing and listed files are stored into the end of data-track, or catalogue listing and listed files are stored in reservation track, according to the root directory information in catalogue listing, structure file system header, and file system header is stored in reservation track.
During concrete enforcement, if the start address of data-track is not stored in configuration file, from CD, then read the start address of data-track, certainly, if be stored in configuration file by the start address of data-track before real-time imprinting, then directly can read the start address of data-track from configuration file.According to the imprinting order of all files of imprinting stored in the start address of data-track, configuration file and the file size of each file of imprinting, the start address calculating each file of imprinting engraving data on CD can adopt mode of the prior art, repeats no more herein.
It should be noted that, according to the start address of each file of imprinting engraving data on CD, file name and file size, structure catalogue listing and listed files, catalogue listing and listed files can be stored in the end of data-track, also be namely stored on several last tracks of data-track, also can be stored in and retain on track, certainly, if catalogue listing and listed files are stored in reservation track, then need when arranging and retaining track to retain enough spaces, otherwise file too much may cause retaining the not enough situation of orbit space.
In a kind of possible embodiment, in the method that the embodiment of the present invention provides, when real-time imprinting, for each file treating imprinting, before the imprinting starting this file, the method also comprises: be stored in configuration file by this file start address of engraving data on CD, and wherein, the carrying out that the start address of engraving data is corresponding with the file name of this file on CD stores this file.
During concrete enforcement, when each file of real-time imprinting, can this file start address of engraving data on CD be stored in configuration file, then in the start address according to each file of imprinting engraving data on CD, file name and file size, when structure catalogue listing and listed files, without the need to calculating the start address of each file of imprinting engraving data on CD, directly obtain from configuration file, specifically:
In a kind of possible embodiment, in the method that the embodiment of the present invention provides, when terminating real-time imprinting, according to the imprinting order of all files of imprinting stored in configuration file and the attribute information spanned file system header of each file of imprinting, and file system header is stored in the reservation track pre-set, comprise: when terminating real-time imprinting, from configuration file, obtain the start address of each file of imprinting engraving data on CD; According to the start address of each file of imprinting engraving data on CD, file name and file size, structure catalogue listing and listed files, and catalogue listing and listed files are stored into the end of data-track, or catalogue listing and listed files are stored in reservation track; According to the root directory information in catalogue listing, structure file system header, and file system header is stored in reservation track.
In a kind of possible embodiment, in the method that the embodiment of the present invention provides, the method also comprises: when real-time writing process occurs abnormal, after restarting optical disc inscribing device, if determine to there is not deleted configuration file in the non-volatile memory device be connected with optical disc inscribing device, from not deleted configuration file, obtain the imprinting order of all files of imprinting and last file size of all files of imprinting before imprinting file, reading in the start address of data-track and data-track next from CD can write address, according to the imprinting of all files of imprinting order, last file size of all files of imprinting before imprinting file, in data-track start address and data-track, next can write address, calculates the file size of the imprinting of last file in data-track, according to the start address of data-track, the imprinting order of all files of imprinting and the file size of each file of imprinting, calculate the start address of each file of imprinting engraving data on CD, and according to the start address of each file of imprinting engraving data on CD, file name and file size, structure catalogue listing and listed files, then according to the root directory information in catalogue listing, structure file system header, and file system header be stored in reservation track or be stored in specified location, delete the configuration file in non-volatile memory device.Wherein, assigned address can free setting as required, such as: in other section.
In the method that the embodiment of the present invention provides, when optical disc inscribing device run into abnormal conditions restart time, after restarting, if determine to there is not deleted configuration file in the non-volatile memory device be connected with optical disc inscribing device, when namely optical disc inscribing device breaks down, on CD, the fileinfo of imprinting file is not also written in CD yet, the attribute information of imprinting file now only need be obtained from non-volatile memory device, re-construct the file system header of imprinting file, the file of imprinting on CD can be recovered, therefore, the time of carrying out required for abnormal restoring is very short, and be applicable to power-off, the situations such as CD or CD-ROM drive fault, substantially increase the reliability of real-time imprinting.
It should be noted that, in this embodiment of the invention, the imprinting order of all files of imprinting and last file size of all files of imprinting before imprinting file is obtained from not deleted configuration file, reading in the start address of data-track and data-track next from CD can write address, and according to the imprinting of all files of imprinting order, last is the file size of all files of imprinting before imprinting file, in data-track start address and data-track, next can write address, and then the file size of last file imprinting in calculating data-track, in other embodiments of the invention, if store the start address of each file of imprinting in not deleted configuration file, the start address of last file of imprinting then directly can be obtained from configuration file, and to read in data-track next from CD can write address, then can next can calculate the file size of the imprinting of last file in data-track by write address according in the start address of last file and data-track.
In a kind of possible embodiment, in the method that the embodiment of the present invention provides, when the CD for real-time imprinting is erasable optical disk, the method also comprises: for each file treating imprinting, in erasable optical disk during this file of imprinting, in real time the file size that this file has write is stored in configuration file.
During concrete enforcement, when CD is erasable optical disk, then when real-time imprinting, may there are data in CD, in real time the file size of each imprinting file is stored in configuration file, can after generation abnormal restarting optical disc inscribing device, from configuration file, directly obtain the file size of last file imprinting, just at the file of imprinting when recovering to occur abnormal, but suppose in real time the file size of each imprinting file not to be stored in configuration file, then when there is abnormal restarting optical disc inscribing device, cannot to read in data-track next can write address, also the file size of last file imprinting cannot namely be calculated, thus just at the file of imprinting when cannot recover exception occurs.
Below in conjunction with Fig. 2, for digital hard disc video recorder, the real-time carving method of the CD that the embodiment of the present invention provides is described in detail, specifically, as shown in Figure 2, comprises:
Step 202, digital hard disc video recorder is set up a configuration file, this configuration file for storing the attribute information of the file of imprinting on CD, such as: file name, file size etc.This configuration file can be based upon on non-volatile, the erasable memory device such as hard disk, Flash, SD card, and the attribute information of the file recorded in this configuration file is for the file access pattern under the abnormal conditions such as power-off.
Step 204, the logical tracks of predetermined number is retained as reservation track from the reference position of last section on CD, retain next track of track as data-track, for recording the data treating imprinting file, also can select in this step to be stored into retaining track and the orbit number of data-track and the start address of track in configuration file.
Step 206, when needing a newly-built file on CD in real-time writing process, also namely before this file of imprinting, the file name of this file is stored in configuration file, the start address of this file data of imprinting on CD in this step, also can be selected to be stored in configuration file.
Step 208, real-time imprinting file data.If there are abnormal conditions in the process, equipment is restarted, then perform step 220.
Step 210, judges whether the imprinting terminating current file, if terminate the imprinting of current file, then performs step 212, otherwise, perform step 208 and continue imprinting file data.Certainly, in writing process, if desired limit the size of each imprinting file, then can set a predetermined threshold, just terminate the imprinting of current file when the file size of current imprinting reaches predetermined threshold.
Step 212, when terminating the imprinting of current file, is stored into the file size of this file in configuration file.
Step 214, judges whether to terminate real-time imprinting, if terminate real-time imprinting, then performs step 216, otherwise performs the next file of step 206 imprinting.
Step 216, when terminating real-time imprinting, according to imprinting order and the file size of the start address of data-track, all files of imprinting, calculate the start address of each file engraving data on CD, if select the start address of each for imprinting on CD file data to be stored in configuration file in step 206, do not need in this step to recalculate, can directly obtain from configuration file.
Step 218, according to the start address of each file of imprinting engraving data on CD, file name and file size, structure catalogue listing and listed files, catalogue listing and listed files are stored into data-track end, again according to the root directory information in catalogue listing, structure file system header, and file system header is stored into reservation track, then close and retain track and data-track, and close this section, the configuration file simultaneously set up in delete step 202, once imprinting in real time completes.Also catalogue listing and listed files can be selected in this step to be stored into reservation track, then require that the space retaining track is enough large, file is too much else if, just may there will be the situation retaining orbit space deficiency.
Step 220, if digital hard disc video recorder generation abnormal conditions, such as: power-off, CD-ROM drive fault etc., need restarting equipment, then after restarting equipment, judge whether there is configuration file in memory device, if exist, show the non-normal termination of real-time imprinting before equipment is restarted, file system header is not stored into reservation track, then need the file recovering imprinting on CD, if there is not configuration file in memory device, then show that equipment does not perform real-time imprinting before the restart, then do not need to perform any operation.
Step 222, if there is configuration file in memory device, the file of imprinting before then needing to recover CD is restarted, the attribute information of imprinting file is then read from configuration file, obtain the imprinting order of all files of imprinting and last file size of all files of imprinting before imprinting file, certainly, the information such as start address of the orbit number retaining track and data-track and start address, each file of imprinting is also likely got.
Step 224, because the file size just in imprinting when equipment is restarted cannot obtain in configuration file, therefore, need to read the start address of data-track from CD and last does not close the last writing address (next in data-track can write address) of closed orbit, then according to the imprinting order of all files of imprinting, last is the file size of all files of imprinting before imprinting file, in data-track start address and data-track, last does not close the last writing address of closed orbit, calculate the file size of the imprinting of last file in data-track.Certainly, if record the start address of the track that fetches data in configuration file, then only need read from CD the last writing address that last does not close closed orbit.After the file size obtaining the imprinting of last file in data-track, according to the file size of the imprinting of the start address of data-track, all files of imprinting order and each file of imprinting, the start address of each file of imprinting engraving data on CD can be calculated.
Step 226, reservation track, data-track and current session in closing CD in current session (section of real-time imprinting file during exception occurs), open a new section simultaneously.
Step 228, according to the start address of each file of imprinting engraving data on CD, file name and file size, structure catalogue listing and listed files, then according to the root directory information in catalogue listing, structure file system header, is stored in new section by file system header, finally closes new section, delete the configuration file in memory device, CD has recovered.Certainly, also can not close the reservation track of current session, data-track and current session in step 226, then by the data-track of the write current session such as catalogue listing, listed files and file system header and track can be retained.
The real-time Writing device of a kind of CD that the embodiment of the present invention provides, as shown in Figure 3, comprise: the first processing unit 302, for before real-time imprinting, in the non-volatile memory device be connected with optical disc inscribing device, set up at least one configuration file, configuration file treats the attribute information of imprinting file for storing; Second processing unit 304, for when real-time imprinting, for each file treating imprinting, before the imprinting starting this file, by the file name of this file according to imprinting sequential storage in configuration file, when terminating the imprinting of this file or file size reaches predetermined threshold value, the file size of this file is stored into configuration file, and the file name of this file carry out corresponding with file size stores; 3rd processing unit 306, for when terminating real-time imprinting, according to the imprinting order of all files of imprinting stored in configuration file and the attribute information spanned file system header of each file of imprinting, and file system header is stored in the reservation track pre-set, delete at least one configuration file stored in non-volatile memory device.
In the device that the embodiment of the present invention provides, before real-time imprinting, at least one configuration file is set up in the non-volatile memory device be connected with optical disc inscribing device, when real-time imprinting, for each file treating imprinting, before the imprinting starting this file, by the file name of this file according to imprinting sequential storage in configuration file, when the imprinting or file size that terminate this file reach predetermined threshold value, the file size of this file is stored into configuration file, when terminating real-time imprinting, according to the imprinting order of all files of imprinting stored in configuration file and the attribute information spanned file system header of each file of imprinting, and file system header is stored in the reservation track pre-set, delete at least one configuration file stored in non-volatile memory device, also the attribute information being about to imprinting file is stored in the non-volatile memory device be connected with optical disc inscribing device, thus ensure that when running into abnormal conditions, still the attribute information of imprinting file can be read from the non-volatile memory device be connected with optical disc inscribing device, also namely still can on CD the attribute information of imprinting file review, thus the file of imprinting that can recover fast on CD, lose with the fileinfo be kept at when running into abnormal conditions in prior art in internal memory, the file None-identified of imprinting on CD is caused to be compared, ensure that in real-time writing process the integrality of imprinting file when running into abnormal conditions, improve the reliability of real-time imprinting.
In a kind of possible embodiment, in the device that the embodiment of the present invention provides, first processing unit 302 before real-time imprinting, also for: determine to retain track and data-track, and indicate the second processing unit 304 from the start address imprinting file of data-track.
In a kind of possible embodiment, in the device that the embodiment of the present invention provides, first processing unit 302 is determined to retain track and data-track, specifically for: the first processing unit 302 chooses the track of predetermined quantity as reservation track from the reference position of last section, to retain the next track of track as data-track.
In a kind of possible embodiment, in the device that the embodiment of the present invention provides, first processing unit 302 is before real-time imprinting, after determining to retain track and data-track, also for: the orbit number retaining track, the start address that retains the start address of track, the orbit number of data-track and data-track are stored in configuration file.
In a kind of possible embodiment, in the device that the embodiment of the present invention provides, when terminating real-time imprinting, the imprinting order of 3rd processing unit 306 according to all files of imprinting stored in configuration file and the attribute information spanned file system header of each file of imprinting, and file system header is stored in the reservation track pre-set, specifically for: when terminating real-time imprinting, 3rd processing unit 306 reads the start address of data-track from CD or configuration file, and according to the start address of data-track, the imprinting order of all files of imprinting stored in configuration file and the file size of each file of imprinting, calculate the start address of each file of imprinting engraving data on CD, 3rd processing unit 306 is according to the start address of each file of imprinting engraving data on CD, file name and file size, structure catalogue listing and listed files, and catalogue listing and listed files are stored into the end of data-track, or catalogue listing and listed files are stored in reservation track, 3rd processing unit 306, according to the root directory information in catalogue listing, constructs file system header, and is stored into by file system header in reservation track.
In a kind of possible embodiment, in the device that the embodiment of the present invention provides, second processing unit 304 is when real-time imprinting, for each file treating imprinting, before the imprinting starting this file, also for: be stored in configuration file by this file start address of engraving data on CD, wherein, the carrying out that the start address of engraving data is corresponding with the file name of this file on CD stores this file.
In a kind of possible embodiment, in the device that the embodiment of the present invention provides, when terminating real-time imprinting, the imprinting order of 3rd processing unit 306 according to all files of imprinting stored in configuration file and the attribute information spanned file system header of each file of imprinting, and file system header is stored in the reservation track pre-set, specifically for: when terminating real-time imprinting, the 3rd processing unit 306 obtains the start address of each file of imprinting engraving data on CD from configuration file; 3rd processing unit 306 is according to the start address of each file of imprinting engraving data on CD, file name and file size, structure catalogue listing and listed files, and catalogue listing and listed files are stored into the end of data-track, or catalogue listing and listed files are stored in reservation track; 3rd processing unit 306, according to the root directory information in catalogue listing, constructs file system header, and is stored into by file system header in reservation track.
In a kind of possible embodiment, in the device that the embodiment of the present invention provides, 3rd processing unit 306 also for: when real-time writing process occurs abnormal, after restarting optical disc inscribing device, if the 3rd processing unit 306 determines to there is not deleted configuration file in the non-volatile memory device be connected with optical disc inscribing device, from not deleted configuration file, obtain the imprinting order of all files of imprinting and last file size of all files of imprinting before imprinting file, 3rd processing unit 306 to read in the start address of data-track and data-track next from CD can write address, according to the imprinting of all files of imprinting order, last file size of all files of imprinting before imprinting file, in data-track start address and data-track, next can write address, calculates the file size of the imprinting of last file in data-track, 3rd processing unit 306 is according to the start address of data-track, the imprinting order of all files of imprinting and the file size of each file of imprinting, calculate the start address of each file of imprinting engraving data on CD, and according to the start address of each file of imprinting engraving data on CD, file name and file size, structure catalogue listing and listed files, then according to the root directory information in catalogue listing, structure file system header, and file system header be stored in reservation track or be stored in specified location, delete the configuration file in non-volatile memory device
In the device that the embodiment of the present invention provides, when optical disc inscribing device run into abnormal conditions restart time, after restarting, if determine to there is not deleted configuration file in the non-volatile memory device be connected with optical disc inscribing device, when namely optical disc inscribing device breaks down, on CD, the fileinfo of imprinting file is not also written in CD yet, the attribute information of imprinting file now only need be obtained from non-volatile memory device, re-construct the file system header of imprinting file, the file of imprinting on CD can be recovered, therefore, the time of carrying out required for abnormal restoring is very short, and be applicable to power-off, the situations such as CD or CD-ROM drive fault, substantially increase the reliability of real-time imprinting.
In a kind of possible embodiment, in the device that the embodiment of the present invention provides, when the CD for real-time imprinting is erasable optical disk, second processing unit 304 also for: for each file treating imprinting, in erasable optical disk during this file of imprinting, in real time the file size that this file has write is stored in configuration file.
The real-time Writing device of the CD that the embodiment of the present invention provides, can be integrated in digital hard disc video recorder or other optical disc inscribing device, wherein, first processing unit 302, second processing unit 304 and the 3rd processing unit 306 all can adopt the processors such as CPU, can be same processor, also can be different processor.
In sum, the real-time carving method of a kind of CD that the embodiment of the present invention provides and device, before real-time imprinting, at least one configuration file is set up in the non-volatile memory device be connected with optical disc inscribing device, when real-time imprinting, for each file treating imprinting, before the imprinting starting this file, by the file name of this file according to imprinting sequential storage in configuration file, when the imprinting or file size that terminate this file reach predetermined threshold value, the file size of this file is stored into configuration file, when terminating real-time imprinting, according to the imprinting order of all files of imprinting stored in configuration file and the attribute information spanned file system header of each file of imprinting, and file system header is stored in the reservation track pre-set, delete at least one configuration file stored in non-volatile memory device, also the attribute information being about to imprinting file is stored in the non-volatile memory device be connected with optical disc inscribing device, thus ensure that when running into abnormal conditions, still the attribute information of imprinting file can be read from the non-volatile memory device be connected with optical disc inscribing device, also namely still can on CD the attribute information of imprinting file review, thus the file of imprinting that can recover fast on CD, ensure that in real-time writing process the integrality of imprinting file when running into abnormal conditions, improve the reliability of real-time imprinting.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disk memory and optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the process flow diagram of the method for the embodiment of the present invention, equipment (system) and computer program and/or block scheme.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block scheme and/or square frame and process flow diagram and/or block scheme and/or square frame.These computer program instructions can being provided to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computing machine or other programmable data processing device produce device for realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be loaded in computing machine or other programmable data processing device, make on computing machine or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computing machine or other programmable devices is provided for the step realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (18)

1. a real-time carving method for CD, it is characterized in that, the method comprises:
Before real-time imprinting, set up at least one configuration file in the non-volatile memory device be connected with optical disc inscribing device, described configuration file treats the attribute information of imprinting file for storing;
When real-time imprinting, for each file treating imprinting, before the imprinting starting this file, by the file name of this file according to imprinting sequential storage in described configuration file, when the imprinting or file size that terminate this file reach predetermined threshold value, the file size of this file is stored into described configuration file, and the file name of this file carry out corresponding with file size stores;
When terminating real-time imprinting, according to the imprinting order of all files of imprinting stored in described configuration file and the attribute information spanned file system header of each file of imprinting, and described file system header is stored in the retaining space pre-set, delete at least one configuration file stored in described non-volatile memory device.
2. method according to claim 1, is characterized in that, before real-time imprinting, the method also comprises: determine retaining space and data space, and from the start address imprinting file of described data space.
3. method according to claim 2, it is characterized in that, describedly determine retaining space and data space, comprise: from the reference position of last section on CD, choose the orbit space of pre-sizing as described retaining space, the space on CD outside described retaining space is as described data space.
4. method according to claim 3, it is characterized in that, before real-time imprinting, after determining retaining space and data space, the method also comprises: the start address of the orbit number of described retaining space place track, described retaining space, the orbit number of described data space place track and the start address of described data space are stored in described configuration file.
5. method according to claim 4, it is characterized in that, when terminating real-time imprinting, according to the imprinting order of all files of imprinting stored in described configuration file and the attribute information spanned file system header of each file of imprinting, and described file system header is stored in the retaining space pre-set, comprising:
When terminating real-time imprinting, the start address of described data space is read from CD or described configuration file, and according to the imprinting order of all files of imprinting stored in the start address of described data space, described configuration file and the file size of each file of imprinting, calculate the start address of each file of imprinting engraving data on CD;
According to the start address of each file of imprinting engraving data on CD, file name and file size, structure catalogue listing and listed files, and described catalogue listing and described listed files are stored into the end of described data space, or described catalogue listing and described listed files are stored in described retaining space;
According to the root directory information in described catalogue listing, structure file system header, and described file system header is stored in described retaining space.
6. the method according to any one of claim 1-4, it is characterized in that, when real-time imprinting, for each file treating imprinting, before the imprinting starting this file, the method also comprises: be stored in described configuration file by this file start address of engraving data on CD, and wherein, the carrying out that the start address of engraving data is corresponding with the file name of this file on CD stores this file.
7. method according to claim 6, it is characterized in that, when terminating real-time imprinting, according to the imprinting order of all files of imprinting stored in described configuration file and the attribute information spanned file system header of each file of imprinting, and described file system header is stored in the retaining space pre-set, comprising:
When terminating real-time imprinting, from described configuration file, obtain the start address of each file of imprinting engraving data on CD;
According to the start address of each file of imprinting engraving data on CD, file name and file size, structure catalogue listing and listed files, and described catalogue listing and described listed files are stored into the end of described data space, or described catalogue listing and described listed files are stored in described retaining space;
According to the root directory information in described catalogue listing, structure file system header, and described file system header is stored in described retaining space.
8. method according to claim 1, is characterized in that, the method also comprises:
When real-time writing process occurs abnormal, after restarting optical disc inscribing device, if determine to there is not deleted configuration file in the non-volatile memory device be connected with optical disc inscribing device, from described not deleted configuration file, obtain the imprinting order of all files of imprinting and last file size of all files of imprinting before imprinting file;
Reading in the start address of described data space and described data space next from CD can write address, according to the imprinting of all files of imprinting order, last file size of all files of imprinting before imprinting file, in described data space start address and described data space, next can write address, calculates the file size of the imprinting of last file in described data space;
According to the start address of described data space, the imprinting order of all files of imprinting and the file size of each file of imprinting, calculate the start address of each file of imprinting engraving data on CD, and according to the start address of each file of imprinting engraving data on CD, file name and file size, structure catalogue listing and listed files, then according to the root directory information in described catalogue listing, structure file system header, and file system header is stored in described retaining space or is stored in specified location, delete the configuration file in described non-volatile memory device.
9. method according to claim 1, it is characterized in that, when the CD for real-time imprinting is erasable optical disk, the method also comprises: for each file treating imprinting, in described erasable optical disk during this file of imprinting, in real time the file size that this file has write is stored in described configuration file.
10. a real-time Writing device for CD, is characterized in that, comprising:
First processing unit, for before real-time imprinting, sets up at least one configuration file in the non-volatile memory device be connected with optical disc inscribing device, and described configuration file treats the attribute information of imprinting file for storing;
Second processing unit, for when real-time imprinting, for each file treating imprinting, before the imprinting starting this file, by the file name of this file according to imprinting sequential storage in described configuration file, when terminating the imprinting of this file or file size reaches predetermined threshold value, the file size of this file is stored into described configuration file, and the file name of this file carry out corresponding with file size stores;
3rd processing unit, for when terminating real-time imprinting, according to the imprinting order of all files of imprinting stored in described configuration file and the attribute information spanned file system header of each file of imprinting, and described file system header is stored in the retaining space pre-set, delete at least one configuration file stored in described non-volatile memory device.
11. devices according to claim 10, is characterized in that, described first processing unit before real-time imprinting, also for: determine retaining space and data space, and indicate described second processing unit from the start address imprinting file of described data space.
12. devices according to claim 11, it is characterized in that, described first processing unit determination retaining space and data space, specifically for: described first processing unit chooses the orbit space of pre-sizing as described retaining space from the reference position of last section on CD, and the space on CD outside described retaining space is as described data space.
13. devices according to claim 12, it is characterized in that, described first processing unit is before real-time imprinting, after determining retaining space and data space, also for: the start address of the orbit number of described retaining space place track, described retaining space, the orbit number of described data space place track and the start address of described data space are stored in described configuration file.
14. devices according to claim 13, it is characterized in that, when terminating real-time imprinting, the imprinting order of described 3rd processing unit according to all files of imprinting stored in described configuration file and the attribute information spanned file system header of each file of imprinting, and described file system header is stored in the retaining space pre-set, specifically for:
When terminating real-time imprinting, described 3rd processing unit reads the start address of described data space from CD or described configuration file, and according to the imprinting order of all files of imprinting stored in the start address of described data space, described configuration file and the file size of each file of imprinting, calculate the start address of each file of imprinting engraving data on CD;
Described 3rd processing unit is according to the start address of each file of imprinting engraving data on CD, file name and file size, structure catalogue listing and listed files, and described catalogue listing and described listed files are stored into the end of described data space, or described catalogue listing and described listed files are stored in described retaining space;
Described 3rd processing unit, according to the root directory information in described catalogue listing, constructs file system header, and is stored in described retaining space by described file system header.
15. devices according to any one of claim 10-13, it is characterized in that, described second processing unit is when real-time imprinting, for each each file treating imprinting, before the imprinting starting this file, also for: be stored in described configuration file by this file start address of engraving data on CD, wherein, the carrying out that the start address of engraving data is corresponding with the file name of this file on CD stores this file.
16. devices according to claim 15, it is characterized in that, when terminating real-time imprinting, the imprinting order of described 3rd processing unit according to all files of imprinting stored in described configuration file and the attribute information spanned file system header of each file of imprinting, and described file system header is stored in the retaining space pre-set, specifically for:
When terminating real-time imprinting, described 3rd processing unit obtains the start address of each file of imprinting engraving data on CD from described configuration file;
Described 3rd processing unit is according to the start address of each file of imprinting engraving data on CD, file name and file size, structure catalogue listing and listed files, and described catalogue listing and described listed files are stored into the end of described data space, or described catalogue listing and described listed files are stored in described retaining space;
Described 3rd processing unit, according to the root directory information in described catalogue listing, constructs file system header, and is stored in described retaining space by described file system header.
17. devices according to claim 10, it is characterized in that, described 3rd processing unit also for: when real-time writing process occurs abnormal, after restarting optical disc inscribing device, if described 3rd processing unit determines to there is not deleted configuration file in the non-volatile memory device be connected with optical disc inscribing device, from described not deleted configuration file, obtain the imprinting order of all files of imprinting and last file size of all files of imprinting before imprinting file;
Described 3rd processing unit to read in the start address of described data space and described data space next from CD can write address, according to the imprinting of all files of imprinting order, last file size of all files of imprinting before imprinting file, in described data space start address and described data space, next can write address, calculates the file size of the imprinting of last file in described data space;
Described 3rd processing unit is according to the start address of described data space, the imprinting order of all files of imprinting and the file size of each file of imprinting, calculate the start address of each file of imprinting engraving data on CD, and according to the start address of each file of imprinting engraving data on CD, file name and file size, structure catalogue listing and listed files, then according to the root directory information in described catalogue listing, structure file system header, and file system header is stored in described retaining space or is stored in specified location, delete the configuration file in described non-volatile memory device.
18. devices according to claim 10, it is characterized in that, when the CD for real-time imprinting is erasable optical disk, described second processing unit also for: for each file treating imprinting, in described erasable optical disk during this file of imprinting, in real time the file size that this file has write is stored in described configuration file.
CN201510613270.4A 2015-09-23 2015-09-23 The real-time carving method and device of a kind of CD Active CN105139870B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510613270.4A CN105139870B (en) 2015-09-23 2015-09-23 The real-time carving method and device of a kind of CD

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510613270.4A CN105139870B (en) 2015-09-23 2015-09-23 The real-time carving method and device of a kind of CD

Publications (2)

Publication Number Publication Date
CN105139870A true CN105139870A (en) 2015-12-09
CN105139870B CN105139870B (en) 2018-05-25

Family

ID=54725191

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510613270.4A Active CN105139870B (en) 2015-09-23 2015-09-23 The real-time carving method and device of a kind of CD

Country Status (1)

Country Link
CN (1) CN105139870B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107103919A (en) * 2016-02-23 2017-08-29 杭州海康威视数字技术股份有限公司 A kind of method imprinted CDs, apparatus and system
CN111128247A (en) * 2019-12-18 2020-05-08 浙江大华技术股份有限公司 Data recording method, device, computing equipment and storage medium
CN112530467A (en) * 2019-10-08 2021-03-19 北京中科开迪软件有限公司 Optical disk storage additional recording method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001283522A (en) * 2000-03-30 2001-10-12 Sanyo Electric Co Ltd Optical disk recording and reproducing device
CN1609984A (en) * 2003-10-23 2005-04-27 汤姆森许可贸易公司 Method and apparatus for recording data and recovering recorded data
JP2010257507A (en) * 2009-04-22 2010-11-11 Toshiba Corp Magnetic disk device
CN101909189A (en) * 2010-07-22 2010-12-08 杭州海康威视数字技术股份有限公司 File recovery method, system and DVR (Digital Video Recorder)
CN102629485A (en) * 2012-04-16 2012-08-08 北京华夏电通科技股份有限公司 Real-time burning method and device of optical disk for synchronous audio and video recording
US20140089263A1 (en) * 2012-09-27 2014-03-27 Sony Corporation File recording apparatus, file system management method, and changer drive

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001283522A (en) * 2000-03-30 2001-10-12 Sanyo Electric Co Ltd Optical disk recording and reproducing device
CN1609984A (en) * 2003-10-23 2005-04-27 汤姆森许可贸易公司 Method and apparatus for recording data and recovering recorded data
JP2010257507A (en) * 2009-04-22 2010-11-11 Toshiba Corp Magnetic disk device
CN101909189A (en) * 2010-07-22 2010-12-08 杭州海康威视数字技术股份有限公司 File recovery method, system and DVR (Digital Video Recorder)
CN102629485A (en) * 2012-04-16 2012-08-08 北京华夏电通科技股份有限公司 Real-time burning method and device of optical disk for synchronous audio and video recording
US20140089263A1 (en) * 2012-09-27 2014-03-27 Sony Corporation File recording apparatus, file system management method, and changer drive

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107103919A (en) * 2016-02-23 2017-08-29 杭州海康威视数字技术股份有限公司 A kind of method imprinted CDs, apparatus and system
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
CN111128247A (en) * 2019-12-18 2020-05-08 浙江大华技术股份有限公司 Data recording method, device, computing equipment and storage medium
CN111128247B (en) * 2019-12-18 2021-06-15 浙江大华技术股份有限公司 Data recording method, device, computing equipment and storage medium

Also Published As

Publication number Publication date
CN105139870B (en) 2018-05-25

Similar Documents

Publication Publication Date Title
CN107643880A (en) The method and device of file data migration based on distributed file system
CN106354662B (en) A kind of NAND flash data storage method
KR20140133427A (en) Method for managing data stored in flash memory and associated memory device and controller
CN103226965A (en) Time-bitmap-based audio/video data access method
JP2006519444A (en) Flash memory data management method
CN105139870A (en) Real-time recording method of optical disc and device
WO2008136563A1 (en) Method of storing meta-data and system for storing meta-data
CN105744200B (en) The storage method and device of surveillance video
CN111124303A (en) Data storage method, device and system
TW201351141A (en) Data storage device and data trimming method
JP2008077669A (en) Recording method
CN105095352B (en) Data processing method and device applied to distributed system
CN109683819A (en) A kind of content of disk file irreversibly soft delet method
JPWO2013046342A1 (en) Virtual tape device and control method of virtual tape device
CN115309591B (en) Recovery method and related device of full flash memory system
KR101083054B1 (en) Flash memory overwriting method and apparatus
US8775383B2 (en) File editing apparatus and file editing method
US20070174739A1 (en) Disk device, method of writing data in disk device, and computer product
TWI631461B (en) Controlling method of storage of driving recorder and storage controlling system
CN111090396A (en) File processing method and device and electronic equipment
JP2016012382A (en) Information processor, information processing method, and program
CN110688257A (en) Method, device and equipment for repairing local metadata of full flash memory array
KR20140039756A (en) Data storage device and operating method thereof
CN107273051A (en) The reading/writing method and device of I/O data
JP2018206161A (en) Storage device and storage device data management method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant