CN103702180A - Media file playing method and device - Google Patents

Media file playing method and device Download PDF

Info

Publication number
CN103702180A
CN103702180A CN201410016421.3A CN201410016421A CN103702180A CN 103702180 A CN103702180 A CN 103702180A CN 201410016421 A CN201410016421 A CN 201410016421A CN 103702180 A CN103702180 A CN 103702180A
Authority
CN
China
Prior art keywords
information
media file
played
sign
rationally
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
CN201410016421.3A
Other languages
Chinese (zh)
Other versions
CN103702180B (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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201410016421.3A priority Critical patent/CN103702180B/en
Publication of CN103702180A publication Critical patent/CN103702180A/en
Application granted granted Critical
Publication of CN103702180B publication Critical patent/CN103702180B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention discloses a media file playing method and device. The method comprises the steps of obtaining an identifier of a media file to be played, wherein the media file to be played at least comprises a set of audio data divided according to time periods and a video frame set; obtaining optimal configuration information which is stored in a server in advance and corresponds to the media file to be played according to the identifier of the media file to be played; decoding the media file to be played to obtain audio data to be output and video frames to be displayed; carrying out optimal configuration on the audio data to be output and the video frames to be displayed according to the optimal configuration information; calling an audio output unit of electronic equipment to output the audio data to be output, which is subjected to optimal configuration, and calling a display unit of the electronic equipment to display the video frames to be displayed, which are subjected to optimal configuration. Visibly, the playing effects of the media file can be improved by utilizing the method and the device, thus improving the user experience.

Description

Media file playing method and device
Technical field
The present invention relates to media file process field, particularly a kind of media file playing method and device.
Background technology
Along with science and technology development at full speed, various electronic equipments constantly enrich and have facilitated popular life.Owing to utilizing electronic equipment process information to there is the advantages such as convenient and swift, saving resource, make electronic equipment become an indispensable part in people's life or work.Wherein, the electronic equipment such as internet television, smart mobile phone, notebook computer, panel computer is widely used in daily life.
Wherein, user can playing network media file and local media file by the media player being installed in electronic equipment.
But due to the performance limitations of electronic equipment itself and/or the media player installed, the effect that audio frequency is play can not be reappeared the original effect of audio frequency completely; And the effect of the image playing out can not be reappeared the original effect of video content completely.For example: the audio decoder in media player causes decay in various degree to the voice signal of different frequency, and amplifirer in electronic equipment and loud speaker etc. also cause decay in various degree to the voice signal of different frequency, these all make the tonequality of audio frequency not reach effect originally.And for example: the Video Decoder in media player can exert an influence to the image showing, and image stretch of electronic equipment, screen color temp, screen intensity, screen reflecting time etc. also exert an influence to the image showing, these all make the image demonstrating not reach original image quality.
Visible, under the impact of the performance limitations of electronic equipment itself and/or the media player installed, how to improve the result of broadcast of media file, thereby improving that user experiences is a problem demanding prompt solution.
Summary of the invention
Based on the problems referred to above, the embodiment of the invention discloses a kind of media file playing method and device, improve the result of broadcast of media file, thereby improve user, experience.Technical scheme is as follows:
First aspect, the embodiment of the present invention provides a kind of media file playing method, is applicable to electronic equipment, and described method comprises:
Obtain the sign of media file to be played, wherein, described media file to be played at least comprises: set and the sets of video frames of the voice data of dividing with the time period;
According to the sign of described media file to be played, obtain the information of distributing rationally corresponding to media file described to be played being pre-stored within server;
Described media file to be played is decoded, obtain voice data to be exported and frame of video to be shown;
Described in foundation, distribute information rationally, treat the voice data of output and frame of video to be shown and be optimized configuration;
The to be exported voice data of the audio output unit output of calling electronic equipment through distributing rationally, and the display unit that calls described electronic equipment shows the frame of video to be shown through distributing rationally.
Preferably, described in, the information of distributing rationally comprises:
The information of distributing rationally that the information of distributing rationally that voice data is corresponding and frame of video are corresponding;
Wherein, the information of distributing rationally that described voice data is corresponding comprises: the corresponding relation of the configuration parameter of the configuration parameter of voice data sign, audio configuration item, voice data sign and audio configuration item;
The information of distributing rationally corresponding to described frame of video comprises: the corresponding relation of the configuration parameter of the configuration parameter of frame of video sign, video frame configuration item, frame of video sign and video frame configuration item.
Preferably, according to described in distribute information rationally, the voice data for the treatment of output is optimized configuration and frame of video to be shown is optimized configuration, comprising:
Voice data to be exported corresponding to described voice data sign regulated according to the configuration parameter of corresponding audio configuration item;
Frame of video to be shown corresponding to described frame of video sign regulated according to the configuration parameter of corresponding video frame configuration item.
Preferably, described audio configuration item comprises: at least one during frequency response equilibrium, 3D sound field rebuilding, dynamic gain, high-frequency harmonic recover;
Described video frame configuration item comprises: at least one in color saturation, brightness, contrast, acutance.
Preferably, the sign of the described media file to be played of described foundation, obtains the information of distributing rationally corresponding to media file described to be played being pre-stored within server, comprising:
To server, send configuration information and obtain request, the request of obtaining of described configuration information carries the sign of described media file to be played;
Receive the information of distributing rationally of described server feedback;
Wherein, described server obtains after request receiving described configuration information, from preset configuration storehouse, obtain the corresponding information of distributing rationally of sign of described media file to be played, and feed back to described electronic equipment, wherein, described preset configuration stores the information of distributing rationally in storehouse, and the corresponding relation of distributing the sign of information and media file rationally.
Preferably, the sign of the described media file to be played of described foundation, obtains the information of distributing rationally corresponding to media file described to be played being pre-stored within server, comprising:
Obtain the information of distributing rationally corresponding to media file described to be played of downloading in advance according to the sign of described media file to be played from server;
Wherein, the process of downloading the information of distributing rationally that described media file to be played is corresponding from described server comprises:
When downloading described media file to be played, to server, send configuration information and obtain request, the request of obtaining of described configuration information carries the sign of described media file to be played;
Receive the information of distributing rationally of described server feedback;
Wherein, described server obtains after request receiving described configuration information, from preset configuration storehouse, obtain the corresponding information of distributing rationally of sign of described media file to be played, and feed back to described electronic equipment, wherein, described preset configuration stores the information of distributing rationally in storehouse, and the corresponding relation of distributing the sign of information and media file rationally.
Preferably, the sign of described media file to be played comprises:
The file identification of described media file to be played;
Or,
The file identification of described media file to be played and the device identification of electronic equipment.
Second aspect, the embodiment of the present invention provides a kind of playback of media files device, is applicable in electronic equipment, and described device comprises:
Identifier acquisition module, for obtaining the sign of media file to be played, wherein, described media file to be played at least comprises: set and the sets of video frames of the voice data of dividing with the time period;
Distribute acquisition of information module rationally, for the sign according to described media file to be played, obtain the information of distributing rationally corresponding to media file described to be played being pre-stored within server;
Decoder module, for described media file to be played is decoded, obtains voice data to be exported and frame of video to be shown;
Distribute module rationally, for described in foundation, distribute information rationally, treat the voice data of output and frame of video to be shown and be optimized configuration;
Playing module, the voice data to be exported for the audio output unit output of calling electronic equipment through distributing rationally, and the display unit that calls described electronic equipment shows the frame of video to be shown through distributing rationally.
Preferably, described in, the information of distributing rationally comprises:
The information of distributing rationally that the information of distributing rationally that voice data is corresponding and frame of video are corresponding;
Wherein, the information of distributing rationally that described voice data is corresponding comprises: the corresponding relation of the configuration parameter of the configuration parameter of voice data sign, audio configuration item, voice data sign and audio configuration item;
The information of distributing rationally corresponding to described frame of video comprises: the corresponding relation of the configuration parameter of the configuration parameter of frame of video sign, video frame configuration item, frame of video sign and video frame configuration item.
Preferably, described in, distributing module rationally comprises:
Audio optimization unit, for regulating according to the configuration parameter of corresponding audio configuration item voice data to be exported corresponding to described voice data sign;
Video optimization unit, for regulating according to the configuration parameter of corresponding video frame configuration item frame of video to be shown corresponding to described frame of video sign.
Preferably, described audio configuration item comprises: at least one during frequency response equilibrium, 3D sound field rebuilding, dynamic gain, high-frequency harmonic recover;
Described video frame configuration item comprises: at least one in color saturation, brightness, contrast, acutance.
Preferably, described in distribute acquisition of information module rationally, comprising:
Request transmitting unit, obtains request for sending configuration information to server, and the request of obtaining of described configuration information carries the sign of described media file to be played;
Distribute information receiving unit rationally, for receiving the information of distributing rationally of described server feedback;
Wherein, described server obtains after request receiving described configuration information, from preset configuration storehouse, obtain the corresponding information of distributing rationally of sign of described media file to be played, and feed back to described electronic equipment, wherein, described preset configuration stores the information of distributing rationally in storehouse, and the corresponding relation of distributing the sign of information and media file rationally.
Preferably, described in distribute acquisition of information module rationally, comprising:
Distribute information acquisition unit rationally, for obtaining the information of distributing rationally corresponding to media file described to be played of downloading from server in advance according to the sign of described media file to be played;
Wherein, the process of downloading the information of distributing rationally that described media file to be played is corresponding from described server comprises:
When downloading described media file to be played, to server, send configuration information and obtain request, the request of obtaining of described configuration information carries the sign of described media file to be played;
Receive the information of distributing rationally of described server feedback;
Wherein, described server obtains after request receiving described configuration information, from preset configuration storehouse, obtain the corresponding information of distributing rationally of sign of described media file to be played, and feed back to described electronic equipment, wherein, described preset configuration stores the information of distributing rationally in storehouse, and the corresponding relation of distributing the sign of information and media file rationally.
Preferably, the sign of described media file to be played comprises: the file identification of described media file to be played;
Or,
The file identification of described media file to be played and the device identification of electronic equipment.
In the embodiment of the present invention, obtain and at least comprise with the set of voice data of time period division and the sign of the media file to be played of sets of video frames; According to the sign of this media file to be played, obtain the information of distributing rationally corresponding to this media file to be played being pre-stored within server; This media file to be played is decoded, obtain voice data to be exported and frame of video to be shown; According to this, distribute information rationally, treat the voice data of output and frame of video to be shown and be optimized configuration; The to be exported voice data of the audio output unit output of calling electronic equipment through distributing rationally, and the display unit that calls electronic equipment shows the frame of video to be shown through distributing rationally.Visible, in this programme, what media file to be played was decoded exports after the voice data of exporting and frame of video to be shown are optimized configuration, thereby realize under the impact of the performance limitations of electronic equipment itself and/or the media player installed, improve the result of broadcast of media file, thereby improve user, experience.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The flow chart of a kind of media file playing method that Fig. 1 provides for the embodiment of the present invention;
Fig. 2 provides a kind of structural representation of playback of media files device for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Under impact for the performance limitations at electronic equipment itself and/or the media player installed, improve the result of broadcast of media file, thereby improve user, experience, the embodiment of the present invention provides a kind of media file playing method and device.
Wherein, the functional software of realizing media file playing method can be special media player; Also can be the browser of built-in media player, wherein, media player can be video player; Certainly, be not limited to this.
As shown in Figure 1, a kind of media file playing method, can comprise:
S101, obtains the sign of media file to be played, and wherein, this media file to be played at least comprises: set and the sets of video frames of the voice data of dividing with the time period;
Wherein, when user indicates online broadcasting media file or broadcasting to download to local media file, first obtain the sign of media file to be played, and then the sign of utilizing this media file to be played is carried out follow-up operation, wherein, this media file to be played at least comprises: set and the sets of video frames of the voice data of dividing with the time period, namely, media file to be played at least comprises: some section audio data and some two field pictures.
It should be noted that, the corresponding duration of each section audio data can be set according to practical application scene, such as: 1s, 2s, 5s etc.
S102, according to the sign of this media file to be played, obtains the information of distributing rationally corresponding to this media file to be played being pre-stored within server;
After determining media file to be played, can, according to the sign of this media file to be played, obtain the information of distributing rationally corresponding to this media file to be played being pre-stored within server, and then carry out follow-up processing.Wherein, the file layout of distributing information rationally can be document form, is certainly not limited to this.
Wherein, the pre-stored information of distributing rationally in the preset configuration storehouse of server, and the corresponding relation of distributing the sign of information and media file rationally, concrete, the sign of this media file to be played can comprise: the file identification of media file, or, the combination of the file identification of media file and the device identification of electronic equipment, this is all rational; And, be directed to online broadcasting media file and play the media file of having downloaded, obtain the mode of the information of distributing rationally that this media file to be played is corresponding by difference, concrete obtain manner will be introduced follow-up.
Further it should be noted that, the performance of the performance of electronic equipment own and institute's installation medium player all may impact the image quality of media file and audio, and distinct electronic apparatuses, different media player are different on the impact of the image quality of media file and audio.Therefore, based on above-mentioned Consideration, in order to guarantee the information of distributing rationally versatility in actual applications, can comprehensively analyze in advance the impact that various electronic and media player cause the image quality of media file and audio, thereby for media file, determine and can under plurality of application scenes, all can improve the information of distributing rationally of result of broadcast, now, the corresponding a set of information of distributing rationally of media file, and this information of distributing rationally has broad applicability.Certainly, for a media file, different electronic equipments is during as playing platform, can select the different information of distributing rationally, so that optimize, have more specific aim, now, the building process that is directed to the information of distributing rationally that a kind of electronic equipment of type is corresponding can comprise: analyze in advance the impact that the performance of electronic equipment of this kind of type and media player cause the image quality of media file and audio, and then the required information of distributing rationally when determining media file and playing on the electronic equipment of this kind of type.It will be understood by those skilled in the art that, on the image quality of media file and audio, also there is certain impact in space playing environment, therefore, also can be by space playing environment factor as an influence when structure is distributed information rationally, and further, also can for each media file setting, be directed to the information of distributing rationally of different space playing environments, this is all rational.
Wherein, the information of distributing rationally can comprise:
The information of distributing rationally that the information of distributing rationally that voice data is corresponding and frame of video are corresponding;
Wherein, the information of distributing rationally that voice data is corresponding can comprise: the corresponding relation of the configuration parameter of the configuration parameter of voice data sign, audio configuration item, voice data sign and audio configuration item; The information of distributing rationally corresponding to frame of video can comprise: the corresponding relation of the configuration parameter of the configuration parameter of frame of video sign, video frame configuration item, frame of video sign and video frame configuration item.
It should be noted that, voice data sign is often referred to the reproduction time that each section audio data is arranged in whole playback of media files process, such as: 10s-20s, 100s-120s etc., certainly be not limited to this, for example: can be each section audio numerical nomenclature, now, voice data is designated the title of each section audio data, is not limited to this.And the frame of video sign of frame of video is often referred to the sign of this two field picture; Certainly, also can be for being arranged in the reproduction time of whole video display process, such as: 10s-20s, 100s-120s etc., be not limited to this certainly.
Concrete, video frame configuration item can comprise: at least one in color saturation, brightness, contrast, acutance, is not limited to this certainly; And the type of the configuration parameter of video frame configuration item is determined by video configuration item.
Concrete, audio configuration item can comprise: at least one during frequency response equilibrium, 3D sound field rebuilding, dynamic gain, high-frequency harmonic recover, is not limited to this certainly; And the type of the configuration parameter of audio configuration item is determined by audio configuration item.For example: the configuration parameter of frequency response equilibrium can be percent value, the configuration parameter of 3D sound field rebuilding can be "Yes" or "No", the configuration parameter of no dynamic gain can be percent value, and the configuration parameter that high-frequency harmonic recovers can be "Yes" or "No", is certainly not limited to this.
For the sake of clarity, below frequency response equilibrium, 3D sound field rebuilding, dynamic gain, high-frequency harmonic are recovered simply to introduce.
(1) frequency response is balanced:
Media player or electronic equipment have frequency response balancer function conventionally; So-called frequency response equalizer is a kind of software module or hardware device that can regulate respectively various frequency content signal of telecommunication amplification quantity, by the adjusting of the signal of telecommunication of various different frequencies being compensated to the defect of loud speaker and sound field, compensate and modify various sound sources and other special role; And frequency response equalizer can regulate respectively high frequency, intermediate frequency, the low frequency three band frequency signals of telecommunication.
(2) 3D sound field rebuilding:
Because loudspeaker distance is less, environment space is less and audio compression, can make the spatial impression of audio frequency reduce; And 3D sound field rebuilding is used the method for Digital Signal Processing to rebuild sound field, recover original spatial impression.
(3) dynamic gain:
Some characteristic scene sounds are carried out to dynamic gain and strengthen processing, can show crucial audio frequency especially.
(4) high-frequency harmonic recovers:
Due to audio compression, high-frequency harmonic is lost, the high-frequency harmonic that for example violin produces; And high-frequency harmonic recovers to utilize Digital Signal Processing, high-frequency harmonic signal is replied, make audio reduction.
Be understandable that, different media files is corresponding distribute the configuration parameter of configuration item in information and configuration item rationally can be different; And same media file be directed to the configuration parameter of distributing configuration item in information and configuration item rationally of the electronic equipment of different type of machines can be different.
S103, decodes to this media file to be played, obtains voice data to be exported and frame of video to be shown;
S104, according to distributing information rationally, treats the voice data of output and frame of video to be shown and is optimized configuration;
Wherein, this media file to be played is being decoded, obtain after the voice data of exporting and frame of video to be shown, can be according to the information of distributing rationally, the voice data for the treatment of output is optimized configuration, to improve the audio frequency result of broadcast of media file, and, frame of video to be shown is optimized to configuration process, to improve the image quality effect of media file.Be understandable that, can to media file to be played, decode by existing techniques in realizing, obtain the process of voice data to be exported and frame of video to be shown.
Concrete, according to distributing information rationally, the voice data for the treatment of output is optimized configuration and frame of video to be shown is optimized configuration, can comprise:
Voice data to be exported corresponding to voice data sign regulated according to the configuration parameter of corresponding audio configuration item;
Frame of video to be shown corresponding to frame of video sign regulated according to the configuration parameter of corresponding video frame configuration item.
It should be noted that, distribute rationally and in information, can record all voice data signs of media file to be played and all frame of video signs, wherein, for the audio frequency without distributing rationally, the configuration parameter of the audio configuration item that it is corresponding can be put sky or be set to other default parameterss, and for the frame of video without configuration, the configuration parameter of its corresponding video frame configuration item can be put sky or be set to other default parameterss.Certainly, the information of distributing rationally also can only record the voice data sign of some the section audio data that need to distribute rationally and the frame of video sign of some frame of video, and this is all rational.For the second situation, the voice data that the foundation information of distributing rationally is treated output is optimized while configuring, obtaining after the voice data of exporting, can identify and judge whether the voice data to be exported obtaining is the voice data that need to distribute rationally by voice data, when judging while being, according to distributing information rationally, the voice data for the treatment of output is optimized configuration; Same, while video data to be shown being optimized to configuration according to the information of distributing rationally, after obtaining frame of video to be shown, can identify and judge whether the frame of video to be shown obtaining is the frame of video that need to distribute rationally by frame of video, when judging while being, according to distributing information rationally, frame of video to be shown is optimized to configuration.
S105, the to be exported voice data of the audio output unit output of calling electronic equipment through distributing rationally, and the display unit that calls electronic equipment shows the frame of video to be shown through distributing rationally.
Wherein, at the voice data for the treatment of output, be optimized after configuration, can call the audio output unit of electronic equipment and export the voice data to be exported through distributing rationally; And, in the frame of video to be shown, being optimized after configuration, the display unit that can call electronic equipment shows the frame of video to be shown through distributing rationally.It should be noted that, if voice data to be exported without distributing rationally, calls the audio output unit output voice data to be exported that process is not distributed rationally of electronic equipment; If without distributing rationally, calling the display unit of electronic equipment, frame of video to be shown shows the not frame of video to be shown through distributing rationally.And, in the audio output unit output of calling electronic equipment, through the voice data to be exported of distributing rationally and the display unit that calls electronic equipment, show in the process of the frame of video to be shown through distributing rationally, the demonstration of the output of voice data to be exported and video data to be shown need to guarantee that the corresponding frame of video of voice data and institute is mutually corresponding.Wherein, in actual applications, this audio output unit can be loud speaker, and this display unit can be display screen, is certainly not limited to this.
Further it should be noted that, the execution sequence of step S102 and step S103 is not limited to the order described in the present embodiment.Wherein, during for online broadcasting media file, can be when starting media file to be played to decode, from server, obtain the information of distributing rationally that this media file to be played is corresponding, also can before media file to be played is decoded, from server, obtain the information of distributing rationally that this media file to be played is corresponding; And when playing the media file downloaded, can when downloads of media file, download and store and distribute accordingly information rationally, and then directly obtain the stored information of distributing rationally when broadcasting media file.
It is emphasized that the corresponding information of distributing rationally of media file can, for whole media file, can be also that this is all rational for the fragment in media file.
In the embodiment of the present invention, obtain and at least comprise with the set of voice data of time period division and the sign of the media file to be played of sets of video frames; According to the sign of this media file to be played, obtain the information of distributing rationally corresponding to this media file to be played being pre-stored within server; This media file to be played is decoded, obtain voice data to be exported and frame of video to be shown; According to this, distribute information rationally, treat the voice data of output and frame of video to be shown and be optimized configuration; The to be exported voice data of the audio output unit output of calling electronic equipment through distributing rationally, and the display unit that calls electronic equipment shows the frame of video to be shown through distributing rationally.Visible, in this programme, what media file to be played was decoded exports after the voice data of exporting and frame of video to be shown are optimized configuration, thereby realize under the impact of the performance limitations of electronic equipment itself and/or the media player installed, improve the result of broadcast of media file, thereby improve user, experience.
Wherein, described in obtain the information of distributing rationally that this media file to be played is corresponding, can comprise:
To server, send configuration information and obtain request, the request of obtaining of this configuration information carries the sign of this media file to be played;
Receive the information of distributing rationally of this server feedback;
Wherein, this server obtains after request receiving this configuration information, from preset configuration storehouse, obtain the corresponding information of distributing rationally of sign of this media file to be played, and feed back to this electronic equipment, wherein, in this preset configuration storehouse, store the information of distributing rationally, and the corresponding relation of distributing the sign of information and media file rationally.
Concrete, the sign of this media file to be played can comprise: the file identification of this media file to be played; Or, the file identification of this media file to be played and the device identification of electronic equipment.
Wherein, obtain the information of distributing rationally that this media file to be played is corresponding, can comprise:
Obtain the information of distributing rationally corresponding to this media file to be played of downloading in advance according to the sign of this media file to be played from server;
Wherein, the process of downloading the information of distributing rationally that this media file to be played is corresponding from this server can comprise:
When downloading this media file to be played, to server, send configuration information and obtain request, the request of obtaining of this configuration information carries the sign of this media file to be played;
Receive the information of distributing rationally of this server feedback;
Wherein, this server obtains after request receiving described configuration information, from preset configuration storehouse, obtain the corresponding information of distributing rationally of sign of this media file to be played, and feed back to this electronic equipment, wherein, in this preset configuration storehouse, store the information of distributing rationally, and the corresponding relation of distributing the sign of information and media file rationally.
Concrete, the sign of this media file to be played can comprise: the file identification of this media file to be played; Or, the file identification of this media file to be played and the device identification of electronic equipment.
Corresponding to said method embodiment, the embodiment of the present invention also provides a kind of playback of media files device, is applicable in electronic equipment, and as shown in Figure 2, described device can comprise:
Identifier acquisition module 210, for obtaining the sign of media file to be played, wherein, described media file to be played at least comprises: set and the sets of video frames of the voice data of dividing with the time period;
Distribute acquisition of information module 220 rationally, for the sign according to described media file to be played, obtain the information of distributing rationally corresponding to media file described to be played being pre-stored within server;
Decoder module 230, for described media file to be played is decoded, obtains voice data to be exported and frame of video to be shown;
Distribute module 240 rationally, for described in foundation, distribute information rationally, treat the voice data of output and frame of video to be shown and be optimized configuration;
Playing module 250, the voice data to be exported for the audio output unit output of calling electronic equipment through distributing rationally, and the display unit that calls electronic equipment shows the frame of video to be shown through distributing rationally.
In the embodiment of the present invention, obtain and at least comprise with the set of voice data of time period division and the sign of the media file to be played of sets of video frames; According to the sign of this media file to be played, obtain the information of distributing rationally corresponding to this media file to be played being pre-stored within server; This media file to be played is decoded, obtain voice data to be exported and frame of video to be shown; According to this, distribute information rationally, treat the voice data of output and frame of video to be shown and be optimized configuration; The to be exported voice data of the audio output unit output of calling electronic equipment through distributing rationally, and the display unit that calls electronic equipment shows the frame of video to be shown through distributing rationally.Visible, in this programme, what media file to be played was decoded exports after the voice data of exporting and frame of video to be shown are optimized configuration, thereby realize under the impact of the performance limitations of electronic equipment itself and/or the media player installed, improve the result of broadcast of media file, thereby improve user, experience.
Wherein, described in, the information of distributing rationally can comprise:
The information of distributing rationally that the information of distributing rationally that voice data is corresponding and frame of video are corresponding;
Wherein, the information of distributing rationally that described voice data is corresponding comprises: the corresponding relation of the configuration parameter of the configuration parameter of voice data sign, audio configuration item, voice data sign and audio configuration item;
The information of distributing rationally corresponding to described frame of video comprises: the corresponding relation of the configuration parameter of the configuration parameter of frame of video sign, video frame configuration item, frame of video sign and video frame configuration item.
Wherein, described in, distributing module 240 rationally can comprise:
Audio optimization unit, for regulating according to the configuration parameter of corresponding audio configuration item voice data to be exported corresponding to described voice data sign;
Video optimization unit, for regulating according to the configuration parameter of corresponding video frame configuration item frame of video to be shown corresponding to described frame of video sign.
Wherein, described audio configuration item can comprise: at least one during frequency response equilibrium, 3D sound field rebuilding, dynamic gain, high-frequency harmonic recover;
Described video frame configuration item can comprise: at least one in color saturation, brightness, contrast, acutance.
Wherein, described in distribute acquisition of information module 220 rationally, can comprise:
Request transmitting unit, obtains request for sending configuration information to server, and the request of obtaining of described configuration information carries the sign of described media file to be played;
Distribute information receiving unit rationally, for receiving the information of distributing rationally of described server feedback;
Wherein, described server obtains after request receiving described configuration information, from preset configuration storehouse, obtain the corresponding information of distributing rationally of sign of described media file to be played, and feed back to described electronic equipment, wherein, described preset configuration stores the information of distributing rationally in storehouse, and the corresponding relation of distributing the sign of information and media file rationally.
Wherein, described in distribute acquisition of information module 220 rationally, can comprise:
Distribute information acquisition unit rationally, for obtaining the information of distributing rationally corresponding to media file described to be played of downloading from server in advance according to the sign of described media file to be played;
Wherein, the process of downloading the information of distributing rationally that described media file to be played is corresponding from described server comprises:
When downloading described media file to be played, to server, send configuration information and obtain request, the request of obtaining of described configuration information carries the sign of described media file to be played;
Receive the information of distributing rationally of described server feedback;
Wherein, described server obtains after request receiving described configuration information, from preset configuration storehouse, obtain the corresponding information of distributing rationally of sign of described media file to be played, and feed back to described electronic equipment, wherein, described preset configuration stores the information of distributing rationally in storehouse, and the corresponding relation of distributing the sign of information and media file rationally.
Wherein, the sign of described media file to be played can comprise:
The file identification of described media file to be played; Or, the file identification of described media file to be played and the device identification of electronic equipment.
For system embodiment, because it is substantially similar in appearance to embodiment of the method, so description is fairly simple, relevant part is referring to the part explanation of embodiment of the method.
It should be noted that, in this article, relational terms such as the first and second grades is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply and between these entities or operation, have the relation of any this reality or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby the process, method, article or the equipment that make to comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or be also included as the intrinsic key element of this process, method, article or equipment.The in the situation that of more restrictions not, the key element being limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
One of ordinary skill in the art will appreciate that all or part of step realizing in said method execution mode is to come the hardware that instruction is relevant to complete by program, described program can be stored in computer read/write memory medium, here alleged storage medium, as: ROM/RAM, magnetic disc, CD etc.
The foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.All any modifications of doing within the spirit and principles in the present invention, be equal to replacement, improvement etc., be all included in protection scope of the present invention.

Claims (14)

1. a media file playing method, is characterized in that, is applicable to electronic equipment, and described method comprises:
Obtain the sign of media file to be played, wherein, described media file to be played at least comprises: set and the sets of video frames of the voice data of dividing with the time period;
According to the sign of described media file to be played, obtain the information of distributing rationally corresponding to media file described to be played being pre-stored within server;
Described media file to be played is decoded, obtain voice data to be exported and frame of video to be shown;
Described in foundation, distribute information rationally, treat the voice data of output and frame of video to be shown and be optimized configuration;
The to be exported voice data of the audio output unit output of calling electronic equipment through distributing rationally, and the display unit that calls described electronic equipment shows the frame of video to be shown through distributing rationally.
2. method according to claim 1, is characterized in that, described in the information of distributing rationally comprise:
The information of distributing rationally that the information of distributing rationally that voice data is corresponding and frame of video are corresponding;
Wherein, the information of distributing rationally that described voice data is corresponding comprises: the corresponding relation of the configuration parameter of the configuration parameter of voice data sign, audio configuration item, voice data sign and audio configuration item;
The information of distributing rationally corresponding to described frame of video comprises: the corresponding relation of the configuration parameter of the configuration parameter of frame of video sign, video frame configuration item, frame of video sign and video frame configuration item.
3. method according to claim 2, is characterized in that, according to described in distribute information rationally, the voice data for the treatment of output is optimized configuration and frame of video to be shown is optimized configuration, comprising:
Voice data to be exported corresponding to described voice data sign regulated according to the configuration parameter of corresponding audio configuration item;
Frame of video to be shown corresponding to described frame of video sign regulated according to the configuration parameter of corresponding video frame configuration item.
4. method according to claim 2, is characterized in that, described audio configuration item comprises: at least one during frequency response equilibrium, 3D sound field rebuilding, dynamic gain, high-frequency harmonic recover;
Described video frame configuration item comprises: at least one in color saturation, brightness, contrast, acutance.
5. method according to claim 1, is characterized in that, the sign of the described media file to be played of described foundation is obtained the information of distributing rationally corresponding to media file described to be played being pre-stored within server, comprising:
To server, send configuration information and obtain request, the request of obtaining of described configuration information carries the sign of described media file to be played;
Receive the information of distributing rationally of described server feedback;
Wherein, described server obtains after request receiving described configuration information, from preset configuration storehouse, obtain the corresponding information of distributing rationally of sign of described media file to be played, and feed back to described electronic equipment, wherein, described preset configuration stores the information of distributing rationally in storehouse, and the corresponding relation of distributing the sign of information and media file rationally.
6. method according to claim 1, is characterized in that, the sign of the described media file to be played of described foundation is obtained the information of distributing rationally corresponding to media file described to be played being pre-stored within server, comprising:
Obtain the information of distributing rationally corresponding to media file described to be played of downloading in advance according to the sign of described media file to be played from server;
Wherein, the process of downloading the information of distributing rationally that described media file to be played is corresponding from described server comprises:
When downloading described media file to be played, to server, send configuration information and obtain request, the request of obtaining of described configuration information carries the sign of described media file to be played;
Receive the information of distributing rationally of described server feedback;
Wherein, described server obtains after request receiving described configuration information, from preset configuration storehouse, obtain the corresponding information of distributing rationally of sign of described media file to be played, and feed back to described electronic equipment, wherein, described preset configuration stores the information of distributing rationally in storehouse, and the corresponding relation of distributing the sign of information and media file rationally.
7. according to the method described in claim 5 or 6, it is characterized in that, the sign of described media file to be played comprises:
The file identification of described media file to be played;
Or,
The file identification of described media file to be played and the device identification of electronic equipment.
8. a playback of media files device, is characterized in that, is applicable in electronic equipment, and described device comprises:
Identifier acquisition module, for obtaining the sign of media file to be played, wherein, described media file to be played at least comprises: set and the sets of video frames of the voice data of dividing with the time period;
Distribute acquisition of information module rationally, for the sign according to described media file to be played, obtain the information of distributing rationally corresponding to media file described to be played being pre-stored within server;
Decoder module, for described media file to be played is decoded, obtains voice data to be exported and frame of video to be shown;
Distribute module rationally, for described in foundation, distribute information rationally, treat the voice data of output and frame of video to be shown and be optimized configuration;
Playing module, the voice data to be exported for the audio output unit output of calling electronic equipment through distributing rationally, and the display unit that calls described electronic equipment shows the frame of video to be shown through distributing rationally.
9. device according to claim 8, is characterized in that, described in the information of distributing rationally comprise:
The information of distributing rationally that the information of distributing rationally that voice data is corresponding and frame of video are corresponding;
Wherein, the information of distributing rationally that described voice data is corresponding comprises: the corresponding relation of the configuration parameter of the configuration parameter of voice data sign, audio configuration item, voice data sign and audio configuration item;
The information of distributing rationally corresponding to described frame of video comprises: the corresponding relation of the configuration parameter of the configuration parameter of frame of video sign, video frame configuration item, frame of video sign and video frame configuration item.
10. device according to claim 9, is characterized in that, described in distribute module rationally and comprise:
Audio optimization unit, for regulating according to the configuration parameter of corresponding audio configuration item voice data to be exported corresponding to described voice data sign;
Video optimization unit, for regulating according to the configuration parameter of corresponding video frame configuration item frame of video to be shown corresponding to described frame of video sign.
11. devices according to claim 9, is characterized in that, described audio configuration item comprises: at least one during frequency response equilibrium, 3D sound field rebuilding, dynamic gain, high-frequency harmonic recover;
Described video frame configuration item comprises: at least one in color saturation, brightness, contrast, acutance.
12. devices according to claim 8, is characterized in that, described in distribute acquisition of information module rationally, comprising:
Request transmitting unit, obtains request for sending configuration information to server, and the request of obtaining of described configuration information carries the sign of described media file to be played;
Distribute information receiving unit rationally, for receiving the information of distributing rationally of described server feedback;
Wherein, described server obtains after request receiving described configuration information, from preset configuration storehouse, obtain the corresponding information of distributing rationally of sign of described media file to be played, and feed back to described electronic equipment, wherein, described preset configuration stores the information of distributing rationally in storehouse, and the corresponding relation of distributing the sign of information and media file rationally.
13. devices according to claim 8, is characterized in that, described in distribute acquisition of information module rationally, comprising:
Distribute information acquisition unit rationally, for obtaining the information of distributing rationally corresponding to media file described to be played of downloading from server in advance according to the sign of described media file to be played;
Wherein, the process of downloading the information of distributing rationally that described media file to be played is corresponding from described server comprises:
When downloading described media file to be played, to server, send configuration information and obtain request, the request of obtaining of described configuration information carries the sign of described media file to be played;
Receive the information of distributing rationally of described server feedback;
Wherein, described server obtains after request receiving described configuration information, from preset configuration storehouse, obtain the corresponding information of distributing rationally of sign of described media file to be played, and feed back to described electronic equipment, wherein, described preset configuration stores the information of distributing rationally in storehouse, and the corresponding relation of distributing the sign of information and media file rationally.
14. according to the device described in claim 12 or 13, it is characterized in that, the sign of described media file to be played comprises: the file identification of described media file to be played;
Or,
The file identification of described media file to be played and the device identification of electronic equipment.
CN201410016421.3A 2014-01-14 2014-01-14 media file playing method and device Active CN103702180B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410016421.3A CN103702180B (en) 2014-01-14 2014-01-14 media file playing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410016421.3A CN103702180B (en) 2014-01-14 2014-01-14 media file playing method and device

Publications (2)

Publication Number Publication Date
CN103702180A true CN103702180A (en) 2014-04-02
CN103702180B CN103702180B (en) 2017-06-20

Family

ID=50363562

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410016421.3A Active CN103702180B (en) 2014-01-14 2014-01-14 media file playing method and device

Country Status (1)

Country Link
CN (1) CN103702180B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104602045A (en) * 2015-02-12 2015-05-06 三星电子(中国)研发中心 Automatic sound configuration method, system and device
CN104836854A (en) * 2015-04-22 2015-08-12 中国建设银行股份有限公司 Business information display method and device
CN105828149A (en) * 2016-04-28 2016-08-03 合智能科技(深圳)有限公司 Method and apparatus for optimizing playing
CN106610982A (en) * 2015-10-22 2017-05-03 中兴通讯股份有限公司 Media file generation method and apparatus
CN107682713A (en) * 2017-04-11 2018-02-09 腾讯科技(北京)有限公司 media file playing method and device
CN110928518A (en) * 2019-11-26 2020-03-27 北京达佳互联信息技术有限公司 Audio data processing method and device, electronic equipment and storage medium
CN111885414A (en) * 2020-07-24 2020-11-03 腾讯科技(深圳)有限公司 Data processing method, device and equipment and readable storage medium
CN112019923A (en) * 2020-09-02 2020-12-01 深圳爱卓软科技有限公司 Video cutting processing method
CN113301427A (en) * 2020-11-30 2021-08-24 阿里巴巴集团控股有限公司 Data processing method and device, electronic equipment and storage medium

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1324181A (en) * 2000-05-16 2001-11-28 索尼公司 Information processing device
CN101577110A (en) * 2009-05-31 2009-11-11 腾讯科技(深圳)有限公司 Method for playing videos and video player
CN101742178A (en) * 2009-12-14 2010-06-16 广东威创视讯科技股份有限公司 Audio-video terminal playing effect optimization method and device, and audio-video playing system
CN101924917A (en) * 2010-09-16 2010-12-22 华中科技大学 Video on demand system and method based on mobile user terminal
CN102065339A (en) * 2010-11-09 2011-05-18 中国电信股份有限公司 Method and system for playing audio and video media stream
CN102196233A (en) * 2010-03-18 2011-09-21 腾讯科技(深圳)有限公司 Method and device for improving video image quality
CN102543096A (en) * 2011-12-26 2012-07-04 上海聚力传媒技术有限公司 Method and device for suppressing scene noise during media file playing
CN102567468A (en) * 2011-12-06 2012-07-11 上海聚力传媒技术有限公司 Method for adjusting player volume of media files and equipment utilizing same
CN102855909A (en) * 2012-08-29 2013-01-02 四三九九网络股份有限公司 Batch dynamic loading method for video titles
CN102946560A (en) * 2012-11-30 2013-02-27 四川长虹电器股份有限公司 System and method for automatically adjusting audio and video parameters of televisions
CN103096035A (en) * 2012-12-27 2013-05-08 广东响石数码科技有限公司 Monitor with video optimization function
EP2597840A1 (en) * 2011-11-28 2013-05-29 Vodafone Holding GmbH Method, network unit and system for optimizing rendering of media content
US20130185353A1 (en) * 2010-07-14 2013-07-18 Alcatel Lucent Method, server and terminal for generating a composite view from multiple content items
WO2013106366A1 (en) * 2012-01-09 2013-07-18 Actiwave Ab System and method for audio enhancement of a consumer electronics device

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1324181A (en) * 2000-05-16 2001-11-28 索尼公司 Information processing device
CN101577110A (en) * 2009-05-31 2009-11-11 腾讯科技(深圳)有限公司 Method for playing videos and video player
CN101742178A (en) * 2009-12-14 2010-06-16 广东威创视讯科技股份有限公司 Audio-video terminal playing effect optimization method and device, and audio-video playing system
CN102196233A (en) * 2010-03-18 2011-09-21 腾讯科技(深圳)有限公司 Method and device for improving video image quality
US20130185353A1 (en) * 2010-07-14 2013-07-18 Alcatel Lucent Method, server and terminal for generating a composite view from multiple content items
CN101924917A (en) * 2010-09-16 2010-12-22 华中科技大学 Video on demand system and method based on mobile user terminal
CN102065339A (en) * 2010-11-09 2011-05-18 中国电信股份有限公司 Method and system for playing audio and video media stream
EP2597840A1 (en) * 2011-11-28 2013-05-29 Vodafone Holding GmbH Method, network unit and system for optimizing rendering of media content
CN102567468A (en) * 2011-12-06 2012-07-11 上海聚力传媒技术有限公司 Method for adjusting player volume of media files and equipment utilizing same
CN102543096A (en) * 2011-12-26 2012-07-04 上海聚力传媒技术有限公司 Method and device for suppressing scene noise during media file playing
WO2013106366A1 (en) * 2012-01-09 2013-07-18 Actiwave Ab System and method for audio enhancement of a consumer electronics device
CN102855909A (en) * 2012-08-29 2013-01-02 四三九九网络股份有限公司 Batch dynamic loading method for video titles
CN102946560A (en) * 2012-11-30 2013-02-27 四川长虹电器股份有限公司 System and method for automatically adjusting audio and video parameters of televisions
CN103096035A (en) * 2012-12-27 2013-05-08 广东响石数码科技有限公司 Monitor with video optimization function

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104602045A (en) * 2015-02-12 2015-05-06 三星电子(中国)研发中心 Automatic sound configuration method, system and device
CN104602045B (en) * 2015-02-12 2017-11-10 三星电子(中国)研发中心 A kind of sound method of automatic configuration, system and device
CN104836854A (en) * 2015-04-22 2015-08-12 中国建设银行股份有限公司 Business information display method and device
CN106610982A (en) * 2015-10-22 2017-05-03 中兴通讯股份有限公司 Media file generation method and apparatus
CN105828149A (en) * 2016-04-28 2016-08-03 合智能科技(深圳)有限公司 Method and apparatus for optimizing playing
CN107682713A (en) * 2017-04-11 2018-02-09 腾讯科技(北京)有限公司 media file playing method and device
CN107682713B (en) * 2017-04-11 2020-11-03 腾讯科技(北京)有限公司 Media file playing method and device
CN110928518A (en) * 2019-11-26 2020-03-27 北京达佳互联信息技术有限公司 Audio data processing method and device, electronic equipment and storage medium
CN111885414A (en) * 2020-07-24 2020-11-03 腾讯科技(深圳)有限公司 Data processing method, device and equipment and readable storage medium
CN112019923A (en) * 2020-09-02 2020-12-01 深圳爱卓软科技有限公司 Video cutting processing method
CN113301427A (en) * 2020-11-30 2021-08-24 阿里巴巴集团控股有限公司 Data processing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN103702180B (en) 2017-06-20

Similar Documents

Publication Publication Date Title
CN103702180A (en) Media file playing method and device
US11546071B2 (en) Modifying playback of content using pre-processed profile information
US8914137B2 (en) Upgradeable engine framework for audio and video
CN102447839B (en) A kind of video creating method based on Quartz Composer and device
CN102364905B (en) Data reproducing method, device and mobile terminal
CN104780378A (en) Method, device and player for decoding video
CN103702182A (en) Video playing method and device
CN103730148A (en) Audio frequency playing method and audio frequency playing device
CN104038774A (en) Ring tone file generating method and device
CN105578224A (en) Multimedia data acquisition method, device, smart television and set-top box
US10027994B2 (en) Interactive audio metadata handling
CN104038772A (en) Ring tone file generation method and device
CN104301762B (en) Advertisement update method, device, system and advertising terminal device
JP6039108B2 (en) Electronic device, control method and program
JP6063300B2 (en) Information display system, method, apparatus, and program
KR101393351B1 (en) Method of providing automatic setting of audio configuration of receiver's televisions optimized for multimedia contents to play, and computer-readable recording medium for the same
CN111048063A (en) Audio synthesis method and device
CN104038773A (en) Ring tone file generation method and device
CN104935972B (en) One kind broadcasting single edit methods and device
JP5896221B2 (en) Information processing method, information processing apparatus, and information processing system
US11886498B2 (en) Playback of audio content along with associated non-static media content
CN109672962B (en) Information processing method and electronic equipment
CN104079948A (en) Ring file generating method and device
KR20160020158A (en) Method and electronic device for providing media contents-related information
CN112017261A (en) Sticker generation method and device, electronic equipment and computer readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant