Summary of the invention
In view of this, the invention provides the method that a kind of multimedia file without seam is play,, promote the continuity that multimedia file is viewed and admired by seamlessly playing a plurality of multimedia files.
For reaching above-mentioned purpose, the present invention proposes the method for a plurality of multimedia files of a kind of seamless play, is suitable for utilizing playing device to play a plurality of multimedia files continuously, and this method comprises the following steps: at first, pre-first multimedia file and second multimedia file of resolving is to set up playlist.Then according to the playlist play multimedia files.
In one embodiment of the invention, above-mentionedly play these multimedia files according to playlist and comprise: first multimedia file play finish after, rising of second multimedia file broadcast a signal boundary of alignment TV signal, begin to play second multimedia file.Wherein, described signal boundary comprises a border (field boundary) or frame boundaries (frame boundary).
In one embodiment of the invention, before the above-mentioned step according to the playlist play multimedia files, further comprise the header file of resolving these multimedia files, to obtain the broadcast information of these media files, resolve the index content of these multimedia files then, and deposit in the storer of playing device.Last then these multimedia files of initialization also dispose the memory resource of playing device.Wherein, described memory resource comprises required image impact damper, sound buffer and the random access impact damper of each multimedia file of broadcast.
In one embodiment of the invention, the step of the memory resource of above-mentioned configuration playing device comprises: find out from the header file of these multimedia files playing device memory resource demand the maximum, with this demand the maximum as the initialized parameter of playing device, and initialization playing device.
In one embodiment of the invention, the above-mentioned step of setting up playlist comprises: the file name field of specifying a seed file in multimedia file to be played, find out other multimedia files then with this document name field coupling, and adding playlist, last then resolve the header file of these multimedia files, obtaining the broadcast information of these multimedia files, and finish playlist.
In one embodiment of the invention, above-mentioned playlist comprises that multimedia file title, multimedia file size, video content length, video content work the side-play amount of broadcasting a little, the frame number and the frame rate of film with respect to multimedia file.
In one embodiment of the invention, the above-mentioned step of setting up playlist comprises: the playing sequence that is set up on their own these multimedia files by the user.
In one embodiment of the invention, when having the file name field of second multimedia file of record in the header file of these multimedia files, the then above-mentioned step of setting up playlist comprises: by searching this document name field, obtain these file names and set up playlist.
In one embodiment of the invention, described method further comprises: write down that rising of these multimedia files broadcast a little and the temporal information of end point.
In one embodiment of the invention, the step of above-mentioned play multimedia files comprises: set a basic time axis earlier, found out and broadcast a little and the position of end point on this basis time axis, rising when wherein the end point of first multimedia file can be used as broadcast second multimedia file broadcast a little.Wherein, above-mentioned basic time axis comprises the time shaft of 90 kilo hertzs (kHz).
In one embodiment of the invention, the step of above-mentioned play multimedia files comprises: after setting up playlist, the index content of reference described first and described second multimedia file is set up the first random access form and the second random access form respectively; Receive the jump play instruction, and, find out the specified position of jump in this multimedia file of pairing multimedia file of this jump play instruction and jump play instruction according to these multimedia files position and described first and second random access form of reference on the time axis of basis.Just begin play multimedia files then from the position of this jump this multimedia file.
In one embodiment of the invention, the step of above-mentioned play multimedia files comprises: obtain the specified video frame number of jump play instruction, find out the pairing multimedia file of this video frame number by the inquiry playlist, the video frame number of jump in multimedia file that the jump play instruction that converts then is specified, and from this video frame number play multimedia files.
In one embodiment of the invention, the step of above-mentioned play multimedia files comprises: obtain the specified hopping time point of jump play instruction, find out this hopping time by the inquiry playlist and put pairing multimedia file, the specified time point of jump in multimedia file of this jump play instruction that convert then, and from this time point play multimedia files.
In one embodiment of the invention, when the position of the specified jump of jump play instruction surpasses the ending of multimedia file, then broadcast a beginning, play second multimedia file by rising of second multimedia file.
In one embodiment of the invention, when having time delay in the video data of second multimedia file or the audio data, then playing second multimedia files comprises: rising of second multimedia file broadcast a signal boundary of alignment TV signal, and begin to play second multimedia file.
In one embodiment of the invention, when having time delay in the video data of second multimedia file or the audio data, then playing second multimedia files comprises: the time deduction delay reproduction time that rising of second multimedia file broadcast is a little broadcast a little as new the rising of second multimedia file, broadcast a signal boundary of alignment TV signal and will be somebody's turn to do new rising, and begin to play second multimedia file.
As seen from the above technical solutions, the present invention sets up playlist by pre-first and second multimedia file of resolving, and play multimedia files according to this.By promptly all multimedia files that needs are play being resolved in advance at initialization procedure, and set up playlist according to the multimedia file of resolving, when playing, play according to the multimedia file of resolving in the playlist, thereby, when playing first multimedia file, then play second multimedia file of resolving in the playlist, do not need the operation of again second multimedia file being resolved.Like this, playing first multimedia file, can not produce, realizing that the continuous seamless of a plurality of multimedia files is play owing to resolve the broadcast interruption that second multimedia file causes to beginning to play between second multimedia file.
Further, by play at each multimedia file finish after, play again after rising of second multimedia file broadcast a signal boundary of alignment TV signal, also can reach a plurality of multimedia files of seamless play and keep audio-visual synchronous purpose.
Embodiment
For making purpose of the present invention, technical scheme and advantage clearer, below with reference to the accompanying drawing embodiment that develops simultaneously, the present invention is described in further detail.
The present invention is by at the beginning of playing at multimedia file, promptly find out the playlist of same group multimedia file earlier by playing device, and regard all multimedia files that this playlist is put down in writing as a big virtual audio/video file, and operate at this virtual audio/video file.When actual play,,, promptly seek second multimedia file whenever the content play end of first multimedia file with reference to the previous playlist of setting up.In view of the above, can reach the purpose of seamless play.Further, after first multimedia file is play end,, can also realize seamless play and audio-visual synchronous purpose by rising of second multimedia file being broadcast a signal boundary of alignment TV signal to play.Method that a kind of a plurality of multimedia file without seam that develop out play that the present invention promptly is based on above-mentioned notion.
Fig. 1 is the method flow synoptic diagram that a plurality of multimedia file without seam of the embodiment of the invention are play.Please refer to Fig. 1, present embodiment is applicable to and utilizes playing device to play a plurality of multimedia files continuously and seamlessly that its detailed step is as follows:
At first, by pre-first multimedia file and second multimedia file of resolving of playing device, to set up playlist (step S110).In detail, playing device is in beginning during play multimedia files, can find out the playlist of same file group earlier, regards the All Files that playlist is put down in writing as a big virtual audio/video file, and operates at this virtual audio/video file.
Institute's embodiment of the invention that it should be noted that is described by pre-first multimedia file and second multimedia file of resolving of playing device, to set up playlist.Wherein, first multimedia file and second multimedia file do not limit its scope.
For instance, Fig. 2 is the playlist structure synoptic diagram of embodiment of the invention multimedia file.Please refer to Fig. 2, the playlist 200 of present embodiment comprises that multimedia file title (File Name), multimedia file size (File Size), video content length (Content Length), video content work the frame number (Video Frame Counts) of the side-play amount (Content Start Position) broadcast a little, film and frame rate (Video Frame Rate) etc. with respect to multimedia file.
Then, playing device will be resolved the index content of first multimedia file and second multimedia file in the playlist, set up the first random access form and the second random access form (step S120) respectively, and the content of this first and second random accesses form deposited suitable memory location to the playing device, as the reference of follow-up play device accessing multimedia file and skip operation.
At last, playing device comes play multimedia files (step S130) according to the playlist and the random access form of above-mentioned foundation.Wherein, the random access form is used for the step of skip operation, about the step of skip operation, follow-uply is elaborated again.After first multimedia file finishes, playing device will be inquired about playlist, find out second multimedia file that continues and play, also can further rising of second multimedia file be broadcast a signal boundary of alignment TV signal, and begin to play second multimedia file.Wherein, above-mentioned signal boundary comprises a border (field boundary) or frame boundaries (frame boundary), and does not limit its scope.
In detail, merely two multimedia files are engaged togather in the prior art and will cause the nonsynchronous problem of audio-visual broadcast, this is inconsistent because of the Time Calculation unit of image in the multimedia file and sound.For example play the image of per second 30 frame rate, each data blocks is fixing 33 milliseconds, yet when playing sound, the time interval of sound block sampling need be decided with the different of use compressed format according to sampling frequency, thereby will cause the length of the image of a part of multimedia file and sound inconsistent, therefore behind the audiovisual materials of playing a plurality of multimedia files, will cause the nonsynchronous result of audio-visual broadcast.In view of the above, broadcast mode of the present invention is thought deeply with the timing mode of TV signal, second multimedia file rise broadcast before, the border, field or the frame boundaries of the TV signal of earlier image data in this multimedia file being alignd with audio document, just push out broadcast then, therefore, even after the process broadcast of a plurality of multimedia files, the present invention can guarantee that still audiovisual materials are synchronous.
As for the time point that how to determine video and audio fragment, the present invention adopts the time shaft of 90 kilo hertzs (kHz) as basis time axis, video and audio fragment finds corresponding point on the countershaft at this moment arbitrarily, and after by said method rising of video and audio of medium document fragment being broadcast an alignment, its time corresponding side-play amount is also just determined.
For instance, Fig. 3 broadcasts a synoptic diagram of the signal boundary of alignment TV signal for rising of embodiment of the invention multimedia file.Please refer to Fig. 3, the original video and audio fragment of supposing first multimedia file is to begin to calculate from Time 0, and then the reproduction time of first multimedia file promptly is to calculate Time_end (1) from Time 0.On the other hand, when second multimedia file is connected after first multimedia file, the reproduction time of second multimedia file will calculate Time_end (2) from Time_end (1).Playing device will write down rising of each multimedia file and broadcasts a little temporal information with end point, and utilizes this temporal information to determine and deal with which multimedia file.For instance, if the length of two multimedia files respectively is 5 minutes and 3 minutes, can learn according to said method that then the 7th minute operation is that second multimedia file dealt with.
It should be noted that, the MPEG-4 of Motion Picture Experts Group (MPEG, Moving Picture Expert Group) allows the delay of audiovisual materials, and handles for the delay of data, the present invention presents outside the original carryover effects except according to aforesaid broadcast mode; Another kind of mode then is that the audiovisual materials of ignoring multimedia file not have the part of aliging.
In detail, when the video data of second multimedia file or audio data have time delay, a kind of mode be by playing device when playing second multimedia file, earlier rising of second multimedia file broadcast a signal boundary of alignment TV signal, just begun to play second multimedia file then; Another kind of mode then is to postpone reproduction time by the time deduction that playing device is broadcast rising of second multimedia file a little to broadcast a little as new the rising of second multimedia file, to be somebody's turn to do new rising afterwards again and broadcast a signal boundary of alignment TV signal, just begin to play second multimedia file at last.
For instance, Fig. 4 postpones the synoptic diagram of play multimedia files for the embodiment of the invention.Please refer to Fig. 4, the zero-time of second multimedia file is: Time_end (1) deducts time delay, and its concluding time then is: Time_end (2) deducts time delay.If the first stroke data of sound is since 750 milliseconds of broadcasts, then playing device can be after the image of multimedia file be partly play 750 milliseconds, just sound is begun to push out, that is to say, playing device can neglect the image data of 750 milliseconds of fronts, and allows at the beginning sound rise to broadcast a little for this multimedia image file the 750th millisecond.
Fig. 5 is the method flow synoptic diagram that a plurality of multimedia file without seam of another embodiment of the present invention are play.Please refer to Fig. 5, present embodiment is further introduced the detailed step of a plurality of multimedia files of previous embodiment seamless play, and its step is as follows:
Be similar to previous embodiment, present embodiment is also earlier by pre-first multimedia file and second multimedia file of resolving of playing device, set up playlist, playing device can provide needed playlist by the header file of multimedia file or by playing device itself.
In detail, present embodiment is by increasing a kind of field of new block type (Chunk Type) in the header file of multimedia file, its content comprises the multimedia file of record broadcast at present after playing end, second multimedia file title that continues and play.The multimedia file of playing if do not continue is then with the big or small zero filling of the block of this field.In view of the above, playing device can be by the data of this block type in the header file of searching each multimedia file, with multimedia file title and the multimedia file size (step S510) that obtains to continue.
Except the above-mentioned mode of setting up playlist by the field of searching new block type, the present invention also provides by the user and imports voluntarily from the playlist of ordering, or uses the shade robotization to produce playlist by playing device.The second way is by specifying the file name field of a seed file in multimedia file to be played, the for example prefix of file name, suffix or serial number field etc., and in given file group, find out other multimedia files that are complementary with this document name field and join playlist.
Up to the present, playlist has only been finished interpolation file name and two kinds of field informations of file size.Playing device will further be resolved the header file of these multimedia files this moment, to obtain other broadcast information (step S520) of each multimedia file, comprising the relevant field of multimedia document information, for example the video content length of multimedia file, video content work the frame number of the side-play amount broadcast a little, film and frame rate etc. with respect to multimedia file.Wherein, for playing device, the total length of virtual audio/video file is the length summation of the video content of each multimedia file.In this step, playing device will be finished and add all field informations that are short of in the playlist.
After playlist is set up, next playing device will carry out initialized action at each multimedia file in the playlist, it comprises the index content of first definition multimedia file, set up other random access table lattice, and the content of these random access forms deposited suitable memory location (step S530) to the playing device, with reference as follow-up play device accessing multimedia file and skip operation.
Second step is the initialization multimedia file and disposes the required memory resource of playing device (step S540).Wherein, playing device for general consumption-orientation, its storer all adopts the shared practice, for example image buffer zone, sound buffer district and random access buffer zone all are the basic resources of being shared by each multimedia file, under the situation of resource-constrained, if will distribute more resource to give certain demand, be bound to the resource of another demand of reduction.In view of the above, the present invention is to adopt a maximized resource distribution for the broadcast of multimedia file, to avoid between different multimedia files, because audio-visual buffer zone needs dynamically to adjust, and increases operational complexity.
In detail, playing device will be from playlist be found out the memory resource demand the maximum to playing device in the header file of each multimedia file, and with this demand the maximum as the initialized parameter of playing device, with the initialization playing device.Wherein, described memory resource comprises plays required image impact damper, sound buffer or the random access impact damper of each multimedia file, and does not limit its scope.For instance, the field of meeting recording multimedia file film analysis degree in the header file, playing device can be picked out film analysis degree the maximum as its initialized parameter from the field of a plurality of multimedia files.
When the actual play multimedia file, playing device will be with reference to the playlist of previous foundation, in regular turn play multimedia files (step S550).Wherein, when the content play of present multimedia file finishes, playing device will be inquired about playlist, look for whether the multimedia file (step S560) that continues is arranged, if the multimedia file that continues arranged, rising to broadcast and a little begin to read data then by the multimedia file that continues to play (step S570); If when can not find corresponding multimedia file in the playlist, i.e. expression is play and is finished and finish broadcast behavior (step S580).
What deserves to be mentioned is, for above-mentioned virtual audio/video file, playing device of the present invention is also supported the skip operation of this virtual audio/video file, and common skip operation can be divided into two kinds: a kind of is the frame of video that jumps to appointment, another kind is the time point that jumps to appointment, respectively describes in detail for an embodiment at these two kinds of skip operation with next.
Fig. 6 is the schematic flow sheet of the skip operation of a plurality of multimedia files of the embodiment of the invention.Please refer to Fig. 6, present embodiment is with the frame of video according to appointment, and via the control of playing device, jumping to corresponding multimedia file is that example describes, and its detailed step is as follows:
At first, receive the jump play instruction by playing device, and obtain the specified video frame number (step S610) of jump play instruction.Then, playing device can be according to the position of each multimedia file on the time axis of basis, and, find out the specified position of jump in this multimedia file of pairing multimedia file of jump play instruction and jump play instruction with reference to previous first and second random access form of setting up.Wherein, playing device is by the inquiry playlist, to find out the pairing multimedia file of video frame number (step S620).Then, the playing device specified video frame number (step S630) of jump in multimedia file of jump play instruction that can convert.Then begin play multimedia files (step S640) at last from this video frame number.
Fig. 7 is the schematic flow sheet of the skip operation of a plurality of multimedia files of another embodiment of the present invention.Please refer to Fig. 7, present embodiment is with the time point according to appointment, and via the control of playing device, jumping to corresponding multimedia file is that example describes, and its detailed step is as follows:
At first, receive the jump play instruction by playing device, and obtain the specified hopping time point (step S710) of jump play instruction, then then by the inquiry playlist, find out this hopping time and put pairing multimedia file (step S720), and then, then begin play multimedia files (step S740) at last by this time point by the playing device specified time point (step S730) of jump in multimedia file of this jump play instruction that convert.
Be elaborated for an embodiment again with next structure at playing device of the present invention.Fig. 8 is the structural representation of embodiment of the invention playing device.Please refer to Fig. 8, the playing device 800 of present embodiment utilizes it to resolve end 810 with data separation audio-visual in the multimedia file, insert image buffer zone 820 and sound buffer district 830 respectively, this moment, image-decoding device 840 promptly can read data decoding with voice decoder 850 from image buffer zone 820 and sound buffer district 830, and the data of getting well of will decode pushs out broadcast.
Wherein, in the suitable state of playing multimedia file, when resolving end 810 first multimedia file is resolved when finishing, will continue to read second multimedia file to resolve action, the data of also parsing being finished is simultaneously inserted image buffer zone 820 and sound buffer district 830 respectively.On the other hand, image-decoding device 840 reads data with the action of decoding from image buffer zone 820 and sound buffer district 830 respectively with 850 of voice decoders, wait until new multimedia file broadcast an alignment after, its data just can be pushed away broadcast.Above-mentioned whole process does not have special difference for the user, but the joining place of multimedia file will be realized seamless play.
What deserves to be mentioned is that at the skip operation of the fast forwarding and fast rewinding of multimedia file, playing device 800 needs to safeguard a random access form 860, and realizes skip operation by inquiring about this random access form 860.Method of the present invention can be set up corresponding random access form 860 at multimedia video form miscellaneous, and required information on the various multimedia video format operations is provided, thereby reaches the purpose of supporting the seamless connection of various multimedia video form.
In addition, in the process of carrying out skip operation, when the position of the specified jump of jump play instruction surpassed the ending of multimedia file, playing device will be broadcast a beginning by rising of second multimedia file, plays second multimedia file.For instance, Fig. 9 is the synoptic diagram of the skip operation of a plurality of multimedia files of the embodiment of the invention.Please refer to Fig. 9, when the position of the specified jump of jump play instruction surpassed the ending of first multimedia file, playing device will be broadcast a beginning by rising of second multimedia file, carries out the operation of fast forwarding and fast rewinding.In view of the above, playing device can carry out various traditional skip operation to multimedia file, and can not produce the situation of interrupting pause.
In sum, in the method that a plurality of multimedia file without seam of the present invention are play, by resolving first multimedia file and second multimedia file in advance to set up playlist, then according to the playlist play multimedia files, can guarantee the seamless broadcast of a plurality of multimedia files realizations, improve the continuity that multimedia file is viewed and admired; Further, after first multimedia file is play end, rising of second multimedia file broadcast a signal boundary of alignment TV signal, begin to play second multimedia file, therefore can guarantee in the playing process of multimedia file, even striden across several files, its audio-visual broadcast still can be kept synchronously, and the calculating of reproduction time is continuous.In addition, in the method that a plurality of multimedia file without seam of the present invention is play, after setting up playlist, index content with reference to first and second multimedia file, set up the first random access form and the second random access form respectively, can allow a plurality of multimedia files realize seamless broadcast, and the operation behavior of fast forwarding and fast rewinding is provided between different multimedia files, can further improve the continuity that multimedia file is viewed and admired.
Though the present invention discloses as above with preferred embodiment; but be not in order to limit the present invention; those of ordinary skill in the art; without departing from the spirit and scope of the present invention; can do a little change and retouching; therefore, protection scope of the present invention should be as the criterion so that the interest field that the present invention was advocated is described, but not only limits to the foregoing description.