Embodiment
Below in conjunction with accompanying drawing the present invention is described in further detail.
Fig. 1 is the method flow diagram according to one aspect of the invention, and the process that is used for the multimedia file that carries encapsulation format is carried out decapsulation is shown.Wherein, this process both can realize at network equipment end, also can realize at embedded customer equipment end.Wherein, the network equipment includes but not limited to network host, single network server, a plurality of webserver collection or based on the set of computers of cloud computing; Embedded customer equipment can be any electronic product that can implant embedded system and can carry out man-machine interaction through modes such as keyboard, mouse, remote controller, touch-screen or hand-written equipment with the user, for example STB, Web TV, mobile phone, PDA, palmtop PC PPC or panel computer etc.Those skilled in the art will be understood that the above-mentioned several kinds of network equipments and embedded customer equipment are merely for example; Other network equipments existing or that possibly occur from now on or embedded customer equipment are as applicable to the present invention; Also should be included in the protection range of the present invention, and be contained in this with way of reference at this.
For for simplicity, in follow-up statement, if nothing is dated especially, we do not do differentiation to the network equipment and embedded customer equipment, all are referred to as " equipment 1 ".
Particularly, among the step S1, equipment 1 obtains the multimedia file that carries encapsulation format.Wherein, This source that obtains that carries the multimedia file of encapsulation format includes but not limited to; The storage device of equipment 1 itself, the server of content supplier, third-party server or other can with the third party device of this devices communicating; Wherein, the server of content supplier or third-party server comprise web server and streaming media server.Those skilled in the art will be understood that the above-mentioned source that obtains that carries the multimedia file of encapsulation format is merely for example; Other existing or multimedia files that carry encapsulation format that possibly occur from now on obtain the source as applicable to the present invention; Also should be included in the protection range of the present invention, and be contained in this with way of reference at this.In addition, this obtain manner that carries the multimedia file of encapsulation format includes but not limited to, HTTP mode, FTP mode, RTSP mode, MMS mode or P2P mode.With the P2P mode is example; Equipment 1 obtains the multi-channel video file from network; These multi-channel video files comprise the video file of separate sources; A plurality of fragments of a video file of separate sources (for example separate sources film, perhaps a plurality of fragments of this film of composition of separate sources), equipment 1 carries out ensuing each step to the fragment of the video file of specific video file or special time more then.At this; Those skilled in the art will be understood that the above-mentioned several kinds of obtain manners that carry the multimedia file of encapsulation format are merely for example; The obtain manner of other existing or multimedia files that carry encapsulation format that possibly occur from now on is as applicable to the present invention; Also should be included in the protection range of the present invention, and be contained in this with way of reference at this.At this, multimedia file includes but not limited to that audio file, video file etc. can be through the digital documents of player plays.Those skilled in the art will be understood that above-mentioned several kinds of multimedia files are merely for example, and other multimedia files existing or that possibly occur from now on also should be included in the protection range of the present invention, and be contained in this at this with way of reference as applicable to the present invention.
Step S2, the encapsulation format of the said multimedia file of equipment 1 identification.Particularly; In step S2; Equipment 1 is according to its multimedia file that carries encapsulation format that in step S1, obtains; Discern the encapsulation format of this multimedia file,, confirm the encapsulation format of this multimedia file for example according to the characteristic informations such as extension name, characteristic signature or metadata of this multimedia file.To expand example by name, the corresponding encapsulation format of multimedia file of expansion " flv " by name is " FLV "; But the corresponding identical encapsulation format of different extension name possibility, the encapsulation format that for example " asf " and " wmv " is corresponding is " ASF ".At this; The extension name of multimedia file includes but not limited to " mp3 ", " mp4 ", " avi ", " flv ", " mov ", " rmvb ", " rm ", " asf ", " wmv " or " mkv " etc.; Those skilled in the art will be understood that the extension name of above-mentioned several kinds of multimedia files is merely for example; The extension name of other multimedia files existing or that possibly occur from now on also should be included in the protection range of the present invention as applicable to the present invention, and is contained in this at this with way of reference.At this; The encapsulation format of multimedia file includes but not limited to " MP3 ", " MP4 ", " AVI ", " FLV ", " QuickTime ", " RMVB ", " RM ", " ASF " or " MKV "; Those skilled in the art will be understood that the encapsulation format of above-mentioned several kinds of multimedia files is merely for example; The encapsulation format of other multimedia files existing or that possibly occur from now on is as applicable to the present invention; Also should be included in the protection range of the present invention, and be contained in this with way of reference at this.In addition; Those skilled in the art will be understood that also the RM of the encapsulation format of above-mentioned several kinds of multimedia files is merely for example; The RM of the encapsulation format of other multimedia files existing or that possibly occur from now on is as applicable to the present invention; Also should be included in the protection range of the present invention, and be contained in this with way of reference at this.
Among the step S3, equipment 1 is according to said encapsulation format, and the said multimedia file of decapsulation is with the one or more coding unit sequence flows after the acquisition decapsulation.Particularly; In step S3; Equipment 1 is according to its encapsulation format of in step S2, discerning; Use through calling (calling or far call) or loading and call corresponding decapsulation like this locality, the decapsulation multimedia file, thus obtain the one or more coding unit sequence flows after this multimedia file decapsulation.For example; Suppose that existing decapsulation corresponding to the encapsulation format that identifies is used in the equipment 1; Equipment 1 just directly calls and (perhaps loads and call so; If having stored this decapsulation in the equipment 1 uses) this decapsulation uses, thus decapsulation multimedia file and obtain the one or more coding unit sequence flows in the file.For another example; Suppose not use in the equipment 1 corresponding to the decapsulation of the encapsulation format that identifies; Equipment 1 obtains this decapsulation application from outside (network or other equipment) so; Load and call this decapsulation and use,, obtain the one or more coding unit sequence flows in the file with the decapsulation multimedia file.And for example; Suppose not use in the equipment 1 corresponding to the decapsulation of the encapsulation format that identifies; Equipment 1 is used from this decapsulation of outside (network or other equipment) far call so, with the decapsulation multimedia file, obtains the one or more coding unit sequence flows in the file.Those skilled in the art will be understood that the above-mentioned several kinds of modes of calling the decapsulation application are merely for example; Other existing or calling of possibly occurring from now on modes that decapsulation uses are as applicable to the present invention; Also should be included in the protection range of the present invention, and be contained in this with way of reference at this.At this, the coding unit sequence flows includes but not limited to audio coding unit sequence flows, video encoding unit sequence flows or both combinations.For example; Suppose that equipment 1 is after the encapsulation format that identifies multimedia file is for " MKV "; Use mapping table according to encapsulation format-decapsulation; Directly call with the corresponding decapsulation of " MKV " form and use, behind this multimedia file of decapsulation, obtain an audio coding unit sequence flows and a video encoding unit sequence flows in this multimedia file.Those skilled in the art will be understood that above-mentioned several kinds of coding unit sequence flows are merely for example; Other coding unit sequence flows existing or that possibly occur from now on are as applicable to the present invention; Also should be included in the protection range of the present invention, and be contained in this with way of reference at this.
Preferably, the step S1 of equipment 1, step S2 and step S3 are constant work.Particularly, equipment 1 obtains the multimedia file that carries encapsulation format in step S1; In step S2, discern the encapsulation format of said multimedia file; In step S3, then according to said encapsulation format, the said multimedia file of decapsulation is to obtain one or more coding unit sequence flows.At this; It will be understood by those skilled in the art that identification and decapsulation that each step that " continuing " be meant equipment 1 requires to carry out the obtaining of multimedia file, encapsulation format according to mode of operation that set or adjustment in real time respectively to obtain the coding unit sequence flows, stop to obtain multimedia file until this user in a long time.
In a preferred embodiment, in step S3, equipment 1 loads with the corresponding decapsulation of said encapsulation format and uses also according to said encapsulation format; Said multimedia file is carried out said decapsulation use, with the one or more coding unit sequence flows after the acquisition decapsulation.Particularly, equipment 1 from external equipment (comprising the network equipment and other equipment that can intercom mutually with this equipment) obtain with step S2 the corresponding decapsulation of encapsulation format that identifies use, in this equipment 1, load this decapsulation then and use; Perhaps, store this decapsulation in the storage device of equipment 1 self and use, like dynamic link library (DLL), at this moment, equipment 1 loads this decapsulation from the memory location that this decapsulation is used and uses.Then, the multimedia file that 1 pair of equipment obtains is carried out the decapsulation of this loading and is used, with the one or more coding unit sequence flows after the acquisition decapsulation.For example; Suppose that equipment 1 itself does not load any decapsulation and uses; After the envelope commentaries on classics form that identifies its multimedia file that obtains is for " MKV "; In equipment 1, from its dynamic link library (DLL), load this decapsulation and use, again this multimedia file is carried out this decapsulation and use, thereby obtain an audio coding unit sequence flows and a video encoding unit sequence flows.Those skilled in the art will be understood that the above-mentioned several kinds of modes that load the decapsulation application are merely for example; The mode that other loading decapsulations existing or that possibly occur are from now on used is as applicable to the present invention; Also should be included in the protection range of the present invention, and be contained in this with way of reference at this.
Preferably, this process also comprises step S4 (not shown), and equipment 1 is according to first pre-defined rule, and based on the historical record of decapsulation operation, unloading is used with the corresponding decapsulation of said historical record.Particularly, in step S4, equipment 1 is according to first pre-defined rule, and unused time surpasses threshold value or usage frequency is lower than threshold value as continuing, and with reference to the historical record that decapsulation is operated, unloads corresponding one or more decapsulation and use.For example; Suppose that first pre-defined rule continues the decapsulation application that unused time surpasses threshold value for unloading, according to the historical record of decapsulation operation, in a period of time; The decapsulation of never carrying out multimedia file is used in certain decapsulation, and equipment 1 unloads this decapsulation application automatically so; And for example, according to the historical record of decapsulation operation, the execution frequency that certain decapsulation was applied in a period of time is lower than setting threshold, and so, this moment, equipment 1 unloaded this decapsulation application automatically.At this, this first pre-defined rule includes but not limited to: 1) scheduled time does not use; 2) frequency of usage does not reach predetermined value; 3) both combine.Those skilled in the art will be understood that above-mentioned several kinds first pre-defined rules are merely for example; Other existing or first pre-defined rules that possibly occur from now on are as applicable to the present invention; Also should be included in the protection range of the present invention, and be contained in this with way of reference at this.
More preferably, the step S1 of equipment 1, step S2, step S3 and step S4 are constant work.Particularly, equipment 1 obtains the multimedia file that carries encapsulation format in step S1; In step S2, discern the encapsulation format of said multimedia file; In step S3, according to said encapsulation format, the said multimedia file of decapsulation is to obtain one or more coding unit sequence flows; In step S4, then according to first pre-defined rule, based on the historical record of decapsulation operation, unloading is used with the corresponding decapsulation of said historical record.At this; It will be understood by those skilled in the art that each step that " continuing " be meant equipment 1 requires to carry out the identification of the obtaining of multimedia file, encapsulation format respectively according to mode of operation that set or adjustment in real time; Decapsulation is used with the unloading decapsulation to obtain the coding unit sequence flows, stops to obtain multimedia file in a long time until this user.
Preferably, this process also comprises step S5 (not shown), and equipment 1 is according to decapsulation operation foundation or upgrade said historical record.Particularly, equipment 1 is set up the historical record of decapsulation operation according to the decapsulation of its completion operation, and this historical record is not to set constantly, but dynamically updates according to the decapsulation operation of equipment 1.For example, equipment 1 is used according to each time multimedia file being carried out decapsulation, the historical record of this decapsulation operation of corresponding renewal.For example, the encapsulation format of the multimedia file that equipment 1 obtains is " MOV ", and 1 pair of this multimedia file of equipment is carried out with the corresponding decapsulation of " MOV " form and used, and simultaneously, correspondingly upgrades the historical record of decapsulation operation.
More preferably, the step S1 of equipment 1, step S2, step S3, step S4 and step S5 are constant work.Particularly, equipment 1 obtains the multimedia file that carries encapsulation format in step S1; In step S2, discern the encapsulation format of said multimedia file; In step S3, according to said encapsulation format, the said multimedia file of decapsulation is to obtain one or more coding unit sequence flows; In step S4, according to first pre-defined rule, based on the historical record of decapsulation operation, unloading is used with the corresponding decapsulation of said historical record; In step S5, then operate foundation or upgrade said historical record according to decapsulation.At this; It will be understood by those skilled in the art that each step that " continuing " be meant equipment 1 requires to carry out the identification of the obtaining of multimedia file, encapsulation format respectively according to mode of operation that set or adjustment in real time; Decapsulation is to obtain the coding unit sequence flows; The historical record of decapsulation operation is used and is set up and upgrade in the unloading decapsulation, stops to obtain multimedia file in a long time until this user.
In a further advantageous embodiment, at step S1, equipment 1 obtains the multimedia file that carries encapsulation format from local storage or network.Particularly, in step S1, (when equipment 1 was the network equipment, local storage was the memory of this network equipment to equipment 1 from local storage; When equipment 1 was customer equipment, local storage was the memory of this customer equipment) obtain the multimedia file that carries encapsulation format, for example the assigned address from local storage reads an audio file; Perhaps the network storage address according to multimedia file obtains the multimedia file that carries encapsulation format, for example downloads one section video file from a URL address link.At this; Local storage includes but not limited to the various storage devices (for example internal memory, hard disk etc.) of equipment 1 self; Perhaps need not the various storage devices (for example USB flash disk, portable hard drive, various storage cards etc.) that are connected through network with equipment 1, those skilled in the art will be understood that above-mentioned local storage is merely for example, and other local storages existing or that possibly occur from now on are as applicable to the present invention; Also should be included in the protection range of the present invention, and be contained in this with way of reference at this.At this; Network includes but not limited to the Internet, wide area network, metropolitan area network, local area network (LAN), VPN network, wireless self-organization network (Ad Hoc network); Those skilled in the art will be understood that also above-mentioned several kinds of networks are merely for example; Other networks existing or that possibly occur from now on also should be included in the protection range of the present invention, and be contained in this at this with way of reference as applicable to the present invention.
Preferably, in step S3, equipment 1 is according to the predictive encoding mode, converts the coded system of said one or more coding unit sequence flows into said predictive encoding mode.Particularly; In step S3, one or more coding unit sequence flows that equipment 1 is obtained for the decapsulation multimedia file are according to the predictive encoding mode; For example, change the coded system of said one or more coding unit sequence flows through the process of decoding earlier, back coding.For example, behind the multimedia file of " MP4 " encapsulation format of equipment 1 decapsulation, the audio coding unit sequence flows that to obtain a coded system be " AAC " and coded system are the video encoding unit sequence flows of " MPEG-4 "; And the predictive encoding mode is: the coded system of audio coding unit sequence flows is " AAC ", and the coded system of video encoding unit sequence flows is " MPEG-2 "; At this moment, convert the coded system of the video encoding unit sequence flows that obtains after the decapsulation into " MPEG-2 " from " MPEG-4 ", thus the audio coding unit sequence flows and the video encoding unit sequence flows of this multimedia file of target device success decodes and plays.
In a preferred embodiment again, this process also comprises step S6 (not shown), and equipment 1 offers first target device with said one or more coding unit sequence flows.Particularly, in step S6, for example when equipment 1 itself not during this coding unit sequence flows of decodes and plays, equipment 1 offers this coding unit sequence flows first target device of this coding unit sequence flows of decodes and plays.For example; Suppose that equipment 1 is streaming media server; First target device is the STB that only has decoder, and this STB need obtain the coding unit sequence flows of video file from this streaming media server, plays the coding unit sequence flows of this video file then at local decode; In this case, after the video file process decapsulation of this streaming media server with this STB request, obtain the coding unit sequence flows, again this coding unit sequence flows is sent to this STB, play this coding unit sequence flows for this set top box decodes.
Preferably, the step S1 of equipment 1, step S2, step S3 and step S6 are constant work.Particularly, equipment 1 obtains the multimedia file that carries encapsulation format in step S1; In step S2, discern the encapsulation format of said multimedia file; In step S3, according to said encapsulation format, the said multimedia file of decapsulation is to obtain one or more coding unit sequence flows; In step S6, then said coding unit sequence flows is offered first target device.At this; It will be understood by those skilled in the art that " continuing " is meant that each step of equipment 1 requires to carry out obtaining of multimedia file according to mode of operation that set or adjustment in real time respectively; The identification of encapsulation format; Decapsulation stops to obtain multimedia file to obtain the coding unit sequence flows and this coding unit sequence flows is offered first target device until this user in a long time.
In a preferred embodiment, this process also comprises step S7 (not shown), the said one or more coding unit sequence flows of equipment 1 decodes and plays.Particularly; In step S7; Equipment 1 is decoded to the coding unit sequence flows that it obtains in step S3, then according to audio coding unit and/or video encoding unit in this coding unit sequence flows of the temporal information synchronous playing in this coding unit sequence flows.This embodiment can be used for equipment 1 and is the scene of customer equipment.For example; Equipment 1 decompresses the coding unit sequence flows of its acquisition; From the temporal information of coding unit sequence flows, obtain the timestamp of audio coding unit and video encoding unit, realize the synchronous playing of audio coding unit and video encoding unit then according to this timestamp.Those skilled in the art will be understood that the method for synchronization of above-mentioned audio coding unit and video encoding unit is merely for example; The method of synchronization of other audio coding units existing or that possibly occur from now on and video encoding unit is as applicable to the present invention; Also should be included in the protection range of the present invention, and be contained in this with way of reference at this.At this, this decodes and plays operation both can be carried out through decoder (chip), also can carry out through decoding software.Those skilled in the art will be understood that also above-mentioned decodes and plays mode is merely for example, and other decodes and plays modes existing or that possibly occur from now on also should be included in the protection range of the present invention, and be contained in this at this with way of reference as applicable to the present invention.
Preferably, the step S1 of equipment 1, step S2, step S3 and step S7 are constant work.Particularly, equipment 1 obtains the multimedia file that carries encapsulation format in step S1; In step S2, discern the encapsulation format of said multimedia file; In step S3, according to said encapsulation format, the said multimedia file of decapsulation is to obtain one or more coding unit sequence flows; In step S7, said one or more coding unit sequence flows of decodes and plays then.At this; It will be understood by those skilled in the art that " continuing " is meant that each step of equipment 1 requires to carry out obtaining of multimedia file according to mode of operation that set or adjustment in real time respectively; The identification of encapsulation format; Decapsulation stops to obtain multimedia file to obtain coding unit sequence flows and this coding unit sequence flows of decodes and plays until this user in a long time.
In a further advantageous embodiment, this process also comprises step S8 (not shown), and equipment 1 is encapsulated as said one or more coding unit sequence flows the multimedia file of predetermined encapsulation format.This process is used for the encapsulation format of multimedia file is changed, so that only support the multimedia file after the target device of predetermined encapsulation format can read encapsulation again.Particularly, in step S8, equipment 1,, encapsulates according to predetermined encapsulation format through one or more coding unit sequence flows that decapsulation obtains for it once more, to accomplish the conversion to encapsulation format.For example, suppose that an original encapsulation format of multimedia file is " FLV ", after its decapsulation; Obtain an audio coding unit sequence flows and a video encoding unit sequence flows; At this moment, preset encapsulation format is " AVI ", so; 1 of equipment encapsulates this audio coding unit sequence flows and the video encoding unit sequence flows form according to " AVI ", thereby accomplishes the conversion of encapsulation format from " FLV " to " AVI " of this multimedia file.
Preferably, the step S1 of equipment 1, step S2, step S3 and step S8 are constant work.Particularly, equipment 1 obtains the multimedia file that carries encapsulation format in step S1; In step S2, discern the encapsulation format of said multimedia file; In step S3, according to said encapsulation format, the said multimedia file of decapsulation is to obtain one or more coding unit sequence flows; In step S8, then the one or more coding unit sequence flows after the said decapsulation are encapsulated as the multimedia file of predetermined encapsulation format.At this; It will be understood by those skilled in the art that each step that " continuing " be meant equipment 1 requires to carry out the identification of the obtaining of multimedia file, encapsulation format respectively according to mode of operation that set or adjustment in real time; Decapsulation is to obtain the coding unit sequence flows and according to the encapsulation once more of being scheduled to encapsulation format, to stop to obtain multimedia file in a long time until this user.
Preferably, this process also comprises step S9 (not shown), and equipment 1 offers second target device with the multimedia file of said predetermined encapsulation format.Particularly, in step S9, equipment 1 offers second target device that can only read this predetermined encapsulation format with its multimedia file that in step S8, is encapsulated as predetermined encapsulation format again.This process is used for the scene that second target device can only read the multimedia file of special package form.For example; Suppose that second target device can only read the multimedia file of encapsulation format for " MP4 ", equipment 1 is with the video file of its encapsulation format that obtains for " FLV ", after decapsulation; Convert the video file of encapsulation format into, send to second target device then for " MP4 ".
More preferably, the step S1 of equipment 1, step S2, step S3, step S8 and step S9 are constant work.Particularly, equipment 1 obtains the multimedia file that carries encapsulation format in step S1; In step S2, discern the encapsulation format of said multimedia file; In step S3, according to said encapsulation format, the said multimedia file of decapsulation is to obtain one or more coding unit sequence flows; In step S8, the one or more coding unit sequence flows after the said decapsulation are encapsulated as the multimedia file of predetermined encapsulation format; In step S9, then the multimedia file with said predetermined encapsulation format offers second target device.At this; It will be understood by those skilled in the art that each step that " continuing " be meant equipment 1 requires to carry out the identification of the obtaining of multimedia file, encapsulation format respectively according to mode of operation that set or adjustment in real time; Decapsulation is to obtain the coding unit sequence flows; According to the encapsulation once more of predetermined encapsulation format and the multimedia file after will encapsulating offer second target device, stop to obtain multimedia file in a long time until this user.
Fig. 2 is an equipment sketch map according to a further aspect of the present invention, illustrates to be used for the equipment that decapsulation carries the multimedia file of encapsulation format.Wherein, this equipment both can be the network equipment, also can be embedded customer equipment.Wherein, the network equipment includes but not limited to network host, single network server, a plurality of webserver collection or based on the set of computers of cloud computing; Embedded customer equipment can be any electronic product that can implant embedded system and can carry out man-machine interaction through modes such as keyboard, mouse, remote controller, touch-screen or hand-written equipment with the user, for example STB, Web TV, mobile phone, PDA, palmtop PC PPC or panel computer etc.Those skilled in the art will be understood that the above-mentioned several kinds of network equipments and embedded customer equipment are merely for example; Other network equipments existing or that possibly occur from now on or embedded customer equipment are as applicable to the present invention; Also should be included in the protection range of the present invention, and be contained in this with way of reference at this.
For for simplicity, in follow-up statement, if nothing is dated especially, we do not do differentiation to the network equipment and embedded customer equipment, all are referred to as " equipment 1 ".
Particularly, equipment 1 comprises deriving means 11, recognition device 12 and final controlling element 13.
Deriving means 11 is used to obtain the multimedia file that carries encapsulation format.Wherein, This source that obtains that carries the multimedia file of encapsulation format includes but not limited to; The storage device of equipment 1 itself, the server of content supplier, third-party server or other can with the third party device of this devices communicating; Wherein, the server of content supplier or third-party server comprise web server and streaming media server.Those skilled in the art will be understood that the above-mentioned source that obtains that carries the multimedia file of encapsulation format is merely for example; Other existing or multimedia files that carry encapsulation format that possibly occur from now on obtain the source as applicable to the present invention; Also should be included in the protection range of the present invention, and be contained in this with way of reference at this.In addition, this obtain manner that carries the multimedia file of encapsulation format includes but not limited to, HTTP mode, FTP mode, RTSP mode, MMS mode or P2P mode.With the P2P mode is example; Deriving means 11 obtains the multi-channel video file from network; These multi-channel video files comprise the video file of separate sources; A plurality of fragments of a video file of separate sources (for example separate sources film, perhaps a plurality of fragments of this film of composition of separate sources), deriving means 11 carries out ensuing operation for other devices of equipment 1 fragment delivery of the video file of specific video file or special time more then.At this; Those skilled in the art will be understood that the above-mentioned several kinds of obtain manners that carry the multimedia file of encapsulation format are merely for example; The obtain manner of other existing or multimedia files that carry encapsulation format that possibly occur from now on is as applicable to the present invention; Also should be included in the protection range of the present invention, and be contained in this with way of reference at this.At this, multimedia file includes but not limited to that audio file, video file etc. can be through the digital documents of player plays.Those skilled in the art will be understood that above-mentioned several kinds of multimedia files are merely for example, and other multimedia files existing or that possibly occur from now on also should be included in the protection range of the present invention, and be contained in this at this with way of reference as applicable to the present invention.
Recognition device 12 is used to discern the encapsulation format of said multimedia file.Particularly; The multimedia file that carries encapsulation format that recognition device 12 obtains according to deriving means 11; Discern the encapsulation format of this multimedia file,, confirm the encapsulation format of this multimedia file for example according to the characteristic informations such as extension name, characteristic signature or metadata of this multimedia file.To expand example by name, the corresponding encapsulation format of multimedia file of expansion " flv " by name is " FLV "; But the corresponding identical encapsulation format of different extension name possibility, the encapsulation format that for example " asf " and " wmv " is corresponding is " ASF ".At this; The extension name of multimedia file includes but not limited to " mp3 ", " mp4 ", " avi ", " flv ", " mov ", " rmvb ", " rm ", " asf ", " wmv " or " mkv " etc.; Those skilled in the art will be understood that the extension name of above-mentioned several kinds of multimedia files is merely for example; The extension name of other multimedia files existing or that possibly occur from now on also should be included in the protection range of the present invention as applicable to the present invention, and is contained in this at this with way of reference.At this; The encapsulation format of multimedia file includes but not limited to " MP3 ", " MP4 ", " AVI ", " FLV ", " QuickTime ", " RMVB ", " RM ", " ASF " or " MKV "; Those skilled in the art will be understood that the encapsulation format of above-mentioned several kinds of multimedia files is merely for example; The encapsulation format of other multimedia files existing or that possibly occur from now on is as applicable to the present invention; Also should be included in the protection range of the present invention, and be contained in this with way of reference at this.In addition; Those skilled in the art will be understood that also the RM of the encapsulation format of above-mentioned several kinds of multimedia files is merely for example; The RM of the encapsulation format of other multimedia files existing or that possibly occur from now on is as applicable to the present invention; Also should be included in the protection range of the present invention, and be contained in this with way of reference at this.
Final controlling element 13 is used for according to said encapsulation format, and the said multimedia file of decapsulation is with the one or more coding unit sequence flows after the acquisition decapsulation.Particularly; Final controlling element 13 is according to the encapsulation format of recognition device 12 identifications; Use through calling (calling or far call) or loading and call corresponding decapsulation like this locality; The decapsulation multimedia file, thus the one or more coding unit sequence flows after this multimedia file decapsulation obtained.For example; Suppose that existing decapsulation corresponding to the encapsulation format that identifies is used in the equipment 1; Final controlling element 13 just directly calls and (perhaps loads and call so; If having stored this decapsulation in the equipment 1 uses) this decapsulation uses, thus decapsulation multimedia file and obtain the one or more coding unit sequence flows in the file.For another example; Suppose not use in the equipment 1 corresponding to the decapsulation of the encapsulation format that identifies; Final controlling element 13 obtains this decapsulation application from outside (network or other equipment) so; Load and call this decapsulation and use,, obtain the one or more coding unit sequence flows in the file with the decapsulation multimedia file.And for example; Suppose not use in the equipment 1 corresponding to the decapsulation of the encapsulation format that identifies; Final controlling element 13 is used from this decapsulation of outside (network or other equipment) far call so, with the decapsulation multimedia file, obtains the one or more coding unit sequence flows in the file.Those skilled in the art will be understood that the above-mentioned several kinds of modes of calling the decapsulation application are merely for example; Other existing or calling of possibly occurring from now on modes that decapsulation uses are as applicable to the present invention; Also should be included in the protection range of the present invention, and be contained in this with way of reference at this.At this, the coding unit sequence flows includes but not limited to audio coding unit sequence flows, video encoding unit sequence flows or both combinations.For example; Suppose that equipment 1 is after the encapsulation format that identifies multimedia file is for " MKV "; Use mapping table according to encapsulation format-decapsulation; Directly call with the corresponding decapsulation of " MKV " form and use, behind this multimedia file of decapsulation, obtain an audio coding unit sequence flows and a video encoding unit sequence flows in this multimedia file.Those skilled in the art will be understood that above-mentioned several kinds of coding unit sequence flows are merely for example; Other coding unit sequence flows existing or that possibly occur from now on are as applicable to the present invention; Also should be included in the protection range of the present invention, and be contained in this with way of reference at this.
Preferably, deriving means 11, recognition device 12 and final controlling element 13 are constant work.Particularly, deriving means 11 obtains the multimedia file that carries encapsulation format; The encapsulation format of the said multimedia file of recognition device 12 identifications; 13 of final controlling elements are according to said encapsulation format, and the said multimedia file of decapsulation is to obtain one or more coding unit sequence flows.At this; It will be understood by those skilled in the art that identification and decapsulation that " continuing " be meant that deriving means 11, recognition device 12 and final controlling element 13 require to carry out the obtaining of multimedia file, encapsulation format according to mode of operation that set or adjustment in real time respectively to obtain the coding unit sequence flows, stop to obtain multimedia file until this user in a long time.
In a preferred embodiment, final controlling element 13 loads with the corresponding decapsulation of said encapsulation format and uses also according to said encapsulation format; Said multimedia file is carried out said decapsulation use, with the one or more coding unit sequence flows after the acquisition decapsulation.Particularly, final controlling element 13 obtains the corresponding decapsulation of the encapsulation format that identifies with recognition device 12 from external equipment (comprising the network equipment and other equipment that can intercom mutually with this equipment) and uses, and in equipment 1, loads this decapsulation then and uses; Perhaps, store this decapsulation in the storage device of equipment 1 self and use, like dynamic link library (DLL), at this moment, final controlling element 13 loads this decapsulation from the memory location that this decapsulation is used and uses.Then, the multimedia file that 13 pairs of final controlling elements obtain is carried out the decapsulation of this loading and is used, with the one or more coding unit sequence flows after the acquisition decapsulation.For example; Suppose that equipment 1 itself does not load any decapsulation and uses; The envelope that recognition device 12 identifies its multimedia file that obtains change form for " MKV " after; Final controlling element 13 loads this decapsulation and uses from its dynamic link library (DLL), again this multimedia file is carried out this decapsulation and use, thereby obtain an audio coding unit sequence flows and a video encoding unit sequence flows.Those skilled in the art will be understood that the above-mentioned several kinds of modes that load the decapsulation application are merely for example; The mode that other loading decapsulations existing or that possibly occur are from now on used is as applicable to the present invention; Also should be included in the protection range of the present invention, and be contained in this with way of reference at this.
Preferably, equipment 1 also comprises the discharge mechanism (not shown), and discharge mechanism is according to first pre-defined rule, and based on the historical record of decapsulation operation, unloading is used with the corresponding decapsulation of said historical record.Particularly, discharge mechanism is according to first pre-defined rule, and unused time surpasses threshold value or usage frequency is lower than threshold value as continuing, and with reference to the historical record that decapsulation is operated, unloads corresponding one or more decapsulation and use.For example; Suppose that first pre-defined rule continues the decapsulation application that unused time surpasses threshold value for unloading; Historical record according to the decapsulation operation; In a period of time, the decapsulation of never carrying out multimedia file is used in certain decapsulation, and discharge mechanism unloads this decapsulation application automatically so; And for example, according to the historical record of decapsulation operation, the execution frequency that certain decapsulation was applied in a period of time is lower than setting threshold, and so, this moment, discharge mechanism unloaded this decapsulation application automatically.At this, this first pre-defined rule includes but not limited to: 1) scheduled time does not use; 2) frequency of usage does not reach predetermined value; 3) both combine.Those skilled in the art will be understood that above-mentioned several kinds first pre-defined rules are merely for example; Other existing or first pre-defined rules that possibly occur from now on are as applicable to the present invention; Also should be included in the protection range of the present invention, and be contained in this with way of reference at this.
More preferably, deriving means 11, recognition device 12, final controlling element 13 and discharge mechanism are constant work.Particularly, deriving means 11 obtains the multimedia file that carries encapsulation format; The encapsulation format of the said multimedia file of recognition device 12 identifications; Final controlling element 13 is according to said encapsulation format, and the said multimedia file of decapsulation is to obtain one or more coding unit sequence flows; Discharge mechanism is then according to first pre-defined rule, and based on the historical record of decapsulation operation, unloading is used with the corresponding decapsulation of said historical record.At this; It will be understood by those skilled in the art that " continuing " is meant that deriving means 11, recognition device 12, final controlling element 13 and discharge mechanism require to carry out the identification of the obtaining of multimedia file, encapsulation format respectively according to mode of operation that set or adjustment in real time; Decapsulation is used with the unloading decapsulation to obtain the coding unit sequence flows, stops to obtain multimedia file in a long time until this user.
Preferably, equipment 1 also comprises the updating device (not shown), and updating device is according to decapsulation operation foundation or upgrade said historical record.Particularly, the historical record of decapsulation operation is set up in the decapsulation operation that updating device is accomplished according to equipment 1, and this historical record is not to set constantly, but dynamically updates according to the decapsulation operation of equipment 1.For example, updating device is used the historical record of this decapsulation operation of corresponding renewal each time to the decapsulation of multimedia file execution according to equipment 1.For example, the encapsulation format of the multimedia file that equipment 1 obtains is " MOV ", and 1 pair of this multimedia file of equipment is carried out with the corresponding decapsulation of " MOV " form and used, and simultaneously, updating device correspondingly upgrades the historical record of decapsulation operation.
More preferably, deriving means 11, recognition device 12, final controlling element 13, discharge mechanism and updating device are constant work.Particularly, deriving means 11 obtains the multimedia file that carries encapsulation format; The encapsulation format of the said multimedia file of recognition device 12 identifications; Final controlling element 13 is according to said encapsulation format, and the said multimedia file of decapsulation is to obtain one or more coding unit sequence flows; Discharge mechanism is according to first pre-defined rule, and based on the historical record of decapsulation operation, unloading is used with the corresponding decapsulation of said historical record; Updating device is then operated foundation or is upgraded said historical record according to decapsulation.At this; It will be understood by those skilled in the art that " continuing " is meant that deriving means 11, recognition device 12, final controlling element 13, discharge mechanism and updating device require to carry out the identification of the obtaining of multimedia file, encapsulation format respectively according to mode of operation that set or adjustment in real time; Decapsulation is to obtain the coding unit sequence flows; The historical record of decapsulation operation is used and is set up and upgrade in the unloading decapsulation, stops to obtain multimedia file in a long time until this user.
In a further advantageous embodiment, deriving means 11 obtains the multimedia file that carries encapsulation format from local storage or network.Particularly, (when equipment 1 was the network equipment, local storage was the memory of this network equipment to deriving means 11 from local storage; When equipment 1 was customer equipment, local storage was the memory of this customer equipment) obtain the multimedia file that carries encapsulation format, for example the assigned address from local storage reads an audio file; Perhaps the network storage address according to multimedia file obtains the multimedia file that carries encapsulation format, for example downloads one section video file from a URL address link.At this; Local storage includes but not limited to the various storage devices (for example internal memory, hard disk etc.) of equipment 1 self; Perhaps need not the various storage devices (for example USB flash disk, portable hard drive, various storage cards etc.) that are connected through network with equipment 1, those skilled in the art will be understood that above-mentioned local storage is merely for example, and other local storages existing or that possibly occur from now on are as applicable to the present invention; Also should be included in the protection range of the present invention, and be contained in this with way of reference at this.At this; Network includes but not limited to the Internet, wide area network, metropolitan area network, local area network (LAN), VPN network, wireless self-organization network (Ad Hoc network); Those skilled in the art will be understood that also above-mentioned several kinds of networks are merely for example; Other networks existing or that possibly occur from now on also should be included in the protection range of the present invention, and be contained in this at this with way of reference as applicable to the present invention.
Preferably, final controlling element 13 is according to the predictive encoding mode, converts the coded system of said one or more coding unit sequence flows into said predictive encoding mode.Particularly; One or more coding unit sequence flows that final controlling element 13 is obtained for the decapsulation multimedia file; According to the predictive encoding mode,, change the coded system of said one or more coding unit sequence flows for example through the process of decoding earlier, back coding.For example, behind the multimedia file of " MP4 " encapsulation format of final controlling element 13 decapsulations, the audio coding unit sequence flows that to obtain a coded system be " AAC " and coded system are the video encoding unit sequence flows of " MPEG-4 "; And the predictive encoding mode is: the coded system of audio coding unit sequence flows is " AAC ", and the coded system of video encoding unit sequence flows is " MPEG-2 "; At this moment, convert the coded system of the video encoding unit sequence flows that obtains after the decapsulation into " MPEG-2 " from " MPEG-4 ", thus the audio coding unit sequence flows and the video encoding unit sequence flows of this multimedia file of target device success decodes and plays.
In a preferred embodiment again, equipment 1 also comprises the first generator (not shown), is used for said one or more coding unit sequence flows are offered first target device.Particularly, for example, when equipment 1 itself not during this coding unit sequence flows of decodes and plays, first generator offers this coding unit sequence flows first target device of this coding unit sequence flows of decodes and plays.For example; Suppose that equipment 1 is streaming media server; First target device is the STB that only has decoder, and this STB need obtain the coding unit sequence flows of video file from this streaming media server, plays the coding unit sequence flows of this video file then at local decode; In this case; After the video file process decapsulation of this streaming media server with this STB request; Obtain the coding unit sequence flows, first generator is sent to this STB with this coding unit sequence flows again, plays this coding unit sequence flows for this set top box decodes.
Preferably, deriving means 11, recognition device 12, final controlling element 13 and first generator are constant work.Particularly, deriving means 11 obtains the multimedia file that carries encapsulation format; The encapsulation format of the said multimedia file of recognition device 12 identifications; Final controlling element 13 is according to said encapsulation format, and the said multimedia file of decapsulation is to obtain one or more coding unit sequence flows; First generator then offers target device with said coding unit sequence flows.At this; It will be understood by those skilled in the art that " continuing " is meant that deriving means 11, recognition device 12, final controlling element 13 and first generator require to carry out obtaining of multimedia file according to mode of operation that set or adjustment in real time respectively; The identification of encapsulation format; Decapsulation stops to obtain multimedia file to obtain the coding unit sequence flows and this coding unit sequence flows is offered target device until this user in a long time.
In a preferred embodiment, equipment 1 also comprises the decoding device (not shown), is used for the said one or more coding unit sequence flows of decodes and plays.Particularly, decoding device decompresses to the coding unit sequence flows that final controlling element 13 obtains, then according to audio coding unit and video encoding unit in this coding unit sequence flows of the temporal information synchronous playing in this coding unit sequence flows.This embodiment is used for equipment 1 and is the scene of customer equipment.For example; Decoding device decompresses the coding unit sequence flows that final controlling element 13 obtains; From the temporal information of coding unit sequence flows, obtain the timestamp of audio coding unit and video encoding unit, realize the synchronous playing of audio coding unit and video encoding unit then according to this timestamp.Those skilled in the art will be understood that the method for synchronization of above-mentioned audio coding unit and video encoding unit is merely for example; The method of synchronization of other audio coding units existing or that possibly occur from now on and video encoding unit is as applicable to the present invention; Also should be included in the protection range of the present invention, and be contained in this with way of reference at this.At this, this decodes and plays operation both can be carried out through decoder (chip), also can carry out through decoding software.Those skilled in the art will be understood that also above-mentioned decodes and plays mode is merely for example, and other decodes and plays modes existing or that possibly occur from now on also should be included in the protection range of the present invention, and be contained in this at this with way of reference as applicable to the present invention.
Preferably, deriving means 11, recognition device 12, final controlling element 13 and decoding device are constant work.Particularly, deriving means 11 obtains the multimedia file that carries encapsulation format; The encapsulation format of the said multimedia file of recognition device 12 identifications; Final controlling element 13 is according to said encapsulation format, and the said multimedia file of decapsulation is to obtain one or more coding unit sequence flows; Decoding device is the said one or more coding unit sequence flows of decodes and plays then.At this; It will be understood by those skilled in the art that " continuing " is meant that deriving means 11, recognition device 12, final controlling element 13 and decoding device require to carry out obtaining of multimedia file according to mode of operation that set or adjustment in real time respectively; The identification of encapsulation format; Decapsulation stops to obtain multimedia file to obtain coding unit sequence flows and this coding unit sequence flows of decodes and plays until this user in a long time.
In a further advantageous embodiment, equipment 1 also comprises the packaging system (not shown), and packaging system is encapsulated as said one or more coding unit sequence flows the multimedia file of predetermined encapsulation format.Particularly, packaging system, encapsulates according to predetermined encapsulation format for one or more coding unit sequence flows that final controlling element 13 decapsulations obtain once more, to accomplish the conversion to encapsulation format.This embodiment is used for the encapsulation format of multimedia file is changed, so that only support the multimedia file after the target device of predetermined encapsulation format can read encapsulation again.For example, suppose that an original encapsulation format of multimedia file is " FLV ", after its decapsulation; Obtain an audio coding unit sequence flows and a video encoding unit sequence flows; At this moment, preset encapsulation format is " AVI ", so; Packaging system then encapsulates this audio coding unit sequence flows and the video encoding unit sequence flows form according to " AVI ", thereby accomplishes the conversion of encapsulation format from " FLV " to " AVI " of this multimedia file.
Preferably, deriving means 11, recognition device 12, final controlling element 13 and packaging system are constant work.Particularly, deriving means 11 obtains the multimedia file that carries encapsulation format; The encapsulation format of the said multimedia file of recognition device 12 identifications; Final controlling element 13 is according to said encapsulation format, and the said multimedia file of decapsulation is to obtain one or more coding unit sequence flows; Packaging system then is encapsulated as the one or more coding unit sequence flows after the said decapsulation multimedia file of predetermined encapsulation format.At this; It will be understood by those skilled in the art that " continuing " is meant that deriving means 11, recognition device 12, final controlling element 13 and packaging system require to carry out the identification of the obtaining of multimedia file, encapsulation format respectively according to mode of operation that set or adjustment in real time; Decapsulation is to obtain the coding unit sequence flows and according to the encapsulation once more of being scheduled to encapsulation format, to stop to obtain multimedia file in a long time until this user.
Preferably, equipment 1 also comprises the second generator (not shown), is used for the multimedia file of said predetermined encapsulation format is offered second target device.Particularly, second generator is encapsulated as the multimedia file of being scheduled to encapsulation format again with packaging system, offers second target device that can only read this predetermined encapsulation format.Equipment 1 is used for the scene that second target device can only read the multimedia file of special package form.For example; Suppose that second target device can only read the multimedia file of encapsulation format for " MP4 "; Equipment 1 obtains the video file of encapsulation format for " FLV "; After decapsulation, convert the video file of encapsulation format into for " MP4 ", second generator sends to second target device with this video file then.
More preferably, deriving means 11, recognition device 12, final controlling element 13, packaging system and second generator are constant work.Particularly, deriving means 11 obtains the multimedia file that carries encapsulation format; The encapsulation format of the said multimedia file of recognition device 12 identifications; Final controlling element 13 is according to said encapsulation format, and the said multimedia file of decapsulation is to obtain one or more coding unit sequence flows; The one or more coding unit sequence flows of packaging system after with said decapsulation are encapsulated as the multimedia file of predetermined encapsulation format; Second generator then offers second target device with the multimedia file of said predetermined encapsulation format.At this; It will be understood by those skilled in the art that " continuing " is meant that deriving means 11, recognition device 12, final controlling element 13, packaging system and second generator require to carry out the identification of the obtaining of multimedia file, encapsulation format respectively according to mode of operation that set or adjustment in real time; Decapsulation is to obtain the coding unit sequence flows; According to the encapsulation once more of predetermined encapsulation format and the multimedia file after will encapsulating offer second target device, stop to obtain multimedia file in a long time until this user.
To those skilled in the art, obviously the invention is not restricted to the details of above-mentioned example embodiment, and under the situation that does not deviate from spirit of the present invention or essential characteristic, can realize the present invention with other concrete form.Therefore; No matter from which point; All should regard embodiment as exemplary; And be nonrestrictive, scope of the present invention is limited accompanying claims rather than above-mentioned explanation, therefore is intended to the implication of the equivalents that drops on claim and all changes in the scope are included in the present invention.Should any Reference numeral in the claim be regarded as limit related claim.In addition, obviously other unit or step do not got rid of in " comprising " speech, and odd number is not got rid of plural number.A plurality of unit of stating in system's claim or device also can be realized through software or hardware by a unit or device.The first, the second word such as grade is used for representing title, and does not represent any specific order.