CN102446526B - Sound track sharing method and system - Google Patents

Sound track sharing method and system Download PDF

Info

Publication number
CN102446526B
CN102446526B CN201010508739.5A CN201010508739A CN102446526B CN 102446526 B CN102446526 B CN 102446526B CN 201010508739 A CN201010508739 A CN 201010508739A CN 102446526 B CN102446526 B CN 102446526B
Authority
CN
China
Prior art keywords
audio track
cryptographic hash
track files
video file
characteristic information
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.)
Active
Application number
CN201010508739.5A
Other languages
Chinese (zh)
Other versions
CN102446526A (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 CN201010508739.5A priority Critical patent/CN102446526B/en
Publication of CN102446526A publication Critical patent/CN102446526A/en
Application granted granted Critical
Publication of CN102446526B publication Critical patent/CN102446526B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention relates to a sound track sharing method, which comprises the following steps that: a hash value of a play file is calculated according to the play file; and a sound track file corresponding to the play file is transmitted according to the play file hash value, and a sound track file hash value and a video file hash value, which are previously stored on a server end. In the sound track sharing method and the sound track sharing system, through the hash value of the play file, the sound track file corresponding to the play file is transmitted, so the uploading and downloading of the sound track file corresponding to the play file can be realized, and the sound track file is more convenient and rapider to search and listen.

Description

Track shares method and system
[technical field]
The present invention relates to media play technology, particularly relate to a kind of track and share method and system.
[background technology]
In traditional video file playing process, generally also need plug-in different audio track files, such as, if video file is English film, in order to convert thereof into Chinese film, the mode by plug-in audio track files realizes.
Traditional player provides the function loading audio track files, when user's playing video file, can load local that store or in the audio track files of specified path, but, if video file this locality that user plays does not store audio track files, then need to search for and download audio track files.
But, the audio track files of video file obtains by manually recording, searching for the modes such as download, its process manually recorded is loaded down with trivial details, and need the technical ability of specialty, user not easily obtains, and finds this audio track files under by the effect of search engine and in the obtain manner downloaded, usually need to search in the search information of magnanimity, the instant loading of user's audio track files cannot be realized at once, and cannot ensure that the audio track files downloaded to is complete errorless.
[summary of the invention]
Based on this, be necessary to provide one more easily track share method.
In addition, there is a need to provide one track shared system more easily.
A kind of track shares method, comprises the steps: according to played file, calculates played file cryptographic hash; Upload described played file cryptographic hash to server end; According to audio track files cryptographic hash and the video file cryptographic hash of described played file cryptographic hash and server end pre-stored, transmit the audio track files corresponding with described played file.
Preferably, the concrete steps of described calculating played file cryptographic hash are: get default byte at the head of described played file, centre and afterbody respectively, and map respectively obtain cryptographic hash after merge, obtain described played file cryptographic hash.
Preferably, described played file is video file and the audio track files corresponding with described video file, described according to played file, the concrete steps calculating played file cryptographic hash are: calculate described video file cryptographic hash and audio track files cryptographic hash, and gather video file characteristic information and audio track files characteristic information; Upload described video file cryptographic hash and characteristic information, audio track files cryptographic hash and characteristic information thereof.
Preferably, described calculating video file cryptographic hash and audio track files cryptographic hash, and also comprise after gathering the step of video file characteristic information and audio track files characteristic information: judge whether the reproduction time of described audio track files or playing progress rate are greater than predetermined threshold value, be, then upload described video file cryptographic hash and characteristic information, audio track files cryptographic hash and characteristic information thereof, otherwise, then terminate.
Preferably, the described audio track files cryptographic hash according to described played file cryptographic hash and server end pre-stored and video file cryptographic hash, the concrete steps transmitting the audio track files corresponding with described played file are: A1, described audio track files cryptographic hash compared with the audio track files cryptographic hash of pre-stored one by one, judge whether identical, then enter steps A 2, otherwise, then upload audio track files, after adding described audio track files characteristic information, enter steps A 2; A2, described video file cryptographic hash to be compared with the video file cryptographic hash of pre-stored one by one, judge whether identical, be, the then degree of association of the cumulative video file characteristic information of described pre-stored and the audio track files characteristic information of pre-stored, otherwise, then add described video file characteristic information, and set up associating of the audio track files characteristic information of described video file characteristic information and described pre-stored.
Preferably, described played file is video file, described according to played file, and the concrete steps calculating played file cryptographic hash are: the cryptographic hash calculating described video file, and gather video file characteristic information; Upload cryptographic hash and the characteristic information thereof of described video file.
Preferably, the described audio track files cryptographic hash according to described played file cryptographic hash and server end pre-stored and video file cryptographic hash, the concrete steps transmitting the audio track files corresponding with described played file are: B1, described video file cryptographic hash compared with the video file cryptographic hash of pre-stored one by one, judge whether identical, be, then according to the degree of association, the video file characteristic information of pre-stored is sorted, the comparative result of predetermined number is got by order from big to small, and download corresponding audio track files according to described comparative result, otherwise, then step B2 is entered; B2, carry out fuzzy query according to described video file characteristic information, according to matching degree to result ranking, get the Query Result of predetermined number by order from big to small, and download audio track files according to described Query Result.
Preferably, also comprise after the step of described B2: play described audio track files, accumulative broadcasting time and each reproduction time, judge whether reproduction time each in default broadcasting time is all less than preset play time, is, then delete the audio track files of pre-stored, otherwise, then terminate.
A kind of track shared system, is characterized in that, at least comprise: player, for according to played file, calculate and upload played file cryptographic hash, uploading or download the audio track files corresponding with played file by described played file cryptographic hash.
Preferably, described player gets default byte at the head of described played file, centre and afterbody respectively, and merges after mapping obtains cryptographic hash respectively, obtains described played file cryptographic hash.
Preferably, described played file is video file and the audio track files corresponding with described video file, described player comprises: the first processing module, for calculating described video file cryptographic hash and audio track files cryptographic hash, and gathers video file characteristic information and audio track files characteristic information; Upper transmission module, for uploaded videos file cryptographic hash and characteristic information, audio track files cryptographic hash and characteristic information thereof and audio track files.
Preferably, described player also comprises adjusting module, whether described adjusting module is greater than predetermined threshold value for the reproduction time or playing progress rate judging described audio track files, be, then described upper transmission module uploaded videos file cryptographic hash and characteristic information, audio track files cryptographic hash and characteristic information thereof, otherwise, then stop performing.
Preferably, described played file is video file, and described player comprises: the first processing module, for calculating the cryptographic hash of described video file, and gathers video file characteristic information; Interactive module, for uploading cryptographic hash and the characteristic information thereof of described video file, and downloads the audio track files corresponding with described video file.
Preferably, also comprise server, described server is used for audio track files cryptographic hash according to played file cryptographic hash and pre-stored and video file cryptographic hash, receives or sends the audio track files corresponding with played file.
Preferably, described server comprises track checking module, receiver module and media checking module; Described track checking module, for described audio track files cryptographic hash is compared with the audio track files cryptographic hash of pre-stored one by one, judge whether identical, be, then described media checking module obtains video file cryptographic hash, otherwise then described receiver module receives described audio track files and after adding audio track files characteristic information, media checking module is associated; Described media checking module, for described video file cryptographic hash is compared with the video file cryptographic hash of pre-stored one by one, judge whether identical, be, the then degree of association of the cumulative video file characteristic information of described pre-stored and the audio track files characteristic information of pre-stored, otherwise, then add described video file characteristic information, and set up associating of the audio track files characteristic information of described video file characteristic information and described pre-stored.
Preferably, described server comprises accurate enquiry module and fuzzy query module, described accurate enquiry module, for described video file cryptographic hash is compared with the video file cryptographic hash of pre-stored one by one, judge whether identical, be, then according to the degree of association, the video file characteristic information of pre-stored is sorted, the comparative result of predetermined number is got by order from big to small, and download corresponding audio track files according to described comparative result, otherwise then described fuzzy query module carries out fuzzy query to described video file characteristic information; Described fuzzy query module, for carrying out fuzzy query according to described video file characteristic information, according to matching degree to result ranking, gets the Query Result of predetermined number by order from big to small, and returns described Query Result for download.
Preferably, described server also comprises: correction verification module, for playing described audio track files, accumulative broadcasting time and each reproduction time, judge whether reproduction time each in default broadcasting time is all less than preset play time, is, then delete the audio track files of pre-stored, otherwise, then stop performing.
Above-mentioned track is shared in method and system, by the cryptographic hash of played file, carry out the transmission of the audio track files corresponding with this played file, achieve the upload and download of the audio track files corresponding with played file, make to search and listen audio track files more convenient, more convenient.
Above-mentioned track is shared in method and system, by by audio track files cryptographic hash one by one compared with the audio track files cryptographic hash of pre-stored, ensure that the audio track files uploaded does not repeat, effectively save storage resources.
[accompanying drawing explanation]
Fig. 1 is the process flow diagram that track shares method;
Fig. 2 is the played file Hash calculation schematic diagram of an embodiment;
Fig. 3 is the process flow diagram that the track of an embodiment shares method;
Fig. 4 is the structure information storage of an embodiment;
Fig. 5 is the degree of association accumulation schematic diagram of an embodiment;
Fig. 6 is the schematic diagram that is associated of an embodiment;
Fig. 7 is the process flow diagram that the track of another embodiment shares method;
Fig. 8 is the graph of a relation of video file and audio track files in an embodiment;
Fig. 9 is the comparative result schematic diagram of an embodiment;
Figure 10 is the schematic diagram of track shared system in an embodiment;
Figure 11 is the schematic diagram of player in an embodiment;
Figure 12 is the schematic diagram of server in an embodiment;
Figure 13 is the schematic diagram of player in another embodiment;
Figure 14 is the schematic diagram of server in another embodiment.
[embodiment]
Fig. 1 shows the method flow that track is shared, and comprises the steps:
In step slo, according to played file, calculate played file cryptographic hash.In the present embodiment, calculate the process of played file cryptographic hash specifically: get default byte at the head of played file, centre and afterbody respectively, and merge after mapping obtains cryptographic hash respectively, obtain played file cryptographic hash.Cryptographic hash (HASH) is the numerical value obtained by logical operation according to the data of file, different files, even identical filename, the cryptographic hash calculated is not identical, therefore, the identical played file content corresponding to played file cryptographic hash is identical certainly.Particularly, played file is usually all larger, cryptographic hash is calculated to this played file and can adopt segmentation hash value algorithms, as shown in Figure 2, respectively cryptographic hash is calculated to 512 bytes in the middle of 512 bytes of played file head, 512 bytes of played file afterbody and played file, and merge, obtain whole played file cryptographic hash.Played file can be current the play video file be packaged together and corresponding audio track files, and also can be the independent video file of current broadcasting, can also be the audio track files that current play video file and user add voluntarily.In a preferred embodiment, the video file in played file and audio track files are separate computations cryptographic hash.Such as, the file of the current broadcasting of user " anti-terrorism special policeman group " by name, video file and corresponding audio track files are packaged together by this played file, but, language in the audio track files of " anti-terrorism special policeman group " is English, therefore user is loaded with again the Chinese audio track files of " anti-terrorism special policeman group ", thus changes the language broadcasted.Now, the cryptographic hash calculating played file cryptographic hash can calculate the cryptographic hash of video file and Chinese audio track files respectively.
In step S20, upload played file cryptographic hash to server end.In the present embodiment, upload onto the server played file cryptographic hash end, so that know that in follow-up track shared procedure whether played file is consistent with the played file of pre-stored in server end like clockwork.
In step s 30, according to audio track files cryptographic hash and the video file cryptographic hash of played file cryptographic hash and server end pre-stored, the audio track files corresponding with played file is transmitted.In the present embodiment, played file can be only independent video file, also can be the audio track files corresponding with this video file that video file loads with user.If played file is independent video file, then according to the video file cryptographic hash of played file cryptographic hash and server end pre-stored, search and download the audio track files corresponding with the video file play, namely find video file cryptographic hash identical with played file cryptographic hash on server, then find corresponding audio track files according to video file cryptographic hash; The audio track files corresponding with this video file that if played file is video file to be loaded with user, then determine whether to upload according to the audio track files cryptographic hash of played file cryptographic hash and server end pre-stored and video file cryptographic hash, for the situation of server end not this audio track files, then upload and the audio track files in played file, so that share with other users, server end is had to the situation of this audio track files, then can not upload.Audio track files can be dts (Digital TheatreSystem, digital cinema system), ac3 (Audio Coding 3, Dolby Digital), mp3 (Moving PictureExperts Group Audio Layer III, dynamic image expert compression standard audio frequency aspect 3), the track of the form such as aac (AdvancedAudio Coding, Advanced Audio Coding).
The method flow that the track that Fig. 3 shows an embodiment is shared, comprises the steps:
In step S101, calculate video file cryptographic hash and audio track files cryptographic hash, and gather video file characteristic information and audio track files characteristic information.In the present embodiment, current played file is video file and audio track files, and now, user is with the video files such as the film of plug-in audio track files in broadcasting, according to the Operation system setting preset, carries out the calculating of video file cryptographic hash and audio track files cryptographic hash.Particularly, the Operation system setting preset can be any one in " acquiescence agree to ", " acquiescence is not agreed to ", " prompting user selects " these three kinds of modes.Video file characteristic information have recorded the information such as video file name, video file size and video file duration, and audio track files characteristic information have recorded the fileinfo such as audio track files name, audio track files type.
In another embodiment, further comprising the steps of after step S101:
Judge whether reproduction time or the playing progress rate of audio track files are greater than predetermined threshold value, are, then uploaded videos file cryptographic hash and characteristic information, audio track files cryptographic hash and characteristic information thereof, otherwise, then terminate.In the present embodiment, in order to make audio track files more mate with video file, namely audio track files is closer to the broadcasting scene in video file, reduces uploading of useless audio track files, need to ensure that audio track files to be uploaded is corresponding with video file, such as, after user is loaded with an audio track files, listen, find not want, just changed another audio track files, now, that previous audio track files should not be just the audio track files corresponding with video file.For above-mentioned situation, the reproduction time of audio track files or playing progress rate are judged, to know whether this reproduction time or playing progress rate are greater than predetermined threshold value, are, then uploaded videos file cryptographic hash and characteristic information, audio track files cryptographic hash and characteristic information thereof.Predetermined threshold value is an empirical value, can adjust neatly according to actual conditions.Such as, after a film and plug-in audio track files thereof have play 10 minutes, or after having play 10%, just can think that this audio track files is corresponding with film, if user at reproduction time less than 10 minutes or just changed audio track files when having play less than 10%, then think the audio track files play be problematic.
In step s 102, uploaded videos file cryptographic hash and characteristic information, audio track files cryptographic hash and characteristic information thereof are to server end.In the present embodiment, the video file cryptographic hash uploaded and characteristic information, audio track files cryptographic hash and characteristic information thereof are stored in server end, and message structure can be as shown in Figure 4.
In step s 103, the audio track files cryptographic hash uploaded is compared with the audio track files cryptographic hash of pre-stored one by one, judges whether identical, be, then enter step S105, otherwise, then enter step S104.In the present embodiment, the audio track files cryptographic hash uploaded is compared with the audio track files cryptographic hash of pre-stored one by one, to check in the audio track files cryptographic hash of all pre-stored, the audio track files cryptographic hash that the audio track files cryptographic hash whether had and upload is identical, be, then enter step S105, otherwise, then think pre-stored audio track files cryptographic hash in all not identical with the audio track files cryptographic hash uploaded, namely the audio track files of pre-stored is all not identical with this audio track files, therefore this audio track files is uploaded, to share this audio track files to other users.
In step S104, upload audio track files, add audio track files characteristic information.In the present embodiment, audio track files characteristic information have recorded the information such as audio track files name, audio track files type.
In step S105, video file cryptographic hash is compared with the video file cryptographic hash of pre-stored one by one, judges whether identical, be, then enter step S106, otherwise, then enter step S107.In the present embodiment, in the video file cryptographic hash of all pre-stored, video file cryptographic hash corresponding thereto whether is had for each audio track files uploaded for understanding, so that set up associating of audio track files characteristic information and video file characteristic information, conveniently this audio track files is recalled in the process of follow-up shared audio track files, video file cryptographic hash is compared with the video file cryptographic hash of pre-stored one by one, judge whether identical, be, then illustrating has corresponding video file information and association for audio track files, the degree of association of the cumulative video file characteristic information of pre-stored and the audio track files characteristic information of pre-stored, as shown in Figure 5, if the degree of association is originally 1, then add 1 in the original degree of association now, obtaining the degree of association is 2, otherwise, then illustrate that audio track files does not have corresponding video file characteristic information, user can not recognize what the video file corresponding to this audio track files is, be not easy to select suitable audio track files, therefore need to add video file characteristic information, and set up associating of the audio track files characteristic information of video file characteristic information and pre-stored, as shown in Figure 6, owing to being set up record first, the degree of association is 1.
In step s 106, the degree of association of the cumulative video file characteristic information of pre-stored and the audio track files characteristic information of pre-stored.
In step s 107, add video file characteristic information, and set up associating of the audio track files characteristic information of video file characteristic information and pre-stored.
The method flow that the track that Fig. 7 shows another embodiment is shared, current played file is video file, then the method comprises the steps:
In step s 201, calculate video file cryptographic hash, and gather video file characteristic information.
In step S202, uploaded videos file cryptographic hash and characteristic information thereof.
In step S203, video file cryptographic hash is compared with the video file cryptographic hash of pre-stored one by one, judges whether identical, be, then enter step S204, otherwise, then enter step S205.In the present embodiment, the corresponding relation of video file and audio track files as shown in Figure 8, is the relation of multi-to-multi, namely a video file may correspond to multiple audio track files, such as, a video file may correspond to the audio track files of English, also may correspond to the audio track files of Chinese.An audio track files also may correspond to multiple different video file, such as, and the corresponding same audio track files of video file of multiple different editions.The degree of association illustrates the correlation degree between video file and audio track files.For the audio track files that the video file obtaining broadcasting current with user is corresponding, according to the video file cryptographic hash uploaded, video file cryptographic hash is compared with the video file cryptographic hash of pre-stored one by one, judge whether identical, be, then sort according to the video file characteristic information of the degree of association to pre-stored, the comparative result of predetermined number is got by order from big to small, in a preferred embodiment, comparative result can be returned to user, and download corresponding audio track files according to alternative, otherwise, then enter step S204.
In step S204, according to the degree of association, the video file characteristic information of pre-stored is sorted, get the comparative result of predetermined number by order from big to small, and download corresponding audio track files according to comparative result.In the present embodiment, comparative result as shown in Figure 9.
In step S205, carry out fuzzy query according to video file characteristic information, according to matching degree to result ranking, get the Query Result of predetermined number by order from small to large, and download audio track files according to Query Result.In the present embodiment, owing to not looking for the pre-stored video file cryptographic hash identical with video file cryptographic hash, therefore the video file characteristic information of video file characteristic information to pre-stored according to uploading is needed to carry out fuzzy query, search out the Query Result that matching degree is the highest, and result for retrieval is returned to user, to download audio track files according to Query Result.
In another embodiment, further comprising the steps of after step S205:
Play audio track files, accumulative broadcasting time and each reproduction time, judge whether reproduction time each in default broadcasting time is all less than preset play time, is, then delete the audio track files of pre-stored, otherwise, then terminate.In the present embodiment, for the audio track files providing download to user, whether the audio track files namely uploaded and the media information of correspondence, weigh effective by the number of times called by other users and the time of playing at every turn.If push to the audio track files of other user, user selecting and changing within the very short time after downloading, then thinks that this audio track files may be invalid.
Figure 10 shows the track shared system of an embodiment, and this system comprises player 10 and server 20, wherein:
Player 10, for according to played file, calculates and uploads played file cryptographic hash, uploading or download the audio track files corresponding with played file by played file cryptographic hash.In the present embodiment, player 10 gets default byte at the head of played file, centre and afterbody respectively, and merges after mapping obtains cryptographic hash respectively, obtains played file cryptographic hash.As previously mentioned, the played file that player 10 is play can be current play video file and corresponding audio track files, also can be the video file of current broadcasting.
Server 20, for according to the audio track files cryptographic hash of pre-stored in played file cryptographic hash and server 20 and video file cryptographic hash, receives or sends the audio track files corresponding with played file.In the present embodiment, played file can be only independent video file, also can be the audio track files corresponding with this video file that video file loads with user.If played file is independent video file, then server 20 is according to the video file cryptographic hash of pre-stored in played file cryptographic hash and server 20, search and download the audio track files corresponding with the video file play, namely find video file cryptographic hash identical with played file cryptographic hash on server 20, then find corresponding audio track files according to video file cryptographic hash; The audio track files corresponding with this video file that if played file is video file to be loaded with user, then server 20 determines whether to upload according to the audio track files cryptographic hash of played file cryptographic hash and server 20 pre-stored and video file cryptographic hash, for the situation of not this audio track files in server 20, then upload and the audio track files in played file, so that share with other users, for the situation having this audio track files in server 20, then can not upload.
Figure 11 shows the player of an embodiment, and this player 10 comprises the first processing module 102 and upper transmission module 104, wherein:
First processing module 102, for calculating video file cryptographic hash and audio track files cryptographic hash, and gathers video file characteristic information and audio track files characteristic information.In the present embodiment, current played file is video file and audio track files, and now, user is with the video files such as the film of plug-in audio track files in broadcasting, first processing module 102, according to the Operation system setting preset, carries out the calculating of video file cryptographic hash and audio track files cryptographic hash.Video file characteristic information have recorded the information such as video file name, video file lengths and video file duration, and audio track files characteristic information have recorded the information such as audio track files name, audio track files type.The Operation system setting preset can be any one in " acquiescence agree to ", " acquiescence is not agreed to ", " prompting user selects " these three kinds of modes.
In other embodiments, above-mentioned player 10 also comprises adjusting module, whether this adjusting module is greater than predetermined threshold value for the reproduction time or playing progress rate judging audio track files, be, then go up transmission module uploaded videos file cryptographic hash and characteristic information, audio track files cryptographic hash and characteristic information thereof, otherwise, then stop performing.In the present embodiment, in order to make audio track files more mate with video file, namely audio track files is closer to the broadcasting scene in video file, reduces uploading of useless audio track files, needs to ensure that audio track files to be uploaded is corresponding with video file.Predetermined threshold value is an empirical value, can adjust neatly according to actual conditions.
Upper transmission module 104, for uploaded videos file cryptographic hash and characteristic information, audio track files cryptographic hash and characteristic information thereof and audio track files.
Figure 12 shows the server of an embodiment, and this server 20 comprises track checking module 202, media checking module 204 and receiver module 206, wherein:
Track checking module 202, for the audio track files uploaded cryptographic hash is compared with the audio track files cryptographic hash of pre-stored one by one, judge whether identical, be, then media checking module 204 obtains video file cryptographic hash, otherwise then receiver module 206 receives audio track files and after adding audio track files characteristic information, media checking module 204 is associated.In the present embodiment, the audio track files cryptographic hash uploaded compares with the audio track files cryptographic hash of pre-stored by track checking module 202 one by one, to check in the audio track files cryptographic hash of all pre-stored, the audio track files cryptographic hash that the audio track files cryptographic hash whether had and upload is identical, be, then media checking module 204 obtains video file cryptographic hash, otherwise, then think that the audio track files cryptographic hash of pre-stored is all not identical with the audio track files cryptographic hash uploaded, all not identical with this audio track files in the audio track files of i.e. pre-stored, therefore receiver module 206 receives audio track files and after adding audio track files characteristic information, media checking module 204 sets up associating of audio track files characteristic information and video file characteristic information.
Media checking module 204, for video file cryptographic hash is compared with the video file cryptographic hash of pre-stored one by one, judge whether identical, be, the then degree of association of the cumulative video file characteristic information of pre-stored and the audio track files characteristic information of pre-stored, otherwise, then add video file characteristic information, and set up associating of the audio track files characteristic information of video file characteristic information and pre-stored.In the present embodiment, video file cryptographic hash compares with the video file cryptographic hash of pre-stored by media checking module 204 one by one, judge whether identical, be, then illustrating has corresponding video file information and association for audio track files, the degree of association of the cumulative video file characteristic information of pre-stored and the audio track files characteristic information of pre-stored, otherwise, then illustrate that audio track files does not have corresponding video file characteristic information, user can not recognize what the video file corresponding to this audio track files is, be not easy to select suitable audio track files, therefore need to add video file characteristic information, and set up associating of the audio track files characteristic information of video file characteristic information and pre-stored.
Figure 13 shows the player in another embodiment, and player 10 comprises the second processing module 106 and interactive module 108.
Second processing module 106, for calculating the cryptographic hash of video file, and gathers video file characteristic information.
Interactive module 108, for cryptographic hash and the characteristic information thereof of uploaded videos file, and downloads the audio track files corresponding with video file.
Figure 14 shows the server in another embodiment, and this server 20 comprises accurate enquiry module 207 and fuzzy query module 208.
Accurate enquiry module 207, for video file cryptographic hash is compared with the video file cryptographic hash of pre-stored one by one, judge whether identical, be, then according to the degree of association, the video file characteristic information of pre-stored is sorted, get the comparative result of predetermined number by order from big to small, and download corresponding audio track files according to comparative result, otherwise then fuzzy query module 208 pairs of video file characteristic informations carry out fuzzy query.In the present embodiment, accurate enquiry module 207 is the corresponding audio track files of the video file that obtains broadcasting current with user, according to the video file cryptographic hash uploaded, video file cryptographic hash is compared with the video file cryptographic hash of pre-stored one by one, judge whether identical, be, then sort according to the video file characteristic information of the degree of association to pre-stored, the comparative result of predetermined number is got by order from big to small, in a preferred embodiment, comparative result can be returned to user, and download corresponding audio track files according to alternative, otherwise, then fuzzy query module 208 pairs of video file characteristic informations carry out fuzzy query.
Fuzzy query module 208, for carrying out fuzzy query according to video file characteristic information, according to matching degree to result ranking, gets the Query Result of predetermined number, and returns Query Result for download by order from big to small.In the present embodiment, fuzzy query module 208 carries out fuzzy query according to the video file characteristic information of the video file characteristic information uploaded to pre-stored, search out the Query Result that matching degree is the highest, and result for retrieval is returned to user, to download audio track files according to Query Result.
In other embodiments, above-mentioned server 20 also comprises correction verification module, this correction verification module is for playing audio track files, accumulative broadcasting time and each reproduction time, judge whether reproduction time each in default broadcasting time is all less than preset play time, is, then delete the audio track files of pre-stored, otherwise, then stop performing.
Above-mentioned track is shared in method and system, by the cryptographic hash of played file, carry out the transmission of the audio track files corresponding with this played file, achieve the upload and download of the audio track files corresponding with played file, make to search and listen audio track files more convenient, more convenient.
Above-mentioned track is shared in method and system, by by audio track files cryptographic hash one by one compared with the audio track files cryptographic hash of pre-stored, ensure that the audio track files uploaded does not repeat, effectively save storage resources.
The above embodiment only have expressed several embodiment of the present invention, and it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It 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 (13)

1. track shares a method, comprises the steps:
According to played file, calculate played file cryptographic hash, described played file comprises video file and audio track files, and the video file in described played file and audio track files are separate computations cryptographic hash, obtains video file cryptographic hash and audio track files cryptographic hash;
Upload described video file cryptographic hash and audio track files cryptographic hash to server end;
Determine whether to upload according to the audio track files cryptographic hash of described video file cryptographic hash, audio track files cryptographic hash and server end pre-stored and video file cryptographic hash, for the situation of server end not this audio track files, then upload the audio track files corresponding with described played file to server end, server end is had to the situation of this audio track files, do not upload the audio track files corresponding with described played file.
2. track according to claim 1 shares method, it is characterized in that, the concrete steps of described calculating played file cryptographic hash are:
Get default byte at the head of described played file, centre and afterbody respectively, and map respectively obtain cryptographic hash after merge, obtain described played file cryptographic hash.
3. track according to claim 1 shares method, it is characterized in that, upload described video file cryptographic hash and audio track files cryptographic hash to server end step before also comprise: gather video file characteristic information and audio track files characteristic information;
Video file cryptographic hash and the audio track files cryptographic hash step to server end comprises by described uploading:
Upload described video file cryptographic hash and video file characteristic information, audio track files cryptographic hash and audio track files characteristic information thereof to server end.
4. track according to claim 3 shares method, it is characterized in that, also comprises after the step of described collection video file characteristic information and audio track files characteristic information:
Judge whether reproduction time or the playing progress rate of described audio track files are greater than predetermined threshold value, are, then upload described video file cryptographic hash and video file characteristic information, audio track files cryptographic hash and audio track files characteristic information thereof, otherwise, then terminate.
5. track according to claim 3 shares method, it is characterized in that, the described audio track files cryptographic hash according to described video file cryptographic hash, audio track files cryptographic hash and server end pre-stored and video file cryptographic hash determine whether to upload, for the situation of server end not this audio track files, then the concrete steps uploading the audio track files corresponding with described played file are:
A1, described audio track files cryptographic hash to be compared with the audio track files cryptographic hash of pre-stored one by one, judge whether identical, be, then enter steps A 2, otherwise, then upload audio track files, after adding described audio track files characteristic information, enter steps A 2;
A2, described video file cryptographic hash to be compared with the video file cryptographic hash of pre-stored one by one, judge whether identical, be, the then degree of association of the cumulative video file characteristic information of described pre-stored and the audio track files characteristic information of pre-stored, otherwise, then add described video file characteristic information, and set up associating of the audio track files characteristic information of described video file characteristic information and described pre-stored.
6. a track shared system, is characterized in that, comprising:
First processing module, for according to played file, calculate and upload played file cryptographic hash, described played file comprises video file and audio track files, video file in described played file and audio track files are separate computations cryptographic hash, obtain video file cryptographic hash and audio track files cryptographic hash;
Upper transmission module, for uploading described video file cryptographic hash and audio track files cryptographic hash to server end;
Described upper transmission module is also for determining whether to upload according to the audio track files cryptographic hash of described video file cryptographic hash, audio track files cryptographic hash and server end pre-stored and video file cryptographic hash, for the situation of server end not this audio track files, then upload the audio track files corresponding with described played file to server end, server end is had to the situation of this audio track files, do not upload the audio track files corresponding with described played file.
7. track shared system according to claim 6, it is characterized in that, described first processing module gets default byte for the head respectively in described played file, centre and afterbody, and merges after mapping obtains cryptographic hash respectively, obtains described played file cryptographic hash.
8. track shared system according to claim 6, is characterized in that,
Described first processing module, also for gathering video file characteristic information and audio track files characteristic information;
Described upper transmission module, also for uploaded videos file cryptographic hash and video file characteristic information, audio track files cryptographic hash and audio track files characteristic information thereof and audio track files.
9. track shared system according to claim 8, it is characterized in that, also comprise adjusting module, whether described adjusting module is greater than predetermined threshold value for the reproduction time or playing progress rate judging described audio track files, be, then described upper transmission module uploaded videos file cryptographic hash and video file characteristic information, audio track files cryptographic hash and audio track files characteristic information thereof, otherwise, then stop performing.
10. track shared system according to claim 8, it is characterized in that, also comprise server, described server is used for audio track files cryptographic hash according to played file cryptographic hash and pre-stored and video file cryptographic hash, receives or sends the audio track files corresponding with played file.
11. track shared systems according to claim 10, is characterized in that, described server comprises track checking module, receiver module and media checking module;
Described track checking module, for described audio track files cryptographic hash is compared with the audio track files cryptographic hash of pre-stored one by one, judge whether identical, be, then described media checking module obtains video file cryptographic hash, otherwise then described receiver module receives described audio track files and after adding audio track files characteristic information, media checking module is associated;
Described media checking module, for described video file cryptographic hash is compared with the video file cryptographic hash of pre-stored one by one, judge whether identical, be, the then degree of association of the cumulative video file characteristic information of described pre-stored and the audio track files characteristic information of pre-stored, otherwise, then add described video file characteristic information, and set up associating of the audio track files characteristic information of described video file characteristic information and described pre-stored.
12. track shared systems according to claim 10, is characterized in that, described server comprises accurate enquiry module and fuzzy query module,
Described accurate enquiry module, for described video file cryptographic hash is compared with the video file cryptographic hash of pre-stored one by one, judge whether identical, be, then according to the degree of association, the video file characteristic information of pre-stored is sorted, get the comparative result of predetermined number by order from big to small, and download corresponding audio track files according to described comparative result, otherwise then described fuzzy query module carries out fuzzy query to described video file characteristic information;
Described fuzzy query module, for carrying out fuzzy query according to described video file characteristic information, according to matching degree to result ranking, gets the Query Result of predetermined number by order from big to small, and returns described Query Result for download.
13. track shared systems according to claim 12, it is characterized in that, described server also comprises:
Correction verification module, for playing described audio track files, accumulative broadcasting time and each reproduction time, judge whether reproduction time each in default broadcasting time is all less than preset play time, is, then delete the audio track files of pre-stored, otherwise, then stop performing.
CN201010508739.5A 2010-10-14 2010-10-14 Sound track sharing method and system Active CN102446526B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010508739.5A CN102446526B (en) 2010-10-14 2010-10-14 Sound track sharing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010508739.5A CN102446526B (en) 2010-10-14 2010-10-14 Sound track sharing method and system

Publications (2)

Publication Number Publication Date
CN102446526A CN102446526A (en) 2012-05-09
CN102446526B true CN102446526B (en) 2015-07-01

Family

ID=46008967

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010508739.5A Active CN102446526B (en) 2010-10-14 2010-10-14 Sound track sharing method and system

Country Status (1)

Country Link
CN (1) CN102446526B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105898354A (en) * 2015-12-07 2016-08-24 乐视云计算有限公司 Video file multi-audio-track storage method and device
CN109670075B (en) * 2018-12-13 2020-12-22 福建天晴数码有限公司 Video file disclosure calculation method and server

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1860481A (en) * 2003-09-30 2006-11-08 皇家飞利浦电子股份有限公司 Using content identifiers to download cd-cover pictures to represent audio content items
CN101281766A (en) * 2007-04-03 2008-10-08 索尼株式会社 Information processing apparatus, information processing method and computer program
CN101542484A (en) * 2006-11-30 2009-09-23 皇家飞利浦电子股份有限公司 Arrangement for comparing content identifiers of files
CN101841540A (en) * 2010-04-22 2010-09-22 彭永 Method for issuing multimedia contents based on Hash function algorithm

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040249859A1 (en) * 2003-03-14 2004-12-09 Relatable, Llc System and method for fingerprint based media recognition

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1860481A (en) * 2003-09-30 2006-11-08 皇家飞利浦电子股份有限公司 Using content identifiers to download cd-cover pictures to represent audio content items
CN101542484A (en) * 2006-11-30 2009-09-23 皇家飞利浦电子股份有限公司 Arrangement for comparing content identifiers of files
CN101281766A (en) * 2007-04-03 2008-10-08 索尼株式会社 Information processing apparatus, information processing method and computer program
CN101841540A (en) * 2010-04-22 2010-09-22 彭永 Method for issuing multimedia contents based on Hash function algorithm

Also Published As

Publication number Publication date
CN102446526A (en) 2012-05-09

Similar Documents

Publication Publication Date Title
US20170228380A1 (en) Rules Based Playlist Generation
US11570498B2 (en) Using machine learning and other models to determine a user preference to cancel a stream or download
US10659506B2 (en) Similar introduction advertising caching mechanism
US9342517B2 (en) Parametric analysis of media metadata
US20070174866A1 (en) Rule-based playlist engine
US20110258211A1 (en) System and method for synchronous matching of media samples with broadcast media streams
US20080064351A1 (en) System and method for location-based media ranking
US9826065B2 (en) Scene-based variable compression
KR20110043632A (en) Specifying media content placement criteria
US11062331B2 (en) Determining streaming content user consumption
FR2864858A1 (en) Multimedia document digest creating device for viewing e.g. video recordings, has weighing module to weigh multimedia documents, and multimedia document digest creating module to create digest of multimedia documents
CN103379379A (en) Streaming media buffer play method and apparatus
CN101547204A (en) Information processing apparatus and method, program, recording medium, and information processing system
CN102446526B (en) Sound track sharing method and system
US20180121159A1 (en) Content Receiver to Tune and Segment Programming
US20110055179A1 (en) System for and method of partial file hashing
EP1367745A1 (en) Process for autoadaptive administration of the relevance of multimedia contents for a receiver of these contents and associated receiver
US9859871B2 (en) Radio to tune multiple stations simultaneously and select programming segments
US10346472B2 (en) Method and a portable electronic device for automatically rating a music track
CN111526377B (en) Stream pulling method and device
CN107484015B (en) Program processing method and device and terminal
CN113821479A (en) Data request processing method and device based on metadata loading
KR101858247B1 (en) System and method for providing content using integrated identification
Zhan et al. A measurement study of mobile video streaming by different types of devices
WO2019091761A1 (en) Method of recording, in a mass memory of an electronic device, at least one multimedia content

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