CN107249144A - Method, multimedia player and the playback equipment of multimedia file decoding - Google Patents
Method, multimedia player and the playback equipment of multimedia file decoding Download PDFInfo
- Publication number
- CN107249144A CN107249144A CN201710335462.2A CN201710335462A CN107249144A CN 107249144 A CN107249144 A CN 107249144A CN 201710335462 A CN201710335462 A CN 201710335462A CN 107249144 A CN107249144 A CN 107249144A
- Authority
- CN
- China
- Prior art keywords
- decoder
- decoding
- multimedia file
- decoded
- multimedia
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 47
- 238000003860 storage Methods 0.000 claims description 6
- 230000002459 sustained effect Effects 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 7
- 230000036316 preload Effects 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 230000009286 beneficial effect Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000012544 monitoring process Methods 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 238000012163 sequencing technique Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000002045 lasting effect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/4402—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
- H04N21/440236—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by media transcoding, e.g. video is transformed into a slideshow of still pictures, audio is converted into text
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/4402—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
- H04N21/440281—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the temporal resolution, e.g. by frame skipping
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention discloses method, multimedia player and the playback equipment of a kind of multimedia file decoding.The method of the multimedia decoding comprises the following steps:Obtain the default play frame rate of multimedia file to be decoded;Load the first decoder and decode the multimedia file;Monitor the frame per second of the first decoder decoding;If the frame per second of the first decoder decoding is less than the default play frame rate, the second decoder is preloaded.Embodiments in accordance with the present invention, can improve the decoding efficiency of multimedia decoding.
Description
Technical field
The present invention relates to areas of information technology, the method decoded more particularly, to multimedia file, multimedia player
And multimedia play equipment.
Background technology
With the raising of the development and construction of Internet technology, and consumer demand, had increasing need in daily use
Resolution ratio very high multimedia resource, difference present on the running environment such as hardware system, operating system and its version, makes in addition
All decoding requirements can not be met into single decoder.
The content of the invention
It is an object of the invention to provide a kind of method of multimedia file decoding, to improve decoding efficiency.
A kind of method of multimedia file decoding is provided according to the first aspect of the invention, comprised the following steps:Obtain
The default play frame rate of multimedia file to be decoded;Load the first decoder and decode the multimedia file;Monitoring first
The frame per second of decoder decoding;If the frame per second of the first decoder decoding is less than default play frame rate, preloads second and decode
Device.
Alternatively, it is further comprising the steps of:The frame per second that first decoder described in timing is decoded is less than the default broadcasting
Frame per second duration, if the time be greater that the very first time threshold value of setting, then switch to the decoding of the second decoder described
Multimedia file.
Alternatively, it is further comprising the steps of:From the frame per second that the first decoder is decoded is less than the default play frame rate,
If the time that the picture for decoding predetermined frame number is consumed is more than the second time threshold of setting, the second decoder solution is switched to
The code multimedia file.
Alternatively, before the first decoder decoded multimedia file of the loading, in addition to:From the solution for being respectively available for calling
The decoder for selecting the decoding performance of the multimedia file of the same type to multimedia file to be decoded optimal in code device is made
The step of for the first decoder;The decoding performance is included in averagely solution bit rate, minimum solution bit rate and highest solution bit rate
One or more of combinations;The same type refers to same format and equal resolution and identical default broadcasting frame
Rate.
Alternatively, before the first decoder decoded multimedia file of the loading, in addition to:From the decoding for being available for calling
The decoder conduct for selecting the decoding performance of the multimedia file of same type to multimedia file to be decoded optimal in device
The step of first decoder;The step of the first decoder of the selection, includes:Count many matchmakers of each decoder to same type
The decoding number of times of body file, and the frame per second of its decoding are sustained for longer than setting less than the state of the default play frame rate
The number of times of fixed very first time threshold value, calculate the number of times with its decode type same as before multimedia file number of times ratio
Value, the minimum decoder of selection ratio is used as the first decoder;Or, it is described selection the first decoder the step of include:Statistics
Each decoder is to the decoding number of times of the multimedia file of same type, and frame per second of its decoding is less than described default play
The number of times that the time that the picture of predetermined frame number consumed is more than the second time threshold of setting is decoded after frame per second, calculate the number of times with
It decodes the ratio of the number of times of the multimedia file of type same as before, and the minimum decoder of selection ratio is used as the first decoding
Device;The same type refers to same format and equal resolution and identical default play frame rate.
According to the second aspect of the invention there is provided a kind of multimedia player, including:Acquiring unit, is treated for obtaining
The default play frame rate of the multimedia file of decoding;Decoding unit, the decoding unit includes at least two decoders;Control
Unit, described control unit is arranged to:The first decoder in loading decoding unit is decoded to the multimedia file;
Monitor the frame per second of the first decoder decoding;The pre-add if the frame per second that the first decoder is decoded is less than the default play frame rate
Carry the second decoder.
Alternatively, described control unit is arranged to:The frame per second that first decoder described in timing is decoded is less than described default
Play frame rate duration, if the time be greater that setting very first time threshold value, then switch to the second decoder solution
The code multimedia file;Or, from the frame per second that the first decoder is decoded is less than the default play frame rate, if decoding
The time that the picture of predetermined frame number is consumed is more than the second time threshold of setting, then switches to the decoding of the second decoder described many
Media file.
Alternatively, described control unit, is arranged to the first decoder in the loading decoding unit to multimedia
Before file is decoded, also perform:Selected from the decoder for being respectively available for calling to the identical of multimedia file to be decoded
The step of optimal decoder of the decoding performance of the multimedia file of type is as the first decoder;The decoding performance includes flat
One or more of combinations in solution bit rate, minimum solution bit rate and highest solution bit rate;The same type refers to phase
With form and equal resolution and identical default play frame rate.
Alternatively, described control unit, is arranged to the first decoder in the loading decoding unit to multimedia
Before file is decoded, also perform:Selected from the decoder for being available for calling to the mutually similar of multimedia file to be decoded
The step of optimal decoder of the decoding performance of the multimedia file of type is as the first decoder;The first decoder of the selection
Step includes:Decoding number of times of each decoder to the multimedia file of same type is counted, and the frame per second of its decoding is less than
The state of the default play frame rate is sustained for longer than the number of times of the very first time threshold value of setting, calculates the number of times and its
The ratio of the number of times of the multimedia file of type same as before is decoded, the minimum decoder of selection ratio is used as the first decoder;
Or, it is described selection the first decoder the step of include:Count decoding of each decoder to the multimedia file of same type
Number of times, and the frame per second of its decoding are big less than the time that the picture that predetermined frame number is decoded after the default play frame rate is consumed
In the number of times of the second time threshold of setting, calculate the number of times with its decode type same as before multimedia file number of times
Ratio, the minimum decoder of selection ratio is used as the first decoder;The same type refers to same format and identical resolution
Rate and identical default play frame rate.
According to the third aspect of the present invention there is provided a kind of multimedia play equipment, including memory and processor, institute
Stating memory is used for store instruction, and the instruction is used to control the processor to be operated to perform foregoing multimedia file solution
The method of code.
It was found by the inventors of the present invention that in the prior art, and the frame per second that no-trump is decoded is compared with default play frame rate
Compared with then preloading another decoder for being available for calling less than the play frame rate in case then determining whether the skill of switching encoding/decoding device
Art scheme.Therefore, the technical assignment to be realized of the present invention or technical problem to be solved be those skilled in the art from
It is not expecting or it is not expected that, therefore the present invention is a kind of new technical scheme.
To enable the above objects, features and advantages of the present invention to become apparent, preferred embodiment cited below particularly, and coordinate
Appended accompanying drawing, is described in detail below.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be attached to what is used required in embodiment
Figure is briefly described.It should be appreciated that the following drawings illustrate only certain embodiments of the present invention, therefore it is not construed as pair
The restriction of scope.For those of ordinary skill in the art, on the premise of not paying creative work, can also be according to this
A little accompanying drawings obtain other related accompanying drawings.
Fig. 1 shows the flow chart of the method for the multimedia solution that the embodiment of the present invention one is provided.
Fig. 2 shows the flow chart of the method for the multimedia solution that the embodiment of the present invention two is provided.
Fig. 3 shows the flow chart of the method for the multimedia solution that the embodiment of the present invention three is provided.
Fig. 4 shows the block diagram of multimedia player provided in an embodiment of the present invention.
Fig. 5 shows the block diagram of the hardware configuration of multimedia play equipment provided in an embodiment of the present invention.
Embodiment
The various exemplary embodiments of the present invention are described in detail now with reference to accompanying drawing.It should be noted that:Unless had in addition
Body illustrates that the part and the positioned opposite of step, numerical expression and numerical value otherwise illustrated in these embodiments does not limit this
The scope of invention.
The description only actually at least one exemplary embodiment is illustrative below, never as to the present invention
And its any limitation applied or used.
It may be not discussed in detail for technology, method and apparatus known to person of ordinary skill in the relevant, but suitable
In the case of, the technology, method and apparatus should be considered as a part for specification.
In shown here and discussion all examples, any occurrence should be construed as merely exemplary, without
It is as limitation.Therefore, other examples of exemplary embodiment can have different values.
It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, therefore, once a certain Xiang Yi
It is defined, then it need not be further discussed in subsequent accompanying drawing in individual accompanying drawing.
Fig. 1 shows the flow chart of the method for the multimedia solution that the embodiment of the present invention one is provided, and methods described includes following
Step.
Step 101, the first decoder decoded multimedia file of loading.First decoder need to support the multimedia file
Form.
Step 102, the frame per second of monitoring the first decoder decoding.
If the frame per second of step 103, the first decoder decoding is less than the default play frame rate, preloads second and solve
Code device.Second decoder need to support the form of foregoing multimedia file.
Before step 103, include the step 100 of the default play frame rate of acquisition multimedia file to be decoded,
The sequencing of step 100 and step 101 and step 102 is not limited.
For example, the frame per second of the default broadcasting of multimedia file to be played is 30 frames/second, if the first decoder is decoded
Frame per second be less than 30 frames/second, then preload the second decoder.As the first decoder can be using the default play frame rate
The no preliminary judgement standard for being switched to the second decoder, the second decoder is then preloaded less than the default play frame rate.
Preload the second decoder to be beneficial in that, those skilled in the art can set further judgement mark
Standard, to decide whether the first decoder switching to the second decoder.If also meeting the further criterion, cut
Shift to the second decoder.Because the second decoder has been preloaded, therefore the decoding of multimedia file will not be interrupted, and improve decoding effect
Rate.Alternatively, if not meeting the further criterion, cancel and preload the second decoder.
The embodiment three shown in embodiment two and Fig. 3 shown in Fig. 2 provides two kinds of further criterion.
The method for the multimedia decoding that embodiment two is provided adds step compared to embodiment one after step 103
104:The frame per second that first decoder described in timing is decoded is less than the default play frame rate duration, if the time
More than the very first time threshold value of setting, then switch to the second decoder and decode the multimedia file.Alternatively, as do not met
Condition is stated, then cancels preloading the second decoder.
For example, very first time threshold value is 30 seconds, the example in embodiment one is continued to use, if the frame per second of the first decoder decoding
Less than 30 frames/second, and the state is continued above 30 seconds, then switches to the decoding of the second decoder, otherwise cancels preloading second
Decoder.
The method for the multimedia decoding that embodiment three is provided adds step compared to embodiment one after step 103
105:From the frame per second that the first decoder is decoded is less than the default play frame rate, if the picture for decoding predetermined frame number is disappeared
The time of consumption is more than the second time threshold of setting, then switches to the second decoder and decode the multimedia file;Otherwise, it is optional
Ground, cancels and preloads the second decoder.Second time threshold could be arranged to the predetermined frame number divided by the default broadcasting
Business obtained by frame per second, it can also be provided that the numerical value smaller than the business, is not limited herein.
For example, the frame of predetermined frame number 600, second time threshold is 20 seconds, the example in embodiment one is continued to use, from
The frame per second of first decoder decoding is less than 30 frames/from the second, if the time of decoding 600 frame pictures consumption is more than 20 seconds, switches
To the decoding of the second decoder, otherwise cancel and preload the second decoder.
The numeral listed in previous embodiment is only exemplary, it is therefore intended that convenient explanation, is not to present invention implementation
The restriction of mode.Those skilled in the art can make different settings according to actual conditions.
The method for the multimedia decoding that embodiment two and embodiment three are provided is beneficial in that, switching at runtime decoder with
Current running environment is adapted to, the efficiency of decoding is improved.
Further, before the step 101 in foregoing embodiments, setting preferably can be made to the first decoder.Example
The decoding of the multimedia file of same type to multimedia file to be decoded is such as selected from the decoder for being respectively available for calling
The optimal decoder of performance is used as the first decoder;The decoding performance averagely solves bit rate, minimum solution bit rate and highest solution
One or more of combinations in bit rate;The same type refers to same format and equal resolution and identical default
Play frame rate.
Those skilled in the art can decode the performance of the multimedia file of same type, and then selectivity with self-defining
Optimal decoder the first decoder the most of energy.
In a specific example, it is described selection the first decoder the step of include:Each decoder is counted to identical
The decoding number of times of the multimedia file of type, and the frame per second of its decoding are lasting less than the state of the default play frame rate
Time is more than the number of times of the very first time threshold value of setting, calculates the multimedia file that the number of times decodes type same as before with it
The ratio of number of times, then the minimum decoder of ratio is the optimal decoder of performance, selects the minimum decoder of the ratio to be used as the
One decoder.
In a specific example, it is described selection the first decoder the step of include:Each decoder is counted to identical
The decoding number of times of the multimedia file of type, and its decoding frame per second be less than the default play frame rate after decode predetermined frame
The time that several pictures is consumed is more than the number of times of the second time threshold of setting, calculates the number of times and decodes class same as before with it
The ratio of the number of times of the multimedia file of type, then the minimum decoder of ratio is the optimal decoder of performance, selects the ratio most
Low decoder is used as the first decoder;The same type refers to same format and equal resolution and identical default
Play frame rate.
For example, before this decoding, the multimedia file of the correspondence same type, the first decoder was called 10
It is secondary, wherein the frame per second for occurring for 5 times decoding is sustained for longer than the first of setting less than the state of the default play frame rate
The situation of time threshold, the second decoder was called 5 times, wherein the frame per second for occurring for 4 times decoding is less than the default broadcasting
The state of frame per second is sustained for longer than the situation of the very first time threshold value of setting, then in the first decoder and the second decoder,
The first decoder of preferential loading.
In another example, before this decoding, the multimedia file of the correspondence same type, the first decoder was called 10
It is secondary, risen wherein occurring the frame per second that decodes for 5 times less than the default play frame rate, decode that the picture of predetermined frame number consumed when
Between be more than setting the second time threshold situation, the second decoder was called 5 times, wherein 4 frame per second for occurring decoding are small
In the default play frame rate, the second time threshold that time that the picture of predetermined frame number consumed is more than setting is decoded
Situation, then in the first decoder and the second decoder, the first decoder of preferential loading.
The foregoing method preferred to the first decoder is beneficial in that for different multimedia files, dynamic monitoring
The efficiency of decoder decoding, and dynamic optimization is carried out to the loading sequencing of decoder.
Above-described embodiment is illustrated by taking two kinds of decoders as an example, and actual decoder is not limited to two kinds.
If all occurring in that situation about need to be switched when being available for all decoders called to decode same multimedia file,
Alternatively, the first decoder for being eventually switched to select before this decodes this document, and keeps decoding this document using the decoder,
Hereafter no matter there is the situation that the decoder of how many times first need to be switched by other decoders, the number of times is not counted in foregoing decoding
The calculating of energy.Those skilled in the art can also make different set.For example, in aforementioned schemes, being eventually switched to what is selected before this
After the decoding of first decoder, there is situation about need to be switched again in such as the first decoder, then according to priority before, switching
To other decoders, this time switching is included in the calculating of foregoing decoding performance.
Present invention also offers a kind of multimedia player, its block diagram figure 4 illustrates.
Multimedia player 200 includes decoding unit 201, control unit 202 and acquiring unit 203.Decoding unit 201 is wrapped
Include at least two decoders, the first decoder 2011 and the second decoder 2022.Control unit 202 is called in decoding unit 201
Decoder multimedia file is decoded, and control the multimedia file after the broadcast decoder of multimedia player 200.Obtain
Unit 203 is used for the default play frame rate for obtaining multimedia file to be decoded.
Control unit 202 is decoded according to the decoder in the method call decoding unit 201 of foregoing multimedia decoding.
To those skilled in the art, foregoing many matchmakers can be realized by way of hardware mode or software and hardware combining
The method of body decoding.Based on same inventive concept, the multimedia play equipment of the embodiment of the present invention is introduced with reference to Fig. 5, to perform
The method of foregoing multimedia decoding.
Fig. 5 is the frame for the example for showing the hardware configuration available for the multimedia play equipment for realizing embodiments of the invention
Figure, multimedia play equipment 3000 includes processor 3010, memory 3020, interface arrangement 3030, communicator 3040, display
Device 3050, input unit 3060, loudspeaker 3070, microphone 3080, etc..
Memory 3020 is used for store instruction, and the instruction is operated to perform before for control processor 3010
The method for stating the multimedia decoding described in any one.
Processor 3010 is such as can be central processor CPU, Micro-processor MCV.Memory 3020 is for example including ROM
(read-only storage), RAM (random access memory), the nonvolatile memory of hard disk etc..Interface arrangement 3030 is for example
Including USB interface etc..Communicator 3040 can for example carry out wired or wireless communication.Display device 3050 is, for example, liquid crystal
Display screen, touch display screen etc..Input unit 3060 is such as can include touch-screen, keyboard.User can pass through loudspeaker
3070 and the inputting/outputting voice information of microphone 3080.
Multimedia play equipment shown in Fig. 5 is only explanatory, and is never intended to the limitation present invention, its application
Or purposes.Although it will be appreciated by those skilled in the art that figure 5 illustrates multiple devices, the present invention can be only related to
Partial devices therein.Those skilled in the art can instruct according to presently disclosed conceptual design, and how instruction controls place
It is techniques well known to manage device and carry out operation, therefore is not described in detail herein.
It should be noted that each embodiment in this specification is described by the way of progressive, each embodiment weight
Point explanation be all between difference with other embodiment, each embodiment identical similar part mutually referring to.
But make it will be clear for those skilled in the art that the various embodiments described above can be used alone or be combined with each other as needed
With.In addition, for device embodiment, because it is corresponding with embodiment of the method, so describe fairly simple, it is related
Part referring to the corresponding part of embodiment of the method explanation.System embodiment described above be only it is schematical,
It is not physically separate that the module wherein illustrated as separating component, which can be or may also be,.
In addition, the flow chart and block diagram in accompanying drawing show system, method and the meter of multiple embodiments according to the present invention
Architectural framework in the cards, function and the operation of calculation machine program product.At this point, each square frame in flow chart or block diagram
Can represent a part for a module, program segment or code, the part of the module, program segment or code comprising one or
Multiple executable instructions for being used to realize defined logic function.It should also be noted that in some realizations as replacement, square frame
Middle marked function can also be with different from the order marked in accompanying drawing generation.For example, two continuous square frames are actually
It can perform substantially in parallel, they can also be performed in the opposite order sometimes, this is depending on involved function.Also to note
Meaning, the combination of each square frame in block diagram and/or flow chart and the square frame in block diagram and/or flow chart can be with holding
The special hardware based system of function or action as defined in row is realized, or can use specialized hardware and computer instruction
Combination realize.
The computer program product that the embodiment of the present invention is provided, including store the computer-readable storage of program code
Medium, the instruction that described program code includes can be used for performing the method described in previous methods embodiment, and implementing to join
See embodiment of the method, will not be repeated here.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
, can be with several embodiments provided herein, it should be understood that disclosed systems, devices and methods
Realize by another way.Device embodiment described above is only schematical, for example, the division of the unit,
It is only a kind of division of logic function, there can be other dividing mode when actually realizing, in another example, multiple units or component can
To combine or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, it is shown or beg for
The coupling each other of opinion or direct-coupling or communication connection can be by some communication interfaces, device or unit it is indirect
Coupling is communicated to connect, and can be electrical, machinery or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.
If the function is realized using in the form of SFU software functional unit and is used as independent production marketing or in use, can be with
It is stored in a computer read/write memory medium.Understood based on such, technical scheme is substantially in other words
The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, including some instructions are to cause a computer equipment (can be individual
People's computer, server, or network equipment etc.) perform all or part of step of each of the invention embodiment methods described.
And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality
Body or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or deposited between operating
In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to
Nonexcludability is included, so that process, method, article or equipment including a series of key elements not only will including those
Element, but also other key elements including being not expressly set out, or also include being this process, method, article or equipment
Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that
Also there is other identical element in process, method, article or equipment including the key element.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies
Change, equivalent substitution, improvement etc., should be included in the scope of the protection.It should be noted that:Similar label and letter exists
Similar terms is represented in following accompanying drawing, therefore, once being defined in a certain Xiang Yi accompanying drawing, is then not required in subsequent accompanying drawing
It is further defined and explained.
Although some specific embodiments of the present invention are described in detail by example, the skill of this area
Art personnel are it should be understood that example above is merely to illustrate, the scope being not intended to be limiting of the invention.The skill of this area
Art personnel to above example it should be understood that can modify without departing from the scope of the invention.The model of the present invention
Enclose and be defined by the following claims.
Claims (10)
1. a kind of method of multimedia file decoding, it is characterised in that comprise the following steps:
Obtain the default play frame rate of multimedia file to be decoded;
Load the first decoder and decode the multimedia file;
Monitor the frame per second of the first decoder decoding;
If the frame per second of the first decoder decoding is less than the default play frame rate, the second decoder is preloaded.
2. the method for multimedia file decoding according to claim 1, it is characterised in that further comprising the steps of:Timing
The frame per second of the first decoder decoding is less than the default play frame rate duration, if the time be greater that setting
Very first time threshold value, then switch to the second decoder and decode the multimedia file.
3. the method for multimedia file decoding according to claim 1, it is characterised in that further comprising the steps of:From
The frame per second of one decoder decoding rises less than default play frame rate, if the time that the picture for decoding predetermined frame number is consumed is more than
Second time threshold of setting, then switch to the second decoder and decode the multimedia file.
4. the method for the multimedia file decoding according to claim any one of 1-3, it is characterised in that in the loading the
Before one decoder decoded multimedia file, in addition to:
The solution of the multimedia file of same type to multimedia file to be decoded is selected from the decoder for being respectively available for calling
The step of optimal decoder of code performance is as the first decoder;
The decoding performance includes one or more of groups in averagely solution bit rate, minimum solution bit rate and highest solution bit rate
Close;
The same type refers to same format and equal resolution and identical default play frame rate.
5. the method for the multimedia file decoding according to claim any one of 1-3, it is characterised in that in the loading the
Before one decoder decoded multimedia file, in addition to:
The decoding of the multimedia file of same type to multimedia file to be decoded is selected from the decoder for being available for calling
The step of optimal decoder of performance is as the first decoder;
The step of the first decoder of the selection, includes:Count decoding time of each decoder to the multimedia file of same type
Number, and the state that its frame per second decoded is less than default play frame rate are sustained for longer than the very first time threshold value set
Number of times, calculate the number of times with its decode type same as before multimedia file number of times ratio, the minimum solution of selection ratio
Code device is used as the first decoder;
Or, it is described selection the first decoder the step of include:Each decoder is counted to the multimedia file of same type
Decoding number of times, and frame per second of its decoding are big less than the time that the picture that predetermined frame number is decoded after default play frame rate is consumed
In the number of times of the second time threshold of setting, calculate the number of times with its decode type same as before multimedia file number of times
Ratio, the minimum decoder of selection ratio is used as the first decoder;
The same type refers to same format and equal resolution and identical default play frame rate.
6. a kind of multimedia player, it is characterised in that including:
Acquiring unit, the default play frame rate of multimedia file to be decoded for obtaining;
Decoding unit, the decoding unit includes at least two decoders;
Control unit, described control unit is arranged to:
The first decoder in loading decoding unit is decoded to the multimedia file;
Monitor the frame per second of the first decoder decoding;
If the frame per second of the first decoder decoding is less than the default play frame rate, the second decoder is preloaded.
7. multimedia player according to claim 6, it is characterised in that
Described control unit is arranged to:
The frame per second that first decoder described in timing is decoded is less than the default play frame rate duration, if the time
More than the very first time threshold value of setting, then switch to the second decoder and decode the multimedia file;
Or, from the frame per second that the first decoder is decoded is less than default play frame rate, if decoding the picture institute of predetermined frame number
The time of consumption is more than the second time threshold of setting, then switches to the second decoder and decode the multimedia file.
8. the multimedia player according to claim 6 or 7, it is characterised in that
Described control unit, the first decoder being arranged in the loading decoding unit is decoded to multimedia file
Before, also perform:
The solution of the multimedia file of same type to multimedia file to be decoded is selected from the decoder for being respectively available for calling
The step of optimal decoder of code performance is as the first decoder;
The decoding performance includes one or more of groups in averagely solution bit rate, minimum solution bit rate and highest solution bit rate
Close;
The same type refers to same format and equal resolution and identical default play frame rate.
9. the multimedia player according to claim 6 or 7, it is characterised in that
Described control unit, the first decoder being arranged in the loading decoding unit is decoded to multimedia file
Before, also perform:
The decoding of the multimedia file of same type to multimedia file to be decoded is selected from the decoder for being available for calling
The step of optimal decoder of performance is as the first decoder;
The step of the first decoder of the selection, includes:Count decoding time of each decoder to the multimedia file of same type
Number, and the state that its frame per second decoded is less than the default play frame rate are sustained for longer than the very first time threshold set
The number of times of value, calculate the number of times with its decode type same as before multimedia file number of times ratio, selection ratio it is minimum
Decoder be used as the first decoder;
Or, it is described selection the first decoder the step of include:Each decoder is counted to the multimedia file of same type
Decode number of times, and its decoding frame per second be less than decode that the picture of predetermined frame number consumed after the default play frame rate when
Between be more than setting the second time threshold number of times, calculate the number of times with its decode type same as before multimedia file it is secondary
Several ratio, the minimum decoder of selection ratio is used as the first decoder;
The same type refers to same format and equal resolution and identical default play frame rate.
10. a kind of multimedia play equipment, it is characterised in that including memory and processor, the memory refers to for storage
Order, it is described to instruct for controlling the processor to be operated to perform many matchmakers according to any one of claim 1-5
The method of body file decoding.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710335462.2A CN107249144B (en) | 2017-05-12 | 2017-05-12 | Method for decoding multimedia file, multimedia player and playing equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710335462.2A CN107249144B (en) | 2017-05-12 | 2017-05-12 | Method for decoding multimedia file, multimedia player and playing equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107249144A true CN107249144A (en) | 2017-10-13 |
CN107249144B CN107249144B (en) | 2020-05-15 |
Family
ID=60016632
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710335462.2A Active CN107249144B (en) | 2017-05-12 | 2017-05-12 | Method for decoding multimedia file, multimedia player and playing equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107249144B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109218763A (en) * | 2018-11-12 | 2019-01-15 | 青岛海信传媒网络技术有限公司 | A kind of method and smart television of streaming media video switching |
CN110147512A (en) * | 2019-05-16 | 2019-08-20 | 腾讯科技(深圳)有限公司 | Player preloading, operation method, device, equipment and medium |
CN110740383A (en) * | 2018-07-20 | 2020-01-31 | 宏碁股份有限公司 | Multimedia file management method, terminal device, service device and file management system |
WO2020151397A1 (en) * | 2019-01-23 | 2020-07-30 | 上海哔哩哔哩科技有限公司 | Software/hardware decoding seamless resolution switching method, device and storage medium |
CN114296837A (en) * | 2021-12-31 | 2022-04-08 | 西安易朴通讯技术有限公司 | Firmware control method and device, electronic equipment and computer readable storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20020096102A (en) * | 2001-06-16 | 2002-12-31 | 엘지전자 주식회사 | Stabilizing apparatus for output of composite video signal |
CN101803451A (en) * | 2007-09-24 | 2010-08-11 | 朗讯科技公司 | Method and system for implementing codec transition for voice service |
CN101814975A (en) * | 2009-01-27 | 2010-08-25 | 三菱电机株式会社 | Multistage decoder and symbolic blocks coding/decoding method |
WO2012056469A1 (en) * | 2010-10-27 | 2012-05-03 | Sling Media Pvt Ltd | Dynamic encode setting adjustment |
CN103856812A (en) * | 2014-03-25 | 2014-06-11 | 北京奇艺世纪科技有限公司 | Video playing method and device |
US8868999B1 (en) * | 2011-01-06 | 2014-10-21 | Marvell International Ltd. | Systems and methods for erasure correction of iterative codes |
CN104660978A (en) * | 2013-11-18 | 2015-05-27 | 三星泰科威株式会社 | Image processing apparatus and method for processing images |
CN104737550A (en) * | 2013-02-05 | 2015-06-24 | 华为技术有限公司 | Multimedia redirection method, server and client |
CN105052066A (en) * | 2013-03-21 | 2015-11-11 | 马维尔国际贸易有限公司 | Systems and methods for multi-stage soft input decoding |
-
2017
- 2017-05-12 CN CN201710335462.2A patent/CN107249144B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20020096102A (en) * | 2001-06-16 | 2002-12-31 | 엘지전자 주식회사 | Stabilizing apparatus for output of composite video signal |
CN101803451A (en) * | 2007-09-24 | 2010-08-11 | 朗讯科技公司 | Method and system for implementing codec transition for voice service |
CN101814975A (en) * | 2009-01-27 | 2010-08-25 | 三菱电机株式会社 | Multistage decoder and symbolic blocks coding/decoding method |
WO2012056469A1 (en) * | 2010-10-27 | 2012-05-03 | Sling Media Pvt Ltd | Dynamic encode setting adjustment |
US8868999B1 (en) * | 2011-01-06 | 2014-10-21 | Marvell International Ltd. | Systems and methods for erasure correction of iterative codes |
CN104737550A (en) * | 2013-02-05 | 2015-06-24 | 华为技术有限公司 | Multimedia redirection method, server and client |
CN105052066A (en) * | 2013-03-21 | 2015-11-11 | 马维尔国际贸易有限公司 | Systems and methods for multi-stage soft input decoding |
CN104660978A (en) * | 2013-11-18 | 2015-05-27 | 三星泰科威株式会社 | Image processing apparatus and method for processing images |
CN103856812A (en) * | 2014-03-25 | 2014-06-11 | 北京奇艺世纪科技有限公司 | Video playing method and device |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110740383A (en) * | 2018-07-20 | 2020-01-31 | 宏碁股份有限公司 | Multimedia file management method, terminal device, service device and file management system |
CN110740383B (en) * | 2018-07-20 | 2021-10-08 | 宏碁股份有限公司 | Multimedia file management method, terminal device, service device and file management system |
CN109218763A (en) * | 2018-11-12 | 2019-01-15 | 青岛海信传媒网络技术有限公司 | A kind of method and smart television of streaming media video switching |
WO2020151397A1 (en) * | 2019-01-23 | 2020-07-30 | 上海哔哩哔哩科技有限公司 | Software/hardware decoding seamless resolution switching method, device and storage medium |
CN111479165A (en) * | 2019-01-23 | 2020-07-31 | 上海哔哩哔哩科技有限公司 | Seamless switching method and device for software and hardware decoding resolution and storage medium |
US11930246B2 (en) | 2019-01-23 | 2024-03-12 | Shanghai Bilibili Technology Co., Ltd. | Seamless switching method, device and storage medium of software and hardware decoding resolution |
CN110147512A (en) * | 2019-05-16 | 2019-08-20 | 腾讯科技(深圳)有限公司 | Player preloading, operation method, device, equipment and medium |
CN110147512B (en) * | 2019-05-16 | 2022-12-20 | 腾讯科技(深圳)有限公司 | Player preloading method, player running method, device, equipment and medium |
CN114296837A (en) * | 2021-12-31 | 2022-04-08 | 西安易朴通讯技术有限公司 | Firmware control method and device, electronic equipment and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN107249144B (en) | 2020-05-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107249144A (en) | Method, multimedia player and the playback equipment of multimedia file decoding | |
CN110633419B (en) | Information pushing method and device | |
CN104244024B (en) | Video cover generation method and device and terminal | |
CN108399222B (en) | Page refreshing method and device | |
CN105205014A (en) | Data storage method and device | |
CN106981015A (en) | The implementation method of interactive present | |
CN108235148B (en) | Similar barrage merging method in live broadcast, storage medium, electronic device and system | |
CN111124668B (en) | Memory release method, memory release device, storage medium and terminal | |
CN104768063A (en) | Video coding method and device | |
CN106775969B (en) | Selective operation method and device of application program | |
CN106162232A (en) | video playing control method and device | |
WO2006067711A2 (en) | Method and device for displaying animated buttons | |
CN105389082A (en) | Reminding method and reminding device applied to mobile terminal | |
CN112035066B (en) | Log reservation time length calculation method and device | |
CN106406494A (en) | Method for scheduling processor and terminal | |
CN108304110B (en) | Information processing method and electronic equipment | |
CN107318038A (en) | A kind of video playback method, terminal device and the storage medium synchronous with comment | |
CN105323652B (en) | Method and device for playing multimedia file | |
CN106407792B (en) | Control the method and speaker of mobile terminal | |
CN104615349A (en) | Information processing method and electronic device | |
CN104572193A (en) | Control method among multiple apparatuses and electronic apparatus thereof | |
CN110858920A (en) | Video decoding method, mobile terminal, server, system and storage medium | |
CN106951147A (en) | Method and device is transferred in one kind application | |
CN108512731B (en) | Equipment parameter configuration method, mobile terminal and equipment | |
CN114662689A (en) | Pruning method, device, equipment and medium for neural network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |