CN108600813A - a kind of media file playing method, device and media play system - Google Patents

a kind of media file playing method, device and media play system Download PDF

Info

Publication number
CN108600813A
CN108600813A CN201810475155.9A CN201810475155A CN108600813A CN 108600813 A CN108600813 A CN 108600813A CN 201810475155 A CN201810475155 A CN 201810475155A CN 108600813 A CN108600813 A CN 108600813A
Authority
CN
China
Prior art keywords
file
decoding
media
decoder
media file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810475155.9A
Other languages
Chinese (zh)
Inventor
金邦飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHANGHAI QINIU INFORMATION TECHNOLOGIES Co Ltd
Original Assignee
SHANGHAI QINIU INFORMATION TECHNOLOGIES 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 SHANGHAI QINIU INFORMATION TECHNOLOGIES Co Ltd filed Critical SHANGHAI QINIU INFORMATION TECHNOLOGIES Co Ltd
Priority to CN201810475155.9A priority Critical patent/CN108600813A/en
Publication of CN108600813A publication Critical patent/CN108600813A/en
Pending legal-status Critical Current

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

Abstract

The embodiment of the invention discloses a kind of media file playing method, device and media play system, the media file playing method includes:Play instruction is received, media file to be played is obtained according to play instruction;Obtain the target file type of the media file and the attribute information of mobile terminal;If the attribute information shows that the decoding assembly of the mobile terminal supports the target file type, it is determined that carry out hard decoder;The decoding assembly is called to carry out hard decoder processing to the media file;Broadcast decoder treated file.The embodiment of the present invention targetedly can select corresponding coding type according to file type, improve the specific aim of decoding process, reasonably utilize resource, enhance the stability of playing process.

Description

A kind of media file playing method, device and media play system
Technical field
The present invention relates to a kind of technical field of media more particularly to media file playing method, device and media plays System.
Background technology
At this stage, more prevalent using mobile terminal viewing video with the continuous development of mobile terminal.
Since the function of mobile terminal is become stronger day by day, the hardware of mobile terminal itself can also carry out the decoding of associated video, Meanwhile player also usually carries decoding function.How therebetween rational selection, maximum resource utilize, and are existing ranks The problem of section urgent need to resolve.
Invention content
The embodiment of the present invention provides a kind of media file playing method, device and media play system, can be according to broadcasting The file type Auto-matching coding type put.
First aspect of the embodiment of the present invention provides a kind of media file playing method, including
Play instruction is received, media file to be played is obtained according to play instruction;
Obtain the target file type of the media file and the attribute information of mobile terminal;
If the attribute information shows that the decoding assembly of the mobile terminal supports the target file type, it is determined that be Carry out hard decoder;
The decoding assembly is called to carry out hard decoder processing to the media file;
Broadcast decoder treated file.
Optionally, the attribute information includes the type of decoding assembly and the file type of support, the decoding assembly Including:Image processor, Digital Signal Processing component and field programmable gate array chip.
Optionally, the method further includes:
If the attribute information shows that mobile terminal decoding assembly does not support the target file type, it is determined that carry out Soft decoding;
Call preset encoding and decoding library;
Soft decoding process is carried out to the media file using the encoding and decoding library;
Broadcast decoder treated file.
Optionally, the decoding assembly does not support the target file type, including:
The file type that the decoding assembly is supported does not include the target file type, or
When the target file type is under the conditions of hard decoder, the operation utilization rate of the decoding assembly is more than default threshold Value.
Optionally, described that soft decoding process is carried out to the media file using the encoding and decoding library, including:
The media file for reading unit length, according to the type search decoder of the media file of the unit length;
The media file of the unit length is decoded using the decoder;
The decoder is closed, the media file for reading next unit length is continued.
Second aspect of the embodiment of the present invention provides a kind of playback of media files device, including:
Receiving module obtains media file to be played according to play instruction for receiving play instruction;
Acquisition module, the attribute information of target file type and mobile terminal for obtaining the media file;
Judgment module, for showing that the decoding assembly of the mobile terminal supports the file destination when the attribute information When type, it is determined as carrying out hard decoder;
First decoder module, for calling the decoding assembly to carry out hard decoder processing to the media file;
Playing module, for broadcast decoder treated file.
Optionally, the attribute information includes the type of decoding assembly and the file type of support, the decoding assembly Including:Image processor, Digital Signal Processing component and field programmable gate array chip.
Optionally, described device further includes:
The judgment module is additionally operable to show that mobile terminal decoding assembly does not support the target text when the attribute information When part type, it is determined as carrying out soft decoding;
Calling module, for calling preset encoding and decoding library;
Second decoder module, for carrying out soft decoding process to the media file using the encoding and decoding library;
The playing module, for broadcast decoder treated file.
Optionally, the decoding assembly does not support the target file type, including:
The file type that the decoding assembly is supported does not include the target file type, or
When the target file type is under the conditions of hard decoder, the operation utilization rate of the decoding assembly is more than default threshold Value.
Optionally, second decoder module is specifically used for:
The media file for reading unit length, according to the type search decoder of the media file of the unit length;
The media file of the unit length is decoded using the decoder;
The decoder is closed, the media file for reading next unit length is continued.
The third aspect of the embodiment of the present invention provides a kind of media play system, including playback of media files described above Device.
Implement the embodiment of the present invention, has the advantages that:
Media file playing method, device and media play system provided in an embodiment of the present invention, by obtaining file The attribute of type and current mobile terminal judges corresponding coding type, so as to targetedly according to file type Corresponding coding type is selected, the specific aim of decoding process is improved, resource is reasonably utilized, enhances the stabilization of playing process Property.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, for ability For the those of ordinary skill of domain, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is a kind of method flow diagram of media file playing method first embodiment provided in an embodiment of the present invention.
Fig. 2 is a kind of method flow diagram of media file playing method second embodiment provided in an embodiment of the present invention.
Fig. 3 is a kind of method flow diagram of media file playing method 3rd embodiment provided in an embodiment of the present invention.
Fig. 4 is a kind of method flow diagram of playback of media files device first embodiment provided in an embodiment of the present invention.
Fig. 5 is a kind of structural schematic diagram of playback of media files device second embodiment provided in an embodiment of the present invention.
Fig. 6 is a kind of structural schematic diagram of mobile terminal provided in an embodiment of the present invention.
Specific implementation mode
The disclosure is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the disclosure, rather than the restriction to the disclosure.It also should be noted that in order to just It is illustrated only in description, attached drawing and the relevant part of the disclosure rather than entire infrastructure.
It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detail The processing described as flow chart or method.It is therein to be permitted although each step to be described as to the processing of sequence in flow chart Multi-step can be implemented concurrently, concomitantly or simultaneously.In addition, the sequence of each step can be rearranged, when its operation The processing can be terminated when completion, it is also possible to the other steps being not included in attached drawing.Processing can correspond to In method, function, regulation, subroutine, subprogram etc..
Fig. 1 is a kind of method flow diagram of media file playing method first embodiment provided in an embodiment of the present invention.It should Media file playing method is applied to terminal, and the terminal can be mobile terminal, computer, desktop computer, tablet computer etc., Or smart mobile phone, e-book, wearable device etc..The terminal can be by installing application program or built-in application The method that the form of program realizes playback of media files in the embodiment of the present invention, the media file can come from lattice chain The file on file or network server connected, the embodiment of the present invention are not limited thereto.The playback of media files side Method includes the following steps S101-S105.
In step S101, play instruction is received, media file to be played is obtained according to play instruction.
Specifically, the play instruction can be by after the specific application program of installation, passing through and clicking application program Interior corresponding object generates, and can also be to be generated by forms such as phonetic order, gesture instructions.It is obtained according to the play instruction Corresponding media file to be played.It is understood that the media file to be played can be the file being locally stored, It can also be the file for being stored in network side, at this time by accessing corresponding network address, read the file in network side in real time, It realizes and is played in caching.
In step s 102, the target file type of the media file and the attribute information of mobile terminal are obtained.
Specifically, the file type of the media file includes a variety of, for example, the format of video includes:H.264、MPEG- 2 and VC-1 etc.;The format of audio includes:AAC, MP3 and AC-3 etc..If it is understood that the media file is net The file of network side can be also packaged, the tunneling includes RTMP during streaming media using certain agreement (Real Time Messaging Protocol, real-time messages transport protocol), RTSP (Real Time Streaming Protocol, real time streaming transport protocol) and HTTP (HyperTextTransferProtocol, hypertext transfer protocol).When When using different agreements, the format of stream medium data will be different.Before the decoding, first can be by media file solution agreement, this In embodiment, since the step of solution agreement, is all made of the prior art, and to carry out related description, this field to the step of solution agreement Technical staff it is understood that can first carry out the action of solution agreement before decoding.
The attribute information of the mobile terminal includes the type of decoding assembly and the file type of support.The attribute letter Breath can be obtained by accessing the system information of the mobile terminal.The decoding assembly includes:Image processor (GPU), number Word signal processing component (DSP) and field programmable gate array chip (FPGA).It is different since the type of mobile terminal is different Mobile terminal decoding assembly it is different, corresponding function is also different.By obtaining the attribute information of mobile terminal, can understand The specific decoding assembly information of mobile terminal, to further appreciate that the decoding assembly corresponds to the file format supported.
In step s 103, if the attribute information shows that the decoding assembly of the mobile terminal supports the file destination Type, it is determined that carry out hard decoder.
Specifically, after obtaining attribute information, by attribute information the corresponding file format of decoding assembly and institute It states target file type to be compared, judges whether the decoding assembly supports the target file type.If supporting, it is determined that To carry out hard decoder.
Optionally, in other embodiments, in addition to judging whether decoding assembly supports the target file type, into one Step also needs to consider decoding assembly when decoding the media file of the target file type, it is possible to create resource consumption, Such as hardware utilization, power consumption etc., so as to more accurately judge whether to need to use hard decoder.
In step S104, the decoding assembly is called to carry out hard decoder processing to the media file.
Specifically, when determining using hard decoder, decoding assembly is called to carry out hard decoder processing.According to mobile terminal Difference, the decoding assembly chosen at this time can also be different.If more powerful than the GPU of mobile terminal, then GPU may be used Decoding;If mobile terminal uses the DSP for being exclusively used in sound quality promotion, DSP decodings may be used.It is understood that also wrapping Some other situation is included, the embodiment of the present invention is not limited thereto.
In step S105, broadcast decoder treated file.
Specifically, after the decoding, according to decoded original video files and original audio file, when carrying out subsequent Between the processing such as synchronize, and execute subsequent playback action.
Media file playing method in the embodiment of the present invention, by the category for obtaining file type and current mobile terminal Property, judge corresponding coding type, so as to targetedly select corresponding coding type according to file type, improves The specific aim of decoding process reasonably utilizes resource, enhances the stability of playing process.
Fig. 2 is a kind of method flow diagram of media file playing method second embodiment provided in an embodiment of the present invention.This In embodiment, first embodiment shown in FIG. 1 is compared, the step of other further decoding processes.The playback of media files side Method includes the following steps S201-S207.
In step s 201, play instruction is received, media file to be played is obtained according to play instruction.
In step S202, the target file type of the media file and the attribute information of mobile terminal are obtained.
In step S203, if the attribute information shows that the decoding assembly of the mobile terminal supports the file destination Type, it is determined that carry out hard decoder.
In step S204, the decoding assembly is called to carry out hard decoder processing to the media file.
In step S205, if the attribute information shows that mobile terminal decoding assembly does not support the file destination class Type, it is determined that carry out soft decoding.
Specifically, when the corresponding file format of decoding assembly does not include the target file type, show decoding assembly It does not support to be decoded, hard decoder can not be carried out at this time, soft decoding can only be carried out.
In other embodiments, when the target file type is under the conditions of hard decoder, if the decoding assembly It is more than predetermined threshold value to run utilization rate, is also determined as that hard decoder cannot be carried out.Since the usual power consumption of decoding assembly is higher, work as operation When utilization rate is more than predetermined threshold value, the problems such as larger power consumption and fever can be brought, in order to avoid there are problems, when sentencing When disconnected operation utilization rate is more than threshold value, equally it is determined as carrying out soft decoding.
In step S206, preset encoding and decoding library is called.
Specifically, when using soft decoding, preset encoding and decoding library is called first.Wherein, there are many encoding and decoding libraries Type, for example can be FFMPEG, can also be other types.
In step S207, soft decoding process is carried out to the media file using the encoding and decoding library.
Specifically, carrying out soft decoding operate using encoding and decoding library.
In step S208, broadcast decoder treated file.
Media file playing method in the embodiment of the present invention, by the category for obtaining file type and current mobile terminal Property, judgement is to carry out hard decoder or carry out soft decoding, so as to targetedly select corresponding solution according to file type Code type improves the specific aim of decoding process, reasonably utilizes resource, enhances the stability of playing process.
Fig. 3 is a kind of method flow diagram of media file playing method 3rd embodiment provided in an embodiment of the present invention.This In embodiment, second embodiment shown in Fig. 2 is compared, the step of how carrying out soft decoding further comprised.The media file Playback method includes the following steps S301-S311.
In step S301, play instruction is received, media file to be played is obtained according to play instruction.
In step s 302, the target file type of the media file and the attribute information of mobile terminal are obtained.
In step S303, if the attribute information shows that the decoding assembly of the mobile terminal supports the file destination Type, it is determined that carry out hard decoder.
In step s 304, the decoding assembly is called to carry out hard decoder processing to the media file.
In step S305, if the attribute information shows that mobile terminal decoding assembly does not support the file destination class Type, it is determined that carry out soft decoding;
In step S306, preset encoding and decoding library is called.
In step S307, the media file of unit length is read, according to the type of the media file of the unit length Search decoder.
Specifically, in decoding process, the media file of unit length is first read, the unit length depends on specific File type, usually 1 frame.According to 1 frame data of the acquisition, corresponding decoder is searched.It is understood that the volume It includes a plurality of types of decoders to decode in library, corresponding a variety of different file types.
In step S308, the media file of the unit length is decoded using the decoder.
In step S309, the decoder is closed, continues the media file for reading next unit length.
Specifically, after frame media file decoding is completed, decoder is closed, then proceedes to read next unit length Media file, that is, again proceed in step S307, be then successively read until decoding complete.
In step S310, broadcast decoder treated file.
Media file playing method in the embodiment of the present invention, by the category for obtaining file type and current mobile terminal Property, judgement is to carry out hard decoder or carry out soft decoding, so as to targetedly select corresponding solution according to file type Code type improves the specific aim of decoding process, reasonably utilizes resource, enhances the stability of playing process.
Fig. 4 is a kind of structural schematic diagram of playback of media files device first embodiment provided in an embodiment of the present invention.It should Playback of media files device is applied to terminal, and the terminal can be computer, desktop computer, tablet computer etc., or Smart mobile phone, e-book, wearable device etc..The playback of media files device includes:Receiving module 401, acquisition module 402, judgment module 403, the first decoder module 404 and playing module 405.
Wherein, the receiving module 401 obtains media text to be played according to play instruction for receiving play instruction Part;
Acquisition module 402, the attribute information of target file type and mobile terminal for obtaining the media file;
Judgment module 403, for showing that the decoding assembly of the mobile terminal supports the target when the attribute information When file type, it is determined as carrying out hard decoder;
First decoder module 404, for calling the decoding assembly to carry out hard decoder processing to the media file;
Playing module 405, for broadcast decoder treated file.
Optionally, the attribute information includes the type of decoding assembly and the file type of support, the decoding assembly Including:Image processor, Digital Signal Processing component and field programmable gate array chip.
Optionally, in other embodiments, it is illustrated in figure 5 a kind of playback of media files provided in an embodiment of the present invention The structural schematic diagram of device second embodiment, described device further include:
The judgment module 403 is additionally operable to show that mobile terminal decoding assembly does not support the mesh when the attribute information When marking file type, it is determined as carrying out soft decoding;
Calling module 406, for calling preset encoding and decoding library;
Second decoder module 407, for carrying out soft decoding process to the media file using the encoding and decoding library;
The playing module 405, for broadcast decoder treated file.
Optionally, the decoding assembly does not support the target file type, including:
The file type that the decoding assembly is supported does not include the target file type, or
When the target file type is under the conditions of hard decoder, the operation utilization rate of the decoding assembly is more than default threshold Value.
Optionally, second decoder module 407 is specifically used for:
The media file for reading unit length, according to the type search decoder of the media file of the unit length;
The media file of the unit length is decoded using the decoder;
The decoder is closed, the media file for reading next unit length is continued.
Playback of media files device in the embodiment of the present invention, by the category for obtaining file type and current mobile terminal Property, judgement is to carry out hard decoder or carry out soft decoding, so as to targetedly select corresponding solution according to file type Code type improves the specific aim of decoding process, reasonably utilizes resource, enhances the stability of playing process.
Fig. 6 is a kind of structural schematic diagram of mobile terminal provided in an embodiment of the present invention.It is understood that Fig. 1-Fig. 3 Shown in media file playing method and Fig. 4, playback of media files device shown in 5 can be applied to it is shown in fig. 6 it is mobile eventually In end.As shown in fig. 6, mobile terminal includes that (quantity of the processor 601 in terminal can be one or more, figure for processor 601 6 by taking a processor as an example) and memory 602.In an embodiment of the present invention, processor 601, memory 602 can pass through Bus or other means connects, wherein in Fig. 6 for being connected by bus.
Wherein, executable program is stored in memory 602, processor 601 executes the executable program to realize such as Lower step:
Play instruction is received, media file to be played is obtained according to play instruction;
Obtain the target file type of the media file and the attribute information of mobile terminal;
If the attribute information shows that the decoding assembly of the mobile terminal supports the target file type, it is determined that be Carry out hard decoder;
The decoding assembly is called to carry out hard decoder processing to the media file;
Broadcast decoder treated file.
Optionally, the attribute information includes the type of decoding assembly and the file type of support, the decoding assembly Including:Image processor, Digital Signal Processing component and field programmable gate array chip.
The processor 601 is additionally operable to:
If the attribute information shows that mobile terminal decoding assembly does not support the target file type, it is determined that carry out Soft decoding;
Call preset encoding and decoding library;
Soft decoding process is carried out to the media file using the encoding and decoding library;
Broadcast decoder treated file.
Optionally, the decoding assembly does not support the target file type, including:
The file type that the decoding assembly is supported does not include the target file type, or
When the target file type is under the conditions of hard decoder, the operation utilization rate of the decoding assembly is more than default threshold Value.
Optionally, the processor 601 carries out soft decoding process, packet using the encoding and decoding library to the media file It includes:
The media file for reading unit length, according to the type search decoder of the media file of the unit length;
The media file of the unit length is decoded using the decoder;
The decoder is closed, the media file for reading next unit length is continued.
Mobile terminal in the embodiment of the present invention is judged by obtaining the attribute of file type and current mobile terminal It is to carry out hard decoder or carry out soft decoding, so as to targetedly select corresponding coding type according to file type, The specific aim of decoding process is improved, resource is reasonably utilized, enhances the stability of playing process.
The embodiment of the present invention additionally provides a kind of media play system, and the media play system includes Fig. 4, shown in 5 Playback of media files device, and can be applied to realize Fig. 1-media file playing methods shown in Fig. 3.The media play system Specific descriptions can be found in Fig. 1-Fig. 5 media file playing method and playback of media files device description, do not go to live in the household of one's in-laws on getting married herein It states.
Media play system in the embodiment of the present invention, by obtaining the attribute of file type and current mobile terminal, Judgement is to carry out hard decoder or carry out soft decoding, so as to targetedly select corresponding codec class according to file type Type improves the specific aim of decoding process, reasonably utilizes resource, enhances the stability of playing process.
There is provided in above-described embodiment each module between any two can be achieved communication connection, and each module can in platform The communication of heart control device connects, and can perform in the disclosure by the quick recording device of fingerprint recognition for being provided in above-described embodiment is appointed The method quickly recorded by fingerprint recognition provided in embodiment of anticipating has and executes the corresponding function module of this method and have Beneficial effect, the technical detail not being described in detail in the above-described embodiments, reference can be made to fast provided in disclosure any embodiment The method of speed recording.
It will be appreciated that the disclosure also extends to the computer program for being suitable for that the disclosure tries out, especially Computer program on carrier or in carrier.Program can be with source code, object code, code intermediate source and such as part volume The form of the object code for the form translated, or with any other shape for being suitble to use in realization according to the disclosed method Formula.Also it will be noted that, such program may have many different frame designs.For example, realizing the side according to the disclosure Functional program code of method or system may be subdivided into one or more subroutine.
For that will be apparent for technical personnel in the functional many different modes of these subroutine intermediate distributions. Subroutine can be collectively stored in an executable file, to form self-contained program.Such executable file can To include computer executable instructions, such as processor instruction and/or interpreter instruction (for example, Java interpreter instruction).It can Alternatively, one or more or all subroutines of subroutine may be stored at least one external library file, and And statically or dynamically (such as at runtime) links with main program.Main program contains at least one of subroutine At least one calling.Subroutine can also include to mutual function call.It is related to the embodiment packet of computer program product Include the computer executable instructions corresponding at least one of illustrated method each step of the processing step of method.These refer to Subroutine can be subdivided into and/or be stored in one or more possible static or dynamic link file by enabling.
Another embodiment for being related to computer program product includes corresponding in illustrated system and/or product at least The computer executable instructions of each device in one device.These instructions can be subdivided into subroutine and/or be stored In one or more possible static or dynamic link file.
The carrier of computer program can be any entity or device that can deliver program.For example, carrier can wrap Containing storage medium, such as (ROM such as CDROM either semiconductor ROM) or magnetic recording media (such as floppy disk or hard disk).Into One step, carrier can be the carrier that can be transmitted, such as electricity either optical signalling its can via cable or optical cable, or Person is transmitted by radio or other means.When program is embodied as such signal, carrier can be by such cable Or device composition.Alternatively, carrier can be the integrated circuit for being wherein embedded with program, and the integrated circuit is suitable for holding Row correlation technique, or used in execution for correlation technique.
Should be noted that embodiment mentioned above is to illustrate the disclosure, rather than the disclosure is limited, and this The technical staff in field will design many alternate embodiments, without departing from scope of the appended claims.It is weighing During profit requires, the reference mark of any placement between round parentheses is not to be read as being limitations on claims.Verb " packet Include " and its paradigmatic depositing using the element being not excluded for other than those of recording in the claims or step .Article " one " before element or "one" be not excluded for the presence of a plurality of such elements.The disclosure can pass through Include the hardware of several visibly different components, and is realized by properly programmed computer.Enumerating several devices In device claim, several in these devices can be embodied by the same item of hardware.In mutually different appurtenance Profit states that the simple fact of certain measures does not indicate that the combination of these measures cannot be used to benefit in requiring.
If desired, different function discussed herein can be executed with different order and/or be executed simultaneously with one another. In addition, if if it is expected, one or more functions described above can be optional or can be combined.
If desired, each step is not limited to the sequence that executes in each embodiment, different step as discussed above It can be executed with different order and/or be executed simultaneously with one another.In addition, in other embodiments, described above one or more A step can be optional or can be combined.
Although various aspects of the disclosure provides in the independent claim, the other aspects of the disclosure include coming from The combination of the dependent claims of the feature of described embodiment and/or feature with independent claims, and not only It is the combination clearly provided in claim.
Although it is to be noted here that the foregoing describe the example embodiment of the disclosure, these descriptions are not It should be understood in a limiting sense.It is wanted without departing from such as appended right on the contrary, several change and modification can be carried out The scope of the present disclosure defined in asking.
Will be appreciated by those skilled in the art that each module in the device of the embodiment of the present disclosure can use general meter Device is calculated to realize, each module can concentrate in the group of networks of single computing device or computing device composition, and the disclosure is real The method that the device in example corresponds in previous embodiment is applied, can be realized, can also be led to by executable program code The mode of integrated circuit combination is crossed to realize, therefore the disclosure is not limited to specific hardware or software and its combination.
Will be appreciated by those skilled in the art that each module in the device of the embodiment of the present disclosure can use general shifting Dynamic terminal realizes that each module can concentrate in the device combination of single mobile terminal or mobile terminal composition, the disclosure Device in embodiment corresponds to the method in previous embodiment, can be realized by editing executable program code, It can be realized by way of integrated circuit combination, therefore the disclosure is not limited to specific hardware or software and its knot It closes.

Claims (11)

1. a kind of media file playing method, which is characterized in that including:
Play instruction is received, media file to be played is obtained according to play instruction;
Obtain the target file type of the media file and the attribute information of mobile terminal;
If the attribute information shows that the decoding assembly of the mobile terminal supports the target file type, it is determined that carry out Hard decoder;
The decoding assembly is called to carry out hard decoder processing to the media file;
Broadcast decoder treated file.
2. media file playing method as described in claim 1, which is characterized in that the attribute information includes decoding assembly Type and the file type of support, the decoding assembly include:Image processor, Digital Signal Processing component and scene can Program gate array chip.
3. media file playing method as claimed in claim 1 or 2, which is characterized in that further include:
If the attribute information shows that mobile terminal decoding assembly does not support the target file type, it is determined that carry out soft solution Code;
Call preset encoding and decoding library;
Soft decoding process is carried out to the media file using the encoding and decoding library;
Broadcast decoder treated file.
4. media file playing method as claimed in claim 3, which is characterized in that the decoding assembly does not support the target File type, including:
The file type that the decoding assembly is supported does not include the target file type, or
When the target file type is under the conditions of hard decoder, the operation utilization rate of the decoding assembly is more than predetermined threshold value.
5. media file playing method as claimed in claim 3, which is characterized in that described to use the encoding and decoding library to described Media file carries out soft decoding process, including:
The media file for reading unit length, according to the type search decoder of the media file of the unit length;
The media file of the unit length is decoded using the decoder;
The decoder is closed, the media file for reading next unit length is continued.
6. a kind of playback of media files device, which is characterized in that including:
Receiving module obtains media file to be played according to play instruction for receiving play instruction;
Acquisition module, the attribute information of target file type and mobile terminal for obtaining the media file;
Judgment module, for showing that the decoding assembly of the mobile terminal supports the target file type when the attribute information When, it is determined as carrying out hard decoder;
First decoder module, for calling the decoding assembly to carry out hard decoder processing to the media file;
Playing module, for broadcast decoder treated file.
7. playback of media files device as claimed in claim 6, which is characterized in that the attribute information includes decoding assembly Type and the file type of support, the decoding assembly include:Image processor, Digital Signal Processing component and scene can Program gate array chip.
8. playback of media files device as claimed in claims 6 or 7, which is characterized in that further include:
The judgment module is additionally operable to show that mobile terminal decoding assembly does not support the file destination class when the attribute information When type, it is determined as carrying out soft decoding;
Calling module, for calling preset encoding and decoding library;
Second decoder module, for carrying out soft decoding process to the media file using the encoding and decoding library;
The playing module, for broadcast decoder treated file.
9. playback of media files device as claimed in claim 8, which is characterized in that the decoding assembly does not support the target File type, including:
The file type that the decoding assembly is supported does not include the target file type, or
When the target file type is under the conditions of hard decoder, the operation utilization rate of the decoding assembly is more than predetermined threshold value.
10. playback of media files device as claimed in claim 8, which is characterized in that second decoder module is specifically used for:
The media file for reading unit length, according to the type search decoder of the media file of the unit length;
The media file of the unit length is decoded using the decoder;
The decoder is closed, the media file for reading next unit length is continued.
11. a kind of media play system, which is characterized in that including such as claim 6-10 any one of them playback of media files Device.
CN201810475155.9A 2018-05-17 2018-05-17 a kind of media file playing method, device and media play system Pending CN108600813A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810475155.9A CN108600813A (en) 2018-05-17 2018-05-17 a kind of media file playing method, device and media play system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810475155.9A CN108600813A (en) 2018-05-17 2018-05-17 a kind of media file playing method, device and media play system

Publications (1)

Publication Number Publication Date
CN108600813A true CN108600813A (en) 2018-09-28

Family

ID=63631615

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810475155.9A Pending CN108600813A (en) 2018-05-17 2018-05-17 a kind of media file playing method, device and media play system

Country Status (1)

Country Link
CN (1) CN108600813A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109088887A (en) * 2018-09-29 2018-12-25 北京金山云网络技术有限公司 A kind of decoded method and device of Streaming Media
CN109587546A (en) * 2018-11-27 2019-04-05 Oppo广东移动通信有限公司 Method for processing video frequency, device, electronic equipment and computer-readable medium
WO2020078165A1 (en) * 2018-10-15 2020-04-23 Oppo广东移动通信有限公司 Video processing method and apparatus, electronic device, and computer-readable medium
US11336953B2 (en) 2018-10-15 2022-05-17 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Video processing method, electronic device, and computer-readable medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103096163A (en) * 2011-11-01 2013-05-08 中国移动通信集团公司 Media player and play method of media file
CN104980788A (en) * 2015-02-11 2015-10-14 腾讯科技(深圳)有限公司 Video decoding method and device
CN105992056A (en) * 2015-01-30 2016-10-05 腾讯科技(深圳)有限公司 Video decoding method and device
CN106658174A (en) * 2016-10-31 2017-05-10 努比亚技术有限公司 Video decoding terminal and method
CN106713937A (en) * 2016-12-30 2017-05-24 广州虎牙信息科技有限公司 Video playing control method and device as well as terminal equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103096163A (en) * 2011-11-01 2013-05-08 中国移动通信集团公司 Media player and play method of media file
CN105992056A (en) * 2015-01-30 2016-10-05 腾讯科技(深圳)有限公司 Video decoding method and device
CN104980788A (en) * 2015-02-11 2015-10-14 腾讯科技(深圳)有限公司 Video decoding method and device
CN106658174A (en) * 2016-10-31 2017-05-10 努比亚技术有限公司 Video decoding terminal and method
CN106713937A (en) * 2016-12-30 2017-05-24 广州虎牙信息科技有限公司 Video playing control method and device as well as terminal equipment

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109088887A (en) * 2018-09-29 2018-12-25 北京金山云网络技术有限公司 A kind of decoded method and device of Streaming Media
WO2020078165A1 (en) * 2018-10-15 2020-04-23 Oppo广东移动通信有限公司 Video processing method and apparatus, electronic device, and computer-readable medium
US11336953B2 (en) 2018-10-15 2022-05-17 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Video processing method, electronic device, and computer-readable medium
CN109587546A (en) * 2018-11-27 2019-04-05 Oppo广东移动通信有限公司 Method for processing video frequency, device, electronic equipment and computer-readable medium
WO2020108099A1 (en) * 2018-11-27 2020-06-04 Oppo广东移动通信有限公司 Video processing method, device, electronic device and computer-readable medium
CN109587546B (en) * 2018-11-27 2020-09-22 Oppo广东移动通信有限公司 Video processing method, video processing device, electronic equipment and computer readable medium

Similar Documents

Publication Publication Date Title
CN108600813A (en) a kind of media file playing method, device and media play system
JP4907653B2 (en) Aspects of media content rendering
CN107493510B (en) Live stream playing method and device in live broadcast room, computer storage medium and equipment
US20170302721A1 (en) Cloud streaming service system, cloud streaming service method using optimal GPU, and apparatus for same
CN101438562A (en) Prioritization of audio streams for platform adaptive audio decoding
KR20070121662A (en) Media timeline processing infrastructure
JP6314252B2 (en) Network video playback method and apparatus
CN108668162A (en) Processing method, device and the intelligent terminal that video file plays
WO2020026009A1 (en) Video object recommendation method and apparatus, and device/terminal/server
JPWO2005098818A1 (en) Specific program detection apparatus and method, and program
CN104219555A (en) Video displaying device and method for Android system terminals
US9292081B2 (en) Systems and methods for programmatically interacting with a media player
CN105578224A (en) Multimedia data acquisition method, device, smart television and set-top box
US10027994B2 (en) Interactive audio metadata handling
CN111356023A (en) Playing mode determining method and device
US20180173391A1 (en) Customizable Media Player Framework
US9049472B2 (en) Systems and methods for dynamic media players utilizing media traits
US9996148B1 (en) Rule-based presentation of media items
CN111755017B (en) Audio recording method and device for cloud conference, server and storage medium
CN104091608A (en) Video editing method and device based on IOS equipment
CN108650544A (en) A kind of media playing method, device and media play system
Rome et al. Multimedia on symbian OS: Inside the convergence device
KR100652689B1 (en) A method for parsing size of the contents in a mobile terminal
CN108462902A (en) A kind of media file read method and device, multimedia play system
CN101894556B (en) Method and device for testing audio decoding program

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180928

WD01 Invention patent application deemed withdrawn after publication