CN105992056B - A kind of decoded method and apparatus of video - Google Patents
A kind of decoded method and apparatus of video Download PDFInfo
- Publication number
- CN105992056B CN105992056B CN201510052937.8A CN201510052937A CN105992056B CN 105992056 B CN105992056 B CN 105992056B CN 201510052937 A CN201510052937 A CN 201510052937A CN 105992056 B CN105992056 B CN 105992056B
- Authority
- CN
- China
- Prior art keywords
- decoder
- hardware
- mobile terminal
- video file
- video
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The embodiment of the invention discloses a kind of decoded methods of video, comprising: receives video playing instruction, and obtains the corresponding video file of the video playing instruction;Inquire the device model of mobile terminal;If the device model belongs to preset equipment white list, the hardware decoder of the mobile terminal is called to carry out hardware decoding to the video file;When monitoring that the hardware decoder collapse during hardware is decoded to the video file, the third party software decoder of the mobile terminal is called to carry out software decoding to the video file.The embodiment of the invention also discloses a kind of decoded devices of video.Using the present invention, it can be achieved that the broadcasting of video file smoothness.
Description
Technical field
The present invention relates to media play field more particularly to a kind of decoded method and apparatus of video.
Background technique
User is more and more common using mobile terminal playing video file, and video decoding belongs to computation-intensive business, mesh
Preceding mobile terminal generally uses software decoder to carry out soft solution to video file, and soft solution needs a large amount of moneys for occupying mobile terminal
The phenomenon that source, such video playing will appear Caton, while consuming a large amount of electricity.It is more and more in order to overcome the above problem
Mobile terminal built in hardware decoder, video file can be solved firmly, hardware decoding, which has, to play smooth and save electricity
The advantages of amount.
But hardware decoder have unstable characteristic, hardware decoder initialization and during decoded,
The reasons such as the video parameter of video file changes, the hardware resource deficiency of mobile terminal can all cause collapsing for hardware decoder
It bursts, the broadcasting of video file is easy to happen interruption.
Summary of the invention
The technical problem to be solved by the embodiment of the invention is that providing a kind of decoded method and apparatus of video.It can solve
The problem of certainly hardware decoder collapse causes video playing to interrupt in the prior art.
In order to solve the above-mentioned technical problem, the embodiment of the invention provides a kind of decoded methods of video, comprising:
Video playing instruction is received, and obtains the corresponding video file of the video playing instruction;
Inquire the device model of mobile terminal;
If the device model belongs to preset equipment white list, call the hardware decoder of the mobile terminal to described
Video file carries out hardware decoding;
When monitoring that the hardware decoder collapse during hardware is decoded to the video file, call
The third party software decoder of the mobile terminal carries out software decoding to the video file.
Correspondingly, the embodiment of the invention also provides a kind of decoded devices of video, comprising:
Module is obtained, for receiving video playing instruction, and obtains the corresponding video file of the video playing instruction;
Enquiry module, for inquiring the device model of mobile terminal;
Calling module calls the hard of the mobile terminal if belonging to preset equipment white list for the device model
Part decoder carries out hardware decoding to the video file;
First switching module, for monitoring that the hardware decoder carries out the decoded process of hardware to the video file
It is middle when collapsing, call the third party software decoder of the mobile terminal to carry out software decoding to the video file.
The implementation of the embodiments of the present invention has the following beneficial effects:
When needing playing video file, determined whether to support hardware decoding according to the device model of mobile terminal, if branch
It holds and hardware decoder is called to be decoded video file, collapsed in hardware decoding process, it is automatic to call third party soft
Part decoder continues to be decoded video file, realizes the automatic switchover of decoder, avoids video file because of hardware decoder
It collapses and interrupts and play, such video file is capable of playing out on mobile terminals for smoothness.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is the flow diagram of a kind of decoded method of video provided in an embodiment of the present invention;
Fig. 2 is another flow diagram of a kind of decoded method of video provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of the decoded device of video provided in an embodiment of the present invention;
Fig. 4 is a kind of another structural schematic diagram of the decoded device of video provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of the first switching module in Fig. 4.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
It is a kind of flow diagram of the decoded method of video provided in an embodiment of the present invention referring to Fig. 1, of the invention real
It applies in example, which comprises
S101, video playing instruction is received, and obtains the corresponding video file of the video playing instruction.
Specifically, video file can store on mobile terminals, also can store on the server.Video playing instruction
It can be triggered by the input unit of mobile terminal, input unit includes keyboard, mouse or touch screen, the decoded device of video
(hereinafter referred to as device) receives video playing instruction, and device instructs corresponding video storage address positioning video according to video playing
File, if video file is stored in local, the form that video storage address can be file path name is indicated;If video is literary
Part stores on the server, and video storage address can be the address URL.
S102, the device model for inquiring mobile terminal.
Specifically, the device model of itself can be burnt to local memory during the manufacturing by mobile terminal
In, for identical device model mobile terminal, the parameter value of corresponding hardware parameter is identical, but corresponding operation is
The version of version of uniting or application software is not identical.Wherein, hardware parameter includes ROM (Read-Only Memory, read-only storage
Device) size, RAM (Random Access Memory, random access memory) size, CPU core calculation, CPU frequency, GPU
(Graphic Processing Unit, graphics processor) frequency and display resolution.
If S103, the device model belong to preset equipment white list, the hardware decoder of the mobile terminal is called
Hardware decoding is carried out to the video file.
Specifically, including at least one device model in equipment white list, the device model in equipment white list is corresponding
Mobile terminal has hardware decoder, has hardware decoding function.Device is if it is determined that the device model of mobile terminal belongs to sets
Standby white list, calls the hardware decoder of mobile terminal to carry out hardware decoding to video file.
It should be noted that if the video file for all formats that hardware decoder is not supported, device also need to judge
The format of video file to be decoded recalls if the format of video file to be decoded meets the requirement of hardware decoder
The hardware decoder of mobile terminal carries out hardware decoding to video file.
S104, monitor that the hardware decoder collapse during hardware is decoded to the video file
When, call the third party software decoder of the mobile terminal to carry out software decoding to the video file.
Specifically, hardware decoder is during decoded to video file progress hardware, it may occur that the feelings of collapse
The reason of condition, the collapse of generation, may be: the Video attribute information of video file changes, the hardware resource of mobile terminal not
Foot or other unknown causes.Device can be when hardware decoder be started to work, and starting finger daemon monitors hardware decoder, prison
Survey whether hardware decoder collapses, the method for monitoring, which may is that, continuously inputs data flow to be decoded in hardware decoder
In the case of, monitor hardware decoder in preset duration without output video frame, then it is assumed that hardware decoder collapses, prison
Whether survey hardware decoder breaks down can be using other methods, and the present invention is with no restriction.If monitoring hardware decoder pair
When video file collapses during being decoded, call the third party software decoder of mobile terminal to video file into
Row decoding.Third party software decoder can be pre-installed on mobile terminal, and device is directly locally calling third party software
Decoder.If local third party software decoder does not support the format of video file, device is to pre-set decoding library
Request matched third party software decoder.
Implement the embodiment of the present invention, when needing playing video file, is determined whether according to the device model of mobile terminal
It supports hardware decoding, if supporting that hardware decoder is called to be decoded video file, is collapsed in hardware decoding process
It bursts, it is automatic that third party software decoder is called to continue to be decoded video file, it realizes the automatic switchover of decoder, avoids regarding
Frequency file interrupts broadcasting because hardware decoder collapses, and such video file smooth can play out on mobile terminals.
It referring to fig. 2, is a kind of another flow diagram of the decoded method of video provided in an embodiment of the present invention, in this hair
In bright embodiment, which comprises
S201, video playing instruction is received, and obtains the corresponding video file of the video playing instruction.
Specifically, video file can store on mobile terminals, also can store on the server.Video playing instruction
It can be triggered by the input unit of mobile terminal, input unit includes keyboard, mouse or touch screen, the decoded device of video
(hereinafter referred to as device) receives video playing instruction, and device instructs corresponding video storage address positioning video according to video playing
File, if video file is stored in local, the form that video storage address can be file path name is indicated;If video is literary
Part stores on the server, and video storage address can be the address URL.
For example, user accesses webpage by the browser of mobile terminal, it include the video link ground connection of video file in webpage
Location, user click video link address by input units such as the keyboard of mobile terminal or touch screens and generate video playing instruction,
For mobile terminal to the service of storage video file to mobile terminal video playing request, server sends video codes to mobile terminal
Stream.
For example, user accesses the catalogue of storage video file, user clicks video file and generates video playing instruction.
S202, the device model for inquiring mobile terminal.
Specifically, the device model of itself can be burnt to local memory during the manufacturing by mobile terminal
In, for identical device model mobile terminal, the parameter value of corresponding hardware parameter is identical, but corresponding operation is
The version of version of uniting or application software is not identical.Wherein, hardware parameter includes ROM size, RAM size, CPU core calculation, CPU master
Frequently, GPU frequency and display resolution.
For example, the device model of mobile terminal 1 is AA-BB, the ROM size of mobile terminal 1 is 16G, and RAM size is 1G,
CPU core calculation is 8, CPU frequency 1.7GHz, and the operating system version that mobile terminal 1 is installed is Android 4.4;It is mobile
The device model of terminal 2 is AA-BB, and the ROM size of mobile terminal 2 is 16G, and RAM size is 1G, and CPU core calculation is 8, CPU
Dominant frequency is 1.7GHz, and the operating system version that mobile terminal 1 is installed is Android 4.0
Whether S203, the device model belong to preset equipment white list.
Specifically, including at least one device model in equipment white list, the device model in equipment white list is corresponding
Mobile terminal has hardware decoder, has hardware decoding function.Device is if it is determined that the device model of mobile terminal belongs to sets
Standby white list, executes S204, and device is if it is determined that the device model of mobile terminal is not belonging to equipment white list, execution S209.
S204, the video file whether be hardware decoder support format.
Specifically, the format that hardware decoder is supported is limited, if the format of video file is not belonging to mobile terminal
Hardware decoder support format, hardware decoder can not to video file carry out hardware decoding.If the lattice of video file
Formula is not the format that hardware decoder is supported, executes S209, if the format of video file is the format that hardware decoder is supported,
Execute S205.
For example, hardware decoder support format be H.264, if the format of video file be RMVB, video file
Format does not meet the requirement of hardware decoder;If H.264 the format of video file is, the format of video file meets hardware solution
The requirement of code device.
S205, the mobile terminal operating system version whether meet preset condition.
Specifically, needing the branch of specific operating system version when hardware decoder carries out hardware decoding to video file
Support, if operating system version and hardware decoder mismatch, hardware decoder can not normal use.Device is judged to move
When the operating system version of terminal is eligible, S206 is executed, otherwise, executes S209.
For example, hardware decoder requires operating system version Android4.4 to be supported, if mobile terminal is currently pacified
The operating system version of dress is Android4.0, then can not normally-open hardware decoder.
Whether S206, the color mode of the mobile terminal are compatible with the color mode of the hardware decoder.
Specifically, the color mode needs of the renderer of mobile terminal are compatible with the color mode of hardware decoder, if
It is incompatible, it, can not normal play on mobile terminals after hardware decoder is decoded video file.Device is judged to move
When the color mode of terminal and the compatible color mode of hardware decoder, S207 is executed, otherwise, executes S209.
For example, the color mode of renderer is RGB565, hardware decoder when mobile terminal is rendered using hardware mode
Color mode is YUV, and the color mode of mobile terminal and the color mode of hardware decoder are incompatible, and hardware decoder is in hardware
It may be collapsed in decoding process.
S207, the hardware decoder of the mobile terminal is called to carry out hardware decoding to the video file.
Specifically, mobile terminal calls hardware decoder to carry out video file after meeting the Rule of judgment of S203-S206
Hardware decoding, shows on mobile terminals after decoding.
It should be noted that the sequence that the execution sequence of S203-S206 is not limited to the present embodiment, S203-S206 can appoint
Meaning sequencing is judged.In order to mitigate the processing expense of deterministic process, certain deterministic processes can be suitably reduced, for example,
S205 and/or S206 is not executed.
S208, monitor that the hardware decoder collapse during hardware is decoded to the video file.
Specifically, hardware decoder is during decoded to video file progress hardware, it may occur that the feelings of collapse
The reason of condition, the collapse of generation, may be: the Video attribute information of video file changes, the hardware resource of mobile terminal not
Foot or other unknown causes.Device can be when hardware decoder be started to work, and starting finger daemon monitors hardware decoder, prison
Survey whether hardware decoder collapses, the method for monitoring, which may is that, continuously inputs data flow to be decoded in hardware decoder
In the case of, monitor hardware decoder in preset duration without output video frame, then it is assumed that hardware decoder collapses, prison
Whether survey hardware decoder breaks down can be using other methods, and the present invention is with no restriction.
For example, needing to obtain the video features parameter of video file before hardware decoder carries out video file
Parameter value supplies, and characteristic parameter includes: configuration, rank or size etc., and hardware decoder can be determined according to the parameter value of characteristic parameter
The hardware of video file can be supported to decode, the parameter value of video features parameter is used to characterize the complexity of video file, video
The complexity of file is higher, higher to the hardware capabilities requirement of hardware decoder, when the complexity of video file is higher than hardware solution
When the hardware capabilities of code device, it may be collapsed in hardware decoder decoding process.
Optionally, when collapsing during monitoring that hardware decoder is decoded video file, record collapses
Reason of bursting and Video attribute information, Video attribute information include one of format, resolution ratio and code rate or a variety of, crash reason
It can be indicated using error code, every kind of error code corresponds to a kind of crash reason.
S209, the third party software decoder of the mobile terminal is called to carry out software decoding to the video file.
Specifically, third party software decoder can be pre-installed on mobile terminal, device is directly locally calling the
Software of the third party decoder.If local third party software decoder does not support the format of video file, device is to presetting
Decoding library request matched third party software decoder.Third party software decoder includes: ffmpeg decoder.When hardware solution
When code device collapse, the play position of video file, third party software decoder continue since the play position before record collapses
Software decoding is carried out to video file, the switching of decoder is automatically performed, realizes the smooth playing of video file.
Further, optionally, the third party software decoder of the mobile terminal is called to carry out the video file soft
Part decoding includes: to obtain the processor model of the mobile terminal, and select soft with the matched third party of the processor model
Part decoder;The third party software decoder is called to carry out software decoding to the video file.
Specifically, third party software decoder needs are matched with the processor model of mobile terminal, if mismatched, third
Square software decoder can collapse during the work time.Assuming that the processor model of mobile terminal is ARM7, mobile terminal root
Determine that matched third party software decoder is ffmpeg decoder according to the processor model.
S210, monitor that the third party software decoder occur during software is decoded to the video file
Collapse.
Specifically, third party software decoder is during decoded to video file progress hardware, it may occur that collapse
The reason of routed situation, the collapse of generation may be: the Video attribute information of video file changes, the hardware of mobile terminal
Inadequate resource or other unknown causes.Device can be when third party software decoder be started to work, starting finger daemon monitoring
Whether third party software decoder, monitoring third party software decoder collapse, and the method for monitoring may is that soft in third party
In the case that part decoder continuously inputs data flow to be decoded, monitor that third party software decoder is not defeated in preset duration
Video frame out, then it is assumed that third party software decoder collapses, and whether monitoring third party software decoder breaks down can be with
Using other methods, the present invention is with no restriction.
S211, the system default software decoder of the mobile terminal is called to carry out software decoding to the video file.
Specifically, the stability of system default software decoder be it is highest, when third party software decoder collapses
When exiting, record collapses the play position before exiting, and system default software decoder continues since play position to video text
Part is decoded, and is automatically performed the handover operation of decoder, realizes the smooth playing of video file.
Implement the embodiment of the present invention, when needing playing video file, is determined whether according to the device model of mobile terminal
It supports hardware decoding, if supporting that hardware decoder is called to be decoded video file, is collapsed in hardware decoding process
It bursts, it is automatic that third party software decoder is called to continue to be decoded video file, it realizes the automatic switchover of decoder, avoids regarding
Frequency file interrupts broadcasting because hardware decoder collapses, and such video file smooth can play out on mobile terminals.
It is a kind of structural schematic diagram of the decoded device of video provided in an embodiment of the present invention referring to Fig. 3, of the invention real
It applies in example, described device includes: to obtain module 10, enquiry module 11, calling module 12 and the first switching module 13.
Module 10 is obtained, for receiving video playing instruction, and obtains the corresponding video text of the video playing instruction
Part.
Enquiry module 11, for inquiring the device model of mobile terminal.
Calling module 12 calls the mobile terminal if belonging to preset equipment white list for the device model
Hardware decoder carries out hardware decoding to the video file.
First switching module 13, for monitoring that the hardware decoder carries out the decoded mistake of hardware to the video file
When collapsing in journey, the third party software decoder of the mobile terminal is called to carry out software decoding to the video file.
Video encoding/decoding method of the decoded device of the video of the embodiment of the present invention for realizing embodiment of the method one, the present invention
Embodiments and methods embodiment one is based on same design, and bring technical effect is also identical, and detailed process please refers to method reality
The description of example one is applied, details are not described herein again.
Implement the embodiment of the present invention, when needing playing video file, is determined whether according to the device model of mobile terminal
It supports hardware decoding, if supporting that hardware decoder is called to be decoded video file, is collapsed in hardware decoding process
It bursts, it is automatic that third party software decoder is called to continue to be decoded video file, it realizes the automatic switchover of decoder, avoids regarding
Frequency file interrupts broadcasting because hardware decoder collapses, and such video file smooth can play out on mobile terminals.
It referring to fig. 4 and Fig. 5, is a kind of another structural schematic diagram of the decoded device of video provided in an embodiment of the present invention,
In embodiments of the present invention, it includes obtaining module 10, enquiry module 11, calling module 12 and the first switching module that described device, which is removed,
It further include the second switching module 14 except 13.
Second switching module 14, for monitoring that the third party software decoder carries out video text to the video file
When part collapse during software is decoded, call the system default software decoder of the mobile terminal to the view
Frequency file carries out software decoding.
Optionally, in embodiments of the present invention, the first switching module 13 is also used to record the video category of the video file
Property information and crash reason, the Video attribute information include: one of format, resolution ratio and code rate or a variety of.
Optionally, in an embodiment of the present invention, the first switching module 13 includes:
Acquiring unit 131 for obtaining the processor model of the mobile terminal, and selects and the processor model
The third party software decoder matched;
Call unit 132, for calling the third party software decoder to carry out software decoding to the video file.
Optionally, in an embodiment of the present invention, enquiry module 11 is also used to inquire the operating system of the mobile terminal
Version;
If first switching module 13 belongs to preset equipment white list model set and institute for the device model
It states operating system version and belongs to preset operating system version set, call the hardware decoder of the mobile terminal to the view
Frequency file carries out hardware decoding.
Optionally, in an embodiment of the present invention, enquiry module 11 is also used to inquire the color mode of the mobile terminal
With the color mode of the hardware decoder;
If the first switching module 13 belongs to preset equipment white list model set and the shifting for the device model
The color mode of dynamic terminal and the color mode of the hardware decoder are compatible, call the hardware decoder pair of the mobile terminal
The video file carries out hardware decoding.
Video encoding/decoding method of the decoded device of the video of the embodiment of the present invention for realizing embodiment of the method two, the present invention
Embodiments and methods embodiment two is based on same design, and bring technical effect is also identical, and detailed process please refers to method reality
The description of example two is applied, details are not described herein again.
Implement the embodiment of the present invention, when needing playing video file, is determined whether according to the device model of mobile terminal
It supports hardware decoding, if supporting that hardware decoder is called to be decoded video file, is collapsed in hardware decoding process
It bursts, it is automatic that third party software decoder is called to continue to be decoded video file, it realizes the automatic switchover of decoder, avoids regarding
Frequency file interrupts broadcasting because hardware decoder collapses, and such video file smooth can play out on mobile terminals.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium
In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
Above disclosed is only a preferred embodiment of the present invention, cannot limit the power of the present invention with this certainly
Sharp range, those skilled in the art can understand all or part of the processes for realizing the above embodiment, and weighs according to the present invention
Benefit requires made equivalent variations, still belongs to the scope covered by the invention.
Claims (13)
1. a kind of decoded method of video characterized by comprising
Video playing instruction is received, and obtains the corresponding video file of the video playing instruction;
Inquire the device model of mobile terminal;
If the device model belongs to preset equipment white list, call the hardware decoder of the mobile terminal to the video
File carries out hardware decoding;
When the hardware decoder is started to work, starting finger daemon monitors the hardware decoder;
In the case where the hardware decoder continuously inputs data flow to be decoded, the hardware decoder is monitored in preset duration
It is interior either with or without output video frame;If monitoring the hardware decoder in preset duration without output video frame, then it is assumed that institute
It states hardware decoder and the video file collapse during hardware is decoded, call automatically at this time described mobile whole
The third party software decoder at end carries out software decoding to the video file.
2. the method as described in claim 1, which is characterized in that described to monitor the hardware decoder to the video file
When collapse during hardware is decoded, call the third party software decoder of the mobile terminal to the video text
Part carries out software decoding, further includes:
The Video attribute information and crash reason of the video file are recorded, the Video attribute information includes: format, resolution ratio
With one of code rate or a variety of.
3. method according to claim 2, which is characterized in that the third party software decoder for calling the mobile terminal
Carrying out software decoding to the video file includes:
The processor model of the mobile terminal is obtained, and selects to decode with the matched third party software of the processor model
Device;
The third party software decoder is called to carry out software decoding to the video file.
4. method according to claim 2, which is characterized in that further include:
During monitoring that the third party software decoder is decoded to video file progress video file progress software
When collapsing, the system default software decoder of the mobile terminal is called to carry out software decoding to the video file.
5. the method as described in claim 1-4 any one, which is characterized in that the device model of the inquiry mobile terminal,
Further include:
Inquire the operating system version of the mobile terminal;
If the device model belongs to preset device model set, call the hardware decoder of the mobile terminal to institute
Stating video file progress hardware decoding includes:
If the device model belongs to preset equipment white list model set and the operating system version belongs to preset behaviour
Make system version set, the hardware decoder of the mobile terminal is called to carry out hardware decoding to the video file.
6. the method as described in claim 1-4 any one, which is characterized in that the device model of the inquiry mobile terminal,
Further include:
Inquire the color mode of the mobile terminal and the color mode of the hardware decoder;
If the device model belongs to preset device model set, call the hardware decoder of the mobile terminal to institute
Stating video file progress hardware decoding includes:
If the device model belongs to preset equipment white list model set and the color mode of the mobile terminal and described
The color mode of hardware decoder is compatible, and the hardware decoder of the mobile terminal is called to carry out hardware solution to the video file
Code.
7. a kind of decoded device of video characterized by comprising
Module is obtained, for receiving video playing instruction, and obtains the corresponding video file of the video playing instruction;
Enquiry module, for inquiring the device model of mobile terminal;
Calling module calls the hardware solution of the mobile terminal if belonging to preset equipment white list for the device model
Code device carries out hardware decoding to the video file;
First switching module, for being started when the hardware decoder is started to work for monitoring the hardware decoder
Finger daemon monitor the hardware decoder in preset duration without output video frame, thus the hardware decoder quilt
When thinking to collapse, the third party software decoder of the mobile terminal is called to carry out software solution to the video file automatically
Code.
8. device as claimed in claim 7, which is characterized in that first switching module is also used to record the video file
Video attribute information and crash reason, the Video attribute information includes: one of format, resolution ratio and code rate or more
Kind.
9. device as claimed in claim 8, which is characterized in that first switching module includes:
Acquiring unit for obtaining the processor model of the mobile terminal, and selects and the processor model matched the
Software of the third party decoder;
Call unit, for calling the third party software decoder to carry out software decoding to the video file.
10. device as claimed in claim 8, which is characterized in that further include:
Second switching module, for monitoring that the third party software decoder carries out video file progress to the video file
When collapsing during software is decoded, call the system default software decoder of the mobile terminal to the video file
Carry out software decoding.
11. the device as described in claim 7-10 any one, which is characterized in that the enquiry module is also used to inquire described
The operating system version of mobile terminal;
If first switching module belongs to preset equipment white list model set and the operation for the device model
System version belongs to preset operating system version set, calls the hardware decoder of the mobile terminal to the video file
Carry out hardware decoding.
12. the device as described in claim 7-10 any one, which is characterized in that the enquiry module is also used to inquire described
The color mode of the color mode of mobile terminal and the hardware decoder;
If first switching module belongs to preset equipment white list model set and the movement for the device model
The color mode of the color mode of terminal and the hardware decoder is compatible, calls the hardware decoder of the mobile terminal to institute
It states video file and carries out hardware decoding.
13. a kind of computer-readable storage medium, which stores programs, which is characterized in that described program is for executing as weighed
The method that benefit requires any one of 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510052937.8A CN105992056B (en) | 2015-01-30 | 2015-01-30 | A kind of decoded method and apparatus of video |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510052937.8A CN105992056B (en) | 2015-01-30 | 2015-01-30 | A kind of decoded method and apparatus of video |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105992056A CN105992056A (en) | 2016-10-05 |
CN105992056B true CN105992056B (en) | 2019-10-22 |
Family
ID=57036655
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510052937.8A Active CN105992056B (en) | 2015-01-30 | 2015-01-30 | A kind of decoded method and apparatus of video |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105992056B (en) |
Families Citing this family (23)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106658174A (en) * | 2016-10-31 | 2017-05-10 | 努比亚技术有限公司 | Video decoding terminal and method |
CN106792066A (en) * | 2016-12-20 | 2017-05-31 | 暴风集团股份有限公司 | The method and system that the video decoding of optimization is played |
CN108632667B (en) * | 2017-03-21 | 2019-10-22 | 腾讯科技(深圳)有限公司 | A kind of coding/decoding method and terminal of multimedia file |
CN109391843B (en) * | 2017-08-03 | 2022-02-25 | 腾讯科技(深圳)有限公司 | Online video speed doubling playing method, device, medium and intelligent terminal |
CN107580227B (en) * | 2017-09-27 | 2020-06-05 | 维沃移动通信有限公司 | Video coding method and mobile terminal |
CN107995522A (en) * | 2017-12-19 | 2018-05-04 | 深圳市沃特沃德股份有限公司 | Onboard system plays the method and device of video |
CN108235096A (en) * | 2018-01-18 | 2018-06-29 | 湖南快乐阳光互动娱乐传媒有限公司 | Method for intelligently switching soft decoding and playing video through hard decoding of mobile terminal |
CN108600813A (en) * | 2018-05-17 | 2018-09-28 | 上海七牛信息技术有限公司 | a kind of media file playing method, device and media play system |
CN110198427B (en) * | 2018-07-05 | 2021-09-21 | 腾讯科技(深圳)有限公司 | Video call method and device |
CN110858827B (en) * | 2018-08-22 | 2023-03-24 | 浙江宇视科技有限公司 | Broadcast starting acceleration method and device and computer readable storage medium |
CN109151574B (en) * | 2018-10-15 | 2020-03-24 | Oppo广东移动通信有限公司 | Video processing method, video processing device, electronic equipment and storage medium |
CN109379630B (en) * | 2018-11-27 | 2021-03-12 | Oppo广东移动通信有限公司 | Video processing method and device, electronic equipment and storage medium |
WO2020107353A1 (en) * | 2018-11-29 | 2020-06-04 | 深圳市欢太科技有限公司 | Video decoding method, device, electronic equipment, and computer-readable storage medium |
CN109672893B (en) * | 2018-11-30 | 2022-01-14 | 广州市百果园信息技术有限公司 | Video decoding method, device, equipment and storage medium |
CN111381796B (en) * | 2018-12-28 | 2021-09-17 | 北京字节跳动网络技术有限公司 | Processing method and device for realizing KTV function on client and user equipment |
CN111479165B (en) * | 2019-01-23 | 2021-08-06 | 上海哔哩哔哩科技有限公司 | Seamless switching method and device for software and hardware decoding resolution and storage medium |
CN110868615B (en) * | 2019-11-25 | 2021-05-28 | 腾讯科技(深圳)有限公司 | Video processing method and device, electronic equipment and storage medium |
CN111083551B (en) * | 2019-12-17 | 2022-01-11 | 腾讯科技(深圳)有限公司 | Barrage rendering method and device, computer readable storage medium and computer equipment |
CN112423118A (en) * | 2020-10-26 | 2021-02-26 | 深圳Tcl新技术有限公司 | Multimedia file decoding method and device, terminal equipment and storage medium |
CN113066140A (en) * | 2021-03-29 | 2021-07-02 | 广州虎牙科技有限公司 | Image encoding method, image encoding device, computer device, and storage medium |
CN114339408A (en) * | 2021-11-26 | 2022-04-12 | 惠州华阳通用电子有限公司 | Video decoding method |
CN115209223B (en) * | 2022-05-12 | 2024-09-20 | 广州方硅信息技术有限公司 | Video encoding/decoding control processing method, device, terminal and storage medium |
CN115065824B (en) * | 2022-08-18 | 2023-02-24 | 荣耀终端有限公司 | Decoder determination method, device, chip, electronic equipment and medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101986708A (en) * | 2010-10-29 | 2011-03-16 | 北京中星微电子有限公司 | Video decoding method and decoder |
CN102572364A (en) * | 2010-12-15 | 2012-07-11 | 中兴通讯股份有限公司 | Decoding method and device for video communication data |
CN102761736A (en) * | 2011-04-29 | 2012-10-31 | 腾讯科技(深圳)有限公司 | Video decoding method and device |
CN103339959A (en) * | 2011-01-19 | 2013-10-02 | 高通股份有限公司 | Dynamic video switching |
-
2015
- 2015-01-30 CN CN201510052937.8A patent/CN105992056B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101986708A (en) * | 2010-10-29 | 2011-03-16 | 北京中星微电子有限公司 | Video decoding method and decoder |
CN102572364A (en) * | 2010-12-15 | 2012-07-11 | 中兴通讯股份有限公司 | Decoding method and device for video communication data |
CN103339959A (en) * | 2011-01-19 | 2013-10-02 | 高通股份有限公司 | Dynamic video switching |
CN102761736A (en) * | 2011-04-29 | 2012-10-31 | 腾讯科技(深圳)有限公司 | Video decoding method and device |
Also Published As
Publication number | Publication date |
---|---|
CN105992056A (en) | 2016-10-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105992056B (en) | A kind of decoded method and apparatus of video | |
US8074227B2 (en) | Utilizing a first managed process to host at least a second managed process | |
RU2611988C2 (en) | Icon display method and device | |
US10271105B2 (en) | Method for playing video, client, and computer storage medium | |
WO2016078380A1 (en) | Display method, terminal, and computer storage medium | |
CN106331345B (en) | Interactive message display method, device and system | |
EP2767905A1 (en) | Terminal apparatus, server, browser of terminal apparatus operating system and method of operating browser | |
US10185819B2 (en) | Extension configuration and interaction | |
KR20170097161A (en) | Browser display casting techniques | |
WO2014101418A1 (en) | Video preview display method and terminal device | |
CN109361948B (en) | Interface management method, intelligent terminal and readable storage medium | |
US20150317059A1 (en) | Application management method for a mobile terminal and the mobile terminal | |
US11025695B2 (en) | Techniques for modifying a rules engine in a highly-scaled computing environment | |
CN111880879A (en) | Playing method, device, equipment and storage medium of dynamic wallpaper | |
CN110083417B (en) | User interface response method and device | |
CN113660504B (en) | Message display method, device, electronic equipment and storage medium | |
CN113282268B (en) | Sound effect configuration method and device, storage medium and electronic equipment | |
CN106874008A (en) | The implementation method and device of a kind of dynamic desktop icon | |
CN104699535B (en) | A kind of information processing method and electronic equipment | |
CN115935925A (en) | Form adapting method, electronic device and computer readable storage medium | |
CN112966201B (en) | Object processing method, device, electronic equipment and storage medium | |
CN111124781A (en) | Display card testing method and device, electronic equipment and storage medium | |
WO2016173075A1 (en) | System switching method and device | |
US9354772B2 (en) | Method and device for movement of image object | |
CN110489023A (en) | Implementation method, device, equipment, medium and the system of windows display |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |