Method for obtaining ring tone and ring tone obtaining systemTechnical Field
The present invention relates to media playing technology, and in particular, to a method and system for obtaining ring tone during playing video and audio files.
Background
The use of player software on a computer to watch video programs has become a very popular way for users to learn, leisure and entertain, and users usually encounter some meaningful or interesting sounds during watching video, and the users want to intercept the sounds and put the sounds into their mobile phones to be used as ring tones. The types of multimedia files of video and audio files on a computer are numerous, and the multimedia files are roughly divided into a plurality of categories, such as sound, images, videos and the like. Since the manufacturing and playing principles are not very similar, a corresponding player needs to be installed in a computer, and fig. 1 is a system framework diagram of the existing typical player software. The formats of multimedia files include, but are not limited to MOV, music CD, MID, MP3, MP4, RAM and RA, MPG, VCD and DAT, SVCD.
At present, it is common practice to use some professional audio capturing tools to capture the audio in the video/audio file, and then store the audio in the corresponding ring format supported by the mobile phone according to the model of the mobile phone. At present, extracting a specific audio from a video/audio file is a relatively mature technology, and some professional tools can support extracting the audio from the video/audio file, intercepting a certain section of the audio to store the audio in a specific audio format, and then converting the audio into a ring tone suitable for a mobile phone of the specific type according to the specific mobile phone type. However, this method requires the user to have a relatively deep knowledge of the audio and video, and to be familiar with different software, which is rather complicated and time-consuming to use; alternatively, the user may find the ready ring directly on the network, but the user may not necessarily find the ring that the user likes.
HASH (HASH) is a value obtained by logical operation based on data of the content of a file, and HASH values obtained for different files (even for the same file name) are different, so that the HASH value becomes each file id, files with different HASH values are considered as different files, and the content of files with the same HASH value is definitely identical (even if the file names are different). The HASH value also has the function of file verification, which is equivalent to a file verification code, so the HASH value can also be used for checking whether the file downloading is correct.
Disclosure of Invention
In view of the above, the main objective of the present invention is to provide a method and a system for obtaining ring tone, which can simply and conveniently obtain the ring tone required by the user.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
a method of retrieving a ring tone, comprising:
the player client intercepts a section of audio from the original media file according to the time range of the media file selected by the user;
and determining the type of the ring tone, generating the intercepted audio into a ring tone with a preset mobile phone model, and storing the ring tone.
The method further comprises the following steps:
the player client uploads the generated ring to a ring server;
and the ring server end matches the ring uploaded from the player client with the current media file and then stores the ring into a ring database.
The method also comprises the following steps: uploading the related information of the currently played media file to a ring server;
matching the ring in the ring database with the received media file, and if the ring is matched with the corresponding ring, informing the player client to download the ring; and if the ring tone corresponding to the matching band does not exist, continuing to execute the subsequent steps.
The informing the player client of downloading the ring tone comprises:
the player client receives a ring downloading notification from the ring server and requests a matched ring from the ring server;
the ring server sends the ring matched with the current media file to the player client;
the player client receives the issued ring, selects the required ring and stores the ring; if the needed ring tone can not be found in the issued ring tones, the step of intercepting the current media file and generating the ring tone is continuously executed.
A ring tone obtaining system at least comprises an audio intercepting and ring tone generating module, a ring tone generating module and a processing module, wherein the audio intercepting and ring tone generating module is used for intercepting a section of audio frequency from an original media file according to the time range of a media file selected by a user, then determining the type of the ring tone, generating the section of audio frequency into a ring tone with a preset mobile phone model and storing the ring tone;
the audio intercepting and ring generating module is arranged in an audio post-processing module of the player client.
The player client also comprises a media file information uploading module and a ring downloading module;
in the player client, the player client is provided with a plurality of servers,
the media file information uploading module is used for uploading the related information of the currently played media file to the ring server;
the ring downloading module is used for requesting matched ring to the ring server terminal after receiving the ring downloading notification; receiving the ring transmitted from the ring server, selecting the needed ring and storing; if the required ring can not be found in the issued ring, informing an audio interception and ring generation module to intercept the current media file;
the audio intercepting and ring generating module is also used for receiving the notice of intercepting the current media file and then starting the work.
The ring tone server end comprises a media file matching module, a ring tone issuing module and a ring tone database; wherein,
the media file matching module is used for matching the ring in the ring database with the media file from the player client, and transmitting a ring downloading notice to the ring downloading module through the media file information uploading module when the corresponding ring is matched; and when the ring corresponding to the matching band does not exist, the media file information uploading module informs the audio interception and ring generation module to intercept the current media file.
And the ring issuing module is used for receiving the request from the player client and issuing the ring matched with the current media file to the player client.
The player client also comprises a ring uploading module which is used for uploading the generated ring to a ring server;
correspondingly, the ring server end also comprises a ring receiving module which is used for storing the ring uploaded by the player client end and the current media file into a ring database after matching.
According to the technical scheme provided by the invention, a user can simply intercept a section of audio through a user interface in the process of playing a video and audio file at a player client, and select a proper mobile phone model to acquire the required ring tone; furthermore, the method of the invention can also upload the generated ring to the ring server, thus, when the user needs to generate the ring, the user can directly search the ring which is already made and corresponds to the current media file in the ring server and directly download the favorite ring for use.
Drawings
FIG. 1 is a system framework diagram of a typical player software;
FIG. 2 is a schematic diagram of the structure of the ring tone acquisition system of the present invention;
fig. 3 is a flow chart of an embodiment of the method of the present invention for capturing a ring tone.
Detailed Description
Fig. 2 is a schematic diagram of a composition structure of the ring tone acquisition system of the present invention, and as shown in fig. 2, an audio interception and ring tone generation module is added to the audio post-processing module located at the player client shown in fig. 1. Wherein,
and the audio intercepting and ring generating module is used for intercepting a section of audio from the original media file according to the time range of the media file selected by the user, then determining the ring type, generating the section of audio into a ring with a specified (preset) mobile phone model, and storing the ring. Here, many methods for intercepting and generating belong to the conventional technical means of those skilled in the art, and the specific implementation method is not limited herein, nor is the scope of protection of the present invention limited.
Further, the audio post-processing module of the player client may further include a ring preview module, configured to preview the generated ring, and store the ring after the user determines that the user is satisfied with the ring.
As shown in fig. 2, the player client of the ringtone acquisition system of the present invention may further include a media file information uploading module and a ringtone downloading module, and accordingly, the ringtone server of the ringtone acquisition system of the present invention includes a media file matching module, a ringtone issuing module, and a ringtone database.
In the client side of the player, the player client side,
the media file information uploading module is used for uploading relevant information of a currently played media file, such as a file name, a coding format, a HASH value and the like, to the ringtone server side;
the ring downloading module is used for requesting matched ring to the ring server terminal after receiving the ring downloading notification; receiving the ring transmitted from the ring server, selecting the needed ring and storing; if the needed ring can not be found in the issued ring, the audio interception and ring generation module is informed to intercept the current media file.
The audio intercepting and ring generating module is also used for receiving the notice of intercepting the current media file and then starting the work.
In the ring signal server side, it is,
the media file matching module is used for matching the ring in the ring database with the media file from the player client, and transmitting a ring downloading notice to the ring downloading module through the media file information uploading module when the corresponding ring is matched; and when the ring corresponding to the matching band does not exist, the media file information uploading module informs the audio interception and ring generation module to intercept the current media file.
And the ring issuing module is used for receiving the request from the player client and issuing the ring matched with the current media file to the player client.
Further, the player client further comprises a ring tone uploading module for uploading the generated ring tone to the ring tone server. Correspondingly, the ring server also comprises a ring receiving module which is used for storing the ring uploaded from the player client into the ring database after matching with the current media file.
Fig. 3 is a flowchart of an embodiment of the method for obtaining a ringtone according to the present invention, as shown in fig. 3, including:
step 300: when a user plays a video and audio file at a player client, the user selects the ring tone intercepting function through a preset interface. The implementation of this step is well within the skill of those in the art and will not be described in detail herein.
Step 301: and uploading the information of the currently played media file, such as the file name, the encoding format, the HASH value and the like, to the ringtone server.
Step 302 to step 303: the ring server matches the ring in the database with the media file, if no matched ring is found,step 306 is entered; if a matching ring tone is found,step 304 is entered.
Step 304 to step 305: the player client selects the required ring tone from the matched ring tones, and if the required ring tone is selected, the player client enters the step 310; otherwise,step 306 is entered.
Step 306: and setting a starting time point and an ending time point of intercepting the current media file, the model of the mobile phone or the type of the ring tone by the user through a preset interface.
Step 307: and intercepting a section of audio from the current media file according to the time range selected by the user, and converting the section of audio into the ring tone of the mobile phone with the corresponding model according to the relevant mobile phone configuration information.
In this step, the ring tone file generating process roughly includes: firstly, determining the ring type, namely, directly selecting the ring type by a user or inquiring the ring type according to the mobile phone model selected by the user. Then, creating a ring file and writing a file header; then, the player client locates the ring intercepting starting point of the current media file; an audio post-processing module in the player client encodes the received audio data according to the encoding type corresponding to the ring, and writes the encoded audio data into a ring file after the audio data is packaged; and when the ring signal interception end point of the current media file is reached, writing the tail of the ring signal file to finish the generation process of the ring signal file. The specific implementation of the ring signal file generation process belongs to the technical means commonly used by those skilled in the art, and is not described in detail herein.
Step 308 to step 309: the user previews the intercepted ring tone to confirm that the ring tone is the required ring tone, and uploads the generated ring tone to the ring tone server side.
Step 310: the ring server receives the ring uploaded by the player client, matches the ring with the current media file and stores the ring into the ring database.
By the method, a user can simply intercept a section of audio through the user interface in the process of playing the video and audio files at the player client, select a proper mobile phone model and directly generate and store the required ring tone; furthermore, the method of the invention can also upload the generated ring to the ring server, thus, when the user needs to generate the ring, the user can directly search the ring which is already made and corresponds to the current media file in the ring server and directly download the favorite ring for use.
The above description is only exemplary of the present invention and should not be taken as limiting the scope of the present invention, and any modifications, equivalents, improvements, etc. that are within the spirit and principle of the present invention should be included in the present invention.