CN102194504A - Media file play method, player and server for playing medial file - Google Patents

Media file play method, player and server for playing medial file Download PDF

Info

Publication number
CN102194504A
CN102194504A CN2010101275060A CN201010127506A CN102194504A CN 102194504 A CN102194504 A CN 102194504A CN 2010101275060 A CN2010101275060 A CN 2010101275060A CN 201010127506 A CN201010127506 A CN 201010127506A CN 102194504 A CN102194504 A CN 102194504A
Authority
CN
China
Prior art keywords
media file
file
server
dub
dubbing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2010101275060A
Other languages
Chinese (zh)
Other versions
CN102194504B (en
Inventor
盛馥钟
梅书慧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201010127506.0A priority Critical patent/CN102194504B/en
Publication of CN102194504A publication Critical patent/CN102194504A/en
Application granted granted Critical
Publication of CN102194504B publication Critical patent/CN102194504B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

The invention relates to a media file play method, a player and a server for playing a media file, and belongs to the technical field of multimedia playing. The method comprises the following steps of: loading a media file; acquiring the information of the media file; uploading the information of the media file to the server; acquiring a dubbing file returned by the server according to the information of the media file; and selecting the dubbing file and synchronically playing the dubbing file with the media file. The player comprises a loading module, an acquisition module, a communication module and a play module. By automatically acquiring and loading the dubbing file from the server, the operation of manually acquiring or configuring the dubbing file by a user is avoided, the requirements of the user for the dubbing diversification and the stability of the media file are met better, and great convenience is provided for the user.

Description

Media file playing method, player and be used for the server of playback of media files
[technical field]
The present invention relates to the Play Technique for Multimedia field, particularly relate to a kind of media file playing method, player and be used for the server of playback of media files.
[background technology]
In multimedia technology field, video display play-back technology field particularly, the formation great majority of films and television programs all are first shooting and producing videos, dub for the personage in the later stage then.Some popular films and television programs even multi-lingual the dubbing of needs.Therefore dub for appreciating films and television programs better most important.
Video files can be embedded more than one dub, select to use for the user.Yet embedded dub file and can increase cost of manufacture, therefore for most of films and television programs, its video files may only have only a kind of dubbing.If embedded dub file corruption and also will cause normally to appreciate film.
Can support the external player of dubbing for small part, need the manual preprepared that loads to dub file, inconvenient user's use again.
[summary of the invention]
Based on this, being necessary needs to load that preprepared is dubbed, inconvenient use problem by hand at traditional films and television programs, provides a kind of and can load the external media file playing method of dubbing automatically.
In addition, also provide a kind of automatic loading the external player of dubbing, and a kind ofly provide the online server of dubbing file.
A kind of media file playing method may further comprise the steps: the loading medium file; Gather the media file information of described media file; Described media file information uploading to server, is obtained server and dubs file according to what described media file information was passed back; Choose dub file and with the media file synchronous playing.
Preferably, after the step of loading medium file, also comprise and judge the local step of dubbing file corresponding that whether have with media file, if there is the dub file corresponding with media file this locality, then further judge whether to receive to change and dub instruction, do not dub instruction if receive to change, then choose local dub file and with the media file synchronous playing; Dub instruction if receive to change, then to gather the media file information of described media file, described media file information uploading to server, is obtained server and dubs file according to what described media file information was passed back; If local not corresponding with the media file file of dubbing, the media file information of then gathering described media file to server, is obtained described media file information uploading server and is dubbed file according to what described media file information was passed back.
Preferably, after the step of loading medium file, also comprise and judge the local step of dubbing file corresponding that whether have,, the file of dubbing of this locality is uploaded onto the server if local have the file of dubbing corresponding with described media file with described media file.
Preferably, the described step that file uploads onto the server of dubbing with this locality specifically may further comprise the steps: media file information and the local fileinfo of dubbing of dubbing file of gathering media file; With described media file information with dub fileinfo and upload onto the server, reception server is according to described media file information and dub fileinfo and judge whether store identical and corresponding media file information and the judged result of dubbing fileinfo on the server; If described judged result is to store identical and corresponding media file information on the server and dub fileinfo, then finish to upload; If described judged result is not store identical and corresponding media file information on the server and dub fileinfo, then with this locality dub that file uploads onto the server and announcement server will describedly be dubbed file and media file information, dub the fileinfo association store.
Preferably, before the media file information of gathering described media file, judge also whether the user allows to obtain from server and dub file, if obtaining from server, user's permission dubs file, then gather the media file information of described media file, described media file information uploading to server, is obtained server and dubs file according to what described media file information was passed back.
Preferably, described media file information comprises the file cryptographic hash at least.
Preferably, with described media file information uploading to server, obtain in the step of dubbing file that server passes back according to described media file information, server is passed back according to described media file information and is dubbed file and specifically comprise the steps: the data of storing according in the file cryptographic hash retrieval server that comprises in the described media file information; Judge the fileinfo of dubbing of the media file correspondence that whether stores identical file cryptographic hash on the server; If the corresponding fileinfo of dubbing is arranged on the server, then find on the server and the described file of dubbing of dubbing the fileinfo association store, and dub file with this and pass back according to the described fileinfo of dubbing.
Preferably, pass back in the step of dubbing file according to described media file information,, then further carry out fuzzy search according to the media file information except that the file cryptographic hash if there is not the corresponding fileinfo of dubbing at server.
Preferably, also comprise the step of dubbing file according to the screening that imposes a condition, described imposing a condition comprises optimum condition and/or exclusion condition, filters out the file of dubbing that satisfies optimum condition according to described optimum condition, filters out the file of dubbing that does not satisfy exclusion condition according to described exclusion condition.
A kind of player comprises: insmod: be used for the loading medium file; Acquisition module: the media file information that is used to gather described media file; Communication module: be used for described media file information uploading to server, obtain server and dub file according to what described media file information was passed back; Playing module: be used to choose dub file and with the media file synchronous playing.
Preferably, also comprise first judge module and second judge module, described first judge module is used to judge local the dub file corresponding with media file that whether have, if there is the dub file corresponding with media file this locality, then further indicate second judge module to judge whether to receive replacing and dub instruction, do not dub instruction if second judge module receives to change, then notify playing module choose local dub file and with the media file synchronous playing; If receiving to change, second judge module dubs instruction, the media file information of then notifying acquisition module to gather described media file, and by communication module with described media file information uploading to server, obtain server and dub file according to what described media file information was passed back; If this locality the dub file corresponding with media file, then first judge module is notified the media file information that acquisition module is gathered described media file, and by communication module with described media file information uploading to server, obtain server and dub file according to what described media file information was passed back.
Preferably, also comprise first judge module, described first judge module is used to judge local whether the dub file corresponding with media file is arranged, and corresponding with media file media file information that described acquisition module gathers described media file and the local fileinfo of dubbing of indicating when dubbing file arranged in this locality; Described communication module also be used for described media file information and dub that fileinfo uploads onto the server and reception server according to described media file information with dub fileinfo and judge whether store corresponding media file information and the judged result of dubbing fileinfo on the server; If server is not stored corresponding media file information and is dubbed fileinfo, then by communication module with this locality dub that file uploads onto the server and announcement server will describedly be dubbed file and media file information, dub the fileinfo association store.
Preferably, described media file information comprises the file cryptographic hash at least.
A kind of server that is used for playback of media files, described server stores have media file media file information, with described media file information corresponding dub fileinfo and with dub fileinfo related dub file, be used to receive the media file information that player sends, and pass the corresponding file of dubbing back according to described media file information.
Preferably, described server is according to the data of storing in the file cryptographic hash retrieval server that comprises in the described media file information, judges the fileinfo of dubbing of the media file correspondence that whether stores identical file cryptographic hash on the server; If the corresponding fileinfo of dubbing is arranged on the server, then find on the server and the described file of dubbing of dubbing the fileinfo association store, and dub file with this and pass back according to the described fileinfo of dubbing.
Preferably, if described server does not have the corresponding fileinfo of dubbing through judging, then further carry out fuzzy search according to the media file information except that the file cryptographic hash.
In above-mentioned media file playing method, player and the server, player is dubbed file by obtaining and load from server automatically, exempt the user and manually obtained or disposed the operation of dubbing file, satisfy diversification that the user dubs for media file and stable demand better, be user-friendly to.
[description of drawings]
Fig. 1 is the media file playing method process flow diagram of embodiment one;
Fig. 2 passes the process flow diagram of dubbing file for server back according to described media file information;
Fig. 3 passes another process flow diagram of dubbing file back for server according to described media file information;
Fig. 4 is the player structural drawing of embodiment four;
Fig. 5 is the structural drawing of another player of embodiment four;
Fig. 6 is the structural drawing of the another player of embodiment four;
Fig. 7 is the Play System structural drawing.
[embodiment]
Be further detailed below in conjunction with accompanying drawing.
Need the preprepared file of dubbing of manual loading for solving when the playing media file, the problem that inconvenient user uses proposes a kind of media file playing method that can automatic dubbing.
Embodiment one
As shown in Figure 1, be the media file playing method process flow diagram of present embodiment.This method comprises the steps:
S10: loading medium file.Media file is the data acquisition that includes the relevant information of sound, image information and this sound or image.Media file exists with certain file layout according to the different of coded system and application, media file format comprises MOV, AVI, RMVB, WMV, MP4, RAM, RA, MPG, VCD and DVD etc., after media file is loaded, can output sound, image and obtain sound or the relevant information of image (for example coded system, code check, duration etc.).
S20: the media file information of gathering described media file.Media file information comprises the various information of media file, and the sound that some media file information can be directly comprise by media file itself or the relevant information of image obtain, as file name, file layout, file duration etc.; Other data that then need media file is comprised carry out obtaining after certain processing, as the file cryptographic hash.
The content that file name generally can the presentation medium file be comprised sometimes can be searched media file according to file name, but because media file can rename, can not rely on file name reliably and determine a media file.
File cryptographic hash (HASH) is the numerical value that the content-data (as single view data or view data and voice data) according to media file obtains by certain logical operation, different files is because its cryptographic hash of content-data difference (even filename is identical) that comprises is different, its cryptographic hash of identical file (even filename was modified) also is constant, therefore the file cryptographic hash uniqueness that can be used as file proves that the cryptographic hash of identical file is stable and unique.The file cryptographic hash can also be used to carrying out file verification.As after transmitting file, judge with the method for cryptographic hash contrast whether file is complete.
In a preferred embodiment, media file information can further include more information, as includes but not limited to following content: file layout (packaged type that shows media file), file size (what and the shared storage space that show the media file data amount), file duration (showing time) according to intact these media file needs of normal speed forward, video information (as the video coded system), audio-frequency information (as audio coding mode), whether external file (show whether the dub file corresponding with this media file is arranged) and the external cryptographic hash of dubbing file (be used for unique determine that this dubs file) of dubbing is arranged.More detailed information helps obtaining rapidly and accurately Search Results.
S30: described media file information uploading to server, is obtained server and dubs file according to what described media file information was passed back.
Store the media file information and the corresponding fileinfo of dubbing of dubbing file of media file on the server.Described media file information, dub fileinfo and dub file association storage.Media file and to dub between the file be the relation of multi-to-multi.Media file can corresponding a plurality of files of dubbing, and dub as the multi-lingual of a film; Dubbing file for one also can corresponding a plurality of media file (the animation version and the live-action version of a for example same film).Therefore the media file information on the server is corresponding stored with dubbing fileinfo, just can find the corresponding file of dubbing according to media file information.Following table has provided the media file information of server stores and an example of dubbing fileinfo: comprised media file information such as media file name, media file cryptographic hash, media file size etc. in this table, also comprised and dubbed fileinfo as dubbing filename, dub file cryptographic hash etc., and media file information is with to dub fileinfo corresponding.
Unique sequence number Encrypt id The media file name The media file cryptographic hash Media file size (byte) Media file duration (second) The media file descriptor Whether enable Dub filename Dub the file cryptographic hash
1 xyz Kung Fu Panda 12345abc de 4615612764 3060 Be Kung Fu Panda .Chs.mp3 sdffasd 23
2 wefd Kung Fu Panda 12345abc de 4615612764 3060 Be Kung Fu Panda .Chs.mp3 xxcccc x
3 dfs Kung Fu Panda 12345abc de 4615612764 3060 Be Kung Fu Panda .Chs.mp3 9889hg
4 sdf Kung Fu Panda 12345abc de 4615612764 3060 Be Kung Fu Panda .Eng.mp3 lklsdf
5 w3e Kung Fu Panda 2 sdfsdfsdf 453421223 3000 Be Kung Fu Panda .Chs.mp3 32443 2s
Can see that from last table the file name of preceding 4 files, media file cryptographic hash, file size and file duration are just the same, show it is the identical file of content.But from dubbing the file cryptographic hash, the corresponding file of dubbing but has nothing in common with each other, and wherein sequence number 1 to 3 is Chinese and dubs, and sequence number 4 is dubbed for English.Chinese is dubbed also has mandarin to dub or difference that Guangdong language is dubbed, is perhaps made producing difference etc. by different publishers.
When comprising the media file cryptographic hash in the media file information of player collection, as shown in Figure 2, server returns the step of dubbing file according to described media file information and is specially:
S302: according to the data of storing in the file cryptographic hash retrieval server that comprises in the described media file information.According to foregoing description as can be known, the cryptographic hash of media file is stable and unique, and the uniqueness that can be used as file proves, therefore adopts the method for file cryptographic hash contrast retrieval can access result accurately.Preferably, can carry out primary election to the data of storing in the server, dwindle the scope of retrieval with file name.Further preferably, can select again the data of primary election, further dwindle the scope of retrieval with more media file information.
S304: the fileinfo of dubbing of judging the media file correspondence that whether stores identical media file cryptographic hash on the server.If store the identical media file cryptographic hash of uploading with player of media file cryptographic hash on the server, and, then change step S306 over to, otherwise finish dubbing fileinfo.The data of storing on the server can only comprise media file information, are used to set up and the related information of dubbing file gets final product, and do not need to comprise this media file itself.
S306: find on the server and the described file of dubbing of dubbing the fileinfo association store according to the described fileinfo of dubbing, and dub file with this and pass back.Since media file with dub file and may have a plurality of corresponding files of dubbing, so server can all return to player with the file of dubbing that finds, and perhaps only returns and dubs listed files for user's selection.
In the above-mentioned processing procedure, utilize the file cryptographic hash accurately to retrieve, if do not have complete corresponding this document cryptographic hash media file dub file, then obtain the process of dubbing and just will finish.And dub requirement not too high occasion to some, can adopt the mode of fuzzy search to obtain and dub.In a preferred embodiment, as shown in Figure 3,, then carry out following steps if judged result is not among the step S304:
S308: carry out fuzzy search according to the media file information except that the file cryptographic hash.Fuzzy search is meant in search condition that the media file information utilized except that this condition of file cryptographic hash such as file name, file duration or the external cryptographic hash of dubbing file wait and retrieves, obtains and dub file.
Wherein, the cryptographic hash of dubbing file can side light be dubbed the file and the relation of corresponding media file with it.For example, media file has an external Chinese to dub in this locality, and the user needs the English of this media file to dub, and the Chinese of just in time having preserved this media file on the server is dubbed with English and is dubbed, dub the file cryptographic hash by what file dubbed in Chinese, can find the media file cryptographic hash of this media file indirectly, find English to dub according to this media file cryptographic hash again.In fact, may corresponding a plurality of media files owing to dub file, and suitable when dubbing file when can not find according to the media file cryptographic hash, search and may obtain satisfied result by having the file cryptographic hash of dubbing of dubbing file.
S310: judge whether to have according to what fuzzy search obtained and dub fileinfo.If then change step S306 over to; Otherwise finish.
S40: choose dub file and with the media file synchronous playing.After player obtains to dub file, choose and load and dub file, the current time value according to playback of media files makes and dubs file and media file synchronous playing.
In further improving, can also be before the media file information of gathering described media file, judge whether the user allows download to dub file, if allowing to download, the user dubs file, then gather the media file information of described media file, described media file information uploading to server, is obtained server and dubs file according to what described media file information was passed back; Do not dub file if the user does not allow to download, then do not gather media file information and upload media fileinfo step to server.
Embodiment two
On the basis of a last embodiment, after the step S10, also comprise and judge the local step of dubbing file corresponding that whether have with media file.This step can realize in the following manner that player, is then dubbed this file and presented to the user by selecting the interface if find that the file of dubbing related with media file arranged by retrieval local folders (file of global search or user's appointment).Judge whether to receive the user then and change the instruction of dubbing: dubbing that media file is embedded may be met consumers' demand, and also might existingly dub file and can not meet consumers' demand, and is necessary to judge therefore whether the user needs replacing to dub file.Can be in the information of user interface adding such as " that does not want dubs, and downloads new dubbing " or " do not need to download, leave ", representative of consumer need be changed to dub or do not need to change and dub respectively.If do not receive to change and dub instruction, show and local dub file and can meet consumers' demand, then can directly load broadcast, need not the user and manually search and dub file and load, be i.e. direct execution in step S40 according to user's selection: choose local dub file and with the media file synchronous playing; If receive to change and dub instruction, then execution in step S20 and S30: gather the media file information of described media file, described media file information uploading to server, is obtained server and dubs file according to what described media file information was passed back.
If this locality the dub file corresponding with media file, then execution in step S20 and S30: the media file information of gathering described media file, described media file information uploading to server, is obtained server and dubs file according to what described media file information was passed back.
If local have a dub file corresponding with media file, the file of dubbing of this locality is uploaded onto the server.If the user just had the file of dubbing originally, but this is dubbed file and only uses for user oneself.The file of dubbing of this locality is uploaded onto the server, user's the file of dubbing can be shared,, can make resource reach shared by user's participation.Concrete steps are as follows:
Gather media file information and dub fileinfo.
With described media file information with dub fileinfo and upload onto the server, reception server is according to described media file information and dub fileinfo and judge whether store identical and corresponding media file information and the judged result of dubbing fileinfo on the server.If described judged result is to store corresponding media file information on the server and dub fileinfo, then finish to upload.
If described judged result is the corresponding media file information of storage and dub fileinfo on the server, then with this locality dub that file uploads onto the server and announcement server will describedly be dubbed file and media file information, dub the fileinfo association store.
In a preferred embodiment, before gathering media file information and dubbing fileinfo and send the step of server to, comprise that also judging whether the user allows to upload dubs the file step.If the user forbids uploading, end operation then only just uploads onto the server the file of dubbing of this locality when the user allows to upload.
Wherein choose dub file and with the step of media file synchronous playing with this locality dub step that file uploads onto the server in no particular order, also can carry out simultaneously.
Embodiment three
In the present embodiment, also comprise the step of dubbing file according to the screening that imposes a condition.All that obtain after retrieval on the server are dubbed file and may be had only part useful concerning the user, and also there is no need all results are returned for server, waste unnecessary resource.Therefore at server end the number as a result that returns can be set, and it is forward or the user estimates result preferably to return degree of correlation according to certain strategy.Concrete returns 5 results at most as being provided with, and according to the degree of media file information retrieval the result is sorted, and gets preceding 5 then and returns to player; And in player end, the user can impose a condition, and the result that server is returned further screens.The condition that the user sets can be exclusion condition or optimum condition, as getting rid of the lower file of sound quality or selecting a certain languages etc.
Embodiment four
As shown in Figure 4, be the player structural drawing of present embodiment.Player 10 comprises: be used for the loading medium file the acquisition module 104 that insmods 102, is used to gather the media file information of described media file and pass to communication module 106, be used for media file information is sent to server, the communication module of dubbing file 106 that reception server returns according to described media file information and be used to choose dub file and with the playing module 108 of media file synchronous playing.
102 media files that load that insmod are the data acquisitions that include the relevant information of sound, image information and this sound or image.After media file is loaded, can output sound, image and obtain sound or the relevant information of image (for example coded system, code check, duration etc.).
The media file information that acquisition module 104 is gathered above-mentioned media file, media file information comprises the various information of media file, the sound that some media file information can be directly comprise by media file itself or the relevant information of image obtain, as file name, file layout, file duration etc.; Other data that then need media file is comprised carry out obtaining after certain processing, as the file cryptographic hash.
Communication module 106 to server, is obtained the media file information uploading that collects server and is dubbed file according to what described media file information was passed back.
Playing module 108 chooses that server passes back dub file and with the media file synchronous playing, after obtaining to dub file, choose and load and dub file, the current time value according to playback of media files makes and dubs file and media file synchronous playing.
As shown in Figure 5, player 10 can comprise further that also first judge module 110 and second judge module, 114, the first judge modules 110 are used to judge local the dub file corresponding with media file that whether have.After the 102 loading medium files that insmod, first judge module 110 is judged local the dub file corresponding with media file that whether have, if there is the dub file corresponding with media file this locality, then further indicate second judge module 114 to judge whether to receive replacing and dub instruction, do not dub instruction if second judge module 114 receives to change, then notify playing module 108 choose local dub file and with the media file synchronous playing; If receiving to change, second judge module 114 dubs instruction, then indicate acquisition module 104 to gather media file information, and then by communication module 106 with described media file information uploading to server, obtain server and dub file according to what described media file information was passed back.
If this locality the dub file corresponding with media file, then first judge module, 110 indication acquisition modules 104 are gathered media file information, and then by communication module 106 with described media file information uploading to server, obtain server and dub file according to what described media file information was passed back.
First judge module 110 also is used to judge local whether the dub file corresponding with media file is arranged, and has in this locality and corresponding with media file to indicate when dubbing file described acquisition module 104 to gather media file information and the local fileinfo of dubbing; Described communication module 106 also be used for described media file information and local dubbing fileinfo uploads onto the server and reception server according to described media file information with dub fileinfo and judge whether store corresponding media file information and the judged result of dubbing fileinfo on the server; If server is not stored corresponding media file information and is dubbed fileinfo, then by communication module 106 with this locality dub that file uploads onto the server and announcement server will describedly be dubbed file and media file information, dub the fileinfo association store.
In other embodiment, also can further comprise the 3rd judge module, be used to judge whether the user allows to upload dubs file, only allow to upload just can upload when dubbing file and dub file the user.
As shown in Figure 6, player 10 also comprises the 4th judge module 116, is used to judge whether the user allows to obtain from server dubs file.After the 102 loading medium files that insmod, if the 4th judge module 116 is dubbed file through judging that user's permission is obtained from server, then indicate acquisition module 104 to gather media file information, and then by communication module 106 with described media file information uploading to server, obtain server and dub file according to what described media file information was passed back.Otherwise indication playing module 108 is play-overed the media file of loading.
In one embodiment, a kind of server is provided, this server stores have media file information, corresponding with described media file information dub fileinfo and with the file of dubbing of dubbing the fileinfo association store, be used to receive the media file information that player sends, and pass the corresponding file of dubbing back according to described media file information.
More specifically, server is according to the data of the file cryptographic hash retrieval server storage that comprises in the described media file information; Judge the fileinfo of dubbing of the media file correspondence that whether stores identical file cryptographic hash on the server; If the corresponding fileinfo of dubbing is arranged on the server, then find on the server and the described file of dubbing of dubbing the fileinfo association store, and dub file with this and pass back according to the described fileinfo of dubbing.
If server then further carries out fuzzy search according to the media file information except that the file cryptographic hash through judging the fileinfo of dubbing of the media file correspondence do not have identical file cryptographic hash.Fuzzy search is meant in search condition that the media file information utilized except that this condition of file cryptographic hash such as file name, file duration or the external cryptographic hash of dubbing file wait and retrieves, obtains and dub file.
As shown in Figure 7, the Play System of forming for the player in the foregoing description 10 and server 20.
Further, this system also can protect and comprise screening module 30 and be used for dubbing file according to the screening that imposes a condition.All that find on server 20 are dubbed file and may be had only part useful concerning the user, and also there is no need all results are returned for server 20, waste unnecessary resource.Screening module 30 can be located at server end or player end.Therefore at server end the number as a result that returns can be set, and it is forward or the user estimates result preferably to return degree of correlation according to certain strategy.Concrete returns 5 results at most as being provided with, and according to the degree of media file information retrieval the result is sorted, and gets preceding 5 then and returns to player; And in player end, the user can impose a condition, and the result that server is returned further screens.The condition that the user sets can be exclusion condition or optimum condition, as getting rid of the lower file of sound quality or selecting a certain languages etc.
The above embodiment has only expressed several embodiment of the present invention, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to claim of the present invention.Should be pointed out that for the person of ordinary skill of the art without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.

Claims (16)

1. a media file playing method is characterized in that, may further comprise the steps:
The loading medium file;
Gather the media file information of described media file;
Described media file information uploading to server, is obtained server and dubs file according to what described media file information was passed back;
Choose dub file and with the media file synchronous playing.
2. media file playing method as claimed in claim 1, it is characterized in that, after the step of loading medium file, also comprise and judge the local step of dubbing file corresponding that whether have with media file, if there is the dub file corresponding with media file this locality, then further judge whether to receive to change and dub instruction, do not dub instruction if receive to change, then choose local dub file and with the media file synchronous playing; Dub instruction if receive to change, then to gather the media file information of described media file, described media file information uploading to server, is obtained server and dubs file according to what described media file information was passed back;
If local not corresponding with the media file file of dubbing, the media file information of then gathering described media file to server, is obtained described media file information uploading server and is dubbed file according to what described media file information was passed back.
3. media file playing method as claimed in claim 1, it is characterized in that, after the step of loading medium file, also comprise and judge the local step of dubbing file corresponding that whether have with described media file, if local have a dub file corresponding with described media file, the file of dubbing of this locality is uploaded onto the server.
4. media file playing method as claimed in claim 3 is characterized in that, the described step that file uploads onto the server of dubbing with this locality specifically may further comprise the steps:
Gather the media file information and the local fileinfo of dubbing of dubbing file of media file;
With described media file information with dub fileinfo and upload onto the server, reception server is according to described media file information and dub fileinfo and judge whether store identical and corresponding media file information and the judged result of dubbing fileinfo on the server;
If described judged result is to store identical and corresponding media file information on the server and dub fileinfo, then finish to upload;
If described judged result is not store identical and corresponding media file information on the server and dub fileinfo, then with this locality dub that file uploads onto the server and announcement server will describedly be dubbed file and media file information, dub the fileinfo association store.
5. media file playing method as claimed in claim 1, it is characterized in that, before the media file information of gathering described media file, judge also whether the user allows to obtain from server and dub file, if obtaining from server, user's permission dubs file, then gather the media file information of described media file, described media file information uploading to server, is obtained server and dubs file according to what described media file information was passed back.
6. media file playing method as claimed in claim 1 is characterized in that, described media file information comprises the file cryptographic hash at least.
7. media file playing method as claimed in claim 6, it is characterized in that, with described media file information uploading to server, obtain in the step of dubbing file that server passes back according to described media file information, server is passed back according to described media file information and is dubbed file and specifically comprise the steps:
According to the data of storing in the file cryptographic hash retrieval server that comprises in the described media file information;
Judge the fileinfo of dubbing of the media file correspondence that whether stores identical file cryptographic hash on the server;
If the corresponding fileinfo of dubbing is arranged on the server, then find on the server and the described file of dubbing of dubbing the fileinfo association store, and dub file with this and pass back according to the described fileinfo of dubbing.
8. media file playing method as claimed in claim 7, it is characterized in that, pass back in the step of dubbing file according to described media file information at server,, then further carry out fuzzy search according to the media file information except that the file cryptographic hash if there is not the corresponding fileinfo of dubbing.
9. media file playing method as claimed in claim 1, it is characterized in that, also comprise the step of dubbing file according to the screening that imposes a condition, described imposing a condition comprises optimum condition and/or exclusion condition, filter out the file of dubbing that satisfies optimum condition according to described optimum condition, filter out the file of dubbing that does not satisfy exclusion condition according to described exclusion condition.
10. a player is characterized in that, comprising:
Insmod: be used for the loading medium file;
Acquisition module: the media file information that is used to gather described media file;
Communication module: be used for described media file information uploading to server, obtain server and dub file according to what described media file information was passed back;
Playing module: be used to choose dub file and with the media file synchronous playing.
11. player as claimed in claim 10, it is characterized in that, also comprise first judge module and second judge module, described first judge module is used to judge local the dub file corresponding with media file that whether have, if there is the dub file corresponding with media file this locality, then further indicate second judge module to judge whether to receive replacing and dub instruction, do not dub instruction if second judge module receives to change, then notify playing module choose local dub file and with the media file synchronous playing; If receiving to change, second judge module dubs instruction, the media file information of then notifying acquisition module to gather described media file, and by communication module with described media file information uploading to server, obtain server and dub file according to what described media file information was passed back;
If this locality the dub file corresponding with media file, then first judge module is notified the media file information that acquisition module is gathered described media file, and by communication module with described media file information uploading to server, obtain server and dub file according to what described media file information was passed back.
12. player as claimed in claim 10, it is characterized in that, also comprise first judge module, described first judge module is used to judge local whether the dub file corresponding with media file is arranged, and corresponding with media file media file information that described acquisition module gathers described media file and the local fileinfo of dubbing of indicating when dubbing file arranged in this locality; Described communication module also be used for described media file information and dub that fileinfo uploads onto the server and reception server according to described media file information with dub fileinfo and judge whether store corresponding media file information and the judged result of dubbing fileinfo on the server; If server is not stored corresponding media file information and is dubbed fileinfo, then by communication module with this locality dub that file uploads onto the server and announcement server will describedly be dubbed file and media file information, dub the fileinfo association store.
13. the player described in claim 10 is characterized in that, described media file information comprises the file cryptographic hash at least.
14. server that is used for playback of media files, it is characterized in that, described server stores have media file media file information, with described media file information corresponding dub fileinfo and with dub fileinfo related dub file, be used to receive the media file information that player sends, and pass the corresponding file of dubbing back according to described media file information.
15. server as claimed in claim 14, it is characterized in that, described server is according to the data of storing in the file cryptographic hash retrieval server that comprises in the described media file information, judges the fileinfo of dubbing of the media file correspondence that whether stores identical file cryptographic hash on the server;
If the corresponding fileinfo of dubbing is arranged on the server, then find on the server and the described file of dubbing of dubbing the fileinfo association store, and dub file with this and pass back according to the described fileinfo of dubbing.
16. server as claimed in claim 15 is characterized in that, if described server does not have the corresponding fileinfo of dubbing through judging, then further carries out fuzzy search according to the media file information except that the file cryptographic hash.
CN201010127506.0A 2010-03-15 2010-03-15 Media file play method, player and server for playing medial file Active CN102194504B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010127506.0A CN102194504B (en) 2010-03-15 2010-03-15 Media file play method, player and server for playing medial file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010127506.0A CN102194504B (en) 2010-03-15 2010-03-15 Media file play method, player and server for playing medial file

Publications (2)

Publication Number Publication Date
CN102194504A true CN102194504A (en) 2011-09-21
CN102194504B CN102194504B (en) 2015-04-08

Family

ID=44602426

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010127506.0A Active CN102194504B (en) 2010-03-15 2010-03-15 Media file play method, player and server for playing medial file

Country Status (1)

Country Link
CN (1) CN102194504B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103179450A (en) * 2011-12-23 2013-06-26 腾讯科技(深圳)有限公司 Method, device and system for playing video, and audio track server
CN103763480A (en) * 2014-01-24 2014-04-30 三星电子(中国)研发中心 Method and equipment for obtaining video dubbing
CN106055671A (en) * 2016-06-03 2016-10-26 腾讯科技(深圳)有限公司 Multimedia data processing method and equipment thereof
CN108172245A (en) * 2016-12-07 2018-06-15 剧场耳股份有限公司 The continuous automatic synchronization of track in cinema

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1325189A (en) * 2000-05-18 2001-12-05 德国汤姆森-布兰特有限公司 Receiving machine of providing audio translation data according to demand and receiving method thereof
CN1774757A (en) * 2003-02-25 2006-05-17 Lg电子株式会社 Method of reproducing content information for an interactive optical disc apparatus
CN1778111A (en) * 2003-04-22 2006-05-24 松下电器产业株式会社 Reproduction device and program
CN101312565A (en) * 2007-05-25 2008-11-26 上海美通无线网络信息有限公司 Method for synchronous lyrics browsing when playing music on mobile phone
CN101365106A (en) * 2008-10-10 2009-02-11 四川长虹电器股份有限公司 IPTV system Chinese subtitle indication method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1325189A (en) * 2000-05-18 2001-12-05 德国汤姆森-布兰特有限公司 Receiving machine of providing audio translation data according to demand and receiving method thereof
CN1774757A (en) * 2003-02-25 2006-05-17 Lg电子株式会社 Method of reproducing content information for an interactive optical disc apparatus
CN1778111A (en) * 2003-04-22 2006-05-24 松下电器产业株式会社 Reproduction device and program
CN101312565A (en) * 2007-05-25 2008-11-26 上海美通无线网络信息有限公司 Method for synchronous lyrics browsing when playing music on mobile phone
CN101365106A (en) * 2008-10-10 2009-02-11 四川长虹电器股份有限公司 IPTV system Chinese subtitle indication method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103179450A (en) * 2011-12-23 2013-06-26 腾讯科技(深圳)有限公司 Method, device and system for playing video, and audio track server
CN103763480A (en) * 2014-01-24 2014-04-30 三星电子(中国)研发中心 Method and equipment for obtaining video dubbing
CN106055671A (en) * 2016-06-03 2016-10-26 腾讯科技(深圳)有限公司 Multimedia data processing method and equipment thereof
CN106055671B (en) * 2016-06-03 2022-06-14 腾讯科技(深圳)有限公司 Multimedia data processing method and equipment thereof
CN108172245A (en) * 2016-12-07 2018-06-15 剧场耳股份有限公司 The continuous automatic synchronization of track in cinema
CN108172245B (en) * 2016-12-07 2021-01-22 剧场耳股份有限公司 Continuous automatic synchronization of audio tracks in cinema

Also Published As

Publication number Publication date
CN102194504B (en) 2015-04-08

Similar Documents

Publication Publication Date Title
CN101800060B (en) Method for reproducing AV data stored in information storage medium
US8359370B2 (en) System and method for managing digital media content
CN1235473A (en) Digital multimedia recorder with enhanced EPG-related functions
CN101128880A (en) Retrieving content items for a playlist based on universal content ID
KR20100134164A (en) Apparatus and method for managing indexing information file of external device
CN1988646A (en) Method and apparatus for displaying information about broadcasting contents
CN104078069B (en) Document play-back method and equipment based on DLNA
CN101237541A (en) Display control device, method and program
CN103220587B (en) A kind of method and device obtaining time-shifted contents
CN102290076B (en) Playback device for recording medium and optical recording medium playback method
CN102194504A (en) Media file play method, player and server for playing medial file
JP2006081109A (en) Recorded video program searching apparatus and recorded video program searching method
CN101202894B (en) Method, system for playing program sequence and digital television receiver
KR100302499B1 (en) Broadcasting program playback management information generation method and playlist automatic generation method and device
CN101689191A (en) The system and method for process information or data on computers
CN101699443A (en) Method and device for managing network files
CN102065237A (en) Title generator capable of being convenient to process title files
JP5580328B2 (en) Content consumption method and apparatus using metadata
CN100590622C (en) Multimedia management and playback apparatus, and data processing method
CN103686212A (en) Data pushing method, pushing front end system, terminal device and digital television system
CN102073681A (en) Method for compiling document order of external storage device and television terminal
US20080172432A1 (en) Methods Of Managing Data Objects
CN101669359A (en) Method for constructing a file format and apparatus for processing a broadcasting signal including a file having the file format and method thereof
CN101604542B (en) Replay device
CN101521784A (en) Method and apparatus for reproducing image

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant