CN107801095A - A kind of video/audio decoding method and terminal device - Google Patents

A kind of video/audio decoding method and terminal device Download PDF

Info

Publication number
CN107801095A
CN107801095A CN201710876518.5A CN201710876518A CN107801095A CN 107801095 A CN107801095 A CN 107801095A CN 201710876518 A CN201710876518 A CN 201710876518A CN 107801095 A CN107801095 A CN 107801095A
Authority
CN
China
Prior art keywords
decoder
target
time period
audio
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.)
Granted
Application number
CN201710876518.5A
Other languages
Chinese (zh)
Other versions
CN107801095B (en
Inventor
徐成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN201710876518.5A priority Critical patent/CN107801095B/en
Publication of CN107801095A publication Critical patent/CN107801095A/en
Application granted granted Critical
Publication of CN107801095B publication Critical patent/CN107801095B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440218Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4334Recording operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/439Processing of audio elementary streams
    • H04N21/4398Processing of audio elementary streams involving reformatting operations of audio signals

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention belongs to field of computer technology, more particularly to a kind of video/audio decoding method and terminal device.Methods described includes:Receive the instruction played out to target audio-video document that active user issues;Obtain the broadcast format of the target audio-video document;Target decoder corresponding with the broadcast format of the target audio-video document is searched in default decoder resources storehouse;If finding the target decoder in the decoder resources storehouse, the target audio-video document is decoded using the target decoder in the decoder resources storehouse, and the target audio-video document after broadcast decoder;If the target decoder is not found in the decoder resources storehouse, then the target decoder is downloaded from network-side, the target audio-video document is decoded using from the target decoder that network-side is downloaded, and the target audio-video document after broadcast decoder.Time saving and energy saving and easy to use, better user experience of the invention.

Description

A kind of video/audio decoding method and terminal device
Technical field
The invention belongs to field of computer technology, more particularly to a kind of video/audio decoding method and terminal device.
Background technology
Currently, with the horizontal continuous lifting of the software and hardware of electronic product, various audio and video playing softwares have obtained very big Development.By taking the mobile terminals such as mobile phone as an example, different manufacturers has released one after another the audio and video playing software of oneself, to users Bring brand-new seeing and hearing enjoyment.However, in face of the audio/video coding form and file format of huge number, and it is relatively limited Mobile phone hardware resource, different audio and video playing software has strict regulation for audio-video document, only allows several spies The audio-video document for the formula that fixes plays in its system, and then unassisted for the audio-video document of extended formatting.User is past It is past to need that the audio and video playing form that playout software is not supported is converted into playout software branch by various audio frequency and video crossover tools The audio and video playing form held, takes time and effort and use is extremely inconvenient.
The content of the invention
In view of this, the embodiments of the invention provide a kind of video/audio decoding method and terminal device, to solve existing skill Art need user by various audio frequency and video crossover tools by the audio and video playing form that playout software is not supported be converted to play it is soft The audio and video playing form that part is supported, take time and effort and use the problem of extremely inconvenient.
The first aspect of the embodiment of the present invention provides a kind of video/audio decoding method, can include:
Receive the instruction played out to target audio-video document that active user issues;
Obtain the broadcast format of the target audio-video document;
Target solution corresponding with the broadcast format of the target audio-video document is searched in default decoder resources storehouse Code device;
If finding the target decoder in the decoder resources storehouse, using in the decoder resources storehouse The target decoder decodes to the target audio-video document, and the target audio-video document after broadcast decoder;
If not finding the target decoder in the decoder resources storehouse, the target solution is downloaded from network-side Code device, is decoded using from the target decoder that network-side is downloaded to the target audio-video document, and broadcast decoder The target audio-video document afterwards.
The second aspect of the embodiment of the present invention provides a kind of computer-readable recording medium, the computer-readable storage Media storage has computer program, and the computer program realizes following steps when being executed by processor:
Receive the instruction played out to target audio-video document that active user issues;
Obtain the broadcast format of the target audio-video document;
Target solution corresponding with the broadcast format of the target audio-video document is searched in default decoder resources storehouse Code device;
If finding the target decoder in the decoder resources storehouse, using in the decoder resources storehouse The target decoder decodes to the target audio-video document, and the target audio-video document after broadcast decoder;
If not finding the target decoder in the decoder resources storehouse, the target solution is downloaded from network-side Code device, is decoded using from the target decoder that network-side is downloaded to the target audio-video document, and broadcast decoder The target audio-video document afterwards.
The third aspect of the embodiment of the present invention provides a kind of audio/video decoding terminal device, including memory, processor And the computer program that can be run in the memory and on the processor is stored in, meter described in the computing device Following steps are realized during calculation machine program:
Receive the instruction played out to target audio-video document that active user issues;
Obtain the broadcast format of the target audio-video document;
Target solution corresponding with the broadcast format of the target audio-video document is searched in default decoder resources storehouse Code device;
If finding the target decoder in the decoder resources storehouse, using in the decoder resources storehouse The target decoder decodes to the target audio-video document, and the target audio-video document after broadcast decoder;
If not finding the target decoder in the decoder resources storehouse, the target solution is downloaded from network-side Code device, is decoded using from the target decoder that network-side is downloaded to the target audio-video document, and broadcast decoder The target audio-video document afterwards.
Existing beneficial effect is the embodiment of the present invention compared with prior art:The embodiment of the present invention is received under active user The instruction played out to target audio-video document of hair;Obtain the broadcast format of the target audio-video document;Default Target decoder corresponding with the broadcast format of the target audio-video document is searched in decoder resources storehouse;If in the decoding The target decoder is found in device resources bank, then using the target decoder in the decoder resources storehouse to described Target audio-video document is decoded, and the target audio-video document after broadcast decoder;If in the decoder resources storehouse In do not find the target decoder, then the target decoder is downloaded from network-side, described in being downloaded from network-side Target decoder decodes to the target audio-video document, and the target audio-video document after broadcast decoder.Pass through The embodiment of the present invention so that audio and video playing software is adaptive to various audio and video playing forms, is broadcast for conventional audio frequency and video Form is put, the decoder in decoder resources storehouse can be used to be decoded and played, for the audio and video playing lattice being of little use Formula, decoder can be downloaded from network-side and is decoded and is played, and carrying out sound using audio frequency and video crossover tool compared to user regards The mode of frequency broadcast format conversion, it is time saving and energy saving and easy to use.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art In the required accompanying drawing used be briefly described, it should be apparent that, drawings in the following description be only the present invention some Embodiment, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these Accompanying drawing obtains other accompanying drawings.
Fig. 1 is a kind of one embodiment flow chart of video/audio decoding method in the embodiment of the present invention;
Fig. 2 is to decide whether to retain target decoder according to the history service condition of target decoder in the embodiment of the present invention The schematic flow diagram of device;
Fig. 3 is the exemplary flow for deleting rarely needed decoder from decoder resources storehouse in the embodiment of the present invention Figure;
Fig. 4 is the schematic flow diagram that the initial default decoder in decoder resources storehouse is determined in the embodiment of the present invention;
Fig. 5 is the schematic block diagram of audio/video decoding terminal device provided in an embodiment of the present invention;
Fig. 6 is the Program modual graph of audio/video decoding program provided in an embodiment of the present invention.
Embodiment
To enable goal of the invention, feature, the advantage of the present invention more obvious and understandable, below in conjunction with the present invention Accompanying drawing in embodiment, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that disclosed below Embodiment be only part of the embodiment of the present invention, and not all embodiment.Based on the embodiment in the present invention, this area All other embodiment that those of ordinary skill is obtained under the premise of creative work is not made, belongs to protection of the present invention Scope.
Referring to Fig. 1, a kind of one embodiment of video/audio decoding method can include in the embodiment of the present invention:
Step S101, the instruction played out to target audio-video document that active user issues is received.
Usually, user be appreciated by the audio and video playing software installed in the terminals such as mobile phone, tablet personal computer it is various Audio frequency and video, user selection target audio-video document and can issue on the application interface that the audio and video playing software provides The instruction played out to the target audio-video document.
Step S102, the broadcast format of the target audio-video document is obtained.
The broadcast format of audio-video document be diversified, conventional audio format have CDA, WAV, MP3, WMA, RA, MIDI, OCG, APE, FLAC, AAC etc., conventional video format have RM, RMVB, AVI, MP4,3GP, MKV, MOV etc..
Step S103, judge whether to find in default decoder resources storehouse and broadcast with the target audio-video document Put target decoder corresponding to form.
If finding the target decoder in the decoder resources storehouse, step S104 is performed, if in the solution The target decoder is not found in code device resources bank, then performs step S105 and subsequent step.
Step S104, the target audio-video document is entered using the target decoder in the decoder resources storehouse Row decoding, and the target audio-video document after broadcast decoder.
Step S105, the target decoder is downloaded from network-side.
In the present embodiment, a server can be pre-set, various users are stored in the server to be made The decoder used, so that user downloads.And the content in the server is constantly updated, when in the market occurs newly Audio and video playing form when, then decoder corresponding with the audio and video playing form is updated in server.
Step S106, the target audio-video document is solved using from the target decoder that network-side is downloaded Code, and the target audio-video document after broadcast decoder.
Preferably, after step s 106, can also determine to be according to the history service condition of the target decoder It is no to retain the target decoder, it for details, reference can be made to step as shown in Figure 2:
Step S201, obtain the first history corresponding with the active user and play record.
Step S202, record is played according to first history and counts the target decoder in default first time period It is interior using total degree and to use total duration.
The first time period could be arranged to one week, two weeks, one month etc., can specifically be entered according to actual conditions Row is set, and the present embodiment is not especially limited to this.
Step S203, judge whether the target decoder is more than first in the first time period using total degree Whether the use total duration of threshold value or the target decoder in the first time period is more than Second Threshold.
The first threshold is with all decoders in first history broadcasting record in the first time period Use total degree positive correlation, it is preferable that both can be arranged to the proportional relation being shown below:
N '=k1* N, wherein, N ' is the first threshold, and N is use of all decoders in the first time period Total degree, k1For default proportionality coefficient, its value should be greater than 0 and less than 1.
The Second Threshold is with all decoders in first history broadcasting record in the first time period Use total duration positive correlation, it is preferable that both can be arranged to the proportional relation being shown below:
T '=k2* T, wherein, T ' is the Second Threshold, and T is use of all decoders in the first time period Total duration, k2For default proportionality coefficient, its value should be greater than 0 and less than 1.
If for example, in the first time period, all decoders are 1000 times using total degree, proportionality coefficient k1For 0.2, then can determine that the first threshold is 1000*0.2=200 times, if in the first time period, all decoders The use of total duration is 500 minutes, proportionality coefficient k1For 0.3, then can determine that the Second Threshold is 500*0.3=150 minutes.
If the target decoder is more than first threshold or the target in the first time period using total degree Use total duration of the decoder in the first time period is more than Second Threshold, then performs step S204 and its subsequent step, If the target decoder is less than or equal to the first threshold, and the mesh in the first time period using total degree Mark use total duration of the decoder in the first time period and be less than or equal to the Second Threshold, then perform step S208.
Step S204, obtain the first currently available memory space of audio and video playing terminal and the target decoder takes The second memory space.
Step S205, the ratio of first memory space and second memory space is calculated.
Step S206, judge whether the ratio is less than the 3rd threshold value.
If the ratio is more than or equal to the 3rd threshold value, step S207 is performed, if the ratio is less than the 3rd threshold Value, then perform step S208.
Step S207, retain the target decoder, and the target decoder is added into the decoder resources storehouse In.
Step S208, after being decoded using the target decoder to the target audio-video document, institute is deleted State target decoder.
By step as shown in Figure 2, for the target decoder downloaded from network-side, if its be frequently used and Memory space is enough, then is remained, if rarely needed or memory space inadequate, is deleted, so as to reduce to end The occupancy of the memory space at end.
Preferably, record can also be played according to first history to count each solution in the decoder resources storehouse The service condition of code device, rarely needed decoder is deleted from the decoder resources storehouse, specific process such as Fig. 3 institutes Show:
Step S301, the decoder of a unselected mistake is chosen from the decoder resources storehouse as current decoding Device.
Step S302, record is played according to first history and counts the current decoder respectively in the very first time In section using total degree and use total duration.
Step S303, judge that whether the current decoder uses total degree more than described in the first time period Whether the use total duration of first threshold or the current decoder in the first time period is more than the Second Threshold.
If the current decoder is more than the first threshold or described in the first time period using total degree Use total duration of the current decoder in the first time period is more than the Second Threshold, then step S304 is performed, if institute State current decoder and be less than or equal to the first threshold, and the current solution using total degree in the first time period Use total duration of the code device in the first time period is less than or equal to the Second Threshold, then performs step S305.
Step S304, the current decoder is retained in the decoder resources storehouse.
Step S305, the current decoder is deleted from the decoder resources storehouse.
Step S306, judge in the decoder resources storehouse with the presence or absence of the decoder of unselected mistake.
If the decoder of unselected mistake in the decoder resources storehouse be present, return and perform step S301 and follow-up step Suddenly, if the decoder in the decoder resources storehouse was selected, step S307 is performed.
Step S307, the renewal to the decoder resources storehouse is terminated.
Ground is readily appreciated that, by step as shown in Figure 2, realizes and adds the decoder commonly used in user's current slot Add in the decoder resources storehouse, by step as shown in Figure 3, realize the solution that will be of little use in user's current slot Code device is deleted from the decoder resources storehouse, and this is the process of a lasting dynamic renewal, ensures to take minimum resource Meet user to greatest extent audio and video playing the needs of.
For example, the initial default decoder in the decoder resources storehouse is the decoding of these three forms of MP3, RMVB, AVI Device, active user can then directly decode broadcasting, if user will play the text of MKV forms to the file of broadcasting MP3 format Part, then need to download the decoder of MKV forms from network, after finishing playing, the MKV format decoders of download deleted, But by the broadcasting record of MKV forms plus one.Above procedure is repeated continuously, after it have accumulated 100 broadcasting records, is remembered to playing Record counted, if statistical result be MP3 play record 50, RMVB play record 22, MKV play record 25, AVI, MOV, APE are played and are recorded each one, then by MKV, decoder is added into the decoder resources storehouse by default, by AVI from described Decoder resources are deleted in storehouse.
Preferably, the initial default decoder in the decoder resources storehouse can be by step as shown in Figure 4 come really It is fixed:
Step S401, the sample of users of preset number is chosen, and obtains corresponding with the sample of users second respectively and goes through History plays record.
Step S402, record is played according to second history and counts each decoder respectively in default second time period It is interior using total degree and to use total duration.
Step S403, preferred decoder is chosen from each decoder.
The preferably decoder is is more than the 4th threshold value or described the in the second time period using total degree The decoder for being more than the 5th threshold value using total duration in two periods.
4th threshold value is with all decoders in second history broadcasting record in the second time period Use total degree positive correlation, it is preferable that both can be arranged to proportional relation.
5th threshold value is with all decoders in second history broadcasting record in the second time period Use total duration positive correlation, it is preferable that both can be arranged to proportional relation.
Step S404, the preferably decoder is added into the decoder resources storehouse as initial default decoder.
In order that the initial default decoder selected is more representative, the number of sample of users should set enough to Greatly, the second time period should be set enough to length, recorded for example, can be played to history of 10000 users within half a year Counted, the initial default decoder for ensureing to select is the decoder being most often used.
In summary, the embodiment of the present invention receives the finger played out to target audio-video document that active user issues Order;Obtain the broadcast format of the target audio-video document;Search in default decoder resources storehouse and regarded with the target sound Target decoder corresponding to the broadcast format of frequency file;If finding the target decoder in the decoder resources storehouse, Then the target audio-video document is decoded using the target decoder in the decoder resources storehouse, and plays solution The target audio-video document after code;If the target decoder is not found in the decoder resources storehouse, from net The target decoder is downloaded at network end, and the target audio-video document is entered using from the target decoder that network-side is downloaded Row decoding, and the target audio-video document after broadcast decoder.Pass through the embodiment of the present invention so that audio and video playing software is certainly It is adapted to various audio and video playing forms, for conventional audio and video playing form, the solution in decoder resources storehouse can be used Code device is decoded and played, and for the audio and video playing form being of little use, can be downloaded decoder from network-side and be decoded And play, the mode of audio and video playing form conversion is carried out using audio frequency and video crossover tool compared to user, it is time saving and energy saving and make With convenient.
Corresponding to the video/audio decoding method described in foregoing embodiments, Fig. 5 shows that sound provided in an embodiment of the present invention regards The schematic block diagram of frequency decoding terminal equipment, for convenience of description, it illustrate only the part related to the embodiment of the present invention.
In the present embodiment, the audio/video decoding terminal device can be desktop PC, notebook, palm PC And the computing device such as cloud server.The audio/video decoding terminal device may include:Processor 50, memory 51 and it is stored in In the memory 51 and the computer program 52 that can be run on the processor 50.
The processor 50 can be CPU (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field- Programmable Gate Array, FPGA) either other PLDs, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor Deng.
The memory 51 can be the internal storage unit of the audio/video decoding terminal device 5, such as audio frequency and video solution The hard disk or internal memory of code terminal device 5.The memory 51 can also be the external storage of the audio/video decoding terminal device 5 The plug-in type hard disk being equipped with equipment, such as the audio/video decoding terminal device 5, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Further, it is described to deposit Reservoir 51 can also both include the internal storage unit of the audio/video decoding terminal device 5 or including External memory equipment.Institute Memory 51 is stated to be used to store the computer program and other program sums needed for the audio/video decoding terminal device 5 According to.The memory 51 can be also used for temporarily storing the data that has exported or will export.
Referring to Fig. 6, it is the Program modual graph of computer program 52 provided in an embodiment of the present invention.In the present embodiment, Described computer program 52 can be divided into one or more program modules, and one or more of program modules are deposited It is stored in the memory 51, and as performed by the processor 50, to complete the present invention.For example, in figure 6, described meter Calculation machine program 52, namely audio/video decoding program can be divided into command reception module 601, form acquisition module 602, target Decoder searching modul 603, the first decoder module 604, target decoder download module 605, the second decoder module 606.Below The function of the program module 601-606 will be specifically introduced in description.
Command reception module 601, the instruction played out to target audio-video document issued for receiving active user;
Form acquisition module 602, for obtaining the broadcast format of the target audio-video document;
Target decoder searching modul 603, for being searched and the target audio frequency and video in default decoder resources storehouse Target decoder corresponding to the broadcast format of file;
First decoder module 604, if for finding the target decoder in the decoder resources storehouse, use The target decoder in the decoder resources storehouse decodes to the target audio-video document, and after broadcast decoder The target audio-video document;
Target decoder download module 605, if for not finding the target decoder in the decoder resources storehouse Device, then download the target decoder from network-side;
Second decoder module 606, for using the target decoder from network-side download to the target audio frequency and video File is decoded, and the target audio-video document after broadcast decoder.
Further, can also include in the computer program 52:
History plays record acquisition module, and record is played for obtaining the first history corresponding with the active user;
Target decoder statistical module, the target decoder is counted pre- for playing record according to first history If first time period in using total degree and use total duration;
Target decoder add module, if using total degree in the first time period for the target decoder It is more than Second Threshold more than the use total duration of first threshold or the target decoder in the first time period, then retains The target decoder, and the target decoder is added into the decoder resources storehouse;
Target decoder removing module, if using total degree in the first time period for the target decoder Less than or equal to the first threshold, and use total duration of the target decoder in the first time period is less than or waited In the Second Threshold, then the target decoder is deleted.
Further, can also include in the computer program 52:
Current decoder chooses module, for choosing the decoder of a unselected mistake from the decoder resources storehouse As current decoder;
Current decoder statistical module, the current decoder is counted respectively for playing record according to first history In the first time period using total degree and use total duration;
Target decoder reservation module, if using total degree in the first time period for the current decoder It is more than second threshold more than the use total duration of the first threshold or the current decoder in the first time period Value, then retain the current decoder in the decoder resources storehouse;
Target decoder removing module, if using total degree in the first time period for the current decoder Less than or equal to the first threshold, and use total duration of the current decoder in the first time period is less than or waited In the Second Threshold, then the current decoder is deleted from the decoder resources storehouse.
Further, can also include in the computer program 52:
Memory space acquisition module, for obtaining the first currently available memory space of audio and video playing terminal and the mesh Mark the second memory space that decoder takes;
Ratio calculation module, for calculating the ratio of first memory space and second memory space;
Target decoder processing module, if the ratio for first memory space and second memory space is less than 3rd threshold value, then the reservation target decoder is not performed, and the target decoder is added into the decoder and provided Step in the storehouse of source, and after being decoded using the target decoder to the target audio-video document, described in deletion Target decoder.
Further, can also include in the computer program 52:
Sample of users chooses module, for choosing the sample of users of preset number, and obtains and the sample of users respectively Corresponding second history plays record;
Decoder statistical module, each decoder is counted respectively default for playing record according to second history In second time period using total degree and use total duration;
It is preferred that decoder chooses module, for choosing preferred decoder, the preferred decoding from each decoder When device is that the use using total degree more than the 4th threshold value or in the second time period in the second time period is total The long decoder more than the 5th threshold value;
Initial default decoder add module, for the preferably decoder to be added into institute as initial default decoder State in decoder resources storehouse.
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, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and is not described in detail or remembers in some embodiment The part of load, it may refer to the associated description of other embodiments.
Those of ordinary skill in the art are it is to be appreciated that each embodiment described with reference to the embodiments described herein Module, unit and/or method and step, it can be realized with the combination of electronic hardware or computer software and electronic hardware.This A little functions are performed with hardware or software mode actually, application-specific and design constraint depending on technical scheme.Specially Industry technical staff can realize described function using distinct methods to each specific application, but this realization is not It is considered as beyond the scope of this invention.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method can be with Realize by another way.For example, device embodiment described above is only schematical, for example, the unit Division, only a kind of division of logic function, can there is other dividing mode, such as multiple units or component when actually realizing Another system can be combined or be desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or The mutual coupling discussed or direct-coupling or communication connection can be the indirect couplings by some interfaces, device or unit Close or communicate to connect, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show 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 present 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.Above-mentioned integrated list Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially The part to be contributed in other words to prior art or all or part of the technical scheme can be in the form of software products Embody, the computer software product is stored in a storage medium, including some instructions are causing a computer Equipment (can be personal computer, server, or network equipment etc.) performs the complete of each embodiment methods described of the present invention Portion or part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although with reference to the foregoing embodiments The present invention is described in detail, it will be understood by those within the art that:It still can be to foregoing each implementation Technical scheme described in example is modified, or carries out equivalent substitution to which part technical characteristic;And these modification or Replace, the essence of appropriate technical solution is departed from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (10)

  1. A kind of 1. video/audio decoding method, it is characterised in that including:
    Receive the instruction played out to target audio-video document that active user issues;
    Obtain the broadcast format of the target audio-video document;
    Target decoder corresponding with the broadcast format of the target audio-video document is searched in default decoder resources storehouse;
    If finding the target decoder in the decoder resources storehouse, using described in the decoder resources storehouse Target decoder decodes to the target audio-video document, and the target audio-video document after broadcast decoder;
    If not finding the target decoder in the decoder resources storehouse, the target decoder is downloaded from network-side Device, the target audio-video document is decoded using from the target decoder that network-side is downloaded, and after broadcast decoder The target audio-video document.
  2. 2. video/audio decoding method according to claim 1, it is characterised in that using the mesh downloaded from network-side After mark decoder decodes to the target audio-video document, in addition to:
    Obtain the first history corresponding with the active user and play record;
    It is always secondary that use of the record statistics target decoder in default first time period is played according to first history Count and use total duration;
    If the target decoder is more than first threshold or the target decoder in the first time period using total degree Use total duration of the device in the first time period is more than Second Threshold, then retains the target decoder, and by the mesh Mark decoder is added into the decoder resources storehouse;
    If the target decoder is less than or equal to the first threshold, and institute in the first time period using total degree State use total duration of the target decoder in the first time period and be less than or equal to the Second Threshold, then delete the mesh Mark decoder.
  3. 3. video/audio decoding method according to claim 2, it is characterised in that also include:
    The decoder of a unselected mistake is chosen from the decoder resources storehouse as current decoder;
    It is total that use of the current decoder in the first time period is counted according to first history broadcasting record respectively Number and use total duration;
    If the current decoder is more than the first threshold or described current in the first time period using total degree Use total duration of the decoder in the first time period is more than the Second Threshold, then is protected in the decoder resources storehouse Stay the current decoder;
    If the current decoder is less than or equal to the first threshold, and institute in the first time period using total degree State use total duration of the current decoder in the first time period and be less than or equal to the Second Threshold, then from the decoding The current decoder is deleted in device resources bank;
    Judge in the decoder resources storehouse with the presence or absence of the decoder of unselected mistake;
    If the decoder of unselected mistake in the decoder resources storehouse be present, return described in performing from the decoder resources The step of decoder of a unselected mistake is as current decoder and subsequent step are chosen in storehouse, until the decoder provides Untill decoder in the storehouse of source was selected.
  4. 4. video/audio decoding method according to claim 2, it is characterised in that retaining the target decoder, and will Before the target decoder is added into the decoder resources storehouse, in addition to:
    The second storage for obtaining the first currently available memory space of audio and video playing terminal and target decoder occupancy is empty Between;
    Calculate the ratio of first memory space and second memory space;
    If the ratio of first memory space and second memory space is less than the 3rd threshold value, the reservation institute is not performed Target decoder is stated, and the target decoder is added into the step in the decoder resources storehouse, and is using the mesh After mark decoder decodes to the target audio-video document, the target decoder is deleted.
  5. 5. video/audio decoding method according to any one of claim 1 to 4, it is characterised in that in default decoder Before target decoder corresponding with the broadcast format of the target audio-video document being searched in resources bank, in addition to:
    The sample of users of preset number is chosen, and obtains the second history corresponding with the sample of users respectively and plays record;
    It is always secondary that use of each decoder in default second time period is counted according to second history broadcasting record respectively Count and use total duration;
    Preferred decoder is chosen from each decoder, the preferably decoder is the use in the second time period Total degree is more than the 4th threshold value or the decoder for being more than the 5th threshold value using total duration in the second time period;
    The preferably decoder is added into the decoder resources storehouse as initial default decoder.
  6. 6. a kind of computer-readable recording medium, the computer-readable recording medium storage has computer program, and its feature exists In video/audio decoding method of the realization as any one of claim 1 to 5 when the computer program is executed by processor The step of.
  7. 7. a kind of terminal device, including memory, processor and it is stored in the memory and can be on the processor The computer program of operation, it is characterised in that realize following steps during computer program described in the computing device:
    Receive the instruction played out to target audio-video document that active user issues;
    Obtain the broadcast format of the target audio-video document;
    Target decoder corresponding with the broadcast format of the target audio-video document is searched in default decoder resources storehouse;
    If finding the target decoder in the decoder resources storehouse, using described in the decoder resources storehouse Target decoder decodes to the target audio-video document, and the target audio-video document after broadcast decoder;
    If not finding the target decoder in the decoder resources storehouse, the target decoder is downloaded from network-side Device, the target audio-video document is decoded using from the target decoder that network-side is downloaded, and after broadcast decoder The target audio-video document.
  8. 8. terminal device according to claim 7, it is characterised in that using the target decoder downloaded from network-side After device decodes to the target audio-video document, in addition to:
    Obtain the first history corresponding with the active user and play record;
    It is always secondary that use of the record statistics target decoder in default first time period is played according to first history Count and use total duration;
    If the target decoder is more than first threshold or the target decoder in the first time period using total degree Use total duration of the device in the first time period is more than Second Threshold, then retains the target decoder, and by the mesh Mark decoder is added into the decoder resources storehouse;
    If the target decoder is less than or equal to the first threshold, and institute in the first time period using total degree State use total duration of the target decoder in the first time period and be less than or equal to the Second Threshold, then delete the mesh Mark decoder.
  9. 9. terminal device according to claim 8, it is characterised in that also include:
    The decoder of a unselected mistake is chosen from the decoder resources storehouse as current decoder;
    It is total that use of the current decoder in the first time period is counted according to first history broadcasting record respectively Number and use total duration;
    If the current decoder is more than the first threshold or described current in the first time period using total degree Use total duration of the decoder in the first time period is more than the Second Threshold, then is protected in the decoder resources storehouse Stay the current decoder;
    If the current decoder is less than or equal to the first threshold, and institute in the first time period using total degree State use total duration of the current decoder in the first time period and be less than or equal to the Second Threshold, then from the decoding The current decoder is deleted in device resources bank;
    Judge in the decoder resources storehouse with the presence or absence of the decoder of unselected mistake;
    If the decoder of unselected mistake in the decoder resources storehouse be present, return described in performing from the decoder resources The step of decoder of a unselected mistake is as current decoder and subsequent step are chosen in storehouse, until the decoder provides Untill decoder in the storehouse of source was selected.
  10. 10. the terminal device according to any one of claim 7 to 9, it is characterised in that in default decoder resources storehouse It is middle search corresponding with the broadcast format of target audio-video document target decoder before, in addition to:
    The sample of users of preset number is chosen, and obtains the second history corresponding with the sample of users respectively and plays record;
    It is always secondary that use of each decoder in default second time period is counted according to second history broadcasting record respectively Count and use total duration;
    Preferred decoder is chosen from each decoder, the preferably decoder is the use in the second time period Total degree is more than the 4th threshold value or the decoder for being more than the 5th threshold value using total duration in the second time period;
    The preferably decoder is added into the decoder resources storehouse as initial default decoder.
CN201710876518.5A 2017-09-25 2017-09-25 audio and video decoding method and terminal equipment Active CN107801095B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710876518.5A CN107801095B (en) 2017-09-25 2017-09-25 audio and video decoding method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710876518.5A CN107801095B (en) 2017-09-25 2017-09-25 audio and video decoding method and terminal equipment

Publications (2)

Publication Number Publication Date
CN107801095A true CN107801095A (en) 2018-03-13
CN107801095B CN107801095B (en) 2019-12-13

Family

ID=61532121

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710876518.5A Active CN107801095B (en) 2017-09-25 2017-09-25 audio and video decoding method and terminal equipment

Country Status (1)

Country Link
CN (1) CN107801095B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109151574A (en) * 2018-10-15 2019-01-04 Oppo广东移动通信有限公司 Method for processing video frequency, device, electronic equipment and storage medium
CN110324633A (en) * 2018-03-28 2019-10-11 北京视联动力国际信息技术有限公司 A kind of data processing method and device of view networking
WO2020107353A1 (en) * 2018-11-29 2020-06-04 深圳市欢太科技有限公司 Video decoding method, device, electronic equipment, and computer-readable storage medium
CN112087633A (en) * 2019-06-12 2020-12-15 腾讯科技(深圳)有限公司 Video decoding method, device and storage medium
CN113225605A (en) * 2020-02-05 2021-08-06 腾讯科技(深圳)有限公司 Video playing processing method and device, electronic equipment and storage medium
WO2021218921A1 (en) * 2020-04-27 2021-11-04 Guangdong Oppo Mobile Telecommunications Corp., Ltd. System and method for extraction of a video thumbnail from a video file
CN115278258A (en) * 2022-07-11 2022-11-01 海南视联通信技术有限公司 Audio and video data processing method and device, terminal and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000134237A (en) * 1998-10-23 2000-05-12 Toshiba Corp Digital av data reproduction method and digital av data reproduction device for home network
CN1510587A (en) * 2002-12-23 2004-07-07 �ʼҷ����ֵ��ӹɷ����޹�˾ Extendable disc player
CN102111674A (en) * 2010-12-22 2011-06-29 深圳市五巨科技有限公司 System and method for playing on-line video by mobile terminal and mobile terminal
CN102761736A (en) * 2011-04-29 2012-10-31 腾讯科技(深圳)有限公司 Video decoding method and device
CN104581171A (en) * 2013-10-15 2015-04-29 腾讯科技(深圳)有限公司 Method and device for playing videos on browser as well as mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000134237A (en) * 1998-10-23 2000-05-12 Toshiba Corp Digital av data reproduction method and digital av data reproduction device for home network
CN1510587A (en) * 2002-12-23 2004-07-07 �ʼҷ����ֵ��ӹɷ����޹�˾ Extendable disc player
CN102111674A (en) * 2010-12-22 2011-06-29 深圳市五巨科技有限公司 System and method for playing on-line video by mobile terminal and mobile terminal
CN102761736A (en) * 2011-04-29 2012-10-31 腾讯科技(深圳)有限公司 Video decoding method and device
CN104581171A (en) * 2013-10-15 2015-04-29 腾讯科技(深圳)有限公司 Method and device for playing videos on browser as well as mobile terminal

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110324633A (en) * 2018-03-28 2019-10-11 北京视联动力国际信息技术有限公司 A kind of data processing method and device of view networking
CN109151574A (en) * 2018-10-15 2019-01-04 Oppo广东移动通信有限公司 Method for processing video frequency, device, electronic equipment and storage medium
US11562772B2 (en) 2018-10-15 2023-01-24 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Video processing method, electronic device, and storage medium
WO2020107353A1 (en) * 2018-11-29 2020-06-04 深圳市欢太科技有限公司 Video decoding method, device, electronic equipment, and computer-readable storage medium
CN112087633A (en) * 2019-06-12 2020-12-15 腾讯科技(深圳)有限公司 Video decoding method, device and storage medium
CN113225605A (en) * 2020-02-05 2021-08-06 腾讯科技(深圳)有限公司 Video playing processing method and device, electronic equipment and storage medium
CN113225605B (en) * 2020-02-05 2024-03-01 腾讯科技(深圳)有限公司 Video playing processing method and device, electronic equipment and storage medium
WO2021218921A1 (en) * 2020-04-27 2021-11-04 Guangdong Oppo Mobile Telecommunications Corp., Ltd. System and method for extraction of a video thumbnail from a video file
CN115278258A (en) * 2022-07-11 2022-11-01 海南视联通信技术有限公司 Audio and video data processing method and device, terminal and readable storage medium

Also Published As

Publication number Publication date
CN107801095B (en) 2019-12-13

Similar Documents

Publication Publication Date Title
CN107801095A (en) A kind of video/audio decoding method and terminal device
CN105009118B (en) Customized content consumption interface
CN109819284A (en) A kind of short video recommendation method, device, computer equipment and storage medium
CN104679851B (en) A kind of data-erasure method and terminal
CN110889039B (en) Method and device for pushing books in reading application
CN104994401A (en) Barrage processing method, device and system
CN108990110A (en) Network flux management method, device, storage medium and terminal
WO2017185605A1 (en) File management method and electronic equipment
CN103885987A (en) Music recommendation method and system
CN109862100B (en) Method and device for pushing information
CN104599702A (en) Music playing method
CN103327021A (en) Method, devices and system of multi-device interaction
CN105354293A (en) Assisted implementation method and apparatus for pushing playing object in mobile terminal
US20150143292A1 (en) Method and Device for Processing Application of Mobile Terminal
CN103731737B (en) A kind of video information update method and electronic equipment
CN109005461A (en) A kind of recommended method of the video object, device and equipment/terminal/server
CN103365977A (en) Storage processing method and device for data on nonvolatile storage medium
CN106453502A (en) Member information management method and server
CN102187340B (en) Breakpoint information management method and breakpoint information manager
CN109462777B (en) Video heat updating method, device, terminal and storage medium
CN104167216A (en) Audio frequency file sharing method, device and sound box
CN111064971B (en) Method for customizing broadcast notification and related equipment
KR20130016333A (en) Method and device for storing audio data
CN112002352B (en) Random music playing method and device, computer equipment and storage medium
CN105824820A (en) Media file buffer memory method and device

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