CN108632667A - A kind of coding/decoding method and terminal of multimedia file - Google Patents
A kind of coding/decoding method and terminal of multimedia file Download PDFInfo
- Publication number
- CN108632667A CN108632667A CN201710170672.0A CN201710170672A CN108632667A CN 108632667 A CN108632667 A CN 108632667A CN 201710170672 A CN201710170672 A CN 201710170672A CN 108632667 A CN108632667 A CN 108632667A
- Authority
- CN
- China
- Prior art keywords
- decoding process
- decoded
- terminal
- information
- multimedia file
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
- H04N21/44008—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream
Abstract
The embodiment of the invention discloses a kind of coding/decoding methods of multimedia file, including:Obtain the object content parameter information of multimedia file to be decoded;Inquiry and the matched target decoder mode of the object content parameter information in preset at least one decoding process;Processing is decoded to the multimedia file to be decoded using the target decoder mode, multimedia file after being decoded.The embodiment of the invention also discloses a kind of terminals.Using the present invention, decoded multimedia file can be treated according to the matched target decoder mode of the object content parameter information of multimedia file to be decoded acquisition and be decoded, raising is decoded into power.
Description
Technical field
The present invention relates to field of communication technology more particularly to the coding/decoding methods and terminal of a kind of multimedia file.
Background technology
With the development of intelligent terminal and universal, user using intelligent terminal play multimedia file (including video file,
Illustrated below with video file) it is more and more common.After the video file that user is intended to viewing is downloaded to intelligent terminal, intelligence
Energy terminal just can smooth playing after being decoded to video file using preset decoding process.
Currently, terminal can preset include a variety of decoding processes such as hardware decoding process and software decoding process.Therefore, work as shifting
When dynamic terminal is decoded video file using target decoder mode in a variety of decoding processes, mobile terminal is by preset
Sequence video file is decoded using target decoder mode.Such as:When the decoding process of terminal preset includes hardware decoding
When mode and software decoding process, terminal is first attempted to solve video file with hardware decoding process by preset sequence
Code, when video file can not be successfully decoded in hardware decoding process, terminal switches to other solutions by preset sequence again
Code mode such as software decoding process is decoded;When video file is successfully decoded in hardware decoding process, terminal will no longer into
Row switches to other decoding processes and is decoded.Therefore, well imagine, due to terminal no matter for which kind of video file be by
Preset sequence obtains decoding process and is decoded, therefore terminal can not solve video file using best decoding process
Code carries out being susceptible to interim card, plays not smooth phenomenon, or even decodes so as to cause terminal plays decoded video frequency file
The case where failure so that it is low to be decoded into power.
Invention content
Technical problem to be solved of the embodiment of the present invention is, provides coding/decoding method and the end of a kind of multimedia file
End.Matched target decoder mode can be obtained according to the object content parameter information of multimedia file to be decoded to more matchmakers to be decoded
Body file is decoded, and raising is decoded into power.
In order to solve the above-mentioned technical problem, an embodiment of the present invention provides a kind of coding/decoding methods of multimedia file, including:
Obtain the object content parameter information of multimedia file to be decoded;
Inquiry and the matched target decoder side of object content parameter information in preset at least one decoding process
Formula;
Processing is decoded to the multimedia file to be decoded using the target decoder mode, more matchmakers after being decoded
Body file.
Second aspect of the embodiment of the present invention provides a kind of terminal, it may include:
Acquiring unit, the object content parameter information for obtaining multimedia file to be decoded;
Query unit is matched for being inquired in preset at least one decoding process with the object content parameter information
Target decoder mode;
Decoding unit, for being decoded processing to the multimedia file to be decoded using the target decoder mode,
Multimedia file after being decoded.
In embodiments of the present invention, terminal obtains the object content parameter information of multimedia file to be decoded, preset
Inquiry and the matched target decoder mode of the object content parameter information at least one decoding process, using the target solution
Code mode is decoded processing to the multimedia file to be decoded, and multimedia file after being decoded, this makes terminal can root
Matched target decoder mode, which is obtained, according to the object content parameter information of multimedia file to be decoded treats decoded multimedia file
It is decoded, raising is decoded into power.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
Obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of network architecture schematic diagram provided in an embodiment of the present invention;
Fig. 2 is a kind of flow diagram of the coding/decoding method of multimedia file provided in an embodiment of the present invention;
Fig. 3 is that user's operation provided in an embodiment of the present invention plays out operation chart for list of videos;
Fig. 4 is the flow diagram of the coding/decoding method of another multimedia file provided in an embodiment of the present invention;
Fig. 5 is the flow diagram of the coding/decoding method of another multimedia file provided in an embodiment of the present invention;
Fig. 6 is the flow diagram of the coding/decoding method of another multimedia file provided in an embodiment of the present invention;
Fig. 7 is a kind of terminal structure figure provided in an embodiment of the present invention;
Fig. 8 is another terminal structure figure provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts
Embodiment shall fall within the protection scope of the present invention.
A kind of coding/decoding method of multimedia file provided in an embodiment of the present invention can be applied to terminal plays video file
Scene.
In order to be best understood from scheme disclosed by the embodiments of the present invention, below first to the embodiment of the present invention be applicable in network architecture
It is described.Referring to Fig. 1, Fig. 1 is a kind of network architecture schematic diagram disclosed by the embodiments of the present invention.Network shown in Fig. 1
May include server 1 for providing multimedia file to be decoded and for playing multimedia file to be decoded in framework
Terminal 2, wherein server 1 and terminal 2 can pass through network connection.In a particular application, when terminal 2 need to play it is to be decoded more
When media file, terminal 2 can send acquisition request multimedia file to be decoded to server 1, and server 1 can respond terminal 2
Acquisition request multimedia file to be decoded, and multimedia file to be decoded is sent to terminal 2 by network, terminal 2 can pass through
Network receives the multimedia file to be decoded that server 1 is sent and is downloaded, decodes and plays.
Below in conjunction with attached drawing 2- attached drawings 4, the coding/decoding method of multimedia file provided in an embodiment of the present invention is carried out detailed
It is thin to introduce, wherein the executive agent of embodiment is terminal, and terminal may include:Mobile phone, computer, tablet computer, notebook etc. can
To play out the intelligent terminal of video file, above-mentioned terminal is only citing, and non exhaustive, including but not limited to above-mentioned terminal.
It is a kind of a kind of embodiment flow of the coding/decoding method of multimedia file provided in an embodiment of the present invention referring to Fig. 2
Schematic diagram.A kind of coding/decoding method of multimedia file of the embodiment of the present invention includes the following steps:
S100 obtains the object content parameter information of multimedia file to be decoded.
In embodiments of the present invention, when terminal receives and treats decoded multimedia file and play out instruction, terminal can
It determines that treating decoded multimedia file is decoded, and obtains the object content parameter information of multimedia file to be decoded.Having
In body application, reference can be made to user's operation shown in Fig. 3 plays out operation chart for list of videos:When user is directed to terminal
Third party application in video play lists in target video file input play instruction when, terminal passes through third party
Application program obtains the object content parameter information of target video file.Wherein, terminal can obtain target video by server
The object content parameter information and download target video file of file, or receive the target video file that other-end is sent
And the modes such as object content parameter information obtain and store multimedia file to be decoded.As user is directed to the QQ of terminal in Fig. 3
Dddd video files in list of videos on browser input play instruction, and terminal can be taken by QQ browsers to QQ browsers
Business device sends the object content parameter information for obtaining dddd video files and obtains the request of dddd video files, so that terminal can
The object content parameter information and dddd video files for receiving QQ browser servers return dddd video files carry out down
It carries.
In embodiments of the present invention, multimedia file to be decoded may include video file to be decoded, audio and video to be decoded text
The multimedia files such as part can be described in detail embodiment by taking video file to be decoded as an example in subsequent embodiment.Mesh
Mark content parameters information may include the file format information of multimedia file to be decoded, as the file of file plays type and text
The content parameters information such as part content resolution information.It specifically can be such as:When multimedia file to be decoded is video file to be decoded,
Object content parameter information can be the video format information of video file to be decoded, as video format type, video code flow are believed
Breath, video resolution information and video playing type (type and recorded broadcast type is such as broadcast live) video format information.Specific
In, video format type may include:AVI (Audio Video Interleaved, Audio Video Interleaved format), RM
(Real Media, network flow-medium), MP3 (Moving Picture Experts Group Audio Layer III, dynamic
Image expert's compression standard audio level 3) and MPEG (Moving Picture Expert Group, Motion Picture Experts Group's lattice
Formula) etc. video format types, video code flow information include the code stream of video, video resolution information includes the resolution of video pictures
Rate.Video playing type includes live streaming type and recorded broadcast type.
S101, inquiry and the matched target solution of the object content parameter information in preset at least one decoding process
Code mode.
In embodiments of the present invention, terminal can preset a variety of decoding processes, as hardware decoding process, software decoding process with
And system decoding process.Wherein, hardware decoding process can be the hardware decoder in terminal, and hardware decoder mainly utilizes
The GPU (Graphics Processing Unit, graphics processor) of terminal, which carries out treating decoding file, to be decoded, therefore,
Hardware decoder is not take up CPU (Central Processing Unit, central processing unit) resource of terminal, to which terminal is logical
The operating pressure of CPU can be reduced by crossing hardware decoder decoding file.Software decoding process can be the software decoder in terminal,
Software decoder is treated decoding file using software and is decoded, software decoder can be built in the third-party application of terminal into
Row operation, as QQ browsers can embedded software decoder.System decoding process can be the system decoder in terminal, system solution
Code device is equally to treat decoding file using software to be decoded, but system decoder is built in the system of terminal and is transported
Row.
In embodiments of the present invention, whether terminal can inquire in preset at least one decoding process and have and target first
The target decoder mode of content parameters information matches, when terminal inquired in preset at least one decoding process have in target
When holding the matched target decoder mode of parameter information, terminal can obtain and the matched target decoder side of object content parameter information
Formula.Wherein, it can most preferably be used to decode in terminal that terminal, which is obtained with the matched target decoder mode of object content parameter information,
The decoding process of multimedia file to be decoded.
In embodiments of the present invention, terminal can preset parameter information and decoding process correspondence, to terminal
Obtaining with the matched target decoder mode of object content parameter information can be specifically:Terminal is according to preset content parameters information
The decoding process corresponding to object content parameter information is obtained with the correspondence of decoding process, and then terminal can be by object content
Decoding process corresponding to parameter information is set as the matched target decoder mode of object content parameter information.
Further, in embodiments of the present invention, terminal obtains and the matched target decoder side of object content parameter information
Formula specifically can also be:Terminal can also calculate object content parameter information and each decoding process according to object content parameter information
Matching degree, and in the matching degree of each decoding process obtain the highest decoding process of matching degree as with object content parameter
The target decoder mode of information matches.Wherein, each information that terminal can be in preset parameter information is in different decoding sides
Corresponding weights under formula, therefore, terminal can calculate object content ginseng according to each information in object content parameter information
Weights summation of the number information under each decoding process obtains matching degree, that is, calculates object content parameter information and each solution
The matching degree of code mode.
S102 is decoded processing to the multimedia file to be decoded using the target decoder mode, is decoded
Multimedia file afterwards.
In embodiments of the present invention, after terminal gets target decoder mode matched with object content parameter information,
Terminal can be used target decoder mode and is decoded to the multimedia file to be decoded after coding, multimedia file after being decoded
And it can play multimedia file after decoding.
In embodiments of the present invention, terminal obtains the object content parameter information of multimedia file to be decoded, preset
Inquiry and the matched target decoder mode of the object content parameter information at least one decoding process, using the target solution
Code mode is decoded processing to the multimedia file to be decoded, and multimedia file after being decoded, this makes terminal can root
Matched target decoder mode, which is obtained, according to the object content parameter information of multimedia file to be decoded treats decoded multimedia file
It is decoded, raising is decoded into power.
It is a kind of another embodiment stream of the coding/decoding method of multimedia file provided in an embodiment of the present invention referring to Fig. 4
Journey schematic diagram.The coding/decoding method of another multimedia file of the embodiment of the present invention includes the following steps:
Whether S200, detection terminal support the hardware decoding process.
In embodiments of the present invention, the identifier of terminal can be read in terminal, such as No. model of terminal or the model of terminal
Deng the unique identifier for identifying terminal.When terminal gets the identifier of terminal, terminal can detect the identifier of terminal
Whether in pre-set list, wherein preset list is used to record the row of the identifier for the terminal for not supporting hardware decoding process
Table does not support the terminal of hardware decoding process to can be understood as the terminal for not having hardware decoder, is no built-in GPU
Terminal.When terminal determines that the identifier of terminal is in pre-set list, terminal can determine that terminal does not support hardware decoding process;When
When terminal determines the identifier of terminal not in pre-set list, terminal can determine that terminal supports hardware decoding process.Further,
Terminal can detect identifier whether in pre-set list by the pre-set list being locally stored, for example, working as terminal preset list, eventually
End can traverse pre-set list record identifier, detect whether include terminal identifier.Further, terminal can also by with
The server of terminal connection is detected the identifier of terminal whether in pre-set list, wherein server can store preset row
Table, when there is trendy terminal to emerge, user can be updated pre-set list, to improve the flexibility of terminal detection.
S201 obtains the target of multimedia file to be decoded when determining that the terminal supports the hardware decoding process
Content parameters information.
In embodiments of the present invention, when terminal determines that terminal does not support hardware decoding process, software solution can be used in terminal
Code mode treats decoded multimedia file and carries out forcing soft solution.
S202, inquiry and the matched target solution of the object content parameter information in preset at least one decoding process
Code mode.
S203 is decoded processing to the multimedia file to be decoded using the target decoder mode, is decoded
Multimedia file afterwards.
Wherein, step S201, the specific implementation mode of step S202 and step S203 can be found in the step in above-described embodiment
The specific implementation mode of rapid S100, step S101 and step S102, herein without repeating.
In embodiments of the present invention, terminal obtains the object content parameter information of multimedia file to be decoded, preset
Inquiry and the matched target decoder mode of the object content parameter information at least one decoding process, using the target solution
Code mode is decoded processing to the multimedia file to be decoded, and multimedia file after being decoded, this makes terminal can root
Matched target decoder mode, which is obtained, according to the object content parameter information of multimedia file to be decoded treats decoded multimedia file
It is decoded, raising is decoded into power.
It is a kind of another embodiment stream of the coding/decoding method of multimedia file provided in an embodiment of the present invention referring to Fig. 5
Journey schematic diagram.The coding/decoding method of another multimedia file of the embodiment of the present invention includes the following steps:
S300 obtains the object content parameter information of multimedia file to be decoded.
S301, inquiry and the matched target solution of the object content parameter information in preset at least one decoding process
Code mode.
S302, it is matched with the object content parameter information when not inquired at least one decoding process
When target decoder mode, any decoding process is obtained as the target decoder side at least one decoding process
Formula.
In embodiments of the present invention, terminal any decoding process is obtained at least one decoding process specifically can be with
It is:Terminal can obtain target decoder mode by preset acquisition decoding process sequence at least one decoding process.Specifically may be used
Such as:When preset at least one decoding process of terminal includes hardware decoding process, software decoding process and system decoding process
When, if terminal does not get the matched decoding process of object content parameter information in above multiple decoding processes, eventually
End can preferentially obtain hardware decoding process as target decoder mode by decoding process sequence is obtained.Wherein, decoding process is obtained
Sequence includes putting in order to the acquisition priority of all decoding processes of terminal.
In embodiments of the present invention, any decoding process is obtained at least one decoding process when terminal and executes step
When S303 treats decoded multimedia file and is decoded unsuccessful, terminal can return to this step and be obtained at least one decoding process
Other a kind of decoding processes except any decoding process are removed as target decoder mode, certainly, if terminal is executing
It is still that decoding is unsuccessful when step S303, terminal is repeatable to operate this step, until get can be to be decoded more for terminal
Until the decoding process that media file is successfully decoded is as target decoder mode, or until terminal judges all decoding sides
Until formula can not all be successfully decoded.
S303 is decoded the multimedia file to be decoded using any decoding process, after being decoded
Multimedia file.
In embodiments of the present invention, terminal can determine whether that treating decoded multimedia file using any decoding process needs to carry out
Whether decoding succeeds.Can be specifically:Terminal judges whether the multimedia file after broadcast decoder abnormal conditions, such as terminal occurs
Situations such as broadcasting being exited extremely suddenly when playing multimedia file for a long time.Multimedia file goes out after terminal determines broadcast decoder
When existing abnormal conditions, terminal can determine whether to treat decoded multimedia file be decoded it is unsuccessful.When terminal is determined using any
Decoding process treat decoded multimedia file decoding it is unsuccessful when, terminal can perform S302 steps and reacquire another decoding side
Formula is treated decoded multimedia file and is decoded.
In embodiments of the present invention, after terminal gets decoding when multimedia file, terminal can play more matchmakers after decoding
Body file.
S304 obtains the broadcasting after being decoded to the multimedia file to be decoded using any decoding process
Information.
In embodiments of the present invention, any decoding process is obtained to be decoded at least one decoding process when terminal
Multimedia file is decoded, and after being decoded while multimedia file or later, terminal can obtain any using this
Decoding process treats the broadcast information after decoded multimedia file is decoded.
In embodiments of the present invention, broadcast information can be that the decoded multimedia file to be decoded of terminal-pair plays out
Broadcast information, wherein broadcast information may include after decoding that multimedia file plays whether abnormal, multimedia file after decoding
The broadcast information for describing play quality index such as broadcasting fluency of multimedia file after playing natural rate of interest and decoding.Such as work as
When multimedia file is decoded video frequency file after decoding, broadcast information may include whether decoded video frequency file plays exception,
The broadcasting fluency of the broadcasting natural rate of interest and decoded video file of decoded video frequency file.Wherein, play what exception can refer to
The case where being the case where whether multimedia file exits in long-time playing process after decoding, exiting, is then judged as playing
It is abnormal.The broadcasting natural rate of interest of multimedia file can be specifically after decoding:Playing duration is less than in advance in multimedia file after decoding
Set the picture frame number of the first duration ratio shared in currently played total picture frame number, wherein the first duration can be
The upper limit value of duration spent by one frame image frame of normal play.The broadcasting fluency of multimedia file specifically can be with after decoding
It is:It is decoded in multimedia file after decoding and takes the picture frame number less than preset second duration in currently played total image frame
Shared ratio in number, wherein preset time period can be the upper limit value of the duration spent by normal decoding image frame.
It is a in embodiments of the present invention, when terminal does not inquire and object content parameter at least one decoding process
In the case of the target decoder mode of information matches, terminal is obtaining decoding process to multimedia to be decoded text using other modes
When part is decoded, terminal can obtain and treat the broadcasting after decoded multimedia file is decoded using this kind of decoding process simultaneously
Information.
S305, using the object content parameter information, any decoding process and the broadcast information as one
Group record information is recorded into preset record list.
In embodiments of the present invention, after terminal gets the broadcast information of multimedia file to be decoded, terminal can will wait for
The object content parameter information of decoded multimedia file is treated decoding process used by decoded multimedia file and is used and is somebody's turn to do
Decoding process is treated the broadcast information after decoded multimedia file is decoded and is recorded to preset note as one group of record information
It records in list, the record list is for recording when terminal does not inquire and object content parameter at least one decoding process
In the case of the target decoder mode of information matches, terminal is obtaining decoding process to multimedia to be decoded text using other modes
The record information that part is decoded, wherein record list may include at least one set of record information.
Wherein, step S300, the specific implementation mode of step S301 and step S302 can be found in the step in above-described embodiment
The specific implementation mode of rapid S100, step S101 and step S102, herein without repeating.
In embodiments of the present invention, terminal obtains the object content parameter information of multimedia file to be decoded, preset
Inquiry and the matched target decoder mode of the object content parameter information at least one decoding process, using the target solution
Code mode is decoded processing to the multimedia file to be decoded, and multimedia file after being decoded, this makes terminal can root
Matched target decoder mode, which is obtained, according to the object content parameter information of multimedia file to be decoded treats decoded multimedia file
It is decoded, raising is decoded into power.
It is a kind of another embodiment stream of the coding/decoding method of multimedia file provided in an embodiment of the present invention referring to Fig. 6
Journey schematic diagram.A kind of coding/decoding method of multimedia file of the embodiment of the present invention includes the following steps:
S400, the correspondence of set content parameter information and decoding process.
In embodiments of the present invention, terminal can obtain the decoding process that each content parameters information is recommended, and by each
The decoding process that content parameters information is recommended is set as the decoding process corresponding to each content parameters information.
Specifically, terminal obtains the decoding process that each content parameters information is recommended can be specifically:First, terminal is read
Preset record list recorded data is taken, and record is arranged by the type of included content parameters information in record list
Each group record information included by table is classified, and the corresponding one or more groups of record information of each content parameters information are obtained,
Wherein, terminal can will record the content parameters information that content is consistent in list and be divided into one kind, or will meet prerequisite
Content parameters information is divided into one kind, if terminal can will include for the video format type of preset type, in presetting range
The content parameters information of video code flow information and the video resolution information in presetting range is divided into one kind.
Secondly, terminal can press the class of decoding process in the corresponding one or more groups of record information of content parameters information of the same race
Type is classified, and the corresponding at least one set of record information of each decoding process is obtained.Wherein, terminal can be by decoding process one
The decoding process of cause is divided into one kind, such as software decoding process type, hardware decoding process type and system decoding process class
The decoding processes type such as type.
Again, terminal can be calculated according to the broadcast information included by the corresponding at least one set of record information of each decoding process
The broadcasting weights of each decoding process.Can be specifically:Terminal can calculate the corresponding each group record letter of each decoding process first
The broadcasting weights of breath, the broadcasting fluency setting of multimedia file is smooth after the decoding that can be directed to included by broadcast information such as terminal
Accuracy weights are arranged in the broadcasting accuracy for spending multimedia file after weights and decoding, and terminal can according to fluency weights and just
The broadcasting weights of the corresponding each group record information of each decoding process of true rate weight computing, such as every group of broadcasting weights Q=are correct
The broadcasting of multimedia file is smooth after the broadcasting accuracy of multimedia file+fluency weights Q1* decodings after the Q1* decodings of rate weights
Degree.To which terminal can be calculated the broadcasting weights of the corresponding each group record information of each decoding process by above-mentioned calculation.Secondly,
The broadcasting weights of the corresponding each group record information of each decoding process of terminal-pair carry out sum-average arithmetic, obtain each decoding process
Play weights.
Finally, terminal can obtain in the corresponding broadcasting weights of each decoding process plays the highest decoding process work of weights
For the decoding process recommended to corresponding content parameters information, and the highest decoding process of weights will be played and be set as in this kind
Hold the corresponding decoding process of parameter information.Similarly, the corresponding solution of other content parameter information can be also arranged in terminal as above
Code mode, herein without repeating.To which terminal can establish the correspondence of content parameters information and decoding process.
In embodiments of the present invention, the update cycle can be also arranged in terminal, and current record list is combined more by the update cycle
The correspondence of new content parameter information and decoding process can be obtained accurately and content parameters information matches to improve terminal
Target decoder mode, improve the success rate of decoding terminals.
S401 obtains the object content parameter information of multimedia file to be decoded.
S402 obtains the object content parameter letter according to the correspondence of the content parameters information and decoding process
Cease corresponding decoding process.
The corresponding decoding process of the object content parameter information is set as and the object content parameter information by S403
The target decoder mode matched.
S404 is decoded processing to the multimedia file to be decoded using the target decoder mode, is decoded
Multimedia file afterwards.
Wherein, the specific implementation mode of step S400 and step S404 can be found in step S100 and step in above-described embodiment
The specific implementation mode of rapid S102, herein without repeating.
In embodiments of the present invention, terminal obtains the object content parameter information of multimedia file to be decoded, preset
Inquiry and the matched target decoder mode of the object content parameter information at least one decoding process, using the target solution
Code mode is decoded processing to the multimedia file to be decoded, and multimedia file after being decoded, this makes terminal can root
Matched target decoder mode, which is obtained, according to the object content parameter information of multimedia file to be decoded treats decoded multimedia file
It is decoded, raising is decoded into power.
Below in conjunction with attached drawing 7-8, describe in detail to NEWS SERVER provided in an embodiment of the present invention.It needs to illustrate
, terminal shown in attached drawing 7-8, the method for executing Fig. 1-embodiment illustrated in fig. 6 of the present invention, for convenience of description, only
It shows and is not disclosed with the relevant part of the embodiment of the present invention, particular technique details, it is shown in fig. 6 to please refer to Fig. 1-of the present invention
Embodiment.
Fig. 7 is referred to, for an embodiment of the present invention provides a kind of structural schematic diagrams of terminal.As shown in fig. 7, the present invention is real
The terminal for applying example may include:
Acquiring unit 100, the object content parameter information for obtaining multimedia file to be decoded.
Query unit 200, for the inquiry in preset at least one decoding process and the object content parameter information
Matched target decoder mode.
Decoding unit 300, for being decoded place to the multimedia file to be decoded using the target decoder mode
Reason, multimedia file after being decoded.
It is characterized in that, at least one decoding process includes hardware decoding process;
Wherein, the terminal further includes:
Whether detection unit supports the hardware decoding process for detection terminal;
When the detection unit determines that the terminal supports the hardware decoding process, the acquiring unit is notified to obtain
The object content parameter information of multimedia file to be decoded.
Wherein, the detection unit includes:
First obtains subelement, the identifier for obtaining terminal;
Detection sub-unit, for detecting the identifier whether in pre-set list;
First determination subelement, for when the detection sub-unit determines that the identifier is in pre-set list, determining
The terminal does not support the hardware decoding process;
Second determination subelement, for when determining the identifier not in the list, determining that the terminal supports institute
State hardware decoding process.
Wherein, the terminal includes:
Setting unit is used for the correspondence of set content parameter information and decoding process;
The query unit 200 includes:
Second obtains subelement, for according to the correspondence of the content parameters information and decoding process, described in acquisition
The corresponding decoding process of object content parameter information;
First setting subelement, for the corresponding decoding process of the object content parameter information to be set as and the target
The target decoder mode of content parameters information matches.
Wherein, the query unit 200 further includes:
Query unit further includes:
Third obtains subelement, for not inquired and the object content when at least one decoding process
When the matched target decoder mode of parameter information, any decoding process is obtained described at least one decoding process
Any decoding process is obtained at least one decoding process as the target decoder mode;
The decoding unit is additionally operable to, and is solved to the multimedia file to be decoded using any decoding process
Code, multimedia file after being decoded.
Wherein, the terminal further includes:
Information unit is obtained, the multimedia file to be decoded is carried out using any decoding process for obtaining
Decoded broadcast information;
Recording unit, for believing the object content parameter information, any decoding process and the broadcasting
Breath is recorded as one group of record information into preset record list.
Wherein, the record list includes at least one set of record information;
The setting unit includes:
First classification subelement, for the type pair by least one content parameters information included by the record list
At least one set of record information included by the record list is classified, each content parameters information corresponding at least one is obtained
Group record information;
Second classification subelement, for pressing decoding side in the corresponding at least one set of record information of content parameters information of the same race
The type of formula is classified, and the corresponding at least one set of record information of each decoding process is obtained;
Computation subunit, for the broadcast information included by the corresponding at least one set of record information of each decoding process
Calculate the broadcasting weights of each decoding process;
5th obtains subelement, and weights highest is played for being obtained in the corresponding broadcasting weights of each described decoding process
Decoding process;
Second setting subelement is believed for the highest decoding process of the broadcasting weights to be set as the content parameters of the same race
Cease corresponding decoding process.
Wherein it is possible to understand, the function of each function module of the unit in the terminal of the present embodiment can be according to above-mentioned
Method specific implementation in embodiment of the method, specific implementation process are referred to the associated description of above method embodiment, this
Place is no longer repeated.
In embodiments of the present invention, terminal obtains the object content parameter information of multimedia file to be decoded, preset
Inquiry and the matched target decoder mode of the object content parameter information at least one decoding process, using the target solution
Code mode is decoded processing to the multimedia file to be decoded, and multimedia file after being decoded, this makes terminal can root
Matched target decoder mode, which is obtained, according to the object content parameter information of multimedia file to be decoded treats decoded multimedia file
It is decoded, raising is decoded into power.
Fig. 8 is referred to, for an embodiment of the present invention provides the structural schematic diagrams of another terminal.As shown in figure 8, the end
End 1000 may include:At least one processor 1001, such as CPU, at least one network interface 1004, user interface 1003,
Memory 1005, at least one communication bus 1002.Wherein, communication bus 1002 is logical for realizing the connection between these components
Letter.Wherein, user interface 1003 may include display screen (Display), keyboard (Keyboard), and optional user interface 1003 is also
It may include standard wireline interface and wireless interface.Network interface 1004 may include optionally the wireline interface, wireless of standard
Interface (such as WI-FI interfaces).Memory 1005 can be high-speed RAM memory, can also be non-labile memory (non-
Volatile memory), a for example, at least magnetic disk storage.Memory 1005 optionally can also be at least one and be located at
Storage device far from aforementioned processor 1001.As shown in figure 8, as can in a kind of memory 1005 of computer storage media
To include operating system, network communication module, Subscriber Interface Module SIM and communication connection application program.
In terminal 1000 shown in Fig. 8, user interface 1003 is mainly used for providing the interface of input to the user, obtains and uses
The data of family input;Network interface 1004 obtains the data that NEWS SERVER is sent for being connected with NEWS SERVER;And locate
Reason device 1001 can be used for calling the communication connection application program stored in memory 1005, and specifically execute following operation:
Obtain the object content parameter information of multimedia file to be decoded;
Inquiry and the matched target decoder side of object content parameter information in preset at least one decoding process
Formula;
Processing is decoded to the multimedia file to be decoded using the target decoder mode, more matchmakers after being decoded
Body file.
Wherein, at least one decoding process includes hardware decoding process;
Before the processor 1001 obtains the object content parameter information of multimedia file to be decoded, the processor
1001 execute:
Whether detection terminal supports the hardware decoding process;
When determining that the terminal supports the hardware decoding process, the mesh for obtaining multimedia file to be decoded is executed
Mark content parameters information.
Wherein, whether 1001 detection terminal of the processor supports that the hardware decoding process includes:
Obtain the identifier of terminal;
The identifier is detected whether in pre-set list;
When determining that the identifier is in pre-set list, determine that the terminal does not support the hardware decoding process;
When determining the identifier not in the list, determine that the terminal supports the hardware decoding process.
Wherein, inquiry is believed with the object content parameter at least one decoding process preset in processor 1001
Before ceasing matched target decoder mode, the processor 1001 also executes:
The correspondence of set content parameter information and decoding process;
The inquiry in preset at least one decoding process and the matched target solution of the object content parameter information
Code mode include:
According to the correspondence of the content parameters information and decoding process, obtains the object content parameter information and correspond to
Decoding process;
The corresponding decoding process of the object content parameter information is set as matched with the object content parameter information
Target decoder mode.
Wherein, the processor 1001 is inquired in preset at least one decoding process believes with the object content parameter
Ceasing matched target decoder mode further includes:
It is not inquired and the matched target of object content parameter information when at least one decoding process
When decoding process, any decoding process is obtained as the target decoder mode at least one decoding process;
The processor 1001 is decoded processing using the target decoder mode to the multimedia file to be decoded,
Multimedia file includes after being decoded:
The multimedia file to be decoded is decoded using any decoding process, multimedia after being decoded
File.
Wherein, the processor 100 obtains any decoding process at least one decoding process and waits for described
Decoded multimedia file is decoded, and after being decoded after multimedia file, the processor 1001 also executes:
Obtain the broadcast information after being decoded to the multimedia file to be decoded using any decoding process;
Using the object content parameter information, any decoding process and the broadcast information as one group of record
Information is recorded into preset record list.
Wherein, the record list includes at least one set of record information;
The correspondence of 1001 set content parameter information of the processor and decoding process includes:
By the type of at least one content parameters information included by the record list to included by the record list
At least one set of record information classify, obtain the corresponding at least one set of record information of each content parameters information;
Classify by the type of decoding process in the corresponding at least one set of record information of content parameters information of the same race, obtains
Obtain the corresponding at least one set of record information of each decoding process;
Broadcast information included by the corresponding at least one set of record information of each decoding process calculates each decoding side
The broadcasting weights of formula;
It is obtained in the corresponding broadcasting weights of each described decoding process and plays the highest decoding process of weights;
The highest decoding process of the broadcasting weights is set as the corresponding decoding process of the content parameters information of the same race.
Wherein it is possible to understand, the function of each function module of the unit in the terminal of the present embodiment can be according to above-mentioned
Method specific implementation in embodiment of the method, specific implementation process are referred to the associated description of above method embodiment, this
Place is no longer repeated.
In embodiments of the present invention, terminal obtains the object content parameter information of multimedia file to be decoded, preset
Inquiry and the matched target decoder mode of the object content parameter information at least one decoding process, using the target solution
Code mode is decoded processing to the multimedia file to be decoded, and multimedia file after being decoded, this makes terminal can root
Matched target decoder mode, which is obtained, according to the object content parameter information of multimedia file to be decoded treats decoded multimedia file
It is decoded, raising is decoded into power.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer read/write memory medium
In, the program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly
It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.
Claims (14)
1. a kind of coding/decoding method of multimedia file, which is characterized in that the method includes:
Obtain the object content parameter information of multimedia file to be decoded;
Inquiry and the matched target decoder mode of the object content parameter information in preset at least one decoding process;
Processing is decoded to the multimedia file to be decoded using the target decoder mode, multimedia text after being decoded
Part.
2. the method as described in claim 1, which is characterized in that at least one decoding process includes hardware decoding process;
Include before the object content parameter information for obtaining multimedia file to be decoded:
Whether detection terminal supports the hardware decoding process;
When determining that the terminal supports the hardware decoding process, execute in the target for obtaining multimedia file to be decoded
Hold parameter information.
3. method as claimed in claim 2, which is characterized in that whether the detection terminal supports the hardware decoding process packet
It includes:
Obtain the identifier of terminal;
The identifier is detected whether in pre-set list;
When determining that the identifier is in pre-set list, determine that the terminal does not support the hardware decoding process;
When determining the identifier not in the list, determine that the terminal supports the hardware decoding process.
4. method as claimed in claim 3, which is characterized in that inquiry and the institute in preset at least one decoding process
Include before stating the matched target decoder mode of object content parameter information:
The correspondence of set content parameter information and decoding process;
The inquiry in preset at least one decoding process and the matched target decoder side of object content parameter information
Formula includes:
According to the correspondence of the content parameters information and decoding process, the corresponding solution of the object content parameter information is obtained
Code mode;
The corresponding decoding process of the object content parameter information is set as and the matched target of object content parameter information
Decoding process.
5. method as claimed in claim 4, which is characterized in that inquiry and the institute in preset at least one decoding process
Stating the matched target decoder mode of object content parameter information further includes:
It is not inquired and the matched target decoder of object content parameter information when at least one decoding process
When mode, any decoding process is obtained as the target decoder mode at least one decoding process;
It is described that processing is decoded to the multimedia file to be decoded using the target decoder mode, more matchmakers after being decoded
Body file includes:
The multimedia file to be decoded is decoded using any decoding process, multimedia text after being decoded
Part.
6. method as claimed in claim 5, which is characterized in that described to use any decoding process to described to be decoded
Multimedia file is decoded, and includes after multimedia file after being decoded:
Obtain the broadcast information after being decoded to the multimedia file to be decoded using any decoding process;
Using the object content parameter information, any decoding process and the broadcast information as one group of record information
In record to preset record list.
7. method as claimed in claim 6, which is characterized in that the record list includes at least one set of record information;
The correspondence of the set content parameter information and decoding process includes:
By it is described record list included by least one content parameters information type to included by the record list extremely
Few one group of record information is classified, and the corresponding at least one set of record information of each content parameters information is obtained;
Classify by the type of decoding process in the corresponding at least one set of record information of content parameters information of the same race, obtains every
The corresponding at least one set of record information of kind decoding process;
Broadcast information included by the corresponding at least one set of record information of each decoding process calculates each decoding process
Play weights;
It is obtained in the corresponding broadcasting weights of each described decoding process and plays the highest decoding process of weights;
The highest decoding process of the broadcasting weights is set as the corresponding decoding process of the content parameters information of the same race.
8. a kind of terminal, which is characterized in that the terminal includes:
Acquiring unit, the object content parameter information for obtaining multimedia file to be decoded;
Query unit, for the inquiry in preset at least one decoding process and the matched mesh of object content parameter information
Mark decoding process;
Decoding unit is obtained for being decoded processing to the multimedia file to be decoded using the target decoder mode
Multimedia file after decoding.
9. terminal as claimed in claim 8, which is characterized in that at least one decoding process includes hardware decoding process;
The terminal further includes:
Whether detection unit supports the hardware decoding process for detection terminal;
When the detection unit determines that the terminal supports the hardware decoding process, notify the acquiring unit obtains to wait solving
The object content parameter information of code multimedia file.
10. terminal as claimed in claim 9, which is characterized in that the detection unit includes:
First obtains subelement, the identifier for obtaining terminal;
Detection sub-unit, for detecting the identifier whether in pre-set list;
First determination subelement, described in when the detection sub-unit determines that the identifier is in pre-set list, determining
Terminal does not support the hardware decoding process;
Second determination subelement, for when determining the identifier not in the list, determining that it is described hard that the terminal is supported
Part decoding process.
11. terminal as claimed in claim 10, which is characterized in that the terminal includes:
Setting unit is used for the correspondence of set content parameter information and decoding process;
The query unit includes:
Second obtains subelement, for the correspondence according to the content parameters information and decoding process, obtains the target
The corresponding decoding process of content parameters information;
First setting subelement, for the corresponding decoding process of the object content parameter information to be set as and the object content
The matched target decoder mode of parameter information.
12. terminal as claimed in claim 11, which is characterized in that the query unit further includes:
Third obtains subelement, for not inquired and the object content parameter when at least one decoding process
When the target decoder mode of information matches, obtained at least one decoding process any decoding process it is described at least
Any decoding process is obtained as the target decoder mode in a kind of decoding process;
The decoding unit is additionally operable to, and is decoded to the multimedia file to be decoded using any decoding process,
Multimedia file after being decoded.
13. terminal as claimed in claim 12, which is characterized in that the terminal further includes:
Information unit is obtained, the multimedia file to be decoded is decoded using any decoding process for obtaining
Broadcast information afterwards;
Recording unit, for making the object content parameter information, any decoding process and the broadcast information
It is recorded into preset record list for one group of record information.
14. terminal as claimed in claim 13, which is characterized in that the record list includes at least one set of record information;
The setting unit includes:
First classification subelement, for the type by least one content parameters information included by the record list to described
At least one set of record information included by record list is classified, and the corresponding at least one set of note of each content parameters information is obtained
Record information;
Second classification subelement, for pressing decoding process in the corresponding at least one set of record information of content parameters information of the same race
Type is classified, and the corresponding at least one set of record information of each decoding process is obtained;
Computation subunit is calculated for the broadcast information included by the corresponding at least one set of record information of each decoding process
The broadcasting weights of each decoding process;
4th obtains subelement, and the highest solution of weights is played for being obtained in the corresponding broadcasting weights of each described decoding process
Code mode;
Second setting subelement, for the highest decoding process of the broadcasting weights to be set as the content parameters information pair of the same race
The decoding process answered.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710170672.0A CN108632667B (en) | 2017-03-21 | 2017-03-21 | A kind of coding/decoding method and terminal of multimedia file |
PCT/CN2018/079455 WO2018171548A1 (en) | 2017-03-21 | 2018-03-19 | Decoding method, terminal and computer-readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710170672.0A CN108632667B (en) | 2017-03-21 | 2017-03-21 | A kind of coding/decoding method and terminal of multimedia file |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108632667A true CN108632667A (en) | 2018-10-09 |
CN108632667B CN108632667B (en) | 2019-10-22 |
Family
ID=63584147
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710170672.0A Active CN108632667B (en) | 2017-03-21 | 2017-03-21 | A kind of coding/decoding method and terminal of multimedia file |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108632667B (en) |
WO (1) | WO2018171548A1 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109379630A (en) * | 2018-11-27 | 2019-02-22 | Oppo广东移动通信有限公司 | Method for processing video frequency, device, electronic equipment and storage medium |
WO2020107970A1 (en) * | 2018-11-27 | 2020-06-04 | Oppo广东移动通信有限公司 | Video decoding method and apparatus, electronic device, and storage medium |
CN115334352A (en) * | 2022-08-11 | 2022-11-11 | 北京蔚领时代科技有限公司 | Automatic matching video decoding method, device, decoder and storage medium |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109151574B (en) * | 2018-10-15 | 2020-03-24 | Oppo广东移动通信有限公司 | Video processing method, video processing device, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110248986A1 (en) * | 2010-04-07 | 2011-10-13 | Apple Inc. | Intelligent media decoding |
CN104954863A (en) * | 2015-06-05 | 2015-09-30 | 深圳市九洲电器有限公司 | Audio and video decoding component selection method and system |
CN105992056A (en) * | 2015-01-30 | 2016-10-05 | 腾讯科技(深圳)有限公司 | Video decoding method and device |
CN106157988A (en) * | 2016-07-25 | 2016-11-23 | 合网络技术(北京)有限公司 | Play the method and device of multimedia file |
-
2017
- 2017-03-21 CN CN201710170672.0A patent/CN108632667B/en active Active
-
2018
- 2018-03-19 WO PCT/CN2018/079455 patent/WO2018171548A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110248986A1 (en) * | 2010-04-07 | 2011-10-13 | Apple Inc. | Intelligent media decoding |
CN105992056A (en) * | 2015-01-30 | 2016-10-05 | 腾讯科技(深圳)有限公司 | Video decoding method and device |
CN104954863A (en) * | 2015-06-05 | 2015-09-30 | 深圳市九洲电器有限公司 | Audio and video decoding component selection method and system |
CN106157988A (en) * | 2016-07-25 | 2016-11-23 | 合网络技术(北京)有限公司 | Play the method and device of multimedia file |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109379630A (en) * | 2018-11-27 | 2019-02-22 | Oppo广东移动通信有限公司 | Method for processing video frequency, device, electronic equipment and storage medium |
WO2020107970A1 (en) * | 2018-11-27 | 2020-06-04 | Oppo广东移动通信有限公司 | Video decoding method and apparatus, electronic device, and storage medium |
CN115334352A (en) * | 2022-08-11 | 2022-11-11 | 北京蔚领时代科技有限公司 | Automatic matching video decoding method, device, decoder and storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2018171548A1 (en) | 2018-09-27 |
CN108632667B (en) | 2019-10-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108632667B (en) | A kind of coding/decoding method and terminal of multimedia file | |
CN112087633B (en) | Video decoding method, device and storage medium | |
US10271105B2 (en) | Method for playing video, client, and computer storage medium | |
US11202066B2 (en) | Video data encoding and decoding method, device, and system, and storage medium | |
CN113230660B (en) | Application program updating method, device and equipment | |
JP2017519406A (en) | Network video playback method and apparatus | |
US20230285854A1 (en) | Live video-based interaction method and apparatus, device and storage medium | |
CN106558305A (en) | voice data processing method and device | |
CN108235075B (en) | Video quality grade matching method, computer readable storage medium and terminal | |
CN113312237B (en) | Information feedback method and device, electronic equipment and storage medium | |
CN112891926A (en) | Game terminal, cloud server, cloud game control method, and storage medium | |
CN110582024A (en) | method and device for playing video | |
CN108184163A (en) | A kind of video broadcasting method, storage medium and player | |
CN113992638B (en) | Synchronous playing method and device for multimedia resources, storage position and electronic device | |
CN105992055B (en) | video decoding method and device | |
CN114339325B (en) | Multi-engine dynamic wallpaper playing method and device based on android system | |
CN110277110A (en) | A kind of recording of Webpage, playback method, device and terminal | |
CN111885417B (en) | VR video playing method, device, equipment and storage medium | |
CN113596583A (en) | Video stream bullet time data processing method and device | |
CN110677692B (en) | Video decoding method and device and video encoding method and device | |
CN112788430A (en) | Detection method and device for screen projection black screen and computer readable storage medium | |
CN113395585A (en) | Video detection method, video playing control method and device and electronic equipment | |
CN112243135B (en) | Multimedia playing method and device | |
CN114173154B (en) | Video processing method and system | |
CN115695897B (en) | Multi-role-based multi-screen interactive content recommendation method, storage medium and equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: DE Ref document number: 1254510 Country of ref document: HK |
|
GR01 | Patent grant | ||
GR01 | Patent grant |