CN109120939A - A kind of video App coding/decoding method and device - Google Patents

A kind of video App coding/decoding method and device Download PDF

Info

Publication number
CN109120939A
CN109120939A CN201810779048.5A CN201810779048A CN109120939A CN 109120939 A CN109120939 A CN 109120939A CN 201810779048 A CN201810779048 A CN 201810779048A CN 109120939 A CN109120939 A CN 109120939A
Authority
CN
China
Prior art keywords
decoding
video
code rate
coding
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810779048.5A
Other languages
Chinese (zh)
Other versions
CN109120939B (en
Inventor
李金伟
黄博
陈杉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201810779048.5A priority Critical patent/CN109120939B/en
Publication of CN109120939A publication Critical patent/CN109120939A/en
Application granted granted Critical
Publication of CN109120939B publication Critical patent/CN109120939B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/44Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440218Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/4508Management of client data or end-user data
    • H04N21/4516Management of client data or end-user data involving client characteristics, e.g. Set-Top-Box type, software version or amount of memory available

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The present invention provides a kind of video App coding/decoding method and devices, belong to video technique field.The described method includes: collecting the coding and decoding video information that video decoding needs;Decoding policy is generated according to the coding and decoding video information, wherein the decoding policy includes that each broadcasting code rate that present terminal is supported and each mapping relations for playing the corresponding coding type of code rate, the coding type are determined by hardware information;The decoding policy is parsed to select each one played in code rate to play code rate as target;Determine that the target plays the corresponding coding type of code rate to decode to video according to the mapping relations.Video App coding/decoding method and device provided by the invention can select coding type according to code rate is played, provide accurate suitable decoding policy for video App, reduce the decoded differences of different terminals, can promote the usage experience that user plays video.

Description

A kind of video App coding/decoding method and device
Technical field
The invention belongs to video technique fields, more particularly to a kind of video App coding/decoding method and device.
Background technique
It is also more in the terminal to adopt in addition to using And Study of Soft Decode Technique with the continuous development of video decoding techniques With hardware decoding technique.Software decoding refers to be decoded by the CPU that software itself occupies.Hardware decoding refers to using movement The dedicated module of GPU carries out video decoding in terminal, since the concurrent operation ability of GPU will be much higher than CPU, can be effectively reduced Load of the video playing to CPU, so that more power saving, is suitble to prolonged mobile terminal HD video to play and be broadcast live.Furthermore hard Part decodes the occupancy for reducing CPU, is conducive to the fluency for promoting video playing, and therefore, hardware decoding obtains in video App Wide application.
Currently, the mobile terminal brand and model of android system is various in the market, each brand and model terminal device is adopted again With the android system of different hardware platform and different editions, thus, video App is decoded according to GPU manual configuration video Strategy is generally that mainstream model extensive style configuration decoding policy is directly determined using hardware according to mobile phone model and its hardware information Decoding or software decoding.Therefore the decoding capability for causing each brand and model terminal device to be supported is not identical, distinct device Between video decoding effect differ greatly, user using video App experience there are larger contrasts.
Summary of the invention
The present invention provides a kind of video App coding/decoding method and device, to solve existing video App in different terminal equipment The problem of decoding effect differs greatly.
According to the present invention in a first aspect, provide a kind of video App coding/decoding method, this method comprises:
Collect the coding and decoding video information that video decoding needs;
Decoding policy is generated according to the coding and decoding video information, wherein the decoding policy is supported comprising present terminal Each broadcasting code rate and each mapping relations for playing the corresponding coding type of code rate, the coding type is by hardware Information determines;
The decoding policy is parsed to select each one played in code rate to play code rate as target;
Determine that the target plays the corresponding coding type of code rate to decode to video according to the mapping relations.
It is optionally, described that decoding policy is generated according to the coding and decoding video information, comprising:
Pass through the coding and decoding video acquisition of information abridged table and rank;
Each broadcasting code rate that mobile terminal is supported is obtained according to abridged table and rank;
It is the corresponding coding type of each broadcasting rate adaption to generate decoding policy.
Optionally, the hardware information of mobile terminal is collected;
The type of coding type and decoder is determined according to the hardware information.
Optionally, the operating system version information of mobile terminal is collected;
The display of additional function icon is controlled according to the operating system version information, the additional function includes at least clear Clear degree setting, VR are arranged, are in HDR setting one or several.
Optionally, according to the operating system version information, video playing is controlled.
Second aspect according to the present invention, provides a kind of video App decoding apparatus, and described device includes:
First collection module, the coding and decoding video information needed for collecting video decoding;
Generation module, for generating decoding policy according to the coding and decoding video information, wherein the decoding policy includes The each broadcasting code rate and each mapping relations for playing the corresponding coding type of code rate that present terminal is supported, the solution Code type is determined by hardware information;
Parsing module, for parsing the decoding policy to select each one played in code rate to broadcast as target Put code rate;
Decoder module, for determining that the target plays the corresponding coding type of code rate to view according to the mapping relations Frequency decodes.
Optionally, the generation module includes:
Information acquisition unit, for passing through the coding and decoding video acquisition of information abridged table and rank;
Code rate acquiring unit, for obtaining each broadcasting code rate that mobile terminal is supported according to abridged table and rank;
Adaptation unit, for being the corresponding coding type of each broadcasting rate adaption to generate decoding policy.
Optionally, described device further include:
Second collection module, for collecting the hardware information of mobile terminal;
Coding type determining module, for determining the type of coding type and decoder according to the hardware information.
Optionally, described device further include:
Third collection module, for collecting the operating system version information of mobile terminal;
Additional function control module, for controlling the display of additional function icon according to the operating system version information, The additional function includes at least clarity setting, VR is arranged, one or several in HDR setting.
Optionally, described device further include:
Broadcast Control module, for controlling video playing according to the operating system version information.
For first technology, the present invention has following advantage: video App coding/decoding method provided by the invention, can basis The coding and decoding video information being collected into obtains each broadcasting code rate of mobile terminal support, selects a kind of broadcasting code rate and its correspondence Coding type be decoded, accurate suitable fine granularity decoding policy can be provided for video App, can guarantee the decoding of video Effect reduces the decoded differences of each different model terminal, and the scope of application is wider, and can promote user's broadcasting video uses body It tests.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 is a kind of step flow chart for video App coding/decoding method that the embodiment of the present invention one provides;
Fig. 2 is a kind of step flow chart of video App coding/decoding method provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of block diagram for video App decoding apparatus that the embodiment of the present invention three provides;
Fig. 4 is the block diagram for another video App decoding apparatus that the embodiment of the present invention three provides.
Specific embodiment
The exemplary embodiment that the present invention will be described in more detail below with reference to accompanying drawings.Although showing the present invention in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the present invention without should be by embodiments set forth here It is limited.It is to be able to thoroughly understand the present invention on the contrary, providing these embodiments, and can be by the scope of the present invention It is fully disclosed to those skilled in the art.
Embodiment one
Referring to Fig.1, the step flow chart of one of embodiment of the present invention video App coding/decoding method is shown, it is specific to walk Suddenly include:
Step 101, the coding and decoding video information that video decoding needs is collected;
In general, video APP can video resource document presentation to various formats play, video App is to view in mobile terminal The decoding of frequency is the fixed hardware decoding scheme of corresponding terminal coupling by terminal models.It is collected in the present invention by video App Coding and decoding video information required for video decodes, the coding and decoding video information, that is, Mediacodecinfo information, Mediacodecinfo information is the definition about video data compression agreement, code/decode format etc. (for example, wherein at least including There is the definition of data format, color format etc.).Android provides Mediacodec class so as to the more flexible place of developer The encoding and decoding of video are managed, compared with the high-level such as MediaPlayer/VideoView APIs, MediaCodec is low- Level APIs, therefore it provides interface more perfect, flexible, abundant, more flexible function may be implemented in developer. MediaCodec class can be used for accessing the Video Codec (for example, encoder/decoder component) of Android bottom, it is Android bottom video supports a part of architecture, can obtain Mediacodecinfo information by Mediacodec class Decoding for video.
Step 102, decoding policy is generated according to the coding and decoding video information, wherein the decoding policy includes current The each broadcasting code rate and each mapping relations for playing the corresponding coding type of code rate that terminal is supported, the codec class Type is determined by hardware information;
Video App generates decoding policy according to the coding and decoding video information being collected into, based on default rule.It is generated The mapping relations of each broadcasting code rate and the corresponding coding type of each broadcasting code rate supported in decoding policy comprising terminal. Code rate, that is, bit rate is played, refers to bit (bit) number of transmission per second, unit is bps (Bit Per Second), and bit rate is got over Height, transmission data speed is faster, and the quality of corresponding video is also higher.Since the decoded effect of hardware is decoded better than software, because This, generate decoding policy when default rule can be for height play code rate match hardware decoding or simultaneously match hardware decoding and Software decoding matches software decoding for low broadcasting code rate.Such as: its branch is obtained according to the Mediacodecinfo information of A terminal The broadcasting code rate held is 40Mbps and two kinds of 15Mbps, and wherein the corresponding coding type of broadcasting code rate of 40Mbps can be software The corresponding coding type of broadcasting code rate of decoding or hardware decoding, 15Mbps can decode for software.Due to coding type be by What hardware performance determined, thus coding type can first pass through in advance hardware information and be determined.Thus, pass through decoding policy, a side Face would know which mobile terminal supports play code rate, on the other hand, would know that and is applicable in the coding type that Mr. Yu plays code rate.
Certainly, in a step 102, video App can also be by network protocol by collected coding and decoding video information It is uploaded to the application server of video App, application server generates decoding policy according to default rule.In this case, Mobile terminal where video App may also receive from the notification message of application server, to confirm that the coding and decoding video is believed Breath has been uploaded and has been finished, and is generated according to notification message and saved a flag information, for identify coding and decoding video information upload at Function avoids the repetition of decoded information from uploading.
The decoding policy can be handed down to each mobile terminal by server, for mobile terminal that same model similarly configures and Speech should as long as the coding and decoding video information that server is collected into the upload of any one terminal produces corresponding decoding policy Decoding policy can be handed down to each mobile terminal of same model same configuration in batches, be locally generated without each mobile terminal Decoding policy.
Step 103, the decoding policy is parsed to select each one played in code rate to play code as target Rate;
Based on aforementioned decoding policy generated, video App can be parsed decoding policy, can by parsing Each broadcasting code rate that current mobile terminal is supported is obtained, thus, one of code rate that plays may be selected and broadcast as target It puts code rate to decode for video, when selecting any one to play code rate, can be and built based on the relationship from big to small for playing code rate Vertical priority, preset preferential selection broadcasting code rate is biggish, can also be selected according to the practical operation to player of user One of them.
Step 104, determine that the target plays the corresponding coding type of code rate to video solution according to the mapping relations Code.
Determined when the decoded target of video plays code rate, can determine according to the mapping relations in decoding policy with Target plays the corresponding coding type of code rate, and certainly, since hardware decoding can reduce the workload of CPU in itself, this is excellent Feature, thus, it is preferential to select hardware decoding to guarantee to regard when target plays code rate corresponding hardware decoding simultaneously and software decoding Frequency decoding effect.Video App selects suitable decoder to video correlation according to the decoding policy after parsing from mobile terminal Data flow be decoded.To guarantee the decoding effect of video, diminution is each not by playing code rate selection coding type With the decoded differences of model terminal, to promote the broadcasting experience of user.
Video App coding/decoding method provided by the invention can obtain mobile whole according to the coding and decoding video information being collected into The each broadcasting code rate supported is held, a kind of broadcasting code rate and its corresponding coding type is selected to be decoded, can be mentioned for video App For accurate suitable fine granularity decoding policy, it can guarantee the decoding effect of video, reduce the decoding of each different model terminal Difference, the scope of application is wider, can promote the usage experience that user plays video.
Embodiment two
Referring to Fig. 2, the step flow chart of one of embodiment of the present invention video App coding/decoding method is shown, it is specific to walk Suddenly include:
Step 201, the hardware information of mobile terminal is collected;
Typically, hardware product has its corresponding application manual, be described in detail hardware product operation instruction and Performance parameter.Hardware information refers to the parameter informations such as CPU, GPU relevant to video decoding broadcasting, these hardware informations are for configuring The type and coding type of decoder, i.e., for determine the type of decoder be H.264AVC, H.265HEVC, VP8, VP9 etc. which One kind, and decoded using software decoding or hardware.Based on these information, the present invention can establish a hardware in video App Information configuration table records the type of coding type and decoder that the hardware such as CPU, GPU of various models are supported.Matched by this The hardware information for setting table collection mobile terminal can determine the type of coding type and decoder.
Step 202, the type of coding type and decoder is determined according to the hardware information;
When video App gets the hardware information of present terminal, end can be determined by inquiring hardware information allocation list Hold the type of the coding type and decoder supported.For example, learning that the GPU of a certain model supports hardware decoding this by tabling look-up Coding type supports H.265HEVC such decoder.Certainly, may also occur terminal in practice and support a variety of decodings Device type (such as: H.264AVC, H.265HEVC, VP8, VP9 etc.), at this point, being usually the volume according to the video film source played Code mode further determines the type of decoder, and details are not described herein by the present invention.
Step 203, the operating system version information of mobile terminal is collected;
The operating system of different editions has been indicated generally at which additional special video effect function is the system itself support, passes through Configuration file relevant to operating system collects and gets operating system version information, adding when can configure video playing Function plays out control to video convenient for the corresponding function of user experience.
Step 204, the display of additional function icon is controlled according to the operating system version information, the additional function is extremely It less include that clarity is arranged, VR is arranged, one or several in HDR setting;
After having collected operating system version information, it can know which additional function is the operating system of current version support Can, it can accordingly be decoded in player according to the additional function for including in Broadcast Control information and show that corresponding icon sets function It sets and controls, additional function can be to be one or several in clarity setting, VR setting, HDR setting, certainly, with hardware The enhancing of performance and enriching for operation system function, additional function can also expand increase therewith, and the present invention is without limitation.
Step 205, the coding and decoding video information that video decoding needs is collected;
Coding and decoding video information required for video decodes, the coding and decoding video information are collected by video App in the present invention That is Mediacodecinfo information, Mediacodecinfo information are about video data compression agreement, code/decode format etc. It defines (for example, wherein at least including the definition of data format, color format etc.).Android provides Mediacodec class So as to the encoding and decoding of the more flexible processing video of developer, with the high-level APIs such as MediaPlayer/VideoView It compares, MediaCodec is low-level APIs, therefore it provides interface more perfect, flexible, abundant, and developer can To realize more flexible function.MediaCodec class can be used for accessing the Video Codec of Android bottom (for example, compiling Code device/decoder component), it is a part that Android bottom video supports architecture, can be obtained by Mediacodec class Take decoding of the coding and decoding video information for video.
Step 206, decoding policy is generated according to the coding and decoding video information, wherein the decoding policy includes current The each broadcasting code rate and each mapping relations for playing the corresponding coding type of code rate that terminal is supported, the codec class Type is determined by hardware information;
Wherein, decoding policy is generated according to the coding and decoding video information, comprising:
Step 2061, pass through the coding and decoding video acquisition of information abridged table and rank;
Coding and decoding video information, that is, Mediacodecinfo information, Mediacodecinfo information are about videos such as videos The definition (for example, wherein at least including the definition of data format, color format etc.) of data compression protocol, code/decode format etc. It wherein include abridged table and level information, abridged table (profile) definition is related to characteristic, such as compression algorithm, chroma format etc., Rank (Level) definition is related to performance, such as Maximum Bit Rate, maximum frame sign etc..Therefore, pass through coding and decoding video information Abridged table can be obtained and rank is used for the decoding of video.
Step 2062, each broadcasting code rate that mobile terminal is supported is obtained according to abridged table and rank;
By taking H.264AVC video encoding standard as an example, the letter based on abridged table (profile) picture coding type recorded Breath, with regard to carrying out coded treatment using the method for intra prediction, otherwise, then uses frame if it is determined that picture coding type is key frame Between the mode predicted estimation is carried out to its scene changes situation, which is actually with current encoded view Frequency picture frame is as reference picture, the predicted value that obtains after motion compensation.Meanwhile in order to reduce prediction error and promote view The selection of the compression ratio of frequency picture frame, reference picture can be by rebuilding the former or following encoded video image frame To obtain.Then, predicted value and current macro are subjected to difference calculating, obtain residual error macro block information, it is then macro to the residual error again Block message carries out the processing such as integer transform, quantization and entropy coding.Finally, the bit rate combination rank (Level) that coding is obtained The information of middle record obtains each broadcasting code rate of mobile terminal support.To which mobile terminal can be obtained according to abridged table and rank The each broadcasting code rate supported.
It step 2063, is the corresponding coding type of each broadcasting rate adaption to generate decoding policy.
Video App generates decoding policy according to the coding and decoding video information being collected into, based on default rule.It is generated The mapping relations of each broadcasting code rate and the corresponding coding type of each broadcasting code rate supported in decoding policy comprising terminal. Since coding type is to be determined by hardware performance, thus coding type can first pass through in advance hardware information and be determined.Due to hard The decoded effect of part is decoded better than software, and therefore, when generating decoding policy default rule, which can be, plays code rate matching for height Hardware decodes or matches simultaneously hardware decoding and software decoding, matches software decoding for low broadcasting code rate.It specifically can be according to this One configuration file of rule setting records applied each corresponding relationship for playing code rate and coding type in the industry, in advance It is placed in video App, thus after each broadcasting code rate for obtaining mobile terminal support according to abridged table and rank, video App can be the corresponding coding type of each broadcasting rate adaption by query configuration file to generate decoding policy.Such as: in advance The decoding of 10Mbps corresponding software, the decoding of 15Mbps corresponding software, 20Mbps corresponding software solution are had recorded in the configuration file of setting Code, 40Mbps correspond to hardware decoding or software decoding, obtain the broadcasting of its support according to the Mediacodecinfo information of A terminal Code rate is 40Mbps and two kinds of 15Mbps, then by configuration file it is found that the corresponding coding type of broadcasting code rate of 40Mbps It can be software decoding or hardware decoding, the corresponding coding type of broadcasting code rate of 15Mbps can decode for software.
Therefore, each broadcasting code rate comprising terminal support in decoding policy generated and each broadcasting code rate are corresponding Coding type mapping relations.Pass through decoding policy, on the one hand, it would know which mobile terminal supports play code rate, it is another Aspect would know that and be applicable in the coding type that Mr. Yu plays code rate.
Step 207, the decoding policy is parsed to select each one played in code rate to play code as target Rate;
Based on aforementioned decoding policy generated, video App can be parsed decoding policy, can by parsing Each broadcasting code rate that current mobile terminal is supported is obtained, thus, one of code rate that plays may be selected and broadcast as target It puts code rate to decode for video, when selecting any one to play code rate, can be and built based on the relationship from big to small for playing code rate Vertical priority, preset preferential selection broadcasting code rate is biggish, and the practical operation to player that can also monitor user selects One of them.
Step 208, determine that the target plays the corresponding coding type of code rate to video solution according to the mapping relations Code;
Determined when the decoded target of video plays code rate, can determine according to the mapping relations in decoding policy with Target plays the corresponding coding type of code rate, and certainly, since hardware decoding can reduce the workload of CPU in itself, this is excellent Feature, thus, it is preferential to select hardware decoding to guarantee to regard when target plays code rate corresponding hardware decoding simultaneously and software decoding Frequency decoding effect.To ensure that the accurate thin of decoding policy by selection coding type corresponding with target broadcasting code rate It causes, improves the decoding effect of video, reduce the decoded differences of each different model terminal, the playing body of user can be promoted It tests.
Step 209, according to the operating system version information, video playing is controlled.
Based on the aforementioned decoding to video, the operating system version information being collected into can be used for decoding Broadcast Control process, this Operating system version information is also used for the control of the broadcasting in decoding process in invention, wherein the operating system of different editions is logical It often indicates which additional special effective function is the system itself support, video playing can be configured by operating system version information When additional function, control is played out to video convenient for user experience corresponding function, usable family obtains function abundant Experience.
Video App coding/decoding method provided by the invention, can obtain coding type, according to collection based on hardware information To coding and decoding video information obtain mobile terminal support each broadcasting code rate, select one as target broadcasting code rate, from And with target play code rate be according to selecting corresponding coding type, on the basis of the coding type determined by hardware information, Fusion considers the broadcasting code rate from coding and decoding video information, the coordination performance of software and hardware is given full play to, so that decoding policy is more To be accurate, and system version information is utilized in decoding process, realizes the expansion of decoding Broadcast Control function, it is whole to promote making for user With experience sense by.
Embodiment three
Referring to Fig. 3, the structural block diagram of one of embodiment of the present invention video App decoding apparatus is shown, the device packet It includes:
First collection module 301, the coding and decoding video information needed for collecting video decoding;
Generation module 302, for generating decoding policy according to the coding and decoding video information, wherein the decoding policy The each broadcasting code rate supported comprising present terminal and each mapping relations for playing the corresponding coding type of code rate, institute Coding type is stated to be determined by hardware information;
Parsing module 303, for parsing the decoding policy to select each one played in code rate as mesh Mark plays code rate;
Decoder module 304, for according to the mapping relations determine the target play the corresponding coding type of code rate with Video is decoded.
Optionally, referring to Fig. 4, on the basis of Fig. 3, the generation module 302, comprising:
Information acquisition unit 3021, for passing through the coding and decoding video acquisition of information abridged table and rank;
Code rate acquiring unit 3022, for obtaining each broadcasting code rate that mobile terminal is supported according to abridged table and rank;
Adaptation unit 3023, for being the corresponding coding type of each broadcasting rate adaption to generate decoding policy.
Optionally, described device further include:
Second collection module 305, for collecting the hardware information of mobile terminal;
Coding type determining module 306, for determining the type of coding type and decoder according to the hardware information.
Optionally, described device further include:
Third collection module 307, for collecting the operating system version information of mobile terminal;
Additional function control module 308, for controlling the aobvious of additional function icon according to the operating system version information Show, the additional function includes at least clarity setting, VR is arranged, one or several in HDR setting.
Optionally, described device further include:
Broadcast Control module 309, for controlling video playing according to the operating system version information.
Video App coding/decoding method provided by the invention, can obtain coding type, according to collection based on hardware information To coding and decoding video information obtain mobile terminal support each broadcasting code rate, select one as target broadcasting code rate, from And with target play code rate be according to selecting corresponding coding type, on the basis of the coding type determined by hardware information, Fusion considers the broadcasting code rate from coding and decoding video information, the coordination performance of software and hardware is given full play to, so that decoding policy is more To be accurate, and system version information is utilized in decoding process, realizes the expansion of decoding Broadcast Control function, it is whole to promote making for user With experience sense by.
For above-mentioned apparatus embodiment, since it is basically similar to the method embodiment, so be described relatively simple, The relevent part can refer to the partial explaination of embodiments of method.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It would have readily occurred to a person skilled in the art that: any combination application of above-mentioned each embodiment is all feasible, therefore Any combination between above-mentioned each embodiment is all embodiment of the present invention, but this specification exists as space is limited, This is not just detailed one by one.
Video App coding/decoding method is not intrinsic with any certain computer, virtual system or other equipment provided herein It is related.Various general-purpose systems can also be used together with teachings based herein.As described above, construction has the present invention Structure required by the system of scheme is obvious.In addition, the present invention is also not directed to any particular programming language.It should be bright It is white, it can use various programming languages and realize summary of the invention described herein, and retouched above to what language-specific was done State is in order to disclose the best mode of carrying out the invention.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the present invention and help to understand one or more of the various inventive aspects, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, such as right As claim reflects, inventive aspect is all features less than single embodiment disclosed above.Therefore, it then follows tool Thus claims of body embodiment are expressly incorporated in the specific embodiment, wherein each claim conduct itself Separate embodiments of the invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention Within the scope of and form different embodiments.For example, in detail in the claims, embodiment claimed it is one of any Can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice Microprocessor or digital signal processor (DSP) realize one in video APP coding/decoding method according to an embodiment of the present invention The some or all functions of a little or whole components.The present invention is also implemented as executing method as described herein Some or all device or device programs (for example, computer program and computer program product).Such realization Program of the invention can store on a computer-readable medium, or may be in the form of one or more signals.This The signal of sample can be downloaded from an internet website to obtain, and is perhaps provided on the carrier signal or mentions in any other forms For.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame Claim.

Claims (10)

1. a kind of video App coding/decoding method, which is characterized in that the described method includes:
Collect the coding and decoding video information that video decoding needs;
Decoding policy is generated according to the coding and decoding video information, wherein the decoding policy includes each of present terminal support A to play code rate and each mapping relations for playing the corresponding coding type of code rate, the coding type is by hardware information It determines;
The decoding policy is parsed to select each one played in code rate to play code rate as target;
Determine that the target plays the corresponding coding type of code rate to decode to video according to the mapping relations.
2. the method according to claim 1, wherein described generate decoding plan according to the coding and decoding video information Slightly, comprising:
Pass through the coding and decoding video acquisition of information abridged table and rank;
Each broadcasting code rate that mobile terminal is supported is obtained according to abridged table and rank;
It is the corresponding coding type of each broadcasting rate adaption to generate decoding policy.
3. the method according to claim 1, wherein generating decoding policy according to the coding and decoding video information Before, further includes:
Collect the hardware information of mobile terminal;
The type of coding type and decoder is determined according to the hardware information.
4. the method according to claim 1, wherein further include:
Collect the operating system version information of mobile terminal;
The display of additional function icon is controlled according to the operating system version information, the additional function includes at least clarity It is arranged, VR is arranged, one or several in HDR setting.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
According to the operating system version information, video playing is controlled.
6. a kind of video App decoding apparatus, which is characterized in that described device includes:
First collection module, the coding and decoding video information needed for collecting video decoding;
Generation module, for generating decoding policy according to the coding and decoding video information, wherein the decoding policy includes current The each broadcasting code rate and each mapping relations for playing the corresponding coding type of code rate that terminal is supported, the codec class Type is determined by hardware information;
Parsing module, for parsing the decoding policy to select each one played in code rate to play code as target Rate;
Decoder module, for determining that the target plays the corresponding coding type of code rate to video solution according to the mapping relations Code.
7. device according to claim 6, which is characterized in that the generation module includes:
Information acquisition unit, for passing through the coding and decoding video acquisition of information abridged table and rank;
Code rate acquiring unit, for obtaining each broadcasting code rate that mobile terminal is supported according to abridged table and rank;
Adaptation unit, for being the corresponding coding type of each broadcasting rate adaption to generate decoding policy.
8. device according to claim 6, which is characterized in that described device further include:
Second collection module, for collecting the hardware information of mobile terminal;
Coding type determining module, for determining the type of coding type and decoder according to the hardware information.
9. device according to claim 6, which is characterized in that described device further include:
Third collection module, for collecting the operating system version information of mobile terminal;
Additional function control module, it is described for controlling the display of additional function icon according to the operating system version information Additional function includes at least clarity setting, VR is arranged, one or several in HDR setting.
10. device according to claim 9, which is characterized in that described device further include:
Broadcast Control module, for controlling video playing according to the operating system version information.
CN201810779048.5A 2018-07-16 2018-07-16 Video App decoding method and device Active CN109120939B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810779048.5A CN109120939B (en) 2018-07-16 2018-07-16 Video App decoding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810779048.5A CN109120939B (en) 2018-07-16 2018-07-16 Video App decoding method and device

Publications (2)

Publication Number Publication Date
CN109120939A true CN109120939A (en) 2019-01-01
CN109120939B CN109120939B (en) 2021-04-06

Family

ID=64862834

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810779048.5A Active CN109120939B (en) 2018-07-16 2018-07-16 Video App decoding method and device

Country Status (1)

Country Link
CN (1) CN109120939B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109640094A (en) * 2018-11-27 2019-04-16 Oppo广东移动通信有限公司 Video encoding/decoding method, device and electronic equipment
CN111614975A (en) * 2020-05-08 2020-09-01 北京拙河科技有限公司 Method, device, medium and equipment for playing hundred million-level pixel video

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101383962A (en) * 2007-09-07 2009-03-11 武汉大学 Low code rate space domain enhancement layer encoding and decoding method based on interested region
US20090196339A1 (en) * 2008-01-31 2009-08-06 Kabushiki Kaisha Toshiba Transcoding apparatus and transcoding method
CN101895737A (en) * 2010-07-13 2010-11-24 中兴通讯股份有限公司 Multimedia decoding method and device as well as video monitoring method and system
CN103269331A (en) * 2013-04-20 2013-08-28 华为技术有限公司 Method and device for selectively playing code rate content
US20140368672A1 (en) * 2002-04-19 2014-12-18 Soryn Technologies Llc Methods for Deploying Video Monitoring Applications and Services Across Heterogeneous Networks
CN104780378A (en) * 2015-04-16 2015-07-15 腾讯科技(北京)有限公司 Method, device and player for decoding video
CN104837042A (en) * 2015-05-06 2015-08-12 腾讯科技(深圳)有限公司 Digital multimedia data encoding method and apparatus
CN106131319A (en) * 2016-06-29 2016-11-16 努比亚技术有限公司 A kind of information processing method and device, terminal
CN107302703A (en) * 2016-04-15 2017-10-27 中兴通讯股份有限公司 Audio and video playing method and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140368672A1 (en) * 2002-04-19 2014-12-18 Soryn Technologies Llc Methods for Deploying Video Monitoring Applications and Services Across Heterogeneous Networks
CN101383962A (en) * 2007-09-07 2009-03-11 武汉大学 Low code rate space domain enhancement layer encoding and decoding method based on interested region
US20090196339A1 (en) * 2008-01-31 2009-08-06 Kabushiki Kaisha Toshiba Transcoding apparatus and transcoding method
CN101895737A (en) * 2010-07-13 2010-11-24 中兴通讯股份有限公司 Multimedia decoding method and device as well as video monitoring method and system
CN103269331A (en) * 2013-04-20 2013-08-28 华为技术有限公司 Method and device for selectively playing code rate content
CN104780378A (en) * 2015-04-16 2015-07-15 腾讯科技(北京)有限公司 Method, device and player for decoding video
CN104837042A (en) * 2015-05-06 2015-08-12 腾讯科技(深圳)有限公司 Digital multimedia data encoding method and apparatus
CN107302703A (en) * 2016-04-15 2017-10-27 中兴通讯股份有限公司 Audio and video playing method and device
CN106131319A (en) * 2016-06-29 2016-11-16 努比亚技术有限公司 A kind of information processing method and device, terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
彭国杰: "面向视频解码应用的SOPC***研究", 《中国优秀硕士学位论文全文数据库》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109640094A (en) * 2018-11-27 2019-04-16 Oppo广东移动通信有限公司 Video encoding/decoding method, device and electronic equipment
CN109640094B (en) * 2018-11-27 2021-06-15 Oppo广东移动通信有限公司 Video decoding method and device and electronic equipment
CN111614975A (en) * 2020-05-08 2020-09-01 北京拙河科技有限公司 Method, device, medium and equipment for playing hundred million-level pixel video

Also Published As

Publication number Publication date
CN109120939B (en) 2021-04-06

Similar Documents

Publication Publication Date Title
RU2701080C1 (en) Video encoding method and a video encoding device and a video decoding method and a video decoding device for sao parameter signaling
KR101383735B1 (en) Methods and apparatus for use in a multi-view video coding system
KR101467430B1 (en) Method and system for providing application based on cloud computing
CN108965892B (en) Apparatus for video decoding
RU2650181C2 (en) Image processing device and method
EP3185557A1 (en) Predictive coding/decoding method, corresponding coder/decoder, and electronic device
JP5281076B2 (en) Inter-view prediction with downsampled reference pictures
CN114501062B (en) Video rendering coordination method, device, equipment and storage medium
WO2019137313A1 (en) Media information processing method and apparatus
MX2007005829A (en) Film grain sei message insertion for bit-accurate simulation in a video system.
CN109672893A (en) A kind of video encoding/decoding method, device, equipment and storage medium
US11949853B2 (en) Data decoding method and apparatus, and data coding method and apparatus
KR102454142B1 (en) Method and apparatus for employing dynamic range mapping data for hdr video decoder considering backward compatibility
CN109120939A (en) A kind of video App coding/decoding method and device
CN110572673B (en) Video encoding and decoding method and device, storage medium and electronic device
CN112004114B (en) Video processing method and device, readable storage medium and electronic equipment
US11622105B2 (en) Adaptive block update of unavailable reference frames using explicit and implicit signaling
CN110572672B (en) Video encoding and decoding method and device, storage medium and electronic device
CN115941972A (en) Image transmission method, device, equipment and storage medium
CN110784719B (en) Efficient encoding of video data in the presence of video annotations
CN110958459B (en) Data processing method and device
CN110572674B (en) Video encoding and decoding method and device, storage medium and electronic device
CN114025162A (en) Entropy decoding method, medium, program product, and electronic device
CN113163212A (en) Video decoding method and apparatus, video encoding method and apparatus, medium, and device
KR20140123190A (en) method and apparatus for encoding and decoding screen image considering contents type and recording medium thereof

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
GR01 Patent grant
GR01 Patent grant