CN105791890A - Soft decoding method and device for player - Google Patents

Soft decoding method and device for player Download PDF

Info

Publication number
CN105791890A
CN105791890A CN201410808126.1A CN201410808126A CN105791890A CN 105791890 A CN105791890 A CN 105791890A CN 201410808126 A CN201410808126 A CN 201410808126A CN 105791890 A CN105791890 A CN 105791890A
Authority
CN
China
Prior art keywords
code element
soft
solution code
soft solution
decoding
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.)
Pending
Application number
CN201410808126.1A
Other languages
Chinese (zh)
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.)
TCL Corp
Original Assignee
TCL Corp
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 TCL Corp filed Critical TCL Corp
Priority to CN201410808126.1A priority Critical patent/CN105791890A/en
Publication of CN105791890A publication Critical patent/CN105791890A/en
Pending legal-status Critical Current

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a soft decoding method and device for a player. The soft decoding method comprises the following steps: A, loading a local soft decoding component, and performing initialization; B, judging the smoothness of the soft decoding component, performing a step D if the soft decoding component is smooth, and performing a step C if the soft decoding component is unsmooth; C, selecting a soft decoding component according to parameter information of a video, performing loading, and returning to the step B; and D, detecting whether the soft decoding component is already registered or not, if so, performing playing, and otherwise, registering the soft decoding component in a local database and performing playing. According to the soft decoding method and device, a best-match soft decoding component can be selected through smoothness judgement, so that the playing effect is optimized, and the soft decoding requirement of any video can be met. The soft decoding method and device have wide application ranges.

Description

The soft decoding method of a kind of player and device
Technical field
The present invention relates to multimedia technology field, particularly to soft decoding method and the device of a kind of player.
Background technology
In the development and application of present multimedia, it is often necessary to use soft solution Code Element, during the video pause using player to watch such as user, can playing video advertisement, now play due to current video and occupy hard decoder, so the broadcasting of advertisement needs to use soft decoding.It is different that the difference of various soft solution Code Element usable conditions and TV chip can cause solving bit rate, it is necessary to selects suitable soft decoding process.Such as, a CPU does not have hardware floating point unit, needs to evade falling floating-point operation on soft decoding algorithm when this type of CPU carries out soft decoding, and usual CPU uses integer arithmetic to replace floating-point operation thus simulation floating point processing, and decoding efficiency can reduce.In common at present Android system (android), red fox operating system (FFOS), the solution Code Element of player lower floor adopts OMX mode, which is more single to the selection mode of decoding, can not effectively support multiple soft decoding, it is impossible to select the soft decoding process that decoding efficiency is high.
Thus prior art need to improve.
Summary of the invention
In view of above-mentioned the deficiencies in the prior art part, it is an object of the invention to provide the soft decoding method of a kind of player and device, the problem low to solve existing soft decoding efficiency.
In order to achieve the above object, this invention takes techniques below scheme:
A kind of soft decoding method of player, comprising:
A, load local soft solution Code Element and initialize;
B, judge the fluency of described soft solution Code Element if smoothness, to perform step D, if not smooth, perform step C;
C, select a soft solution Code Element according to the parameter information of video and load, returning step B;
D, whether registered, registered if detecting this soft solution Code Element, plays out, and unregistered then plays after registration in the local database.
In the soft decoding method of described player, described step A specifically includes: select corresponding soft solution Code Element to carry out loading and initializing from local data base according to the information of video.
In the soft decoding method of described player, in described step B, the Rule of judgment of fluency is: the reproduction time of a two field picture have to be larger than its decoding time;Fluency judgment formula is:
Wherein, CODEC_MODULE_SCORE is the soft decoding performance score value of current soft solution Code Element, and DTime is the average decoding time of decoding client records, and fps is the video frame rate captured.
In the soft decoding method of described player, described step C specifically includes:
C1, extract the parameter information of video and be sent to decoding server;
C2, decoding server are chosen the soft solution Code Element of correspondence according to described parameter information and are pushed to player;
C3, player load the soft solution Code Element that decoding server pushes, and return step B.
In the soft decoding method of described player, described step D specifically includes:
D1, whether registered, registered if detecting current soft solution Code Element, plays out, unregistered execution step D2;
D2, information to soft solution Code Element carry out local synchronization to realize registration.
In the soft decoding method of described player, described step D2 specifically includes: the download path of soft solution Code Element, title, version, Performance Score are stored in coding type table corresponding in local data base.
In the soft decoding method of described player, also include after described step D2: by Tong Bu with decoding server for the soft solution Code Element of local data library storage.
A kind of device of the soft decoding method adopting described player, comprising:
Initialization module, for loading the soft solution Code Element of this locality and initializing;
Judge module, for judging the fluency of described soft solution Code Element;
Select module, for soft solution Code Element time not smooth parameter information according to video select a soft solution Code Element and load;
Whether registered detection module, detect this soft solution Code Element during for soft solution Code Element smoothness, registered, plays out, unregistered then in the local database registration after play.
In described device, described selection module includes:
Extraction unit, for extracting the parameter information of video and being sent to decoding server;
Loading unit, for loading the soft solution Code Element that decoding server pushes.
In described device, described detection module includes:
Registration detection unit, whether registered for detecting current soft solution Code Element;
Processing unit, for playing out time registered, carries out local synchronization to realize registration to the information of soft solution Code Element time unregistered.
Compared to prior art, the soft decoding method of player provided by the invention and device, by loading the soft solution Code Element of this locality and initializing, it is judged that the fluency of described soft solution Code Element;Detect this soft solution Code Element when smoothness whether registered, registered, play out, unregistered then in the local database registration after play;When not smooth, the parameter information according to video selects a soft solution Code Element and loads, and continues to judge the fluency of new soft solution Code Element;Judge to choose the soft solution Code Element mated most by fluency, make result of broadcast be optimized, moreover it is possible to meeting the soft decoding request of any video, the scope of application is wider.
Accompanying drawing explanation
The soft decoding method flow chart of the player that Fig. 1 provides for present pre-ferred embodiments.
Fig. 2 is the Application Example structured flowchart of device provided by the invention.
Detailed description of the invention
The present invention provides soft decoding method and the device of a kind of player, and for making the purpose of the present invention, technical scheme and effect clearly, clearly, developing simultaneously referring to accompanying drawing, the present invention is described in more detail for embodiment.Should be appreciated that specific embodiment described herein is only in order to explain the present invention, is not intended to limit the present invention.
Referring to Fig. 1, it is the soft decoding method flow chart of player provided by the invention;Described soft decoding method includes:
S100, load local soft solution Code Element and initialize;
S200, judge the fluency of described soft solution Code Element if smoothness, to perform step S400, if not smooth, perform step S300;
S300, select a soft solution Code Element according to the parameter information of video and load, returning step S200;
S400, whether registered, registered if detecting this soft solution Code Element, plays out, and unregistered then plays after registration in the local database.
During player plays video, the relevant information according to video, as video format (rm, rmvb, amv, flv etc.), resolution, frame per second etc. select corresponding soft solution Code Element to carry out loading and initializing from local data base (namely local decoding data base).Local decoding data base has prestored the attribute informations such as multiple soft solution Code Element and the form of each soft solution Code Element, version, applicable CPU architecture.So can quick and precisely find suitable soft solution Code Element.The source of these soft solution Code Elements is broadly divided into two kinds, and a kind of is the soft solution Code Element being fixedly installed according to video type common at present before dispatching from the factory, and another kind is the soft solution Code Element that the soft decoding method (namely in step S300) according to the present invention selects to obtain.In order to avoid the memory space that temporary is too much, the soft typically not change of solution Code Element being fixedly installed;The number selecting the soft solution Code Element of acquisition is generally fixing, selects new soft solution Code Element if having, it will substitute the less soft solution Code Element of access times.
After selecting a soft solution Code Element, this soft solution Code Element can be initialized.Based on now selecting from local decoding data base, can select that the limited types of soft solution Code Element.Whether selected soft solution Code Element can reach the decoding effect of the best, also need to carry out playing in advance testing the foundation that the fluency of this soft solution Code Element judges as effect.
When playing video, if after a two field picture plays, and lower two field picture has not also decoded, then there will be card frame.As long as the requirement to soft solution Code Element in prior art is to play to be exactly.But play whether smoothness can affect user's viewing effect.For this, embodiment increases fluency testing procedure, it is desirable to the soft solution Code Element that the decoding time reaching a two field picture must be faster than reproduction time is only qualified solution Code Element.Accordingly, in described step S200, the Rule of judgment arranging fluency is: the reproduction time of a two field picture have to be larger than its decoding time.Fluency judgment formula is as follows:
Wherein, CODEC_MODULE_SCORE is the soft decoding performance score value of current soft solution Code Element, and DTime is the average decoding time of decoding client records, and fps is the video frame rate captured.
The soft decoding performance score value calculated by acquisition average decoding time and video frame rate can represent the fluency of a two field picture.Soft decoding performance score value represents smoothness more than 1, illustrates that this soft solution Code Element is relatively suitable for the decoding of this video, can ensure that the fluency of broadcasting, can use this soft solution Code Element.If soft decoding performance score value is less than or equal to 1, not smooth, uses the soft solution Code Element of current selection to play video council card and fall, be now accomplished by from decoding server, selecting a new soft solution Code Element by step S300.
In the present embodiment, described step S300 specifically includes:
Step 301, extract the parameter information of video and be sent to decoding server.
The parameter information of described video includes the relevant informations such as frame per second, decoding standard, video resolution, CPU model, internal memory, local decoder playback problem state.It is sent to decoding server after being combined by these parameter informations, sends request instruction simultaneously and ask a soft solution Code Element to decoding server.
Step 302, decoding server are chosen the soft solution Code Element of correspondence according to described parameter information and are pushed to player.
Decoding server response request instruction, just can select the soft solution Code Element being best suitable for current video, feed back to player afterwards according to these parameter informations.In decoding server, existing all videos can be decoded by the soft solution Code Element of storage, classifies with its decoding protocol, for instance, the first kind includes: VP3, VP6, VP7, VP8, VP9.Equations of The Second Kind includes: H263, H264, H265.3rd class includes: MPEG1, MPEG2, MPEG4.4th class includes: RealVideo.5th class includes: MotionJPEG2000.
Step 303, player load the soft solution Code Element that decoding server pushes, and return step S200.
Whether the new soft solution Code Element downloaded from decoding server can meet fluency judgement also the unknown, for this reason, it may be necessary to return step S200 to continue fluency judgement.
In the present embodiment, although soft decoding performance score value can be shown that the fluency of this soft solution Code Element more than 1, but, this soft solution Code Element may be by the above-mentioned steps S300 new soft solution Code Element downloaded from decoding server, there is no the relevant information of this soft solution Code Element in local data base.For this, after judging that soft solution Code Element has fluency, in addition it is also necessary to judge that whether this soft solution Code Element registered by step S400.Whether register whether the relevant information being namely to judge soft solution Code Element stores to relevant position.In the present embodiment, described step S400 specifically includes:
Step 401, whether registered, registered if detecting current soft solution Code Element, plays out, unregistered execution step 402.
Directly use this soft solution Code Element time registered, play out according to existing normal mode.
Step 402, information to soft solution Code Element carry out local synchronization to realize registration.
Namely described local synchronization is the download path of soft solution Code Element, title, version, Performance Score etc. are stored in coding type table corresponding in local data base.Namely the soft solution Code Element of this storage is the soft solution Code Element that above-mentioned selection obtains.The information recorded from the coding type table of local data base according to this video information when playing video searches optimal software decode assembly.
In the specific implementation, can also be Tong Bu with decoding server by the soft solution Code Element stored in local data base, it is about to the information in decoding storehouse, such as library name, version, frame per second, the soft decoding performance score value of decoding standard, video resolution, adaptive CPU model, internal memory and the test of this fluency sends to decoding server after combining.Decoding server will use above-mentioned information to promote and safeguards the soft solution Code Element of correspondence further.
In the present embodiment, if the soft solution Code Element downloaded from soft decoding server yet suffers from playing the phenomenon that card pauses, again can download another new soft solution Code Element to the request of soft decoding server, and simultaneously feedback problem, can by the form of video, the parameter feedbacks such as resolution, frame per second, cpu performance, internal memory, time delay are in decoding server, in order to backstage can more targeted maintenance, relevant soft solution Code Element of upgrading.
Based on the soft decoding method of above-mentioned player, the present invention correspondingly provides the device of a kind of soft decoding method realizing player, and this device is arranged in player, is connected with local data base and decoding server, collaborative work.Seeing also Fig. 2, described device includes initialization module 10, judge module 20, selects module 30 and detection module 40.Described judge module 20 connection initialization module 10, selection module 30 and detection module 40.Described initialization module 10 is for loading the soft solution Code Element of this locality and initializing.Judge module 20 judges the fluency of described soft solution Code Element.Module 30 parameter information according to video when soft solution Code Element is not smooth is selected to select a soft solution Code Element and load.Whether detection module 40 detects this soft solution Code Element registered, registered, plays out, unregistered then in the local database registration after play.
Wherein, described selection module 30 includes:
Extraction unit 301, for extracting the parameter information of video and being sent to decoding server.
Loading unit 302, for loading the soft solution Code Element that decoding server pushes.
Described extraction unit 301 connects loading unit 302 and judge module 20, described loading unit 302 connection judgment module 20.In the specific implementation, described extraction unit 301 can also feed back the form of video while again downloading another new soft solution Code Element to the request of soft decoding server, the parameters such as resolution, frame per second, cpu performance, internal memory, time delay are in decoding server, in order to backstage can more targeted maintenance, relevant soft solution Code Element of upgrading.
Described detection module 40 includes:
Registration detection unit 401, whether registered for detecting current soft solution Code Element;
Processing unit 402, for playing out time registered, carries out local synchronization to realize registration to the information of soft solution Code Element time unregistered;
Described registration detection unit 401 connects processing unit 402 and judge module 20.
In sum, the present invention is by carrying out fluency judgement to the soft solution Code Element loaded;The soft solution Code Element mated most can be chosen, to reach the result of broadcast of the best, it is to avoid card frame, also improve decoding efficiency;Information according to video obtains the soft solution Code Element of adaptation from decoding server, can meet the soft decoding request of any video, and the scope of application is wider.
It is understood that for those of ordinary skills, replacement can be equal to according to technical scheme and inventive concept thereof or be changed, and all these are changed or replace the scope of the claims that all should belong to appended by the present invention.

Claims (10)

1. the soft decoding method of a player, it is characterised in that including:
A, load local soft solution Code Element and initialize;
B, judge the fluency of described soft solution Code Element if smoothness, to perform step D, if not smooth, perform step C;
C, select a soft solution Code Element according to the parameter information of video and load, returning step B;
D, whether registered, registered if detecting this soft solution Code Element, plays out, and unregistered then plays after registration in the local database.
2. the soft decoding method of player according to claim 1, it is characterised in that described step A specifically includes: select corresponding soft solution Code Element to carry out loading and initializing from local data base according to the information of video.
3. the soft decoding method of player according to claim 2, it is characterised in that in described step B, the Rule of judgment of fluency is: the reproduction time of a two field picture have to be larger than its decoding time;Fluency judgment formula is:
Wherein, CODEC_MODULE_SCORE is the soft decoding performance score value of current soft solution Code Element, and DTime is the average decoding time of decoding client records, and fps is the video frame rate captured.
4. the soft decoding method of player according to claim 1, it is characterised in that described step C specifically includes:
C1, extract the parameter information of video and be sent to decoding server;
C2, decoding server are chosen the soft solution Code Element of correspondence according to described parameter information and are pushed to player;
C3, player load the soft solution Code Element that decoding server pushes, and return step B.
5. the soft decoding method of player according to claim 1, it is characterised in that described step D specifically includes:
D1, whether registered, registered if detecting current soft solution Code Element, plays out, unregistered execution step D2;
D2, information to soft solution Code Element carry out local synchronization to realize registration.
6. the soft decoding method of player according to claim 5, it is characterised in that described step D2 specifically includes: the download path of soft solution Code Element, title, version, Performance Score are stored in coding type table corresponding in local data base.
7. the soft decoding method of player according to claim 5, it is characterised in that also include after described step D2: by Tong Bu with decoding server for the soft solution Code Element of local data library storage.
8. the device of the soft decoding method of the player adopted described in claim 1, it is characterised in that including:
Initialization module, for loading the soft solution Code Element of this locality and initializing;
Judge module, for judging the fluency of described soft solution Code Element;
Select module, for soft solution Code Element time not smooth parameter information according to video select a soft solution Code Element and load;
Whether registered detection module, detect this soft solution Code Element during for soft solution Code Element smoothness, registered, plays out, unregistered then in the local database registration after play.
9. device according to claim 8, it is characterised in that described selection module includes:
Extraction unit, for extracting the parameter information of video and being sent to decoding server;
Loading unit, for loading the soft solution Code Element that decoding server pushes.
10. device according to claim 8, it is characterised in that described detection module includes:
Registration detection unit, whether registered for detecting current soft solution Code Element;
Processing unit, for playing out time registered, carries out local synchronization to realize registration to the information of soft solution Code Element time unregistered.
CN201410808126.1A 2014-12-23 2014-12-23 Soft decoding method and device for player Pending CN105791890A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410808126.1A CN105791890A (en) 2014-12-23 2014-12-23 Soft decoding method and device for player

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410808126.1A CN105791890A (en) 2014-12-23 2014-12-23 Soft decoding method and device for player

Publications (1)

Publication Number Publication Date
CN105791890A true CN105791890A (en) 2016-07-20

Family

ID=56385567

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410808126.1A Pending CN105791890A (en) 2014-12-23 2014-12-23 Soft decoding method and device for player

Country Status (1)

Country Link
CN (1) CN105791890A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1851817A (en) * 2006-05-22 2006-10-25 珠海炬力集成电路设计有限公司 Automatic regulating method of Mips number operated during decoder decoding process
CN102074257A (en) * 2011-01-17 2011-05-25 博视联(苏州)信息科技有限公司 Software and hardware-decoding general multi-media playing equipment and playing method thereof
US8155205B2 (en) * 2007-02-28 2012-04-10 Arcsoft, Inc. Dynamic decoder switch
CN102761736A (en) * 2011-04-29 2012-10-31 腾讯科技(深圳)有限公司 Video decoding method and device
CN102970525A (en) * 2011-09-01 2013-03-13 深圳市快播科技有限公司 Optimized decoding processing method, device and system of mobile terminal player
CN103096163A (en) * 2011-11-01 2013-05-08 中国移动通信集团公司 Media player and play method of media file
US8683540B2 (en) * 2008-10-17 2014-03-25 At&T Intellectual Property I, L.P. System and method to record encoded video data
US8711942B2 (en) * 2010-12-17 2014-04-29 Kabushiki Kaisha Toshiba Moving picture decoding device and moving picture decoding method
CN103841389A (en) * 2014-04-02 2014-06-04 北京奇艺世纪科技有限公司 Video playing method and player
CN103856812A (en) * 2014-03-25 2014-06-11 北京奇艺世纪科技有限公司 Video playing method and device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1851817A (en) * 2006-05-22 2006-10-25 珠海炬力集成电路设计有限公司 Automatic regulating method of Mips number operated during decoder decoding process
US8155205B2 (en) * 2007-02-28 2012-04-10 Arcsoft, Inc. Dynamic decoder switch
US8683540B2 (en) * 2008-10-17 2014-03-25 At&T Intellectual Property I, L.P. System and method to record encoded video data
US8711942B2 (en) * 2010-12-17 2014-04-29 Kabushiki Kaisha Toshiba Moving picture decoding device and moving picture decoding method
CN102074257A (en) * 2011-01-17 2011-05-25 博视联(苏州)信息科技有限公司 Software and hardware-decoding general multi-media playing equipment and playing method thereof
CN102761736A (en) * 2011-04-29 2012-10-31 腾讯科技(深圳)有限公司 Video decoding method and device
CN102970525A (en) * 2011-09-01 2013-03-13 深圳市快播科技有限公司 Optimized decoding processing method, device and system of mobile terminal player
CN103096163A (en) * 2011-11-01 2013-05-08 中国移动通信集团公司 Media player and play method of media file
CN103856812A (en) * 2014-03-25 2014-06-11 北京奇艺世纪科技有限公司 Video playing method and device
CN103841389A (en) * 2014-04-02 2014-06-04 北京奇艺世纪科技有限公司 Video playing method and player

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
CSKY: "换个解码器,换个表现", 《计算机应用文摘》 *

Similar Documents

Publication Publication Date Title
US11343580B2 (en) System and method of displaying content based on locational activity
US8438484B2 (en) Video preview module to enhance online video experience
US8947596B2 (en) Alignment of closed captions
WO2020248909A1 (en) Video decoding method and apparatus, computer device, and storage medium
CN104982039A (en) Method for providing targeted content in image frames of video and corresponding device
CN103782605A (en) Rendering device with content substitution
CN103974061B (en) A kind of method of testing and system play
US10587915B2 (en) Substituting alternative media for presentation during variable speed operation
CN105187895A (en) Data-caching method and system for playing videos on mobile platform by means of hardware acceleration
WO2015032342A1 (en) Information displaying method and apparatus
US20120192223A1 (en) Set-top box and program recording method
CN107071550B (en) Video data sharing method and device
TW201330603A (en) Method of digital content version switching and corresponding device
CN105141569A (en) Media processing method and device
WO2010002080A1 (en) System and method for continuous playing of moving picture between two devices
US11711490B2 (en) Video frame pulldown based on frame analysis
CN108632667B (en) A kind of coding/decoding method and terminal of multimedia file
US20140051505A1 (en) Software-application initiation
TW201229942A (en) Method of determining profiles for widget channel viewers
CN105791890A (en) Soft decoding method and device for player
US7912349B1 (en) Validating frame dependency information
US20060029367A1 (en) Sequence header identification
US10218986B2 (en) Frame accurate splicing
US10735806B2 (en) Configuration for detecting hardware-based or software-based decoding of video content
KR102459197B1 (en) Method and apparatus for presentation customization and interactivity

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160720

RJ01 Rejection of invention patent application after publication