A digital program can comprise an audio-frequency unit usually, a video section and a data part, and this data division can comprise with zero and is associated to a plurality of interactive application.Compare with interactive application, audio frequency, video are to play to the user passively.In DVB (Digital VideoBroadcasting digital video broadcasting) standard, a digital program can comprise zero or a plurality of video sub-streams, be MPEG PES (the basic stream of Motion Picture Experts Group's grouping, Motion PictureExperts Group Packetized Elementary Stream), zero or a plurality of audio sub-stream, zero or a plurality of substream of data, and information on services.An extreme example of digital program is that digital program only comprises data division, such as: interactive application, and do not comprise the audio frequency and video part.
DVB MHP (multimedia home platform, Multimedia Home Platform) standard is a popular interactive digital program standard.In this standard, interactive application by with module (Module) form coding in private sections (Private Sections), and be multiplexed in the data division of transport stream, (Digital StorageMedia Command and Control, object carousel DSMCC) (Object Carousel) transmits by digital storage media command and control.The module that wheel is broadcast (Carousel) transmission can be repeated broadcasting.
The DSMCC module is transmitted along broadcast channel in identical transport stream with audio/video content.The DSMCC object carousel has defined the module/document that comprises application and how and when has sent together with audio/video content in transport stream.Because all files all are one-way transmissions, promptly from the transmitting terminal to the receiving system, and the connection of not getting back to transmitting terminal is for the required file of receiving system request, and therefore, All Files all ceaselessly repeats to send, and for example sends once every 10 seconds.Interactive television terminal, MHP terminal for example, (Set Top Box STB), searches required file when they are rebuild as set-top box.
In addition, DVB MHP standard has defined application information table (ApplicationInformation Table AIT), has been used to provide and uses relevant information in private sections.This AIT table also is repeated broadcasting, and the minimal repetition rate of each AIT table is 10 seconds.
Application number was the 03101173.7 (applying date: 29 April 2003, inventor: JingweiTan, Jun Shi, Liang Gan, Declan P.Kelly) european patent application has been described data of a kind of storage and has been flow to the apparatus and method in the storage medium, this data flow comprises an audio/video flow (audio-visual data) and the data object that at least one is associated with this audio/video flow, and this data object is the data object of an application.In this mode, introduce the content that this patent application discloses to insert.
In described european patent application, when this data flow of storage, the audio/video content separate storage in this data object and the data flow.In this storing process, check on this storage medium, whether to have had the similar data object earlier, if there has been the similar data object, then store this data object so that have only a described similar data object to be stored on this storage medium; If do not have the similar data object storage on this storage medium, then store this data object to this storage medium.
It should be noted that, application number is that 03101173.7 european patent application lays particular emphasis on and addresses such a problem, promptly when storage is with data object that digital program is associated respectively, how avoids the repeated storage of identical/similar data object, thereby saved memory space.But it does not mention the data object how managed storage is got off.
Summary of the invention
One of purpose of the present invention is a kind of improvement to the technical scheme of above-mentioned patent application.
The invention provides the method that data of a kind of storage flow to a storage medium, this data flow comprises a data object, the method comprising the steps of: at first, from this data flow, obtain information about this data object, then, according to this information of obtaining, whether inspection has stored the data object of similar substantially (substantially similar) on this storage medium, at last, if a similar substantially data object has been stored on this storage medium, store a shared parameter on this storage medium, this shared parameter is used to show that this data object is a shared data object; If there is not similar substantially data object to be stored on this storage medium, store this data object to this storage medium.
The present invention increases a shared parameter by the data object that is shared for each, thereby can carry out abundant more management flexibly to this data object and the audio/video program that is associated thereof by this shared parameter.Such as: by adjustment, can on described storage medium, this data object be associated with an audio/video flow at an easy rate to this shared parameter.
The present invention also provides a kind of deletion to be stored in the method for a data flow of a storage medium, this data flow comprises a data object, the method comprising the steps of: at first, whether detect this data object is associated with other data flow, then, if this data object is not associated with other data flow, deletes this data object, thereby delete this data flow; Be associated if this data object has with other data flow, the sharing characteristic of this data object is handled accordingly, this data object no longer is associated with this data flow, thereby deletes this data flow.
In one embodiment of the invention, the sharing characteristic of this data object realizes by a shared parameter.By adjustment to this shared parameter, can on described storage medium, this data object and an audio/video flow be broken away from an easy rate, they no longer are associated, thereby prevent such mistake effectively, promptly at a data object also when being shared by other audio/video flow, but delete this data object in same other audio/video flow mistiming of sharing this data object of deletion.
The present invention also provides a kind of storage device, is used to store data and flows to a storage medium, and this data flow comprises a data object, and this device comprises: a deriving means is used for obtaining information about this data object from this data flow; A testing fixture is used to check whether stored a similar substantially data object on this storage medium; If a parameter storage device is used for a similar substantially data object and has been stored in this storage medium, store a shared parameter on this storage medium, this shared parameter is used to show that this data object is a shared data object; If be used for not having similar substantially data object to be stored in this storage medium with a data object storage device, store this data object to this storage medium.
The present invention also provides a kind of delete device, is used to delete a data flow that is stored in a storage medium, and this data flow comprises a data object, and this device comprises: whether a checkout gear is used to detect this data object and is associated with other data flow; A data delete device is not associated with other data flow if be used for this data object, deletes this data object, thereby deletes this data flow; With a sharing characteristic processing unit, be associated with other data flow if be used for this data object, the sharing characteristic of this data object is handled accordingly, this data object no longer is associated with this data flow, thereby deletes this data flow.
The present invention also provides a kind of digital recorder, is used to store data and flows to a storage medium, and this data flow comprises a data object, and this digital recorder comprises: a receiver is used to receive this data flow; An aforesaid storage device is used for storing this data flow into this storage medium; With one recapture (retrieving) device, be used for recapturing this data flow from this storage medium.This digital recorder also can comprise an aforesaid delete device, is used to delete this data flow that is stored in this storage medium.
By following description and the claim that reference is carried out in conjunction with the accompanying drawings, other purpose of the present invention and achievement will be conspicuous, and the present invention is also had more comprehensively understanding.
Embodiment
Fig. 1 schematically shows the main parts according to a storage device of one embodiment of the present of invention.This storage device can be a digital recorder, as personal digital recorder, a part.This storage device is used to store data and flows to a storage medium, and this data flow comprises a data object.This data object is a data object in the interactive application.This data flow also can comprise an audio/video flow (audio-visual data).Storage device 100 comprises a deriving means 110,testing fixture 120, aparameter storage device 130 and a dataobject storage device 140.
Deriving means 110 is used to obtain the information about this data object.An example is deriving means 110 obtains this data object from the AIT table of this data flow " organization id " and " application id ".
According to the information that deriving means 110 is obtained, testingfixture 120 checks whether stored a similar substantially data object on this storage medium.The operation of this testing fixture and application number are that the disclosed checking process of 03101173.7 european patent application is similar, are about to " the organization id " and " application id " of this data object that deriving means 110 obtained and " the organization id " and " application id " of the data object on this storage medium and compare.
According to testingfixture 120 resulting results, if a similar substantially data object has been stored on this storage medium, shared parameter ofparameter storage device 130 storages is on this storage medium, and this shared parameter is used to show that this data object is a shared data object.An example is thatparameter storage device 130 comprises a counting device (not shown), the content of this counting device shows the sharing characteristic of this data object, such as, the content of this counting device is 4, shows that then this data object shared by the audio/video flow of 5 data flow.
According to testingfixture 120 resulting results, if there is not similar substantially data object to be stored on this storage medium, data object storage means 140 these data objects of storage are to this storage medium.This data object storage means also comprises a separator (not shown), and this separator is used for this data object is separated with this audio/video flow.This data object storage means also is used to store this audio/video flow.
The present invention can also realize by the computer of suitable programming, the computer program that this computer is equipped with can be stored data and flow to a storage medium, this data flow comprises a data object, and this computer program comprises: code is used to obtain the information about this data object; Code is used for the information obtained according to this, checks whether to have stored a similar substantially data object on this storage medium; Be stored in this storage medium if be used for a similar substantially data object with code, stored a shared parameter on this storage medium, this shared parameter is used to show that this data object is a shared data object; If code is used for not having similar substantially data object to be stored in this storage medium, store this data object to this storage medium.This computer program can be stored on the memory carrier.
This part program code can offer processor, forms a kind of machine, makes the code of carrying out on this processor produce the device of realizing above-mentioned functions.
It is described that the operational process ofdevice 100 sees following Fig. 2 for details.
Fig. 2 shows the flow chart that flows to a storage medium according to data of storage of one embodiment of the present of invention.This data flow is a digital program, comprises an audio/video flow and an interactive application that is associated with it, and this interactive application comprises a data object.Interactive application here and the execution that does not mean that this application need the user's of digital program participation, and in some cases, and this interactive application also can oneself operation.Give an example, certain incident, for example goal of football match can trigger an interactive application and provide the athletic introduction of scoring.
In Fig. 2, at first, receive the request that data of requirement storage flow to a storage medium, this data flow comprises an audio/video flow and a data object that is associated with it (step S210).This request is the input that comes from a user.This data object is a data object of an interactive application.This storage medium is a hard disk, also can be a DVD+RW etc.
According to this request, receive this data flow (step S215).This data flow can be broadcasted via satellite, terrestrial broadcasting, and perhaps wired broadcasting transmits.Because the transmission of data flow is a lasting process, so this step also is a lasting process.
Secondly, obtain this audio/video flow and store this audio/video flow (step S220) to this storage medium.In this embodiment, though this audio/video flow and this interactive application are to be multiplexed in the transport stream, when storage, this audio/video flow and this interactive application are stored ground respectively.Simultaneously, with the associate feature of this audio/video flow and this interactive application, show as AIT, store, for example, be stored in the file of file XX_MHPinfo.txt by name, so that be used for this audio/video flow of synchronous playing and this interactive application during this data flow of playback in the future.
Because step S215 is a lasting process, thus this obtain/storing step also is a lasting process.
Then, obtain identifying information (step S230) about this data object.According to DVB MHP standard, this identifying information is to obtain from AIT table, as obtain " orgamzation id " and " application id " etc. from " application_identifier " of this table.Certainly, for other digital program standards, this identifying information also can obtain from other position of transmitting stream, as long as this identifying information is enough to distinguish this data object and other data object.
Next, according to this identifying information, check on this storage medium, whether to have stored an existing similar substantially data object (step S240).To be that 03101173.7 european patent application is existing at application number disclose this checking process in detail, in this mode to insert, adds the content that this application discloses.
A kind of inspection method is to be about to " organizationid " and " application id " of this data object that step S230 obtained and " the organization id " and " application id " of the data object on this storage medium compares.Certainly, also can there be other basic similitude to check that condition can be suitable in this step, as long as this basic similitude inspection can reach purpose of the present invention.
At last, according to the check result of step S240,, then store this data object (step S250) to this storage medium if on this storage medium, also do not store a similar substantially data object.In the example of step S220, though this audio/video flow and this interactive application are to be multiplexed in the transport stream, when storage, this audio/video flow and this interactive application are stored ground respectively.Need from this transmission stream, this data object be separated so have.
According to the check result of step S240,, then store a shared parameter (step S260) to this storage medium if on this storage medium, stored a similar substantially data object.Should share parameter and be used to show that this data object was a shared data object." storage " herein can be new shared parameter of storage, also reflects the shared state that this data object is current in the mode of upgrading existing shared parameter.
In step S240,, can not need from this transmission stream, to isolate this data object,, also it can be abandoned even isolated this data object owing to do not need to store once more this data object.Certainly, also can simultaneously this data object be stored on this storage medium to replace the similar substantially data object that has been stored on this storage medium, as long as have only a data object to be stored.
An example should sharing parameter is the additional sharing characteristic file of this data object, and as shareapp_X.txt, this document comprises a numerical value, and what audio/video flows are used to show has at shared this data object.Audio/video flow of every increase is shared this data object, and via step S260, this numerical value adds one; Audio/video flow of every minimizing is shared this data object, and when promptly deleting audio/video flow, this numerical value subtracts one.Certainly, this sharing characteristic file also can comprise all titles at the audio/video flow of sharing this data object, information such as memory location.
Another example that should share parameter is to be the additional public sharing characteristic file of all data objects on this storage medium, can obtain the shared information of each data object from this document.
Should share parameter can also have many other execution modes, as long as this shared parameter can reflect the shared situation of this data object, and helps the management of this data object is got final product.Store a shared parameter simultaneously when in step S250, for the first time storing this data object, in step S260, adjust this shared parameter then as required.
If this data flow comprises a plurality of interactive application, then step S220, S230, S240, S250 or S260 can be the processes of a circulation, till step S215 data flow receives end.
Should be noted in the discussion above that a digital program stream can not comprise any audio/video flow, include only one or more interactive application, as a weather predicting program.At this moment, step S220 just no longer needs.And, owing to do not comprise audio/video flow in this data flow, so this sharing characteristic among the step S260 points to this data flow, and no longer point to audio/video flow.
Fig. 3 shows the main parts according to a delete device of other embodiments of the invention.This delete device is used to delete a data flow that is stored in a storage medium, and this data flow comprises a data object.This data flow also can comprise an audio/video flow (audio-visualdata).Delete device 300 comprises acheckout gear 310, a sharingcharacteristic processing unit 320 and adata delete device 330.
Whethercheckout gear 310 is used to detect this data object and is associated with other data flow.An example is the numerical value in detecting aforesaid counting device, as greater than 1, shows that then this data object is shared by other data flow.
Sharingcharacteristic processing unit 320, be used for according tocheckout gear 310 resulting information, if this data object is associated with other data flow, then the sharing characteristic of this data object is handled accordingly, no longer be associated to show this data object with deleted data flow.An example is that the numerical value that checkout gear obtains from aforesaid counting device is 4, the value in this counting device can be kept to 3.
Data delete device 330 is used for according tocheckout gear 310 resulting information, if this data object is not associated with other data flow, then deletes this data object.If data flow to be deleted also comprises an audio/video flow, thendata delete device 330 also is used to delete this audio/video flow.
The present invention can also realize that the computer program that this computer is equipped with can be deleted a data flow that is stored in a storage medium by the computer of suitable programming, and this data flow comprises a data object.This computer program comprises: whether code is used to detect this data object and is associated with other data flow; If being used for this data object, code is not associated with other data flow, delete this data object, if being used for this data object with code has with other data flow and is associated, sharing characteristic to this data object is handled accordingly, no longer is associated with deleted data flow to show this data object.This computer program can be stored on the memory carrier.
This part program code can offer processor, forms a kind of machine, makes the code of carrying out on this processor produce the device of realizing above-mentioned functions.
It is described that the operational process ofdevice 300 sees following Fig. 4 for details.
Fig. 4 shows the flow chart that is stored in a data flow of a storage medium according to the deletion of other embodiments of the invention.This data flow can be a digital television program.
At first, receive a request that requires to delete a data flow that is stored in a storage medium, this data flow comprises an audio/video flow and a data object that is associated with it (step S410).This request is the input that comes from a user.This data object is a data object of an interactive application.
Secondly, delete this audio/video flow (step S420), and, find the data object (step S430) that is associated with this audio/video flow according to an associated with.This associated with comprises the related information of this audio/video flow and this data object, such as: a pointer that points to this data object.
Then, detect this data object whether be associated (step S430) with other data flow.This detection step can realize by the sharing characteristic of obtaining this data object.This sharing characteristic can be stored in the shared file with a shared parametric form.Such as: this parameter value is 3, shows that then this data object shared by 3 data flow; And for example, this parameter value is 0, shows that then this data object do not shared by other data flow.
Next, according to the check result of step S440,, then delete this data object (step S450) if this data object is not shared by other data flow.Certainly, if this shared file is that this data object is proprietary, then can further delete this shared file.
According to the check result of step S440,, then the sharing characteristic of this data flow is handled (step S460) accordingly, so that this data object no longer is associated with deleted data flow if this data object is shared by other data flow simultaneously.Such as: above-mentioned shared parameter value is become 2 by 3.The processing that should share parameter can also have many other execution modes, shares situation as long as the shared parameter after handling can reflect the reality of this data object, and helps the management of this data object is got final product.
At last, delete this associated with (step S470).If but this associated with shared by a plurality of data flow, then only need the part relevant in this associated with of deletion with this data flow.
If this data flow comprises a plurality of data objects, then step S430, S440, S450 or S460 can be the processes of a circulation, till finding all data objects that are associated with this audio/video flow.
Fig. 5 shows a digital recorder according to another embodiment of the presentinvention.Digital recorder 500 comprises areceiver 510, is used to receive a digital stream, and as a digital TV program stream, this digital stream comprises an interactive application, and this interactive application comprises a data object.This data flow can be with a kind ofdigital recorder 500 that is sent in the following multiple mode, for example by wired broadcasting, by terrestrial broadcasting or broadcasting via satellite etc.
Digital recorder 500 has anaforesaid storage device 100, is used for storing digital stream according to the request of user's input onstorage medium 530, and the data object in this data flow is separated and stores separately.If this data flow comprises an audio/video flow, the storage that also is separated of this audio/video flow.When a data object is shared by a plurality of data flow, can only store a data object, and, be a shared data object in order to show this data object for the additional shared parameter of this dataobject.Storage medium 530 is hard disks, but also can be other suitable medium, for example DVD+RW.
Digital recorder 500 also has one and recaptures (retrieving)unit 540, is used for recapturing this data flow from storage medium 530.Recaptureunit 540 and be used for the program that playback machine or memory cell 520 are stored.In the process of playback, this recaptures the unit also can carry out synchronous playing to the audio/video flow and the data object of storage respectively.
In addition,digital recorder 500 can also comprise an aforesaid delete device 300.Delete device 300 receives a request of user's input, and this request requires data flow of deletion onstorage medium 530, and this data flow comprises a data object, and this data object is a data object in the interactive application.Whether this delete device at first detects this data object and is associated with other data flow, if this data object is not associated with other data flow, then deletes this data object; Be associated if this data object has with other data flow, the sharing characteristic of this data object is handled accordingly, this data object no longer is associated with deleted this data flow.
In the present invention, also an interactive application can be done as a wholely to regard a data object as, thereby this interactive application is handled by technique scheme.
Though through the present invention is described in conjunction with specific embodiments, for the skilled personage in present technique field, will be conspicuous according to manyly substituting of making of narration above, modifications and variations.Therefore, when such substituting, in the spirit and scope that modifications and variations fall into attached claim the time, should being included among the present invention.