CN104980797A - Video decoding method and client - Google Patents

Video decoding method and client Download PDF

Info

Publication number
CN104980797A
CN104980797A CN201510280342.8A CN201510280342A CN104980797A CN 104980797 A CN104980797 A CN 104980797A CN 201510280342 A CN201510280342 A CN 201510280342A CN 104980797 A CN104980797 A CN 104980797A
Authority
CN
China
Prior art keywords
decoding
decoding process
video
electronic equipment
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
CN201510280342.8A
Other languages
Chinese (zh)
Other versions
CN104980797B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201510280342.8A priority Critical patent/CN104980797B/en
Publication of CN104980797A publication Critical patent/CN104980797A/en
Application granted granted Critical
Publication of CN104980797B publication Critical patent/CN104980797B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/8166Monomedia components thereof involving executable data, e.g. software
    • H04N21/8193Monomedia components thereof involving executable data, e.g. software dedicated tools, e.g. video decoder software or IPMP tool

Landscapes

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

Abstract

The invention discloses a video decoding method and a client. The method comprises: judging whether an electronic device supports a first decoding mode; if the electronic device supports the first decoding mode, determining to adopt the first decoding mode to decode a video; if the electronic device does not support the first decoding mode, determining to adopt a second decoding mode to decode the video; and adopting the determined decoding mode to decode the video.

Description

Video encoding/decoding method and client
Technical field
The present invention relates to areas of information technology, particularly relate to a kind of video encoding/decoding method and client.
Background technology
Along with the development of electronic technology and information technology, increasing equipment can displaying video, but has various ways to video decode in prior art, and different decoding processes has respective pluses and minuses.If any decoding process the energy consumption of decoding device can be caused large, some decoding processes can cause some video cannot normal play, obviously how to determine when current application scene or reach specify effect decoding process (concrete as, decoding process when is selected to make electronic equipment reduce decoding power consumption on the whole, do not affect the normal decoder etc. of video simultaneously), be prior art problem demanding prompt solution.
Summary of the invention
In view of this, the embodiment of the present invention is expected to provide a kind of video encoding/decoding method and client, to expect to select suitable decoding process flexibly.
For achieving the above object, technical scheme of the present invention is achieved in that
Embodiment of the present invention first aspect provides a kind of video encoding/decoding method, and described method comprises:
Judge whether electronic equipment supports the first decoding process;
If described first decoding process supported by described electronic equipment, determine to adopt described first decoding process decoded video; If described first decoding process do not supported by described electronic equipment, determine that employing second decoding process is decoded described video;
Play described through decoded video.
Preferably, described method also comprises: the facility information obtaining described electronic equipment;
Describedly judge whether described electronic equipment supports the first decoding process, comprising:
Judge whether described electronic equipment supports described first decoding process according to facility information.
Preferably, described foundation facility information judges whether described electronic equipment supports the first decoding process, comprising:
The facility information whether comprising described electronic equipment is inquired about in the first decoding list information prestored; Wherein, described first decoding list information comprises described first decoding process can be utilized to carry out the facility information of video decode.
If described first decoding list information comprises the facility information of described electronic equipment, then confirm that described first decoding process supported by described electronic equipment.
Preferably, described method also comprises:
Described according to before facility information judges whether described electronic equipment supports the first decoding process, judge that whether described first decoding list information be that list information of decoding with second in server is consistent;
If described first decoding list information and described second list information of decode is inconsistent, then upgrades described first and to decode list information, the described first list information and described second list information of decoding of decoding is consistent.
Preferably, describedly judge whether electronic equipment supports the first decoding process, comprising:
Inquire about in described electronic equipment whether to store and show that the decoding capability identification information of described first decoding process supported by described electronic equipment;
If store described decoding capability identification information in described electronic equipment, then represent that described first decoding process supported by described electronic equipment;
Wherein, described decoding capability identification information is: the information that the Query Result of decoding list information according to the facility information of described electronic equipment inquiry support first generates; Wherein, described first decoding list information comprises described first decoding process can be utilized to carry out the facility information of video decode.
Preferably, described method also comprises:
Adopt the described video playback fault of described first decoding process decoding if detect, then switch to and adopt described second decoding process to decode described video.
Preferably, described method also comprises:
Adopt the described video playback fault of described second decoding process decoding if detect, then switch to and adopt described first decoding process to decode described video, or stop playing described video and generating and show miscue information.
Preferably, described method also comprises:
Before the described video of broadcasting, formed and store the decoding process label information of the decoding process characterizing described video;
If described video broadcasts fault, determine the decoding process of described video according to described decoding process label information.
Preferably, described first decoding process is hard solution;
Described second decoding process is soft solution.
Embodiment of the present invention second aspect provides a kind of client, and described client comprises:
First judging unit, for judging whether electronic equipment supports the first decoding process;
First determining unit, if support described first decoding process for described electronic equipment, determines to adopt described first decoding process decoded video; If the described client of the first determining unit does not support described first decoding process, determine to adopt the second decoding process and to decode described video;
Video decoding unit, to decode described video for adopting determined decoding process;
Video playback unit, for the video after broadcast decoder.
Preferably, described client also comprises:
Acquiring unit, for obtaining the facility information of described electronic equipment;
According to facility information, described first judging unit, specifically for judging whether described electronic equipment supports described first decoding process.
Preferably, described first judging unit, specifically for inquiring about the facility information whether comprising described electronic equipment in the first decoding list information prestored; Wherein, described first decoding list information comprises described first decoding process can be utilized to carry out the facility information of video decode.If described first decoding list information comprises the facility information of described electronic equipment, then confirm that described first decoding process supported by described electronic equipment.
Preferably, described electronic equipment also comprises:
Second judging unit, for described according to before facility information judges whether described electronic equipment supports the first decoding process, judge that whether described first decoding list information be that list information of decoding with second in server is consistent;
Updating block, if inconsistent for described first decoding list information and described second list information of decode, then upgrade described first and to decode list information, and the described first list information and described second list information of decoding of decoding is consistent.
Preferably, specifically for inquiring about in described electronic equipment whether to store, described first judging unit, shows that the decoding capability identification information of described first decoding process supported by described electronic equipment; If store described decoding capability identification information in described electronic equipment, then represent that described first decoding process supported by described electronic equipment;
Wherein, described decoding capability identification information is: according to the facility information first of described electronic equipment decode list information Query Result generate information; Wherein, described first decoding list information comprises described first decoding process can be utilized to carry out the facility information of video decode.
Preferably, described video decoding unit, if also for detecting the described video playback fault adopting described first decoding process decoding, then switch to and adopt described second decoding process to decode described video.
Preferably, described client also comprises broadcast unit;
Described video decoding unit, if also for detecting the described video playback fault adopting described second decoding process decoding, then switch to and adopt described first decoding process to decode described video;
Or
Described broadcast unit, for or stop playing described video, and generate and show miscue information.
Preferably, described client also comprises:
Memory cell, for before the described video of broadcasting, is formed and stores the decoding process label information of the decoding process characterizing described video;
Second determining unit, if broadcast fault for described video, determines the decoding process of described video according to described decoding process label information.
Embodiment of the present invention video encoding/decoding method and client, before determining the decoding process of video, to judge whether the electronic equipment playing described video supports the first decoding process, when support the first decoding process, the first decoding process is then adopted to decode, otherwise adopt the second decoding process being different from the first decoding process to carry out the decoding of described video, relative in prior art when not by judge, Stochastic choice uses a kind of decoding process to decode, can realize adopting as far as possible the first decoding process to decode its video that can decode like this, thus can realize selecting suitable decoding process to decode to video, client is made to have higher probability to obtain the decoding advantage of described first decoding process when broadcasting video, this decoding advantage can be low-power consumption etc.
Accompanying drawing explanation
Fig. 1 provide for the embodiment of the present invention the first described in the schematic flow sheet of video encoding/decoding method;
The schematic flow sheet of video encoding/decoding method described in the second that Fig. 2 provides for the embodiment of the present invention;
The server that Fig. 3 provides for the embodiment of the present invention and the information interaction schematic diagram of client in video decode playing process;
Fig. 4 provide for the embodiment of the present invention the third described in the schematic flow sheet of video encoding/decoding method;
The schematic flow sheet of the 4th kind of described video encoding/decoding method that Fig. 5 provides for the embodiment of the present invention;
The structural representation of a kind of client that Fig. 6 provides for the invention process.
Embodiment
Below in conjunction with Figure of description and specific embodiment technical scheme of the present invention done and further elaborate.
Embodiment of the method one:
As shown in Figure 1, the present embodiment provides a kind of video encoding/decoding method, and described method comprises:
Step S110: judge whether electronic equipment supports the first decoding process;
Step S120: if described first decoding process supported by described electronic equipment, determines to adopt described first decoding process decoded video; If described first decoding process do not supported by described electronic equipment, determine to adopt the second decoding process and to decode described video;
Step S130: adopt determined decoding process to decode described video.
Video encoding/decoding method described in the present embodiment can for applying the client can carrying out video playback.Described electronic equipment can be the various user terminals such as mobile phone, panel computer, notebook computer or desktop computer.Described client can be the decode structures can carrying out video decode in described electronic equipment.
Described client can be the video decode mode can supporting two or more, concrete as, described client had both supported hard solution, also supported soft solution.
Hard solution refers to: use the hard solution decoder/chip in electronic equipment to decode to video flowing.Usual described hard solution decoder/chip can comprise the decoder with video decode function be integrated on graphic process unit GPU.
Soft solution refers to: use software program to decode to video flowing.Described use software program carries out decoding and is generally central processor CPU in described electronic equipment by running described software program to decode.
Described hard solution has the low advantage of energy consumption usually, but it is correct to decode in certain special cases, concrete as, the described video of video to be decoded comprises some special codings, as user carries out the process such as brush machine to electronic equipment, causes hard solution to occur mistake to the decoding of some coded format.
Described soft solution can be decoded relative to hard solution usually, and some contain the video of special coding, even if for after carried out the process such as brush machine to electronic equipment, as long as the code of described software program is still correct, then decoding can be kept correct; Obviously relative to hard solution, the decodable video of software wider, decoding capability is stronger, occurs that the probability of decoding error is lower, but separate it relative to hard to have energy consumption large, the problem that electronic equipment standby time is short will be caused.Described first decoding process can be described hard solution in the present embodiment; Described second decoding process can be described soft solution.
When specific implementation, the mode can carrying out video decode is incessantly a kind of, usually described first decoding process be in the multiple decoding process of described client support usual decoding capability relatively almost but there is the decoding process of its relative advantage other aspects such as power consumption; Namely the decoding capability of described second decoding process may be stronger than the decoding capability of described first decoding process.The power of this decoding capability, can be embodied in the scope of the video that can decode or the aspects such as accuracy height of decoding.It should be noted that: the difference of described first decoding process and described second decoding process is not limited to this, specifically as described in the first decoding process be the decoding process of specifying, concrete as adopted the first decoding process decoded video, when the broadcast parameter of each side such as the broadcast effect of described video (concrete as in definition) can be made better, described first decoding process at this moment can be specified to be some specific decoding processes.Usually described second decoding process is a kind of video decode mode more general in the client or basic video decode mode, and common customer end may not be configured with the first decoding process, but is usually all configured with the second decoding process.
Namely judge in step S110 in the present embodiment whether described electronic equipment supports described first decoding process, such as, judge whether described electronic equipment supports hard solution.
After judging that the first decoding process supported by described electronic equipment in step s 110, then directly determine employing first decoding process decoded video.Here video can be video to be decoded arbitrarily.Described video can be the video being stored in described electronic equipment this locality, the video to be decoded that the mode such as also can be connected by network for described electronic equipment or circuit is direct-connected is received from other electronic equipments.
After step S110 judges that described first decoding process do not supported by described electronic equipment, then determine that employing second decoding process carries out video decode, thus facilitate follow-up described client according to decoded information output video.
Present embodiments provide a kind of video decode mode, can judge before decoding whether described electronic equipment supports specific decoding process, avoid a kind of decoding process of Stochastic choice not adding merely judgement, high or the decoding problems such as energy consumption is large of the decoding error rate caused, so just can cross and select current suitable decoding process.Concrete as, if described first decoding process be hard solution, the second decoding process is soft solution, so just both can reduce the energy consumption of client, and while can ensure sufficiently highly to be decoded into power.
When the method described in the present embodiment is the video encoding/decoding method be applied in client, the follow-up decoding process determined by direct basis of described client carries out the decoding of video.
Embodiment of the method two:
As shown in Figure 1, the present embodiment provides a kind of video encoding/decoding method, and described method comprises:
Step S110: judge whether electronic equipment supports the first decoding process;
Step S120: if described first decoding process supported by described electronic equipment, determines to adopt described first decoding process decoded video; If described first decoding process do not supported by described electronic equipment, determine to adopt the second decoding process and to decode described video;
Step S130: adopt determined decoding process to decode described video.
As shown in Figure 2, described method also comprises: step S100: the facility information obtaining described electronic equipment;
Described step S110 can comprise: judge whether described electronic equipment supports described first decoding process according to facility information.
Wherein, described facility information can comprise model information.Such as described client is mobile phone, and described facility information can comprise the type information etc. of mobile phone, concrete as iOS client, or Android client, is the client of what brand, concrete as, be the information such as i Phone or Samsung mobile phone.When specifically judging, described model information can be obtained by the mobile device international identity code (International MobileEquipment Identity, IMEI) obtaining described client.Usual described IMEI comprises the coding of described model information.
Usual described facility information (as, model information) many-sided performance and the information processing capability of a client can be reflected, therefore adopt according to described facility information to determine whether electronic equipment supports described first decoding process in step S110 described in the present embodiment.
The present embodiment, on the basis of a upper embodiment, provides and a kind ofly specifically how to realize judging whether described electronic equipment is supported that the method for described first decoding process has and realized simple advantage.
When specific implementation, if method described in the present embodiment is be applied in the method in the local client of described electronic equipment, then obtain the method for described facility information in the step s 100, the storage medium inquiring about described electronic equipment can be comprised, read to the memory location storing described facility information and identify described facility information.If when method described in the present embodiment is other equipment be applied in beyond described client, the step obtaining described facility information in described step S100 specifically can be: receive the described facility information etc. that described electronic equipment sends.
Embodiment of the method three:
As shown in Figure 1, the present embodiment provides a kind of video encoding/decoding method, and described method comprises:
Step S110: judge whether electronic equipment supports the first decoding process;
Step S120: if described first decoding process supported by described electronic equipment, determines to adopt described first decoding process decoded video; If described first decoding process do not supported by described electronic equipment, determine to adopt the second decoding process and to decode described video.
Step S130: adopt determined decoding process to decode described video.
As shown in Figure 2, described method also comprises:
Step S100: the facility information obtaining described electronic equipment;
Described step S110 comprises: judge whether described client supports described first decoding process according to facility information.
Described step S110 specifically can comprise:
The facility information whether comprising described electronic equipment is inquired about in the first decoding list information prestored; Wherein, described first decoding list information comprises described first decoding process can be utilized to carry out the facility information of video decode; If described first decoding list information comprises the facility information of described electronic equipment, then confirm that described first decoding process supported by described electronic equipment.
First decoding list information described in the present embodiment can be first decoding process that can adopt determined in advance and carries out the facility information of video decode, specifically as described in the first decoding list information can comprise can adopt as described in the first decoding process carry out the model information of video decode.Usually the information content of this first decoding list information is the information adopting document format to store, as word document, and TXT document.The data content of described like this first decoding list information is less, usually can be a few k or tens k; The advantage that the amount of information of such storage is few.Described first decoding list information can be the information form of the model information can carrying out described first decoding process, so in step s 110 can by described facility information is carried out the operation of tabling look-up as index.
The schematic flow sheet carrying out the video encoding/decoding method of information interaction based on of the present embodiment between client and server shown in Fig. 3, specifically comprises:
Step S11: the version information receiving the second decoding list information from server;
Step S12: according to the version information of described second decoding list information, judges that whether the first list information and second name information of decoding of decoding is consistent;
Step S13: the first decoding list information and described second decode list information inconsistent time, to decode list information from server reception second;
Step S14: according to the second decoding list information received, upgrades described first decoding list information;
Following described client will according to renewal after first decoded information judge be employing first decoding process also time the second decoding process to described video of decoding.
When specific implementation, provide server if described server is video, then also can comprise:
Step S15: receiver, video.
Described step S15 realizes before or after can being placed on above-mentioned each step arbitrarily, and being not limited to is the described video of last reception.
The present embodiment is on the basis of a upper embodiment in a word, provides one and specifically how whether to support the first decoding process determination methods according to described facility information and the first decoding list information, have and realize easy advantage.
Embodiment of the method four:
As shown in Figure 1, the present embodiment provides a kind of video encoding/decoding method, and described method comprises:
Step S110: judge whether electronic equipment supports the first decoding process;
Step S120: if described first decoding process supported by described electronic equipment, determines to adopt described first decoding process decoded video; If described first decoding process do not supported by described electronic equipment, determine to adopt the second decoding process and to decode described video;
Step S130: adopt determined decoding process to decode described video.
As shown in Figure 2, described method also comprises: step S100: the facility information obtaining described electronic equipment;
Described step S110 comprises: judge whether described client supports described first decoding process according to facility information.
Described step S110 can comprise:
The facility information whether comprising described electronic equipment is inquired about in the first decoding list information prestored; Wherein, described first decoding list information comprises described first decoding process can be utilized to carry out the facility information of video decode.
Described method also comprises:
Described according to before facility information judges whether described client supports the first decoding process, judge that whether described first decoding list information be that list information of decoding with second in server is consistent;
If described first decoding list information and described second list information of decode is inconsistent, then upgrades described first and to decode list information, the described first list information and described second list information of decoding of decoding is consistent.
Server is herein that general reference stores and represents whether each electronic equipment can support the equipment of the information of described first decoding process, specifically as described in be positioned at network side storing have as described in the video server of video.
In order to ensure the accuracy of carrying out the judged result that described step S110 is formed, be connected to the equipment such as the gateway of network as electronic equipment itself or electronic equipment and can obtain the first decoding list information as described in latest edition, in the present embodiment, described method also can judge that whether described first decoding list information decode with described second the consistency of list information.Concrete as, electronic equipment stores described first decoding name information, also stored for the version information of described first decoding list information simultaneously or represent the identification information of version information, before carrying out described conforming judgement, thus described server receives the version information of described second decoding list information or represents the identification information of the second decoding list information, like this by the comparison of version information or revision identification information, determine that described first decoding list information list information of whether decoding with described second is consistent.When specific implementation, for judging that whether described first decoding list information be decode the consistent foundation information of list information with second in server except the identification information of described version information or version information, can also be the update times information of described first decoding list information and the second decoding list information or the identification information etc. of of document itself, be not limited to above-mentioned information.
When described first decoding list information and described second list information of decoding is inconsistent, in order to ensure the consistency of described first decoding list information and described second decoding list information, accurately to judge whether described electronic equipment supports described first decoding process, described first decoding list information will be upgraded, specifically to decode list information as downloaded described second from server, the described first decoding list information stored before replacing it, or from described server, download described second decoding list information and the described first different piece of decoding in list information, add to again in the first decoding list information.
Before the renewal carrying out described first decoding list information, described first decoding list information can be identical or different with the described second list information of decoding.
Present embodiments provide a kind of method in a word, the conforming judgement of list information of being decoded by the first decoding list information and second, and first renewal of decoding list information, can improve and judge whether described electronic equipment supports the judging nicety rate of described first decoding process.
Embodiment of the method five:
As shown in Figure 1, the present embodiment provides a kind of video encoding/decoding method, and described method comprises:
Step S110: judge whether electronic equipment supports the first decoding process;
Step S120: if described first decoding process supported by described electronic equipment, determines to adopt described first decoding process decoded video; If described first decoding process do not supported by described electronic equipment, determine to adopt the second decoding process and to decode described video;
Step S130: adopt determined decoding process to decode described video.
Described step S110 can comprise:
Inquire about in described electronic equipment whether to store and show that the decoding capability identification information of described first decoding process supported by described electronic equipment;
If store described decoding capability identification information in described electronic equipment, then represent that described first decoding process supported by described electronic equipment;
Wherein, described decoding capability identification information is: support according to the facility information inquiry of described electronic equipment the information that the Query Result of described first decoding list information generates.Described first decoding list information comprises described first decoding process can be utilized to carry out the facility information of video decode.In the present embodiment, the inquiry main body of herein carrying out decoding list information according to the facility information inquiry first of described electronic equipment can be the described electronic equipment for method application described in the present embodiment, the server that video playback can also be provided to serve for electronic equipment described in the present embodiment.
In the present embodiment, in described step S110 by inquiring about described decoding capability identification information to determine whether described electronic equipment supports described first decoding process.Concrete as, by the mode of the described first decoding list information of inquiry in embodiment of the method before client in described electronic equipment utilizes, determine that described first decoding process supported by described electronic equipment, generally for and avoid carrying out the inquiry to the first decoding list information next time, accelerate the speed of response judged, when determining that described first decoding process supported by described electronic equipment, generate described decoding capability identification information, it is concrete as a bit can be adopted or multiplely represent than him, during as adopted a bit to represent, if described first decoding process supported by the electronic equipment that described bit is 1 expression correspondence, if described bit is 0, represent that described first decoding process do not supported by corresponding electronic equipment.Follow-up like this when judging whether described electronic equipment supports described first decoding process, convenient also rapider.
Certain described decoding capability identification information can, for the information generated voluntarily according to the judgement of facility information and the first decoding list information, also can be the information being generated by server and receive from server.
Embodiment of the method six:
As shown in Figure 1, the present embodiment provides a kind of video encoding/decoding method, and described method comprises:
Step S110: judge whether electronic equipment supports the first decoding process;
Step S120: if described first decoding process supported by described electronic equipment, determines to adopt described first decoding process decoded video; If described first decoding process do not supported by described electronic equipment, determine to adopt the second decoding process and to decode described video;
Step S130: adopt determined decoding process to decode described video.
Method described in the present embodiment also comprises:
Adopt the described video playback fault of described first decoding process decoding if detect, then switch to and adopt described second decoding process to decode described video.
Here detect described video and broadcast fault, any one method of the prior art can be adopted.
By the video of being decoded by employing first decoding process, be switched to the probability adopting decoding capability stronger second video decode to decode can to improve video to be correctly decoded.
Concrete realization, can as shown in Figure 4, and described method also comprises:
Step S140: after the determined decoding process of described employing decodes described video, play described video;
Step S150: according to the described video playback fault of described first decoding process decoding, then adopt described second decoding process to decode described video.
As described above, described first decoding process may be the decoding capability decoding process weaker a little relative to the decoding capability of described second decoding process, if at this moment described first decoding process carries out described video and decodes, cause described video playback fault, in order to ensure the normal play of described video, described second decoding process will be adopted to continue the described video of decoding, to ensure the normal broadcast of described video.Method described in obvious the present embodiment, to decode its video that can decode by adopting described first decoding process as far as possible, when decoding error appears in the first decoding process, and then when causing broadcasting fault, the second decoding process adopting decoding capability stronger is again decoded, to improve the entirety decoding success rate in client, and reduce the video broadcast fault because decoding error causes.Decoding error herein can comprise the decoding error of code corresponding to decoding, and also can comprise the various video that causes such as codec format cannot the decoding error of normal play.
In addition, adopt the described video playback fault of described second decoding process decoding if detect, then switch to and adopt described first decoding process to decode described video, or stop playing described video and generating and show miscue information.
The decoding that if video is employing second decoding process to carry out and broadcast fault time, then be again switched to the first decoding process to decode, if the first decoding process can be correctly decoded, then can realize the correct broadcasting of video altogether.When playing, directly can stop the broadcasting of video, generate and show miscue information, to inform that user's current video cannot normal decoder.
Embodiment of the method seven:
As shown in Figure 1, the present embodiment provides a kind of video encoding/decoding method, and described method comprises:
Step S110: judge whether electronic equipment supports the first decoding process;
Step S120: if described first decoding process supported by described electronic equipment, determines to adopt described first decoding process decoded video; If described first decoding process do not supported by described electronic equipment, determine to adopt the second decoding process and to decode described video;
Step S130: adopt determined decoding process to decode described video.
Described method also comprises: the described video playback fault adopting described first decoding process decoding if detect, then switch to and adopt described second decoding process to decode described video.
Detect the described video playback fault adopting described first decoding process decoding if described, then switch to and adopt described second decoding process described video of decoding to comprise:
If video playback fault, then judge whether the decoding process of described video is described first decoding process;
If the decoding process of described video is described first decoding process, then described second decoding process is adopted to decode described video.
Video encoding/decoding method described in the present embodiment can be applied in various types of electronic equipment, before the video encoding/decoding method described in application the embodiment of the present application, described client may not understand the decoding capability of described electronic equipment, during according to concrete application scenarios selective decompression mode, what finally may select is the first decoding process or the second decoding process.Therefore the decoding process of described video may be described first decoding process, it also may be the second decoding process.If first described video playback fault, then determine the decoding process of described video.
This judgement can be judged by any information operating in expression first decoding process in electronic equipment or the second decoding process, or the decoding thread information of the first decoding process described in direct basis or the decoding thread information of the second decoding process judge.
When the decoding process being defined as the current video broken down is described first decoding process, the decoding process just changing described video is described second decoding process.
Video encoding/decoding method described in the present embodiment, can not only ensure to be decoded into power to the height of described video, have simultaneously and realize easy advantage.
Embodiment of the method eight:
As shown in Figure 1, the present embodiment provides a kind of video encoding/decoding method, and described method comprises:
Step S110: judge whether electronic equipment supports the first decoding process;
Step S120: if described first decoding process supported by described electronic equipment, determines to adopt described first decoding process decoded video; If described first decoding process do not supported by described electronic equipment, determine to adopt the second decoding process and to decode described video;
Step S130: adopt determined decoding process to decode described video.
Method described in the present embodiment also comprises: if video playback fault, then judge whether the decoding process of described video is described first decoding process;
If the decoding process of described video is described first decoding process, then described second decoding process is adopted to decode described video.
Described method also comprises:
Formed and store the decoding process label information of described video;
Described method also comprises:
Adopt the described video playback fault of described first decoding process decoding if detect, then switch to and adopt described second decoding process to decode described video.
Before the described video of broadcasting, formed and store the decoding process label information of the decoding process characterizing described video;
If described video broadcasts fault, determine the decoding process of described video according to described decoding process label information.
Due to the intrinsic decoding process label information of stars before video playback, when video breaks down, the current decoding process broadcasting out of order video can be determined according to described decoding process label information fast, carry out the operation such as the switching of subsequent video decoding process or the output of miscue information.
Conveniently follow-up judgement carries out to described video the decoding process adopted of decoding in the present embodiment, in the present embodiment also can generating solution coding mode label information.Two parts content can be comprised in described decoding process label information, a part is the identification information of described video, and the identification information to the decoding process that described video is decoded, so just can by with the identification information of described video for search index, determine the decoding process of described video by inquiring about described decoding process label information.Described decoding process identification information can be the one or more information bits being stored in corresponding assigned address.
Certainly above-mentioned just a kind of mode representing the decoding process corresponding relation of described decoding process identification information and described video and video.When specific implementation, also have other modes, during as being application method in the client when the method as described in the present embodiment, store the decoded information after described video decode in described client-cache, in corresponding buffer memory, also store the identification information of the decoding process of the decoding process representing video simultaneously.The corresponding relation of above-mentioned video and decoding process, can represent by being stored in same buffer memory, like this when after the decoding process determining described video, can by the identification information of the described decoding process determined, be stored into corresponding buffer memory, the identification information of such memory location and decoding process constitutes above-mentioned decoding process label information jointly.So just can reduce information growing amount and memory space.
Method in a word described in the present embodiment, provides the deterministic process of specifically how to carry out the decoding process of described video, has and realizes simply.
Embodiment of the method nine:
As shown in Figure 1, the present embodiment provides a kind of video encoding/decoding method, and described method comprises:
Step S110: judge whether electronic equipment supports the first decoding process;
Step S120: if described first decoding process supported by described electronic equipment, determines to adopt described first decoding process decoded video; If described first decoding process do not supported by described electronic equipment, determine to adopt the second decoding process and to decode described video;
Step S130: adopt determined decoding process to decode described video.
The decode power consumption of described video of described first decoding process is adopted to be less than and to adopt described second decoding process to decode the power consumption of described video;
The range of video that described second decoding process can be decoded is greater than the range of video that described second decoding process can be decoded.Usually the decodable video of described second decoding process is except the normal video generated according to video standard of routine, and can also decoding, some have the video of special code.The decodable range of video of described first decoding process is decided by decoding hardware, and the range of video usually can decoded is less than the range of video that described second decoding process can be decoded.
The present embodiment is the further improvement that can be above-mentioned all embodiments, specify that the difference between described first decoding process and the second decoding process in the present embodiment, this species diversity causes under different application scenarioss, need to select the decoding process of suitable current application scene to carry out the decoding of described video, thus described first decoding process can video time, described first decoding process is adopted to decode described video, thus the energy consumption of described client can be reduced, extend the standby time of described client, when described client does not support described first decoding process, adopt the second decoding process to decode, and in conjunction with said method embodiment when described first decoding process causes video to broadcast fault, the second decoding process can be adopted to decode to described video, thus ensure the normal play of video as much as possible, so also make use of the feature that the decoding capability of described second decoding process is strong fully, described client entirety decoding success rate is made to remain on higher level.
Embodiment of the method ten:
Below in conjunction with the technical scheme in any one embodiment of the method aforesaid, provide one to be applied to and can adopt soft solution and the video encoding/decoding method in hard client of separating simultaneously.
As shown in Figure 5, the video encoding/decoding method described in the present embodiment comprises:
Step S201: before displaying video, electronic equipment creates video player.Herein, video player is equivalent to the described client that electronic equipment combined with hardware and software configuration have decoding capability.
Step S202: the UI creating player.Described UI is the abbreviation of User Interface, and corresponding Chinese is user interface.
Step S203: judge whether the model information that electronic equipment is corresponding separates in list hard;
If yes, then step S204 is entered;
If NO, then step S207 is entered.
Model information is herein the one of the said equipment information.Namely described hard solution list can be above-mentioned first decoding list information.Namely the first decoding process in the present embodiment can be hard solution.
Step S204: select firmly to separate.
Step S205: arrange and correspond to the hard surface attribute separated.Surface carries out rendering data processing logic entity for being applied in video broadcast process.Usual described surface comprises buffering area; Described buffering area is used for storing the pixel data forming image.Described surface is also for being plotted to rendering data in the broadcast window of player.
The surface attribute that arranges herein comprises: the type of surface is set to correspond to hard type of separating, concrete as SURFACE_TYPE_PUSH_BUFFERS.Such surface does not just safeguard the buffering area of himself, but waits for that playing up of needing to play up directly is pushed to user interface by the hard decoder separated or decoding chip.
The surface attribute that arranges herein also comprises: the pixel format of image is set to the corresponding hard pixel format separated, concrete as Pixel Format.opaque, and this form is generally the hard pixel format separating decoder or decoding chip acquiescence.
Step S206: initialization is separated firmly.
Step S207: select soft solution.Soft solution is herein above-mentioned second decoding process.
Step S208: the surface attribute corresponding to soft solution is set.
Arrange the surface attribute corresponding to soft solution herein to comprise: the type being set to the type of surface correspond to soft solution, as SRRFACE_TYPE_NORMAL; Be common surface, the buffering area of itself is to store data to need surface to safeguard.
Arrange the surface attribute corresponding to soft solution herein to comprise: the pixel format being set to pixel format correspond to soft solution, concrete as Pixel Format.RGBX_8888.
Step S210: decoding displaying video.
Step S211: judge whether to occur playing fault, if so, then enter step S212, otherwise terminate.
Step S212: judge whether adopt hard solution, if so, then enter step S213, if fruit otherwise enter step S214.
Step S213: the hard decoder separated of release, and return step S207.The hard decoder separated of release can comprise: the data etc. of the hard solution decoder of the resource that the decoder as discharged hard solution takies or maintenance
Step S214: prompting playback error.
By the method described in the present embodiment, the problem that electronic equipment (as mobile phone) displaying video power consumption is high better can be solved.General user does not need the video decoding capability understanding mobile phone, and video player first according to firmly separating list, can judge whether the type that this electronic equipment is corresponding is can normally support hard solution, carries out selecting whether preferentially to use hardware decoder; And if run into more special video or user has carried out brush machine to cell phone system privately, hard solution is caused normally to use, at this moment player receives the mistake that decoder reports, and can perform to be switched to soft solution and to carry out video decode, then normal play video.Method described in the present embodiment, under the prerequisite ensureing normal play video, adopts as far as possible and firmly separates mode, can adapt to the GPU environment of various type, reduce the power consumption of displaying video to greatest extent, enhance Consumer's Experience.
Apparatus embodiments one:
As shown in Figure 6, the present embodiment provides a kind of client, and described client comprises:
First judging unit 110, for judging whether electronic equipment supports the first decoding process;
First determining unit 120, if support described first decoding process for described electronic equipment, determines to adopt described first decoding process decoded video; If described first decoding process do not supported by the described electronic equipment of the first determining unit, determine to adopt the second decoding process and to decode described video;
Video decoding unit 130, to decode described video for adopting determined decoding process.
Described electronic equipment can be the electronic equipments such as mobile phone, panel computer, notebook computer or Wearable device.Described client is the composition structure of described electronic equipment, for described electronic equipment can carry out the decode structures of video decode.
Described first judging unit 110 and the first determining unit 120 first determining unit, concrete structure all can comprise storage medium and processor; Between described processor and described storage medium by the communication interface of described first electronic equipment internal as anatomical connectivity such as buses, complete data interaction.Described storage medium can store computer-readable instruction; Described processor reads and runs described computer-readable instruction and can perform function corresponding to each unit.In concrete implementation procedure, corresponding different processor and storage medium can be distinguished for any two of described first judging unit 110, first determining unit 120 first determining unit, also can the identical processor of integrated correspondence and storage medium; When integrated for identical processor and storage medium time, divisional processing or the function corresponding to concurrent thread process different units when can adopt.
Described processor can comprise the electronic devices and components that microprocessor, central processing unit, single-chip microcomputer, digital signal processor or programmable logic array etc. have processing capacity.Described storage medium can comprise the storage mediums such as RAM, FLASH.Described storage medium can comprise moment storage medium and non-moment storage medium, the storage medium storing described computer executable instructions is preferably non-moment storage medium.
Described video decoding unit 130 can comprise can be supported the decoder of the first decoding process and/or comprise the decoder supporting described second decoding process.If described first decoding process is hard solution; Described second decoding process is soft solution, then described video decoding unit 130 can comprise and hard separates the structures such as chip, and carries out the structure such as CPU of software.
The associated description of the first decoding process described in the present embodiment, the second decoding process and video see in preceding method embodiment, just can be not described in detail at this.Concrete as, adopt the decode power consumption of described video of described first decoding process to be less than and to adopt described second decoding process to decode the power consumption of described video; The decoding capability that described second decoding process can be decoded is better than the decoding capability that described second decoding process can be decoded.This decoding capability can be embodied in the decodable range of video of the second decoding process and be greater than the range of video that described first decoding process can decode.
Present embodiments provide a kind of electronic equipment, can be used for realizing above-mentioned video encoding/decoding method, same have can select suitable decoding process video is decoded, specifically as when as described in the first decoding process for firmly separate time, the first decoding process is adopted to decode as much as possible, to reduce the energy consumption of electronic equipment, extend the standby time of electronic equipment.
Apparatus embodiments two:
As shown in Figure 6, the present embodiment provides a kind of client, and described client comprises:
First judging unit 110, for judging whether electronic equipment supports the first decoding process;
First determining unit 120, if support described first decoding process for described electronic equipment, determines to adopt described first decoding process decoded video; If described first decoding process do not supported by described electronic equipment, determine to adopt the second decoding process and to decode described video;
Video decoding unit 130, to decode described video for adopting determined decoding process.
Described in first determining unit first determining unit, electronic equipment also comprises:
Acquiring unit, for obtaining the facility information of described client;
According to facility information, described first judging unit 110, specifically for judging whether described client supports described first decoding process.
The structure of acquiring unit described in the present embodiment, according to obtaining the difference of described facility information and different, specifically as when as described in acquiring unit by receive from client receive as described in facility information time, described acquiring unit can comprise various types of communication interface, as wired or wireless communication interface.Described acquiring unit can be the information processing architecture of the processor or process chip and so on information read functions, stores the memory space of described facility information to obtain described facility information by accessing described client.
The structure of the first judging unit described in the present embodiment can see a upper apparatus embodiments, but according to described facility information, described first judging unit 110 in the present embodiment specifically will judge whether described client supports described first decoding process.
Client described in the present embodiment, can not only carry out video decode according to the decoding capability of electronic equipment selection first as much as possible decoding process, also have the simple advantage of structure simultaneously.
Apparatus embodiments three:
As shown in Figure 6, the present embodiment provides a kind of client, and described client comprises:
First judging unit 110, for judging whether electronic equipment supports the first decoding process;
First determining unit 120, if support described first decoding process for described electronic equipment, determines to adopt described first decoding process decoded video; If described first decoding process do not supported by described electronic equipment, determine to adopt the second decoding process and to decode described video;
Video decoding unit 130, to decode described video for adopting determined decoding process.
Described in first determining unit first determining unit, client also comprises:
Acquiring unit, for obtaining the facility information of described electronic equipment;
According to facility information, described first judging unit 110, specifically for judging whether described client supports described first decoding process.
Described first judging unit 110, specifically for inquiring about the facility information whether comprising described electronic equipment in the first decoding list information prestored; Wherein, described first decoding list information comprises described first decoding process can be utilized to carry out the facility information of video decode.If described first decoding list information comprises the facility information of described electronic equipment, then confirm that described first decoding process supported by described electronic equipment.
Described client also comprises memory cell in the present embodiment, described memory cell can be used for the first decoding list information, described first judging unit 110 carries out with the described first facility information of decoding in list information information processings such as mating especially by by described facility information in the present embodiment, determines whether described client supports described first decoding process.
Electronic equipment described in the present embodiment is the further improvement based on a upper embodiment, can not only carry out video decode, also have the simple advantage of structure simultaneously according to the decoding capability of electronic equipment selection first as much as possible decoding process.
Apparatus embodiments four:
As shown in Figure 6, the present embodiment provides a kind of client, and described client comprises:
First judging unit 110, for judging whether electronic equipment supports the first decoding process;
First determining unit 120, if support described first decoding process for described electronic equipment, determines to adopt described first decoding process decoded video; If described first decoding process do not supported by described electronic equipment, determine to adopt the second decoding process and to decode described video;
Video decoding unit 130, to decode described video for adopting determined decoding process.
Described in first determining unit first determining unit, client also comprises:
Acquiring unit, for obtaining the facility information of described electronic equipment;
According to facility information, described first judging unit 110, specifically for judging whether described electronic equipment supports described first decoding process.
Described first judging unit 110, specifically for inquiring about the facility information whether comprising described electronic equipment in the first decoding list information prestored; Wherein, described first decoding list information comprises described first decoding process can be utilized to carry out the facility information of video decode.If described first decoding list information comprises the facility information of described electronic equipment, then confirm that described client supports described first decoding process.
Described electronic equipment also comprises:
Second judging unit, for described according to before facility information judges whether described client supports the first decoding process, judge that whether described first decoding list information be that list information of decoding with second in server is consistent;
Updating block, if inconsistent for described first decoding list information and described second list information of decode, then upgrade described first and to decode list information, and the described first list information and described second list information of decoding of decoding is consistent.
The concrete structure of the second judging unit herein can comprise the judgement structure with arbitration functions, concrete as various types of processor or process chip.
Described updating block, can comprise communication interface; Described communication interface can be used for receiving described second decoding list information or the second decoded information parts different in list information of decoding from described first from server.Described updating block also comprises and has Card read/write functional chip, for the information received from server being write in the first decoding list information.
Electronic equipment described in the present embodiment, in order to ensure the accuracy judging whether described client to be supported to the first decoding process, by the setting of described second judging unit and updating block, and when specific implementation, described second judging unit and updating block, all can the integrated corresponding same processor with the information processing function or process chip with described first judging unit 110 and the first determining unit 120 first determining unit, obviously can keep the simple advantage of the structure of described electronic equipment.
Apparatus embodiments five:
As shown in Figure 6, the present embodiment provides a kind of client, and described client comprises:
First judging unit 110, for judging whether electronic equipment supports the first decoding process;
First determining unit 120, if support described first decoding process for described electronic equipment, determines to adopt described first decoding process decoded video; If described first decoding process do not supported by described electronic equipment, determine to adopt the second decoding process and to decode described video;
Video decoding unit 130, to decode described video for adopting determined decoding process.
Specifically for inquiring about in described electronic equipment whether to store, first judging unit 110 described in first determining unit first determining unit, shows that the decoding capability identification information of described first decoding process supported by described electronic equipment; If store described decoding capability identification information in described electronic equipment, then represent that described first decoding process supported by described electronic equipment;
Wherein, described decoding capability identification information is: support according to the facility information inquiry of described electronic equipment the information that the Query Result of the decoding list information of first method generates.
In aforementioned device embodiment, according to described facility information and the first decoding list information, described first judging unit 110 is for determining whether described client supports described first decoding process, described first judging unit can also be determined by inquiring about described decoding capability identification information in the present embodiment.
In the information of described decoding capability identification information and the various associated description such as definition see preceding method embodiment, just can not be repeated at this.
In a word, according to decoding capability identification information, video electronic devices described in the present embodiment can judge whether described client supports described first decoding process, has structure simple and realize easy advantage.
Apparatus embodiments six:
As shown in Figure 6, the present embodiment provides a kind of client, and described client comprises:
First judging unit 110, for judging whether electronic equipment supports the first decoding process;
First determining unit 120, if support described first decoding process for described electronic equipment, determines to adopt described first decoding process decoded video; If described first decoding process do not supported by described electronic equipment, determine to adopt the second decoding process and to decode described video;
Video decoding unit 130, to decode described video for adopting determined decoding process.
Video decoding unit 130 described in first determining unit first determining unit, if also for detecting the described video playback fault adopting described first decoding process decoding, then switch to and adopt described second decoding process to decode described video.
Described video decoding unit 130, if also for detecting the described video playback fault adopting described second decoding process decoding, then switch to and adopt described first decoding process to decode described video;
Like this, when video broadcasts fault, described video decoding unit 130 to the switching of decoding process broadcasting out of order video, the decoding accuracy of described video can be promoted.
Certain described client also can comprise broadcast unit.
Described broadcast unit, can be used for or stop playing described video, and generate and show miscue information.
Described broadcasting can comprise display module and dio Output Modules, and described display module can comprise various types of display screen, concrete as structures such as LCDs, electric ink display screen, plasma panel or projection display screens.Described audio output unit can comprise the structure of the output audios such as loud speaker.Can inform that user video broadcasts out of order reason so in time.
Apparatus embodiments seven:
As shown in Figure 6, the present embodiment provides a kind of client, and described client comprises:
First judging unit 110, for judging whether electronic equipment supports the first decoding process;
First determining unit 120, if support described first decoding process for described electronic equipment, determines to adopt described first decoding process decoded video; If described first decoding process do not supported by described electronic equipment, determine to adopt the second decoding process and to decode described video;
Video decoding unit 130, to decode described video for adopting determined decoding process.
Described in first determining unit first determining unit, client also comprises:
3rd judging unit, if for video playback fault, then judges whether the decoding process of described video is described first decoding process;
Described video decoding unit 130, if be also described first decoding process for the decoding process of described video, then adopts described second decoding process to decode described video.
The hardware configuration of described 3rd judging unit see described first judging unit and described second judging unit, just can not be repeated at this.But the 3rd judging unit described in the present embodiment is the judgement for the decoding process to video, and Non-electronic devices whether support the judgement whether the first decoding process or the first decoding list information and the second decoding list information consistent.
The present embodiment is on the basis of aforementioned device embodiment, further define the structure of described client, to any one, the client provided in the present embodiment can not know that but occurring playing ancient video of fighting to decoding process carries out decoding process and determine and the switching of decoding process, thus ensure the process of video playback, and it is simple and realize easy feature to have structure.
Apparatus embodiments eight:
As shown in Figure 6, the present embodiment provides a kind of client, and described client comprises:
First judging unit 110, for judging whether electronic equipment supports the first decoding process;
First determining unit 120, if support described first decoding process for described electronic equipment, determines to adopt described first decoding process decoded video; If described first decoding process do not supported by described electronic equipment, determine to adopt the second decoding process and to decode described video;
Video decoding unit 130, to decode described video for adopting determined decoding process.Described in first determining unit first determining unit, client also comprises:
3rd judging unit, if for video playback fault, then judges whether the decoding process of described video is described first decoding process;
Described video decoding unit 130, if be also described first decoding process for the decoding process of described video, then adopts described second decoding process to decode described video.
Described client also comprises:
Memory cell, for the formation of and store the decoding process label information of described video;
Second determining unit, if broadcast fault for described video, determines the decoding process of described video according to described decoding process label information.
Memory cell described in the present embodiment can comprise various forms of storage medium, concrete as the storage medium such as buffer memory or RAM, Flash, described decoding process label information will be recorded, facilitate whether the decode decoding process of described video of follow-up play unit judges is described first decoding process.
The structure of described second determining unit can with the similar of aforesaid first determining unit, be not just repeated at this.
The same structure of client described in the present embodiment is simple, and the feature determining the decoding process of described video that can be easy.
Processor described in the embodiment of the present application can comprise the process structure that application processor AP, central processor CPU, Micro-processor MCV, digital signal processor DSP or programmable array PLC etc. have the information processing function.
In several embodiments that the application provides, should be understood that disclosed equipment and method can realize by another way.Apparatus embodiments described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, and as: multiple unit or assembly can be in conjunction with, maybe can be integrated into another system, or some features can be ignored, or do not perform.In addition, the coupling each other of shown or discussed each part or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of equipment or unit or communication connection can be electrical, machinery or other form.
The above-mentioned unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, also can be distributed in multiple network element; Part or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in various embodiments of the present invention can all be integrated in a processing module, also can be each unit individually as a unit, also can two or more unit in a unit integrated; Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form that hardware also can be adopted to add SFU software functional unit realizes.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can have been come by the hardware that program command is relevant, aforesaid program can be stored in a computer read/write memory medium, this program, when performing, performs the step comprising said method embodiment; And aforesaid storage medium comprises: movable storage device, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. various can be program code stored medium.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.

Claims (17)

1. a video encoding/decoding method, is characterized in that, described method comprises:
Judge whether electronic equipment supports the first decoding process;
If described first decoding process supported by described electronic equipment, determine to adopt described first decoding process decoded video; If described first decoding process do not supported by described electronic equipment, determine that employing second decoding process is decoded described video;
Play described through decoded video.
2. method according to claim 1, is characterized in that,
Described method also comprises: the facility information obtaining described electronic equipment;
Describedly judge whether described electronic equipment supports the first decoding process, comprising:
Judge whether described electronic equipment supports described first decoding process according to facility information.
3. method according to claim 2, is characterized in that,
Described foundation facility information judges whether described electronic equipment supports the first decoding process, comprising:
The facility information whether comprising described electronic equipment is inquired about in the first decoding list information prestored; Wherein, described first decoding list information comprises described first decoding process can be utilized to carry out the facility information of video decode.
If described first decoding list information comprises the facility information of described electronic equipment, then confirm that described first decoding process supported by described electronic equipment.
4. method according to claim 3, is characterized in that,
Described method also comprises:
Described according to before facility information judges whether described electronic equipment supports the first decoding process, judge that whether described first decoding list information be that list information of decoding with second in server is consistent;
If described first decoding list information and described second list information of decode is inconsistent, then upgrades described first and to decode list information, the described first list information and described second list information of decoding of decoding is consistent.
5. method according to claim 1, is characterized in that,
Describedly judge whether electronic equipment supports the first decoding process, comprising:
Inquire about in described electronic equipment whether to store and show that the decoding capability identification information of described first decoding process supported by described electronic equipment;
If store described decoding capability identification information in described electronic equipment, then represent that described first decoding process supported by described electronic equipment;
Wherein, described decoding capability identification information is: the information that the Query Result of decoding list information according to the facility information of described electronic equipment inquiry support first generates; Wherein, described first decoding list information comprises described first decoding process can be utilized to carry out the facility information of video decode.
6. method according to claim 1, is characterized in that,
Described method also comprises:
Adopt the described video playback fault of described first decoding process decoding if detect, then switch to and adopt described second decoding process to decode described video.
7. method according to claim 6, is characterized in that,
Described method also comprises:
Adopt the described video playback fault of described second decoding process decoding if detect, then switch to and adopt described first decoding process to decode described video, or stop playing described video and generating and show miscue information.
8. method according to claim 6, is characterized in that,
Described method also comprises:
Before the described video of broadcasting, formed and store the decoding process label information of the decoding process characterizing described video;
If described video broadcasts fault, determine the decoding process of described video according to described decoding process label information.
9. method according to claim 1, is characterized in that,
Described first decoding process is hard solution;
Described second decoding process is soft solution.
10. a client, is characterized in that, described client comprises:
First judging unit, for judging whether electronic equipment supports the first decoding process;
First determining unit, if support described first decoding process for described electronic equipment, determines to adopt described first decoding process decoded video; If the described client of the first determining unit does not support described first decoding process, determine to adopt the second decoding process and to decode described video;
Video decoding unit, to decode described video for adopting determined decoding process;
Video playback unit, for the video after broadcast decoder.
11. clients according to claim 10, is characterized in that,
Described client also comprises:
Acquiring unit, for obtaining the facility information of described electronic equipment;
According to facility information, described first judging unit, specifically for judging whether described electronic equipment supports described first decoding process.
12. electronic equipments according to claim 11, is characterized in that,
Described first judging unit, specifically for inquiring about the facility information whether comprising described electronic equipment in the first decoding list information prestored; Wherein, described first decoding list information comprises described first decoding process can be utilized to carry out the facility information of video decode.If described first decoding list information comprises the facility information of described electronic equipment, then confirm that described first decoding process supported by described electronic equipment.
13. clients according to claim 12, is characterized in that,
Described electronic equipment also comprises:
Second judging unit, for described according to before facility information judges whether described electronic equipment supports the first decoding process, judge that whether described first decoding list information be that list information of decoding with second in server is consistent;
Updating block, if inconsistent for described first decoding list information and described second list information of decode, then upgrade described first and to decode list information, and the described first list information and described second list information of decoding of decoding is consistent.
14. clients according to claim 10, is characterized in that,
Specifically for inquiring about in described electronic equipment whether to store, described first judging unit, shows that the decoding capability identification information of described first decoding process supported by described electronic equipment; If store described decoding capability identification information in described electronic equipment, then represent that described first decoding process supported by described electronic equipment;
Wherein, described decoding capability identification information is: according to the facility information first of described electronic equipment decode list information Query Result generate information; Wherein, described first decoding list information comprises described first decoding process can be utilized to carry out the facility information of video decode.
15. clients according to claim 10, is characterized in that,
Described video decoding unit, if also for detecting the described video playback fault adopting described first decoding process decoding, then switch to and adopt described second decoding process to decode described video.
16. clients according to claim 15, is characterized in that,
Described client also comprises broadcast unit;
Described video decoding unit, if also for detecting the described video playback fault adopting described second decoding process decoding, then switch to and adopt described first decoding process to decode described video;
Or
Described broadcast unit, for or stop playing described video, and generate and show miscue information.
17. clients according to claim 15, is characterized in that,
Described client also comprises:
Memory cell, for before the described video of broadcasting, is formed and stores the decoding process label information of the decoding process characterizing described video;
Second determining unit, if broadcast fault for described video, determines the decoding process of described video according to described decoding process label information.
CN201510280342.8A 2015-05-27 2015-05-27 Video encoding/decoding method and client Active CN104980797B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510280342.8A CN104980797B (en) 2015-05-27 2015-05-27 Video encoding/decoding method and client

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510280342.8A CN104980797B (en) 2015-05-27 2015-05-27 Video encoding/decoding method and client

Publications (2)

Publication Number Publication Date
CN104980797A true CN104980797A (en) 2015-10-14
CN104980797B CN104980797B (en) 2019-03-15

Family

ID=54276803

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510280342.8A Active CN104980797B (en) 2015-05-27 2015-05-27 Video encoding/decoding method and client

Country Status (1)

Country Link
CN (1) CN104980797B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105979259A (en) * 2016-06-16 2016-09-28 乐视控股(北京)有限公司 Test method and test device
WO2017092298A1 (en) * 2015-12-01 2017-06-08 乐视控股(北京)有限公司 Decoding method and device for player
CN109151574A (en) * 2018-10-15 2019-01-04 Oppo广东移动通信有限公司 Method for processing video frequency, device, electronic equipment and storage medium
CN112003976A (en) * 2020-07-31 2020-11-27 北京达佳互联信息技术有限公司 Hard-coding and hard-decoding test method and device
CN114390336A (en) * 2021-12-13 2022-04-22 百度在线网络技术(北京)有限公司 Video decoding method and device, electronic equipment and readable storage medium
CN114666603A (en) * 2022-05-06 2022-06-24 厦门美图之家科技有限公司 Video decoding method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101986708A (en) * 2010-10-29 2011-03-16 北京中星微电子有限公司 Video decoding method and decoder
US20120183040A1 (en) * 2011-01-19 2012-07-19 Qualcomm Incorporated Dynamic Video Switching
CN102761736A (en) * 2011-04-29 2012-10-31 腾讯科技(深圳)有限公司 Video decoding method and device
CN104980788A (en) * 2015-02-11 2015-10-14 腾讯科技(深圳)有限公司 Video decoding method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101986708A (en) * 2010-10-29 2011-03-16 北京中星微电子有限公司 Video decoding method and decoder
US20120183040A1 (en) * 2011-01-19 2012-07-19 Qualcomm Incorporated Dynamic Video Switching
CN102761736A (en) * 2011-04-29 2012-10-31 腾讯科技(深圳)有限公司 Video decoding method and device
CN104980788A (en) * 2015-02-11 2015-10-14 腾讯科技(深圳)有限公司 Video decoding method and device

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017092298A1 (en) * 2015-12-01 2017-06-08 乐视控股(北京)有限公司 Decoding method and device for player
CN105979259A (en) * 2016-06-16 2016-09-28 乐视控股(北京)有限公司 Test method and test device
CN109151574A (en) * 2018-10-15 2019-01-04 Oppo广东移动通信有限公司 Method for processing video frequency, device, electronic equipment and storage medium
CN109151574B (en) * 2018-10-15 2020-03-24 Oppo广东移动通信有限公司 Video processing method, video processing device, electronic equipment and storage medium
US11562772B2 (en) 2018-10-15 2023-01-24 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Video processing method, electronic device, and storage medium
CN112003976A (en) * 2020-07-31 2020-11-27 北京达佳互联信息技术有限公司 Hard-coding and hard-decoding test method and device
CN114390336A (en) * 2021-12-13 2022-04-22 百度在线网络技术(北京)有限公司 Video decoding method and device, electronic equipment and readable storage medium
CN114666603A (en) * 2022-05-06 2022-06-24 厦门美图之家科技有限公司 Video decoding method and device, electronic equipment and storage medium
CN114666603B (en) * 2022-05-06 2024-05-03 厦门美图之家科技有限公司 Video decoding method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN104980797B (en) 2019-03-15

Similar Documents

Publication Publication Date Title
CN104980797A (en) Video decoding method and client
CN112087633B (en) Video decoding method, device and storage medium
CN104780378A (en) Method, device and player for decoding video
CN102761736A (en) Video decoding method and device
CN106331846B (en) The method and device of audio transparent transmission
CN104951364A (en) Android platform based language switching method and system
CN104268229A (en) Resource obtaining method and device based on multi-process browser
CN111782470A (en) Distributed container log data processing method and device
CN105095265A (en) Method and apparatus for implementing page display of mobile device
CN111601154B (en) Video processing method and related equipment
CN108933968B (en) Message format conversion method and device, storage medium and android terminal
CN114040243A (en) Live broadcast room video playing method and device
CN109886861B (en) High-efficiency image file format HEIF image loading method and device
CN113873316A (en) Live broadcast room video playing method and device
CN106708569B (en) Hot loading method and device for VOBC configuration file in over-the-line train
US20170116046A1 (en) Method, Device for Setting System Data and Terminal
CN110858920A (en) Video decoding method, mobile terminal, server, system and storage medium
CN103297516A (en) Multi-type providing method, multi-type providing system and multi-type providing device of applications
CN111190634A (en) Layout information processing method and device and electronic equipment
CN114880604A (en) Data processing method, data sending method, data acquiring method, data processing device, data sending device and data acquiring device
CN114221968B (en) Method, device and equipment for processing service in private network terminal
CN113641440A (en) Front-end multi-language display method and device
CN112328422A (en) Abnormity repairing method and device, electronic equipment and storage medium
CN112269601A (en) BMC (baseboard management controller) and component asset information management method, device and storage medium thereof
CN112717372A (en) Cloud game control method and device, electronic equipment and storage medium

Legal Events

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