A kind of method and apparatus that the DVD CD is backed up
Technical field
The present invention relates to the DVD technology, more particularly, relate to a kind of method and apparatus that the DVD CD is backed up.
Background technology
The full name of DVD " Digital Video Disc ", i.e. " digital video disk " is the successor of CD/LD/VCD/EVD, is the memory technology of the generally acknowledged generation standard of show business.Generally speaking, the catalogue on the DVD CD has comprised Audio_TS and Video_TS (video title set, VTS) two sub-directories.Because Audio_TS keeps the laser disc DVD-AUDIO that gives the DVD version to use, so in DVD film CD, this file is empty.All video/audio and the caption informations of then in store film among the Video_TS.Regulation according to DVD film CD (DVD-VIDEO) standard should comprise three types file: VOB, IFO, BUP in the Video_TS file of a standard, divides although their effects separately below.
VOB (Video OBjects video target files): vob file is used for preserving the picture data that video data stream, audio data stream, multilingual subtitle data stream and offerings list and button in the DVD film use.Owing to can preserve 1 video data stream, 8 audio data streams and 32 subtitle data streams at most in a vob file, so the DVD film also just can have the sound accompaniment of maximum 8 kinds of language and the captions of 32 kinds of language.IFO (InFOrmation message file): the IFO file is used for controlling the broadcast of vob file.Preserve the control information of how and when playing data in the vob file in the file, such as the zero-time of paragraph, the position of audio data stream, the information such as position of subtitle data stream.DVD player or playout software could organically combine the various data of forming the DVD film and play through reading the IFO file.Because can the IFO file is related to CD normal play, so all IFO files all have a backup---be corresponding BUP file of the same name.The DVD CD of standard all is to play automatically.Whether play automatically, be the setting of microcomputer player.BUP (BackUP backup file): the content of BUP file and IFO file is identical, is the backup of IFO file.Because the IFO file is extremely important for the normal play that guarantees film, thus need to keep a copy, in order to when reading of IFO file made a mistake, still obtaining corresponding information through reading the BUP file.
Because the easy damaged property of DVD CD, problems such as scuffing will appear scratching in the user after frequent the use, cause playing not smooth or can't play at all.Generally speaking, through the mode of backup DVD CD, the user can use the CD after the backup to watch, and reduces the frequency of utilization to original disc, thereby reaches the purpose of protection original disc.
Usually; Dvd video disc is made up of contents such as main film, advertisement, titbit, warnings, and wherein main film is the main object that the user watches, and contents such as advertisement, titbit, warning then are that the publisher of film adds; Generally be before the beginning of main film, to play; Because the time is long and on DVD player, can not be skipped, all must finish watching these contents earlier when causing the user to watch film at every turn, influence the stand-by period that user's viewing is experienced and prolongation is watched.
The method of the main film backup of existing DVD CD is only to keep main movie contents itself, and does not keep primitive menu.Under this mode,, cause the user on DVD player, to watch the mode of operation and the original disc of backup back CD inconsistent owing to do not have menu or menu difference.
Summary of the invention
The technical matters that the present invention will solve is that mode of operation and the inconsistent defective of original disc to the above-mentioned user of prior art watches the backup CD provide a kind of method and apparatus that the DVD CD is backed up.
The technical solution adopted for the present invention to solve the technical problems is: construct a kind of method that the DVD CD is backed up, comprising:
Video_TS file in the DVD CD backs up;
Resolve the IFO file in the said Video_TS file, to obtain all video title information;
Discern main video title and non-main video title in the said video title; And resolve the corresponding IFO file of each non-main video title; To obtain and to revise the broadcast information of all video units in each non-main video title, make that all video units can finish fast in each non-main video title;
Use the broadcast information of all video units in amended each non-main video title to replace original broadcast information, to generate new IFO file and BUP file.
In method of the present invention, said video title information comprises the playing duration of video title, and main video title and the non-main video title wherein discerned in the said video title comprise:
If whether the playing duration of judging each video title one by one then be judged to be main video title, otherwise is judged to be non-main video title more than or equal to one hour.
In method of the present invention, said video title information comprises the playing duration of video title, and main video title and the non-main video title wherein discerned in the said video title comprise:
Whether the playing duration of judging each video title is main video title all less than one hour if then judge the longest video title of playing duration, and other video titles are judged to be non-main video title.
In method of the present invention; The broadcast information of said video unit comprises the playing duration of video unit; The wherein said broadcast information of obtaining and revise all video units in each non-main video title makes that all video units can finish fast in each non-main video title to comprise:
Obtain the playing duration of all video units that comprised in each non-main video title; And the playing duration of all video units is set to 0.
In method of the present invention; The broadcast information of said video unit also comprises initial sector, the termination sector of video unit; The wherein said broadcast information of obtaining and revise all video units in each non-main video title makes that all video units can finish also fast in each non-main video title to comprise:
Obtain initial sector, the termination sector of all video units that comprised in each non-main video title; And the initial sector of all video units, stop the sector and be set to 0.
The present invention also constructs a kind of device that the DVD CD is backed up, and comprising:
Backup module is used for the Video_TS file of DVD CD is backed up;
Parsing module is used for resolving the IFO file of said Video_TS file, to obtain all video title information;
Identification module is used for discerning the main video title and the non-main video title of said video title;
Modified module is resolved the corresponding IFO file of each non-main video title, to obtain and to revise the broadcast information of all video units in each non-main video title, makes that all video units can finish fast in each non-main video title;
Generation module is used for using the broadcast information of amended each non-main all video unit of video title to replace original broadcast information, to generate new IFO file and BUP file.
In device of the present invention, the said video title information that said parsing module obtains comprises the playing duration of video title; Said identification module is further used for:
If whether the playing duration of judging each video title one by one then be judged to be main video title, otherwise is judged to be non-main video title more than or equal to one hour.
In said apparatus of the present invention, the said video title information that said parsing module obtains comprises the playing duration of video title; Said identification module is further used for:
Whether the playing duration of judging each video title is main video title all less than one hour if then judge the longest video title of playing duration, and other video titles are judged to be non-main video title.
In device of the present invention, the broadcast information of said video unit comprises the playing duration of video unit, and said modified module is further used for:
Obtain the playing duration of all video units that comprised in each non-main video title; And the playing duration of all video units is set to 0.
In said apparatus of the present invention, the broadcast information of said video unit also comprises initial sector, the termination sector of video unit, and said modified module is further used for:
Obtain initial sector, the termination sector of all video units that comprised in each non-main video title; And the initial sector of all video units, stop the sector and be set to 0.
The beneficial effect of embodiment of the present invention method and apparatus is; Only back up the user and want the main video title content of watching, and remove contents such as advertisement, titbit, warning, the user just can skip these contents and direct viewing master video title; Shorten the stand-by period of watching, strengthen user's the experience of viewing and admiring.And the time only revise the video unit broadcast information (such as initial sector, playing duration, termination sector) that the non-main video title of former dish comprises in backup; And keep other content and the setting of former dish; When thereby the CD after guaranteeing to back up was play on DVD player, user's mode of operation and former dish were consistent.
Description of drawings
To combine accompanying drawing and embodiment that the present invention is described further below, in the accompanying drawing:
Fig. 1 is the process flow diagram according to the method that the DVD CD is backed up of the present invention's one preferred embodiment;
Fig. 2 is the logical organization synoptic diagram according to the device that the DVD CD is backed up of the present invention's one preferred embodiment.
Embodiment
In order to make the object of the invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with accompanying drawing and embodiment.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
The invention provides a kind of method that the DVD CD is backed up, comprising: the Video_TS file in the DVD CD backs up; Resolve the IFO file in the said Video_TS file, to obtain the information of all video titles (Title); Discern main video title and non-main video title in the said video title; And resolve the corresponding IFO file of each non-main video title; To obtain and to revise the broadcast information of all video units (Cell) in each non-main video title, make that all video units can finish fast in each non-main video title; Use the broadcast information of all video units in amended each non-main video title to replace original broadcast information, to generate new IFO file and BUP file.Describe the operation steps of the method that the present invention backs up the DVD CD in detail below in conjunction with Fig. 1.
Fig. 1 is the process flow diagram according to the method that the DVD CD is backed up of the present invention's one preferred embodiment.As shown in Figure 1, method 100 starts from step 102.
Subsequently, at next step 104, the Video_TS file in the DVD CD is backed up;
Subsequently, at next step 106, resolve the IFO file in the said Video_TS file, to obtain all video title information; Video title information comprises the playing duration of video title.
Subsequently; At next step 108; Discern main video title and non-main video title in the said video title; And resolve the corresponding IFO file of each non-main video title, to obtain and to revise the broadcast information of all video units in each non-main video title, make that all video units can finish fast in each non-main video title;
Subsequently; At next step 110; Use the original broadcast information of the broadcast information replacement backup of all video units in amended each non-main video title; Generating new IFO file and BUP file, thereby can the Video_TS file of newly revising be burnt on user's the target disc, accomplish backup the DVD CD.
In concrete implementation procedure; In the step 108; Main video title and the non-main video title wherein discerned in the said video title comprise: if whether the playing duration of judging each video title one by one then be judged to be main video title, otherwise is judged to be non-main video title greater than one hour.Under the another kind of situation, the playing duration of possible all video titles so just judges that the longest video title of playing duration is main video title all less than one hour, and other video titles are judged to be non-main video title.
In concrete implementation procedure; In the step 108; The broadcast information of said video unit comprises the playing duration of video unit, and the wherein said broadcast information of obtaining and revise all video units in each non-main video title comprises: the playing duration of obtaining all video units that comprised in each non-main video title; And the playing duration of all video units is set to 0, thereby makes and when these video units of player plays, will finish at once, shortened unnecessary viewing time, strengthened user's viewing experience.
In concrete implementation procedure; In the step 108; The broadcast information of said video unit also comprises initial sector, the termination sector of video unit, and the wherein said broadcast information of obtaining and revise all video units in each non-main video title also can comprise: the initial sector, the termination sector that obtain all video units that comprised in each non-main video title; And the initial sector of all video units, stop the sector and be set to 0.
Generally speaking; Player is the broadcast that the playing duration of identification video unit is come control of video; But for the sake of security, also reconfigurable or revise video unit initial sector, stop the sector, what guaranteed to revise is perfectly safe; Make non-main video title to skip or to finish at once, shortened unnecessary viewing time to the full extent.
At last, method 100 ends at step 112.
The also available following steps of said method are described:
1, copy source tray Video_TS file clips to local hard drive.
2, resolve Video_TS.IFO and obtain all Title information.
3, identify main film Title and non-main film Title, recognition methods is following:
1), then is main film Title, otherwise is non-main film Title if the duration of Title is greater than or equal to 1 hour;
2) if it is main film Title that the duration of all Title all less than 1 hour, is then got the longest Title, remaining is non-main film Title;
4, resolve initial sector, termination sector and the playing duration that the corresponding IFO file of each non-main film Title obtains all Cell that comprised.
5, the initial sector of Cell, termination sector and playing duration are set to 0, when these Cell of player plays, will play at once like this.
6, replace the Cell information in the former IFO file with amended Cell information.
7, generate new IFO file and BUP file, wherein the BUP file is the copy of IFO.
8, local Video_TS file is burnt on the target disc.
Fig. 2 is the logical organization synoptic diagram according to the device that the DVD CD is backed up of the present invention's one preferred embodiment.As shown in Figure 2, DVD back-up device 200 comprises backup module 202, parsing module 204, identification module 206, modified module 208, generation module 210.
Backup module 202 is used for the Video_TS file of DVD CD is backed up;
Parsing module 204 is used for resolving the IFO file of said Video_TS file, to obtain all video title information;
Identification module 206 is used for discerning the main video title and the non-main video title of said video title;
Modified module 208 is resolved the corresponding IFO file of each non-main video title, to obtain and to revise the broadcast information of all video units in each non-main video title, makes that all video units can finish fast in each non-main video title;
Generation module 210 is used for using the broadcast information of amended each non-main all video unit of video title to replace the original broadcast information that backs up, to generate new IFO file and BUP file.Thereby can the Video_TS file of newly revising be burnt on user's the target disc, accomplish backup the DVD CD.
In concrete the realization, the said video title information that said parsing module obtains comprises the playing duration of video title.Said identification module is further used for: if whether the playing duration of judging each video title one by one then be judged to be main video title, otherwise is judged to be non-main video title more than or equal to one hour.
In concrete the realization, said identification module also is used for: whether the playing duration of judging each video title is main video title all less than one hour if then judge the longest video title of playing duration, and other video titles are judged to be non-main video title.
In concrete the realization, the broadcast information of said video unit comprises the playing duration of video unit, and said modified module is further used for: the playing duration of obtaining all video units that comprised in each non-main video title; And the playing duration of all video units is set to 0.
In concrete the realization, the broadcast information of said video unit also comprises initial sector, the termination sector of video unit, and said modified module is further used for: the initial sector, the termination sector that obtain all video units that comprised in each non-main video title; And the initial sector of all video units, stop the sector and be set to 0.
Main video title described in the literary composition refers to that promptly the user hopes the main partial film of watching, and non-main video title promptly refers to contents such as film titbit that the user hopes to skip, advertisement, warning.
The above is merely preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of within spirit of the present invention and principle, being done, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.