Embodiment
In order to make the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, the specific embodiment of the invention is described in further detail.Be understandable that, specific embodiment described herein is only for explaining the present invention, but not limitation of the invention.It also should be noted that, for convenience of description, illustrate only part related to the present invention in accompanying drawing but not full content.
The method of the embodiment of the present invention can be performed by the audio/video file playing device be integrated in mobile terminal or dedicated multimedia connection device (such as blue light disc player), this device realizes by the mode of hardware and/or software, does not limit this.
First embodiment
Fig. 1 is the schematic flow sheet of a kind of audio/video file player method that first embodiment of the invention provides, and specifically comprises the steps:
Step 11, reception audio/video file playing request, perform step 12.
Such as, user is by clicking or touch the broadcast button of multimedia connection device (such as blue light disc player), then playing request is sent to audio/video file playing device with the form of instruction.Wherein, in audio/video file playing request, carry the position (such as IP address etc.) at play content (such as video disc, video) or play content place, so that during follow-up play, user can be found fast to be about to the content play.
Step 12, obtain described audio/video file support broadcast format, perform step 13.
Wherein, broadcast format comprises audio format (such as Chinese+pcm encoder form, English+pcm encoder form, Japanese+pcm encoder form, Chinese+dolby coded format, English+dolby coded format, Korean+DTS coded format, Chinese+MP3 coded format and English+MP3 coded format etc.) and captions languages (such as Chinese, English, French, German etc.).
Such as, in the prior art, the form composition of video disc or video file is as shown in Table 1:
Table one
Wherein, video code flow refers to the view data adopting video code model coding, the image namely shown on screen; Shown in audio code stream table two composed as follows, refer to and adopt audio coding formats the recording of different language to be carried out the voice data of encoding, the sound heard when namely playing, modal is English+pcm encoder form, English+DTS coded format, English+dolby coded format etc., wherein, audio presentation form refers to the channel number of audio frequency, is such as stereo or 5.1 sound channels etc.; Sampling rate information refers to audio sample rate, such as 44.1KHz, 48KHz etc.; Audio frequency language information refers to the languages of recording, is such as English recording or Chinese recording or Guangdong language recording etc.
Table two
Wherein, shown in captions code stream table three composed as follows, the captions that the video referred to shows below, wherein, the captions that captions language information refers to are Chinese or the language information such as English.
Table three
Such as, for audio format, by reading the audio code stream comprised in audio/video file (such as video disc or video file), the audio format of video disc or video support is contained in audio code stream, resolve audio code stream data and therefrom obtain coded format and language information, thus determine the audio format that video disc or video are supported.Such as, the audio format of the described audio/video file support of acquisition is Chinese+DTS coded format, English+DTS coded format, Korean+DTS coded format, Chinese+dolby coded format, English+dolby coded format, Chinese+pcm encoder form, English+pcm encoder form and Japanese+pcm encoder form etc.
Step 13, inquiry broadcast format sequencing table, record the priority orders of broadcast format, perform step 14 in described broadcast format sequencing table.
Wherein, broadcast format sequencing table is also divided into audio format sequencing table and captions languages sequencing table, above-mentioned broadcast format sequencing table is all that the broadcast format record adopted according to user's history carries out formulating, accurately can reflect the hobby of user, the broadcast format that priority is higher shows that user uses this broadcast format more frequent, further illustrates user and more likes this broadcast format.
Step 14, determine whether to comprise in described broadcast format sequencing table the broadcast format that described audio/video file supports.
Such as, if inquire the broadcast format of described audio/video file support in broadcast format sequencing table, then determine the broadcast format comprising the support of described audio/video file in described broadcast format sequencing table, then perform step 15.
Step 15, from the broadcast format that described audio/video file is supported, select the broadcast format that priority is the highest according to described broadcast format sequencing table, perform step 16.
Such as, when carrying out audio format and selecting, then from audio format sequencing table, the audio format that priority is the highest is selected; When carrying out captions languages and selecting, then from captions languages sequencing table, select the languages that priority is the highest.
Step 16, export the data code flow of described audio/video file corresponding for broadcast format the highest for described priority to playback equipment, play described audio/video file to make described playback equipment according to described data code flow.
Such as, the data code flow of the audio format that priority step 15 selected is the highest and/or described audio/video file corresponding to captions languages exports playback equipment to, plays described audio/video file to make described playback equipment according to described data code flow.
The present embodiment is by receiving audio/video file playing request, obtain the broadcast format that described audio/video file is supported, query note has the broadcast format sequencing table of the priority orders of broadcast format, comprise the broadcast format that described audio/video file is supported if determine in described broadcast format sequencing table, then from the broadcast format that described audio/video file is supported, select the broadcast format that priority is the highest according to described broadcast format sequencing table; Playback equipment is exported to by adopting the data code flow of described audio/video file corresponding to the highest broadcast format of described priority, described audio/video file is play according to described data code flow to make described playback equipment, can according to broadcast format sequencing table automatically for user selects the broadcast format liked, make multimedia more intelligent, remove the operating process that user repeats to arrange from.
Exemplary, on the basis of above-described embodiment, described method also comprises:
If before exporting the data code flow of described audio/video file corresponding for broadcast format the highest for described priority to playback equipment, receive the broadcast format that user selects, then the data code flow of the described audio/video file that broadcast format user selected is corresponding exports playback equipment to.
Such as, user can select by remote controller the broadcast format liked, if user have selected broadcast format, then the data code flow of the described audio/video file that broadcast format user selected is corresponding exports playback equipment to.
Exemplary, before described inquiry broadcast format sequencing table, also comprise:
Obtain the broadcast format that playback equipment is supported; After inquiry broadcast format sequencing table, also comprise:
If do not comprise the broadcast format that described audio/video file is supported in described broadcast format sequencing table, the data code flow that the broadcast format then audio/video file and described playback equipment all supported is corresponding exports playback equipment to, plays described audio/video file to make described playback equipment according to described data code flow.
Wherein, playback equipment can be the playback terminals such as Digital Television.
Such as, if the audio format of described audio/video file support is Chinese+pcm encoder form and English+dolby coded format, Chinese+pcm encoder form and English+dolby coded format is not comprised in audio format sequencing table, if the audio format that the playback equipment obtained is supported is English+dolby coded format, then export data code flow corresponding for English+dolby coded format to playback equipment, play described audio/video file to make described playback equipment according to described data code flow.
Exemplary, described export the data code flow that the broadcast format process that described audio/video file and described playback equipment are all supported obtains to playback equipment after, also comprise:
The broadcast format that described audio/video file and described playback equipment are all supported is added in described broadcast format sequencing table.
Such as, if the broadcast format of described audio/video file support is Chinese+pcm encoder form and English+dolby coded format, the broadcast format of described playback equipment support is English+dolby coded format, then after exporting data code flow corresponding for English+dolby coded format coding to playback equipment, English+dolby coded format is added in described broadcast format sequencing table.
Exemplary, on the basis of above-described embodiment, determine that the priority orders of described broadcast format comprises:
Add up the number of times that each broadcast format is selected by user;
The priority orders of each broadcast format is determined according to selected number of times order from more to less.
Such as, according to user's historical selection data, add up each broadcast format by the used number of times of user, the broadcast format that user's history access times are more, its priority is higher.For the audio format used, counting user is to the selection number of times of each audio format, and such as statistics is as shown in following table four:
Table four
Audio format |
History selectes number of times |
English+pcm encoder form |
100 |
English+LPCM coded format |
56 |
English+MP3 coded format |
150 |
English+WMA coded format |
128 |
English+AAC coded format |
139 |
Then select audio format sequencing table that number of times order from more to less determines as shown in following table five according to history:
Table five
Audio format |
Priority orders |
History selectes number of times |
English+MP3 coded format |
1 |
150 |
English+AAC coded format |
2 |
139 |
English+WMA coded format |
3 |
128 |
English+pcm encoder form |
4 |
100 |
English+LPCM coded format |
5 |
56 |
The formulation of captions languages sequencing table is similar with audio format sequencing table, is not repeated here.
Second embodiment
Fig. 2 is the schematic flow sheet of a kind of audio/video file player method that second embodiment of the invention provides, and specifically comprises the steps:
Step 21, reception audio/video file playing request, perform step 22.
Specifically see the detailed description of above-described embodiment a pair step, be not repeated here.
Step 22, obtain the broadcast format that described audio/video file and playback equipment support respectively, perform step 23.
Such as, by reading the audio code stream comprised in video disc or video file, in audio code stream, contain the audio format of video disc or video support, resolve audio code stream data and therefrom obtain encoding format information and languages, thus determine the audio format that video disc or video are supported.Such as, the audio format of the described audio/video file support obtained is English+AAC coded format, English+MP3 coded format, English+VQF coded format, English+OggVorbis coded format, English+WMA coded format, the captions languages that the described audio/video file obtained is supported are Chinese, Korean, Japanese, German, English, the audio format of the described playback equipment support obtained is English+AAC coded format, English+MP3 coded format, English+VQF coded format, and the captions languages that the described playback equipment of acquisition is supported are Chinese, English.
Step 23, inquiry broadcast format sequencing table, record the priority orders of broadcast format, perform step 24 in described broadcast format sequencing table.
Such as, the audio format sequencing table of inquiry is as above shown in table five, and captions languages sequencing table is as shown in following table six:
Table six
Captions languages |
Priority orders |
History selectes number of times |
Chinese |
1 |
1200 |
English |
2 |
1000 |
Korean |
3 |
998 |
French |
4 |
654 |
German |
5 |
546 |
Russian |
6 |
361 |
Step 24, determine broadcast format sequencing table whether comprise described audio/video file support broadcast format.
Such as, by inquiring about the audio format sequencing table shown in above-mentioned table five, the audio format determining to exist in above-mentioned audio format sequencing table described audio/video file support is English+AAC coded format, English+MP3 coded format, English+WMA coded format, by inquiring about the captions languages sequencing table shown in above-mentioned table six, determine to there are the captions languages of described audio/video file support in above-mentioned captions languages sequencing table for Chinese, Korean, German, English, then perform step 27, if there is not the broadcast format that described audio/video file is supported in above-mentioned broadcast format sequencing table, then perform step 25.
Step 25, the data code flow that the broadcast format described audio/video file and described playback equipment all supported is corresponding export playback equipment to, to make described playback equipment play described audio/video file according to described data code flow, perform step 26.
Such as, the audio format that this audio/video file is supported is English+OggVorbis coded format, English+VQF coded format, the audio format of playback equipment support is English+MP3 coded format, English+VQF coded format, by inquiring about the audio format sequencing table shown in above-mentioned table five, determine not exist in audio format sequencing table the English+VQF audio coding formats that audio/video file and playback equipment are all supported, then direct by adopting voice data code stream corresponding to English+VQF audio coding formats to export playback equipment to, play this audio/video file to make playback equipment.Similar method is adopted to the selection of captions languages, is not repeated here.
Step 26, the broadcast format that described audio/video file and playback equipment are all supported to be added in described broadcast format sequencing table.
Such as, English+VQF audio coding formats in step 25 is added in the audio format sequencing table shown in above-mentioned table five, obtain new audio format sequencing table as shown in following table seven, this new audio format sequencing table contains more audio format, can search the audio format sequencing table after renewal during follow-up play audio/video file.Similar method is adopted to captions languages sequencing table, is not repeated here.
Table seven
Audio format |
Priority orders |
History selectes number of times |
English+MP3 coded format |
1 |
150 |
English+AAC coded format |
2 |
139 |
English+WMA coded format |
3 |
128 |
English+pcm encoder form |
4 |
100 |
English+LPCM coded format |
5 |
56 |
English+VQF coded format |
6 |
0 |
Step 27, from described broadcast format sequencing table, select the broadcast format that priority is the highest, perform step 28.
The data code flow of step 28, described audio/video file that the broadcast format the highest for described priority and described audio/video file and playback equipment all supported is corresponding exports playback equipment to, plays described audio/video file to make described playback equipment according to described data code flow.
Such as, according to the example in above-mentioned steps 22 ~ step 24, the audio format that described audio/video file and playback equipment are all supported is English+AAC coded format, English+MP3 coded format, English+VQF coded format, there is the audio format that described audio/video file and playback equipment all support in audio format sequencing table shown in above-mentioned table five is English+AAC coded format, English+MP3 coded format, described English+AAC coded format, the sequence of English+MP3 coded format in audio format sequencing table is English+MP3 coded format, English+AAC coded format, then export the data code flow of described audio/video file corresponding for English+MP3 audio coding formats the highest for priority to playback equipment.Again such as, exist in captions languages sequencing table shown in above-mentioned table six the captions languages that described audio/video file and playback equipment all support be Chinese, English, the described Chinese, English sequence in captions languages sequencing table are Chinese, English, then export the data code flow of described audio/video file corresponding for Chinese subtitle the highest for priority to playback equipment.
The present embodiment is by receiving audio/video file playing request, obtain the broadcast format that described audio/video file is supported, query note has the broadcast format sequencing table of the priority orders of broadcast format, comprise the broadcast format that described audio/video file is supported if determine in described broadcast format sequencing table, then from described broadcast format sequencing table, select the broadcast format that priority is the highest; Export the data code flow of described audio/video file corresponding for broadcast format the highest for described priority to playback equipment, described audio/video file is play according to described data code flow to make described playback equipment, can according to broadcast format sequencing table automatically for user selects the broadcast format liked, make multimedia more intelligent, remove the operating process that user repeats to arrange from.
And, when not comprising the broadcast format that described audio/video file is supported in described broadcast format sequencing table, then export the data code flow of described audio/video file corresponding for the broadcast format adopting described audio/video file and playback equipment all to support to playback equipment, described audio/video file is play to make described playback equipment, and the broadcast format that described audio/video file and playback equipment are all supported is added in described broadcast format sequencing table, facilitate the broadcast format sequencing table after can searching renewal during follow-up play audio/video file.
3rd embodiment
Fig. 3 is the schematic flow sheet of a kind of multi-medium play method that third embodiment of the invention provides, and specifically comprises the steps:
Step 31, reception audio/video file playing request, perform step 32.
The broadcast format that step 32, reception user select, performs step 33.
Step 33, the data code flow of described audio/video file corresponding to broadcast format user selected export playback equipment to, to make described playback equipment play described audio/video file, perform step 34.
Step 34, renewal broadcast format sequencing table.
Such as, for audio format sequencing table, the audio format that user selectes is English+VQF coded format, then history corresponding for audio format sequencing table English+VQF coded format is selected number of times to upgrade, for above-mentioned table seven, then history corresponding for table seven English+VQF audio coding formats is selected number of times and be updated to 1, select number of times so that follow-up according to history and upgrade corresponding priority orders.Similar method is adopted to recording languages sequencing table, is not repeated here.
The present embodiment plays described audio/video file by the broadcast format selected according to user, and the history upgrading broadcast format that user in broadcast format sequencing table selects corresponding selectes number of times, select number of times so that follow-up according to history and upgrade corresponding priority orders, audio-visual broadcasting is play more intelligent.
4th embodiment
Fig. 4 is the structural representation of a kind of audio/video file playing device that fourth embodiment of the invention provides, and specifically comprises receiver module 41, acquisition module 42, enquiry module 43, determination module 44, selects module 45 and output module 46.
Receiver module 41 is for receiving audio/video file playing request;
The broadcast format that acquisition module 42 is supported for obtaining described audio/video file;
Enquiry module 43, for inquiring about broadcast format sequencing table, records the priority orders of broadcast format in described broadcast format sequencing table;
Determination module 44 is for determining the broadcast format whether comprising the support of described audio/video file in described broadcast format sequencing table;
Select module 45 for after the broadcast format determining to comprise in described broadcast format sequencing table described audio/video file at described determination module 44 and support, from the broadcast format that described audio/video file is supported, select the broadcast format that priority is the highest according to described broadcast format sequencing table;
Output module 46, for exporting the data code flow of described audio/video file corresponding for broadcast format the highest for described priority to playback equipment, plays described audio/video file to make described playback equipment according to described data code flow.
Exemplary, on the basis of above-described embodiment, described receiver module 41 also for before exporting the data code flow of the described audio/video file adopting the highest broadcast format process of described priority to obtain to playback equipment at described output module 46, receives the broadcast format that user selects;
Described output module 46 also exports playback equipment to for the data code flow of described audio/video file corresponding to broadcast format user selected.
Exemplary, on the basis of above-described embodiment, described acquisition module 42 also for before inquiring about broadcast format sequencing table at described enquiry module 43, obtains the broadcast format that described playback equipment is supported;
Described output module 46 is also for after determining not comprise in described broadcast format sequencing table broadcast format that described audio/video file supports at described determination module 44, the data code flow that the broadcast format described audio/video file and described playback equipment all supported is corresponding exports playback equipment to, plays described audio/video file to make described playback equipment according to described data code flow.
Exemplary, described device also comprises:
Add after module 47 exports playback equipment to for the data code flow that the broadcast format supported by described audio/video file at described output module 46 is corresponding, the broadcast format that described audio/video file and described playback equipment are all supported is added in described broadcast format sequencing table.
Exemplary, on the basis of above-described embodiment, described device also comprises:
The number of times that statistical module 48 is selected by user for adding up each broadcast format;
Order module 49 is for determining the priority orders of each broadcast format according to selected number of times order from more to less.
The audio/video file playing device that the embodiment of the present invention provides can be used for the audio/video file player method that execution any embodiment of the present invention provides, and possesses corresponding functional module, realizes identical beneficial effect.
The embodiment of the present invention also provides a kind of blue light disc player, comprises the audio/video file playing device in the 4th embodiment.
Obviously, it will be understood by those skilled in the art that above-mentioned of the present invention each module or each step can by server implementations as above.Alternatively, the embodiment of the present invention can realize by the executable program of computer installation, thus they storages can be performed by processor in the storage device, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.; Or they are made into each integrated circuit modules respectively, or the multiple module in them or step are made into single integrated circuit module to realize.Like this, the present invention is not restricted to the combination of any specific hardware and software.The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, to those skilled in the art, the present invention can have various change and change.All do within spirit of the present invention and principle any amendment, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.