CN103702180B - media file playing method and device - Google Patents
media file playing method and device Download PDFInfo
- Publication number
- CN103702180B CN103702180B CN201410016421.3A CN201410016421A CN103702180B CN 103702180 B CN103702180 B CN 103702180B CN 201410016421 A CN201410016421 A CN 201410016421A CN 103702180 B CN103702180 B CN 103702180B
- Authority
- CN
- China
- Prior art keywords
- rationally
- information
- media file
- configuration
- played
- 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
Links
Landscapes
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The embodiment of the invention discloses a kind of media file playing method and device.The method includes:The mark of media file to be played is obtained, media file to be played at least includes:Set, the sets of video frames of the voice data divided with the time period;According to the mark of media file to be played, media file to be played that acquisition is pre-stored within server is corresponding to distribute information rationally;Media file to be played is decoded, voice data and frame of video to be shown to be output is obtained;According to information is distributed rationally, configuration is optimized to voice data and frame of video to be shown to be output;Call the audio output unit of electronic equipment to export the voice data to be output for passing through and distributing rationally, and call the display unit of electronic equipment to show the frame of video to be shown passed through and distribute rationally.It can be seen that, the result of broadcast of media file can be improved by using this programme, so as to improve Consumer's Experience.
Description
Technical field
The present invention relates to media file process field, more particularly to a kind of media file playing method and device.
Background technology
With the development that science and technology is at full speed, various electronic equipments are constantly abundant and facilitate popular life.Due to profit
There is the advantages such as convenient and swift, save resources with electronic equipment processing information so that electronic equipment turns into life or the work of people
An indispensable part in work.Wherein, the electronic equipment such as internet television, smart mobile phone, notebook computer, panel computer has been
Through being widely applied in daily life.
Wherein, user can be with playing network media file and local matchmaker by the media player being installed in electronic equipment
Body file.
But, by electronic equipment in itself and/or the media player installed performance limitation, the effect that audio is played
The original effect of audio can not be completely reproduced up;Also, the effect of the image for being played out can not be completely reproduced up video content
Original effect.For example:Audio decoder in media player causes different degrees of declining to the voice signal of different frequency
Subtract, and the voice signal also to different frequency such as amplifirer and loudspeaker in electronic equipment causes different degrees of decay, this
A little tonequality for all causing audio do not reach the effect of script.And for example:Video Decoder in media player can be to showing
Image produce influence, and the image stretch of electronic equipment, screen color temp, screen intensity, screen reflecting time etc. also to display
Image out produces influence, and these images for all causing to show do not reach original image quality.
It can be seen that, in itself and/or under the influence of the performance limitation of the media player installed, how to be improved in electronic equipment
The result of broadcast of media file, so that it is a problem demanding prompt solution to improve Consumer's Experience.
The content of the invention
Based on above mentioned problem, the embodiment of the invention discloses a kind of media file playing method and device, media text is improved
The result of broadcast of part, so as to improve Consumer's Experience.Technical scheme is as follows:
In a first aspect, the embodiment of the invention provides a kind of media file playing method, it is adaptable to electronic equipment, the side
Method includes:
The mark of media file to be played is obtained, wherein, the media file to be played at least includes:Divided with the time period
Voice data set and sets of video frames;
According to the mark of the media file to be played, acquisition is pre-stored within the media described to be played text in server
Part is corresponding to distribute information rationally;
The media file to be played is decoded, voice data and frame of video to be shown to be output is obtained;
Information is distributed rationally described in, configuration is optimized to voice data and frame of video to be shown to be output;
Call the audio output unit of electronic equipment to export the voice data to be output for passing through and distributing rationally, and call institute
The frame of video to be shown distributed rationally is passed through in the display unit display for stating electronic equipment.
Preferably, the information of distributing rationally includes:
Voice data is corresponding to distribute information rationally and frame of video is corresponding distributes information rationally;
Wherein, the corresponding information of distributing rationally of the voice data includes:Voice data mark, the configuration of audio configuration
The corresponding relation of the configuration parameter of parameter, voice data mark and audio configuration;
The corresponding information of distributing rationally of the frame of video includes:Video frame identification, the configuration parameter of video frame configuration, regard
The corresponding relation of the configuration parameter of frequency frame identification and video frame configuration.
Preferably, distribute information rationally described in, voice data to be output is optimized and is configured and to be shown
Frame of video optimizes configuration, including:
Corresponding voice data to be output is identified to the voice data to join according to the configuration of corresponding audio configuration
Number is adjusted;
Frame of video to be shown corresponding to the video frame identification according to corresponding video frame configuration configuration parameter
It is adjusted.
Preferably, the audio configuration includes:During frequency response equilibrium, 3D sound field rebuildings, dynamic gain, high-frequency harmonic recover
At least one;
The video frame configuration includes:At least one in color saturation, brightness, contrast, acutance.
Preferably, the mark according to the media file to be played, acquisition is pre-stored within described in server
Media file to be played is corresponding to distribute information rationally, including:
To server send configuration information acquisition request, the configuration information obtains request and carries the media to be played
The mark of file;
Receive the server feedback distributes information rationally;
Wherein, the server obtains described after the configuration information acquisition request is received from preset configuration storehouse
Information is distributed rationally corresponding to the mark of media file to be played, and feed back to the electronic equipment, wherein, the pre- establishing
Putting the information of distributing rationally of be stored with storehouse, and the corresponding relation for distributing information and the mark of media file rationally.
Preferably, the mark according to the media file to be played, acquisition is pre-stored within described in server
Media file to be played is corresponding to distribute information rationally, including:
Obtain the media described to be played text downloaded from server in advance according to the mark of the media file to be played
Part is corresponding to distribute information rationally;
Wherein, the corresponding process bag for distributing information rationally of the media file to be played is downloaded from the server
Include:
When the media file to be played is downloaded, to server send configuration information acquisition request, the configuration information
Obtain the mark that request carries the media file to be played;
Receive the server feedback distributes information rationally;
Wherein, the server obtains described after the configuration information acquisition request is received from preset configuration storehouse
Information is distributed rationally corresponding to the mark of media file to be played, and feed back to the electronic equipment, wherein, the pre- establishing
Putting the information of distributing rationally of be stored with storehouse, and the corresponding relation for distributing information and the mark of media file rationally.
Preferably, the mark of the media file to be played includes:
The file identification of the media file to be played;
Or,
The device identification of the file identification and electronic equipment of the media file to be played.
Second aspect, the embodiment of the invention provides a kind of playback of media files device, it is adaptable to described in electronic equipment
Device includes:
Identifier acquisition module, the mark for obtaining media file to be played, wherein, the media file to be played is at least
Including:The set of the voice data divided with the time period and sets of video frames;
Distribute data obtaining module rationally, for the mark according to the media file to be played, acquisition is pre-stored within
Media file described to be played in server is corresponding to distribute information rationally;
Decoder module, for being decoded to the media file to be played, obtains voice data to be output and waits to show
The frame of video shown;
Distribute module rationally, for distributing information rationally described in, to voice data to be output and to be shown regard
Frequency frame optimizes configuration;
Playing module, the audio output unit for calling electronic equipment exports the audio to be output by distributing rationally
Data, and call the display unit of the electronic equipment to show the frame of video to be shown passed through and distribute rationally.
Preferably, the information of distributing rationally includes:
Voice data is corresponding to distribute information rationally and frame of video is corresponding distributes information rationally;
Wherein, the corresponding information of distributing rationally of the voice data includes:Voice data mark, the configuration of audio configuration
The corresponding relation of the configuration parameter of parameter, voice data mark and audio configuration;
The corresponding information of distributing rationally of the frame of video includes:Video frame identification, the configuration parameter of video frame configuration, regard
The corresponding relation of the configuration parameter of frequency frame identification and video frame configuration.
Preferably, the module of distributing rationally includes:
Audio optimization unit, for identifying corresponding voice data to be output according to corresponding sound to the voice data
The configuration parameter of frequency configuration item is adjusted;
Video optimization unit, for the corresponding frame of video to be shown of the video frame identification according to corresponding frame of video
The configuration parameter of configuration item is adjusted.
Preferably, the audio configuration includes:During frequency response equilibrium, 3D sound field rebuildings, dynamic gain, high-frequency harmonic recover
At least one;
The video frame configuration includes:At least one in color saturation, brightness, contrast, acutance.
Preferably, it is described to distribute data obtaining module rationally, including:
Request transmitting unit, for server send configuration information acquisition request, the configuration information to obtain request and takes
Mark with the media file to be played;
Distribute information receiving unit rationally, information is distributed rationally for receive the server feedback;
Wherein, the server obtains described after the configuration information acquisition request is received from preset configuration storehouse
Information is distributed rationally corresponding to the mark of media file to be played, and feed back to the electronic equipment, wherein, the pre- establishing
Putting the information of distributing rationally of be stored with storehouse, and the corresponding relation for distributing information and the mark of media file rationally.
Preferably, it is described to distribute data obtaining module rationally, including:
Information acquisition unit is distributed rationally, for obtaining the mark according to the media file to be played in advance from server
The media file described to be played of middle download is corresponding to distribute information rationally;
Wherein, the corresponding process bag for distributing information rationally of the media file to be played is downloaded from the server
Include:
When the media file to be played is downloaded, to server send configuration information acquisition request, the configuration information
Obtain the mark that request carries the media file to be played;
Receive the server feedback distributes information rationally;
Wherein, the server obtains described after the configuration information acquisition request is received from preset configuration storehouse
Information is distributed rationally corresponding to the mark of media file to be played, and feed back to the electronic equipment, wherein, the pre- establishing
Putting the information of distributing rationally of be stored with storehouse, and the corresponding relation for distributing information and the mark of media file rationally.
Preferably, the mark of the media file to be played includes:The file identification of the media file to be played;
Or,
The device identification of the file identification and electronic equipment of the media file to be played.
In the embodiment of the present invention, the set and sets of video frames at least including the voice data divided with the time period are obtained
The mark of media file to be played;According to the mark of the media file to be played, acquisition be pre-stored within server this treat
Play that media file is corresponding distributes information rationally;The media file to be played is decoded, audio number to be output is obtained
According to frame of video to be shown;Information is distributed rationally according to this, voice data and frame of video to be shown to be output are carried out
Distribute rationally;Call the audio output unit of electronic equipment to export the voice data to be output for passing through and distributing rationally, and call
The frame of video to be shown distributed rationally is passed through in the display unit display of electronic equipment.It can be seen that, in this programme, to media to be played
The voice data to be output and frame of video to be shown that file is decoded are optimized with output is postponed, so as to realize in electricity
Sub- equipment improves the result of broadcast of media file in itself and/or under the influence of the performance limitation of the media player installed, from
And improve Consumer's Experience.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
A kind of flow chart of media file playing method that Fig. 1 is provided by the embodiment of the present invention;
Fig. 2 is by a kind of embodiment of the present invention is provided structural representation of playback of media files device.
Specific 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 carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
In order in itself and/or under the influence of the performance limitation of the media player installed, improve media in electronic equipment
The result of broadcast of file, so as to improve Consumer's Experience, the embodiment of the invention provides a kind of media file playing method and device.
Wherein, the functional software for realizing media file playing method can be special media player;Can also be interior
The browser of media player is put, wherein, media player can be video player;Certainly, it is not limited to this.
As shown in figure 1, a kind of media file playing method, can include:
S101, obtains the mark of media file to be played, wherein, the media file to be played at least includes:With the time period
The set of the voice data of division and sets of video frames;
Wherein, when user indicates online broadcasting media file or plays locally downloading media file, obtain first
The mark of media file to be played, and then using the follow-up operation of the mark execution of the media file to be played, wherein, this waits to broadcast
Putting media file at least includes:The set of the voice data divided with the time period and sets of video frames, it is, media to be played
File at least includes:Some section audio data and some two field pictures.
It should be noted that the duration corresponding to each section audio data can set according to practical application scene, for example:
1s, 2s, 5s etc..
S102, according to the mark of the media file to be played, acquisition is pre-stored within the media to be played in server
File is corresponding to distribute information rationally;
After media file to be played is determined, can be prestored according to the mark of the media file to be played, acquisition
The media file to be played in server is corresponding to distribute information rationally, and then performs follow-up treatment.Wherein, optimization is matched somebody with somebody
The storage form of confidence breath can be document form, be not limited thereto certainly.
Wherein, the information of distributing rationally is previously stored with the preset configuration storehouse of server, and distributes information and matchmaker rationally
The corresponding relation of the mark of body file, specifically, the mark of the media file to be played can include:The files-designated of media file
Know, or, the combination of the device identification of the file identification and electronic equipment of media file, this is all rational;Also, it is directed to
It is online play media file and play the media file downloaded for, obtain this media file to be played be corresponding and distribute rationally
By difference, specific acquisition modes will subsequently be introduced the mode of information.
Explanation is needed further exist for, the performance of electronic equipment performance and institute's installation media player in itself may be to matchmaker
The image quality and audio of body file are impacted, also, distinct electronic apparatuses, different media player to the image quality of media file and
The influence of audio is different.Therefore, based on above-mentioned Consideration, in order to ensure the information of distributing rationally in actual applications general
Property, can in advance comprehensive analysis various electronic and media player to caused by the image quality and audio of media file
Influence so that for media file determines that can improve result of broadcast under plurality of application scenes distributes letter rationally
Breath, now, media file correspondence is a set of to distribute information rationally, also, the information of distributing rationally has broad applicability.When
So, for a media file, when different electronic equipment is as playing platform, can select different to distribute letter rationally
Breath, to cause that optimization has more specific aim, now, is directed to a kind of corresponding structure for distributing information rationally of electronic equipment of type
Process can include:The picture of performance and media player to media file of this kind of electronic equipment of type is analyzed in advance
Influence caused by matter and audio, and then optimization required when determining that media file is played on this kind of electronic equipment of type
Configuration information.It will be appreciated by persons skilled in the art that space playing environment there is also to the image quality and audio of media file
Certain influence, therefore, also by space playing environment factor as an influence, and one can be entered when structure distributes information rationally
Step, or each media file set be directed to different space playing environments distribute information rationally, this is all to close
Reason.
Wherein, the information of distributing rationally can include:
Voice data is corresponding to distribute information rationally and frame of video is corresponding distributes information rationally;
Wherein, the corresponding information of distributing rationally of voice data can include:Voice data mark, the configuration of audio configuration
The corresponding relation of the configuration parameter of parameter, voice data mark and audio configuration;The corresponding information of distributing rationally of frame of video can
To include:The configuration parameter of video frame identification, the configuration parameter of video frame configuration item, video frame identification and video frame configuration item
Corresponding relation.
It should be noted that voice data mark is often referred to each section audio data positioned at whole playback of media files process
In reproduction time, for example:10s-20s, 100s-120s etc., are not limited thereto certainly, for example:It can be each section audio
Numerical nomenclature, now, voice data is designated the title of each section audio data, it is not limited to this.Also, frame of video is regarded
Frequency frame identification is often referred to the mark of the two field picture;It is of course also possible to be the reproduction time in whole video display process, example
Such as:10s-20s, 100s-120s etc., are not limited thereto certainly.
Specifically, video frame configuration can include:At least one in color saturation, brightness, contrast, acutance,
Certainly it is not limited thereto;Also, the type of the configuration parameter of video frame configuration is determined by video configuration.
Specifically, audio configuration can include:During frequency response equilibrium, 3D sound field rebuildings, dynamic gain, high-frequency harmonic recover
At least one, be not limited thereto certainly;Also, the type of the configuration parameter of audio configuration is determined by audio configuration.
For example:Configuration parameter can be percent value in a balanced way for frequency response, and the configuration parameter of 3D sound field rebuildings can be "Yes" or "No", no
The configuration parameter of dynamic gain can be percent value, and the configuration parameter that high-frequency harmonic recovers can be "Yes" or "No", certainly
It is not limited thereto.
For the sake of clarity, below frequency response equilibrium, 3D sound field rebuildings, dynamic gain, high-frequency harmonic are recovered to carry out simply
Introduce.
(1)Frequency response is balanced:
Media player or electronic equipment generally have frequency response balancer function;So-called frequency response balanced device is that one kind can divide
The software module or hardware device of various frequency content electric signal amplification quantities are not adjusted, by the electric signal to various different frequencies
Regulation compensate the defect of loudspeaker and sound field, compensate and modify various sound sources and other special roles;Also, frequency response is balanced
Device can respectively be adjusted to high frequency, intermediate frequency, the band frequency electric signal of low frequency three.
(2)3D sound field rebuildings:
Loudspeaker distance is smaller, environment space is smaller and audio compression due to, can drop the spatial impression of audio
It is low;And 3D sound field rebuildings rebuild sound field using the method for Digital Signal Processing, recover original spatial impression.
(3)Dynamic gain:
Dynamic gain enhancing treatment is carried out to some distinctive scene sounds of tool, crucial audio can be shown especially.
(4)High-frequency harmonic recovers:
Due to audio compression, high-frequency harmonic is lost, the high-frequency harmonic that for example violin is produced;And harmonic high frequency
Ripple recovers to utilize Digital Signal Processing, and high frequency harmonic signals are replied, and reduces audio.
It is understood that the configuration item distributed rationally in information and configuration item corresponding to different media files
Configuration parameter can be with difference;And same media file is directed to the configuration distributed rationally in information of the electronic equipment of different type of machines
The configuration parameter of item and configuration item can be with difference.
S103, decodes to the media file to be played, obtains voice data and frame of video to be shown to be output;
S104, according to information is distributed rationally, configuration is optimized to voice data and frame of video to be shown to be output;
Wherein, decoded to the media file to be played, obtain voice data and video to be shown to be output
After frame, configuration can be optimized to voice data to be output according to the information of distributing rationally, to improve the audio of media file
Result of broadcast, also, configuration treatment is optimized to frame of video to be shown, to improve the image quality effect of media file.Can be with
Understand, can be achieved by the prior art and media file to be played is decoded, obtain voice data to be output and
The process of frame of video to be shown.
Specifically, according to information is distributed rationally, configuration and video to be shown are optimized to voice data to be output
Frame optimizes configuration, can include:
Corresponding voice data to be output is identified to voice data to enter according to the configuration parameter of corresponding audio configuration
Row regulation;
Frame of video to be shown corresponding to video frame identification is carried out according to the configuration parameter of corresponding video frame configuration
Regulation.
It should be noted that all of voice data mark of media file to be played can be recorded in distributing information rationally
With all of video frame identification, wherein, for the audio that need not be distributed rationally, audio configuration corresponding to it is matched somebody with somebody
Putting parameter can be empty or be set to other default parameters, and for without the frame of video of configuration, regarding corresponding to it
The configuration parameter of frequency frame configuration item can be empty or be set to other default parameters.Certainly, the information of distributing rationally can also be only
Record needs the voice data mark of some the section audio data distributed rationally and the video frame identification of some frame of video, and this is all
Reasonably.For second situation, according to when distributing information rationally and optimizing configuration to voice data to be output,
After obtaining voice data to be output, can be identified by voice data judge the voice data to be output that obtained whether be
The voice data that needs are distributed rationally, when judging to be, according to information is distributed rationally, is carried out excellent to voice data to be output
Change configuration;Likewise, according to when distributing information rationally and optimizing configuration to video data to be shown, it is to be shown obtaining
After frame of video, whether the frame of video to be shown that can be obtained by video frame identification judgement is the video for needing to distribute rationally
Frame, when judging to be, according to information is distributed rationally, configuration is optimized to frame of video to be shown.
S105, calls the audio output unit of electronic equipment to export the voice data to be output for passing through and distributing rationally, and
The display unit of electronic equipment is called to show the frame of video to be shown passed through and distribute rationally.
Wherein, voice data to be output is being optimized with postponing, the audio output list of electronic equipment can be being called
The voice data to be output distributed rationally is passed through in unit's output;Also, frame of video to be shown is being optimized with postponing, can
The frame of video to be shown by distributing rationally is shown with the display unit for calling electronic equipment.If it should be noted that treated
The voice data of output need not be distributed rationally, then call the audio output unit of electronic equipment to export without treating for distributing rationally
The voice data of output;If frame of video to be shown need not be distributed rationally, the display unit of electronic equipment is called to show
Show without the frame of video to be shown distributed rationally.Also, export warp the audio output unit of electronic equipment is called
The display unit display crossed the voice data to be output distributed rationally and call electronic equipment is to be shown by what is distributed rationally
Frame of video during, the output of voice data to be output and the display of video data to be shown need to ensure audio number
Mutually corresponded to according to corresponding frame of video.Wherein, in actual applications, the audio output unit can be loudspeaker, and this is aobvious
Show that unit can be display screen, be not limited thereto certainly.
Explanation is needed further exist for, the execution sequence of step S102 and step S103 is not limited to described in the present embodiment
Order.When wherein, for online broadcasting media file, can be when starting to decode media file to be played, from clothes
This is obtained in business device media file to be played is corresponding and distribute information rationally, it is also possible to decoded to media file to be played
Obtain this from server before media file to be played is corresponding and distribute information rationally;And for playing the media downloaded text
During part, can download and store in downloads of media file and distribute information rationally accordingly, so it is straight when media file is played
Obtain take stored distribute information rationally.
It is emphasized that the information of distributing rationally corresponding to media file can be directed to whole media file,
Fragment in media file can be directed to, this is all rational.
In the embodiment of the present invention, the set and sets of video frames at least including the voice data divided with the time period are obtained
The mark of media file to be played;According to the mark of the media file to be played, acquisition be pre-stored within server this treat
Play that media file is corresponding distributes information rationally;The media file to be played is decoded, audio number to be output is obtained
According to frame of video to be shown;Information is distributed rationally according to this, voice data and frame of video to be shown to be output are carried out
Distribute rationally;Call the audio output unit of electronic equipment to export the voice data to be output for passing through and distributing rationally, and call
The frame of video to be shown distributed rationally is passed through in the display unit display of electronic equipment.It can be seen that, in this programme, to media to be played
The voice data to be output and frame of video to be shown that file is decoded are optimized with output is postponed, so as to realize in electricity
Sub- equipment improves the result of broadcast of media file in itself and/or under the influence of the performance limitation of the media player installed, from
And improve Consumer's Experience.
Wherein, it is described to obtain this media file to be played is corresponding distributes information rationally, can include:
To server send configuration information acquisition request, the configuration information obtains request and carries the media file to be played
Mark;
Receive the server feedback distributes information rationally;
Wherein, the server is being received after the configuration information obtains request, and it is to be played from preset configuration storehouse to obtain this
Information is distributed rationally corresponding to the mark of media file, and feed back to the electronic equipment, wherein, stored in the preset configuration storehouse
Distribute information, and the corresponding relation for distributing information and the mark of media file rationally rationally.
Specifically, the mark of the media file to be played can include:The file identification of the media file to be played;Or
Person, the device identification of the file identification and electronic equipment of the media file to be played.
Wherein, obtain this media file to be played is corresponding and distribute information rationally, can include:
Obtain the media file pair to be played downloaded from server in advance according to the mark of the media file to be played
That answers distributes information rationally;
Wherein, the corresponding process for distributing information rationally of the media file to be played is downloaded from the server can wrap
Include:
When the media file to be played is downloaded, to server send configuration information acquisition request, the configuration information is obtained
Request carries the mark of the media file to be played;
Receive the server feedback distributes information rationally;
Wherein, the server obtains this from preset configuration storehouse and waits to broadcast after the configuration information acquisition request is received
The information of distributing rationally corresponding to the mark of media file is put, and feeds back to the electronic equipment, wherein, deposited in the preset configuration storehouse
Contain the information of distributing rationally, and the corresponding relation for distributing information and the mark of media file rationally.
Specifically, the mark of the media file to be played can include:The file identification of the media file to be played;Or
Person, the device identification of the file identification and electronic equipment of the media file to be played.
Corresponding to above method embodiment, the embodiment of the present invention additionally provides a kind of playback of media files device, it is adaptable to
In electronic equipment, as shown in Fig. 2 described device can include:
Identifier acquisition module 210, the mark for obtaining media file to be played, wherein, the media file to be played
At least include:The set of the voice data divided with the time period and sets of video frames;
Distribute data obtaining module 220 rationally, for the mark according to the media file to be played, acquisition is prestored
Media file described to be played in server is corresponding to distribute information rationally;
Decoder module 230, for being decoded to the media file to be played, obtains voice data to be output and treats
The frame of video of display;
Module 240 is distributed rationally, for distributing information rationally described in, to voice data to be output and to be shown
Frame of video optimizes configuration;
Playing module 250, the audio output unit for calling electronic equipment exports to be output by what is distributed rationally
Voice data, and call the display unit of electronic equipment to show the frame of video to be shown passed through and distribute rationally.
In the embodiment of the present invention, the set and sets of video frames at least including the voice data divided with the time period are obtained
The mark of media file to be played;According to the mark of the media file to be played, acquisition be pre-stored within server this treat
Play that media file is corresponding distributes information rationally;The media file to be played is decoded, audio number to be output is obtained
According to frame of video to be shown;Information is distributed rationally according to this, voice data and frame of video to be shown to be output are carried out
Distribute rationally;Call the audio output unit of electronic equipment to export the voice data to be output for passing through and distributing rationally, and call
The frame of video to be shown distributed rationally is passed through in the display unit display of electronic equipment.It can be seen that, in this programme, to media to be played
The voice data to be output and frame of video to be shown that file is decoded are optimized with output is postponed, so as to realize in electricity
Sub- equipment improves the result of broadcast of media file in itself and/or under the influence of the performance limitation of the media player installed, from
And improve Consumer's Experience.
Wherein, the information of distributing rationally can include:
Voice data is corresponding to distribute information rationally and frame of video is corresponding distributes information rationally;
Wherein, the corresponding information of distributing rationally of the voice data includes:Voice data mark, the configuration of audio configuration
The corresponding relation of the configuration parameter of parameter, voice data mark and audio configuration;
The corresponding information of distributing rationally of the frame of video includes:Video frame identification, the configuration parameter of video frame configuration, regard
The corresponding relation of the configuration parameter of frequency frame identification and video frame configuration.
Wherein, the module 240 of distributing rationally can include:
Audio optimization unit, for identifying corresponding voice data to be output according to corresponding sound to the voice data
The configuration parameter of frequency configuration item is adjusted;
Video optimization unit, for the corresponding frame of video to be shown of the video frame identification according to corresponding frame of video
The configuration parameter of configuration item is adjusted.
Wherein, the audio configuration can include:Frequency response equilibrium, 3D sound field rebuildings, dynamic gain, high-frequency harmonic recover
In at least one;
The video frame configuration can include:At least one in color saturation, brightness, contrast, acutance.
Wherein, it is described to distribute data obtaining module 220 rationally, can include:
Request transmitting unit, for server send configuration information acquisition request, the configuration information to obtain request and takes
Mark with the media file to be played;
Distribute information receiving unit rationally, information is distributed rationally for receive the server feedback;
Wherein, the server obtains described after the configuration information acquisition request is received from preset configuration storehouse
Information is distributed rationally corresponding to the mark of media file to be played, and feed back to the electronic equipment, wherein, the pre- establishing
Putting the information of distributing rationally of be stored with storehouse, and the corresponding relation for distributing information and the mark of media file rationally.
Wherein, it is described to distribute data obtaining module 220 rationally, can include:
Information acquisition unit is distributed rationally, for obtaining the mark according to the media file to be played in advance from server
The media file described to be played of middle download is corresponding to distribute information rationally;
Wherein, the corresponding process bag for distributing information rationally of the media file to be played is downloaded from the server
Include:
When the media file to be played is downloaded, to server send configuration information acquisition request, the configuration information
Obtain the mark that request carries the media file to be played;
Receive the server feedback distributes information rationally;
Wherein, the server obtains described after the configuration information acquisition request is received from preset configuration storehouse
Information is distributed rationally corresponding to the mark of media file to be played, and feed back to the electronic equipment, wherein, the pre- establishing
Putting the information of distributing rationally of be stored with storehouse, and the corresponding relation for distributing information and the mark of media file rationally.
Wherein, the mark of the media file to be played can include:
The file identification of the media file to be played;Or, the file identification and electronics of the media file to be played
The device identification of equipment.
For system embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, it is related
Part is illustrated referring to the part of embodiment of the method.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality
Body or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or deposited between operating
In any this actual relation or order.And, term " including ", "comprising" or its any other variant be intended to
Nonexcludability is included, so that process, method, article or equipment including a series of key elements not only will including those
Element, but also other key elements including being not expressly set out, or also include being this process, method, article or equipment
Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that
Also there is other identical element in process, method, article or equipment including the key element.
One of ordinary skill in the art will appreciate that realize that all or part of step in above method implementation method is can
Completed with instructing the hardware of correlation by program, described program can be stored in computer read/write memory medium,
The storage medium for obtaining designated herein, such as:ROM/RAM, magnetic disc, CD etc..
Presently preferred embodiments of the present invention is the foregoing is only, is not intended to limit the scope of the present invention.It is all
Any modification, equivalent substitution and improvements made within the spirit and principles in the present invention etc., are all contained in protection scope of the present invention
It is interior.
Claims (12)
1. a kind of media file playing method, it is characterised in that suitable for electronic equipment, methods described includes:
The mark of media file to be played is obtained, wherein, the media file to be played at least includes:With the sound that the time period divides
The set of frequency evidence and sets of video frames, the mark of the media file to be played include:The text of the media file to be played
Part identifies the device identification with electronic equipment;
According to the mark of the media file to be played, from default repository, acquisition is pre-stored within the institute in server
State that media file to be played is corresponding to distribute information rationally;In default repository, including:Distribute information, and optimization rationally
The corresponding relation of the mark of configuration information and media file, described distributes information pass corresponding with the mark of media file rationally
System includes:One media file correspondence is a set of to distribute information rationally, or, the media file is on this kind of electronic equipment of type
It is required during broadcasting to distribute information rationally;It is described distribute information rationally and include that voice data is corresponding distribute information rationally and regard
Frequency frame is corresponding to distribute information rationally;
The media file to be played is decoded, voice data and frame of video to be shown to be output is obtained;
Information is distributed rationally described in, configuration is optimized to voice data and frame of video to be shown to be output;
Call the audio output unit of electronic equipment to export the voice data to be output for passing through and distributing rationally, and call the electricity
The frame of video to be shown distributed rationally is passed through in the display unit display of sub- equipment.
2. method according to claim 1, it is characterised in that the information of distributing rationally includes:
Voice data is corresponding to distribute information rationally and frame of video is corresponding distributes information rationally;
Wherein, the corresponding information of distributing rationally of the voice data includes:Voice data mark, the configuration ginseng of audio configuration
The corresponding relation of the configuration parameter of number, voice data mark and audio configuration;
The corresponding information of distributing rationally of the frame of video includes:Configuration parameter, the frame of video of video frame identification, video frame configuration item
The corresponding relation of the configuration parameter of mark and video frame configuration.
3. method according to claim 2, it is characterised in that information is distributed rationally described in, to audio to be output
Data optimize configuration and frame of video to be shown optimizes configuration, including:
Corresponding voice data to be output is identified to the voice data to enter according to the configuration parameter of corresponding audio configuration
Row regulation;
Frame of video to be shown corresponding to the video frame identification is carried out according to the configuration parameter of corresponding video frame configuration
Regulation.
4. method according to claim 2, it is characterised in that the audio configuration includes:Frequency response is balanced, 3D sound field weights
Build, dynamic gain, high-frequency harmonic recover at least one;
The video frame configuration includes:At least one in color saturation, brightness, contrast, acutance.
5. method according to claim 1, it is characterised in that the mark according to the media file to be played, obtains
Take that the media file described to be played being pre-stored within server is corresponding to distribute information rationally, including:
To server send configuration information acquisition request, the configuration information obtains request and carries the media file to be played
Mark;
Receive the server feedback distributes information rationally;
Wherein, the server is waited to broadcast from preset configuration storehouse after the configuration information acquisition request is received described in acquisition
The information of distributing rationally corresponding to the mark of media file is put, and feeds back to the electronic equipment, wherein, the preset configuration storehouse
In be stored with the information of distributing rationally, and distribute the corresponding relation of information and the mark of media file rationally.
6. method according to claim 1, it is characterised in that the mark according to the media file to be played, obtains
Take that the media file described to be played being pre-stored within server is corresponding to distribute information rationally, including:
Obtain the media file pair described to be played downloaded from server in advance according to the mark of the media file to be played
That answers distributes information rationally;
Wherein, the corresponding process for distributing information rationally of the media file to be played is downloaded from the server to be included:
When the media file to be played is downloaded, to server send configuration information acquisition request, the configuration information is obtained
Request carries the mark of the media file to be played;
Receive the server feedback distributes information rationally;
Wherein, the server is waited to broadcast from preset configuration storehouse after the configuration information acquisition request is received described in acquisition
The information of distributing rationally corresponding to the mark of media file is put, and feeds back to the electronic equipment, wherein, the preset configuration storehouse
In be stored with the information of distributing rationally, and distribute the corresponding relation of information and the mark of media file rationally.
7. a kind of playback of media files device, it is characterised in that suitable for electronic equipment, described device includes:
Identifier acquisition module, the mark for obtaining media file to be played, wherein, the media file to be played is at least wrapped
Include:The set of the voice data divided with the time period and sets of video frames, the mark of the media file to be played include:It is described
The device identification of the file identification and electronic equipment of media file to be played;
Distribute data obtaining module rationally, for the mark according to the media file to be played, from default repository, obtain
Take that the media file described to be played being pre-stored within server is corresponding to distribute information rationally;In default repository, bag
Include:Distribute information rationally, and distribute the corresponding relation of information and the mark of media file rationally, described distributes information rationally
Corresponding relation with the mark of media file includes:One media file correspondence is a set of to distribute information rationally, or, media text
Part is required when being played on this kind of electronic equipment of type to distribute information rationally;Described information of distributing rationally includes audio number
Information is distributed rationally according to corresponding and frame of video is corresponding distributes information rationally;
Decoder module, for being decoded to the media file to be played, obtains voice data to be output and to be shown
Frame of video;
Module is distributed rationally, for distributing information rationally described in, to voice data and frame of video to be shown to be output
Optimize configuration;
Playing module, the audio output unit for calling electronic equipment exports the audio number to be output by distributing rationally
According to, and call the display unit of the electronic equipment to show the frame of video to be shown passed through and distribute rationally.
8. device according to claim 7, it is characterised in that the information of distributing rationally includes:
Voice data is corresponding to distribute information rationally and frame of video is corresponding distributes information rationally;
Wherein, the corresponding information of distributing rationally of the voice data includes:Voice data mark, the configuration ginseng of audio configuration
The corresponding relation of the configuration parameter of number, voice data mark and audio configuration;
The corresponding information of distributing rationally of the frame of video includes:Configuration parameter, the frame of video of video frame identification, video frame configuration item
The corresponding relation of the configuration parameter of mark and video frame configuration.
9. device according to claim 8, it is characterised in that the module of distributing rationally includes:
Audio optimization unit, matches somebody with somebody for identifying corresponding voice data to be output to the voice data according to corresponding audio
The configuration parameter for putting item is adjusted;
Video optimization unit, for the corresponding frame of video to be shown of the video frame identification according to corresponding video frame configuration
The configuration parameter of item is adjusted.
10. device according to claim 8, it is characterised in that the audio configuration includes:Frequency response is balanced, 3D sound fields
At least one in reconstruction, dynamic gain, high-frequency harmonic recovery;
The video frame configuration includes:At least one in color saturation, brightness, contrast, acutance.
11. devices according to claim 7, it is characterised in that described to distribute data obtaining module rationally, including:
Request transmitting unit, for server send configuration information acquisition request, the configuration information to obtain request and carries
The mark of the media file to be played;
Distribute information receiving unit rationally, information is distributed rationally for receive the server feedback;
Wherein, the server is waited to broadcast from preset configuration storehouse after the configuration information acquisition request is received described in acquisition
The information of distributing rationally corresponding to the mark of media file is put, and feeds back to the electronic equipment, wherein, the preset configuration storehouse
In be stored with the information of distributing rationally, and distribute the corresponding relation of information and the mark of media file rationally.
12. devices according to claim 7, it is characterised in that described to distribute data obtaining module rationally, including:
Distribute information acquisition unit rationally, for obtain according to the media file to be played mark in advance from server under
The media file described to be played of load is corresponding to distribute information rationally;
Wherein, the corresponding process for distributing information rationally of the media file to be played is downloaded from the server to be included:
When the media file to be played is downloaded, to server send configuration information acquisition request, the configuration information is obtained
Request carries the mark of the media file to be played;
Receive the server feedback distributes information rationally;
Wherein, the server is waited to broadcast from preset configuration storehouse after the configuration information acquisition request is received described in acquisition
The information of distributing rationally corresponding to the mark of media file is put, and feeds back to the electronic equipment, wherein, the preset configuration storehouse
In be stored with the information of distributing rationally, and distribute the corresponding relation of information and the mark of media file rationally.
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 CN103702180A (en) | 2014-04-02 |
CN103702180B true 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) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
CN107682713B (en) * | 2017-04-11 | 2020-11-03 | 腾讯科技(北京)有限公司 | Media file playing method and device |
CN110928518B (en) * | 2019-11-26 | 2020-12-25 | 北京达佳互联信息技术有限公司 | Audio data processing method and device, electronic equipment and storage medium |
CN111885414B (en) * | 2020-07-24 | 2023-03-21 | 腾讯科技(深圳)有限公司 | Data processing method, device and equipment and readable storage medium |
CN112019923B (en) * | 2020-09-02 | 2021-05-07 | 深圳爱卓软科技有限公司 | Video cutting processing method |
CN113301427A (en) * | 2020-11-30 | 2021-08-24 | 阿里巴巴集团控股有限公司 | Data processing method and device, electronic equipment and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101924917A (en) * | 2010-09-16 | 2010-12-22 | 华中科技大学 | Video on demand system and method based on mobile user terminal |
EP2597840A1 (en) * | 2011-11-28 | 2013-05-29 | Vodafone Holding GmbH | Method, network unit and system for optimizing rendering of media content |
Family Cites Families (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001326875A (en) * | 2000-05-16 | 2001-11-22 | Sony Corp | Image processing unit and image processing method, and recording medium |
CN101577110B (en) * | 2009-05-31 | 2012-04-25 | 腾讯科技(深圳)有限公司 | 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 |
CN102196233B (en) * | 2010-03-18 | 2013-06-05 | 腾讯科技(深圳)有限公司 | Method and device for improving video image quality |
EP2408196B1 (en) * | 2010-07-14 | 2017-01-11 | Alcatel Lucent | A method, server and terminal for generating a composite view from multiple content items |
CN102065339B (en) * | 2010-11-09 | 2013-03-20 | 中国电信股份有限公司 | Method and system for playing audio and video media stream |
CN102567468B (en) * | 2011-12-06 | 2014-06-04 | 上海聚力传媒技术有限公司 | Method for adjusting player volume of media files and equipment utilizing same |
CN102543096B (en) * | 2011-12-26 | 2014-08-13 | 上海聚力传媒技术有限公司 | Method and device for suppressing scene noise during media file playing |
EP2802890B1 (en) * | 2012-01-09 | 2018-10-24 | Cirrus Logic International Semiconductor Limited | System and method for audio enhancement of a consumer electronics device |
CN102855909B (en) * | 2012-08-29 | 2015-06-17 | 四三九九网络股份有限公司 | 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 |
CN103096035B (en) * | 2012-12-27 | 2017-02-15 | 潮州响石智能技术有限公司 | Monitor with video optimization function |
-
2014
- 2014-01-14 CN CN201410016421.3A patent/CN103702180B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101924917A (en) * | 2010-09-16 | 2010-12-22 | 华中科技大学 | Video on demand system and method based on mobile user terminal |
EP2597840A1 (en) * | 2011-11-28 | 2013-05-29 | Vodafone Holding GmbH | Method, network unit and system for optimizing rendering of media content |
Also Published As
Publication number | Publication date |
---|---|
CN103702180A (en) | 2014-04-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103702180B (en) | media file playing method and device | |
CN104394324B (en) | Special efficacy video generation method and device | |
CN103702182B (en) | Video broadcasting method and device | |
CN103119960B (en) | Information processor, information processing method and program | |
CN103210660B (en) | Reception equipment, method of reseptance, program and broadcast system | |
CN101416139B (en) | Systems and methods for enhanced haptic effects | |
CN105940448A (en) | Metadata for ducking control | |
CN108134978A (en) | For the interactive method and system rendered of object-based audio | |
CN104754396A (en) | Curtain popup data display method and device | |
CN104246874A (en) | Media synchronisation system | |
CN106603503B (en) | The treating method and apparatus of live data | |
CN106570103B (en) | Voice broadcast method and device | |
CN103873919B (en) | A kind of information processing method and electronic equipment | |
CN102447839A (en) | Quartz Composer-based video production method and device | |
CN104754394A (en) | Vision-synchronized special effect system and vision-synchronized special effect handling method | |
CN103730148B (en) | Audio frequency playing method and device | |
KR100881723B1 (en) | Apparatus for device association/control information creation for realistic media representation and the method thereof | |
US9197920B2 (en) | Shared media experience distribution and playback | |
WO2014160717A1 (en) | Using single bitstream to produce tailored audio device mixes | |
CN105578224A (en) | Multimedia data acquisition method, device, smart television and set-top box | |
CN110337041A (en) | Video broadcasting method, device, computer equipment and storage medium | |
CN106331763A (en) | Method of playing slicing media files seamlessly and device of realizing the method | |
CN103945074A (en) | Color ring back tone customizing method and system | |
CN105847943A (en) | Playback equipment, and audio and video playback method and device thereof | |
US20180124472A1 (en) | Providing Interactive Content to a Second Screen Device via a Unidirectional Media Distribution System |
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 |