CN109889894A - Media file coding/decoding method, device and storage medium - Google Patents

Media file coding/decoding method, device and storage medium Download PDF

Info

Publication number
CN109889894A
CN109889894A CN201910188865.8A CN201910188865A CN109889894A CN 109889894 A CN109889894 A CN 109889894A CN 201910188865 A CN201910188865 A CN 201910188865A CN 109889894 A CN109889894 A CN 109889894A
Authority
CN
China
Prior art keywords
file
decoded
media
media file
unit
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
CN201910188865.8A
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.)
Suzhou Keda Technology Co Ltd
Original Assignee
Suzhou Keda Technology 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 Suzhou Keda Technology Co Ltd filed Critical Suzhou Keda Technology Co Ltd
Priority to CN201910188865.8A priority Critical patent/CN109889894A/en
Publication of CN109889894A publication Critical patent/CN109889894A/en
Pending legal-status Critical Current

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

This application involves a kind of media file coding/decoding method, device and storage mediums, belong to field of computer technology, this method comprises: parsing to media file to be decoded, obtain the target medium package feature of media file to be decoded;Obtain the corresponding relationship between media package feature and decoder plug-in unit;Determine corresponding relationship with the presence or absence of the corresponding target decoder plug-in unit of target medium package feature;When determining target decoder plug-in unit from corresponding relationship, pre decoding is carried out to media file to be decoded using target decoder plug-in unit, obtains a frame media data;When a frame media data is normal, media file to be decoded is decoded using target decoder plug-in unit, obtains decoded media file;It can solve the problem of decoding unsuccessfully when being decoded to third party manufacturer using the media file that customized encoding and decoding standard and media formats encapsulate using standard decoder;Improve the adaptive decoding ability of decoder.

Description

Media file coding/decoding method, device and storage medium
Technical field
This application involves media file coding/decoding method, device and storage mediums, belong to field of computer technology.
Background technique
Decoder (Decoder) is that a kind of can be reduced into digital video-audio data stream simulates the hard of video/audio signal Part and/or software equipment.
In traditional media file processing system, a variety of decoders are integrated using Plugin Mechanism to solve to media file Code.In this manner, video/audio encoding and decoding device standard (H264, H265 etc.) is met for data flow and according to multimedia standardization The media file that (avi, mp4, mkv etc.) is packaged, the standard decoder that can be used in system are decoded.
However, manufacturer belonging to media file may use customized encoding and decoding standard and media formats packaged media File leads to media file at this point, the standard decoder in conventional media file system possibly can not decode these media files The problem of can not playing.Such as: vendor A obtains media using customized encoding and decoding standard and media formats packaged media file File A, at this point, may result in decoding failure, media file A if manufacturer B decodes media file A using standard decoder The problem of can not playing.
Summary of the invention
This application provides a kind of media file coding/decoding method, device and storage mediums, can solve and are decoded using standard Device can decode when being decoded to third party manufacturer using the media file that customized encoding and decoding standard and media formats encapsulate The problem of failure.The application provides the following technical solutions:
In a first aspect, providing a kind of media file coding/decoding method, which comprises
Media file to be decoded is parsed, the target medium package feature of the media file to be decoded is obtained;
Obtain the corresponding relationship between media package feature and decoder plug-in unit;
Determine the corresponding relationship with the presence or absence of the corresponding target decoder plug-in unit of the target medium package feature;
When determining the target decoder plug-in unit from the corresponding relationship, the target decoder plug-in unit pair is used The media file to be decoded carries out pre decoding, obtains a frame media data;
When the frame media data is normal, using the target decoder plug-in unit to the media file to be decoded into Row decoding, obtains decoded media file.
Optionally, described that media file to be decoded is parsed, obtain the target medium of the media file to be decoded Package feature, comprising:
The file-related information to media file to be decoded is obtained, the file-related information includes file header, text Among part, at least one of end of file and file suffixes name;
The keyword for obtaining designated position in the file-related information obtains the target medium package feature.
Optionally, the media file to be decoded is video file, and the frame media data is a frame image data;Institute State method further include:
Determine whether the corresponding resolution ratio of described image data is normal;And/or
Determine whether the corresponding image quality of described image data is normal.
Optionally, the method also includes:
In the frame media data exception, other decoder plug-in units are redefined from multiple decoder plug-in units;
It is executed again using other described decoder plug-in units and pre decoding is carried out to the media file to be decoded, obtain a frame The step of media data.
Optionally, the method also includes:
When being not determined by the target decoder plug-in unit from the corresponding relationship, inserted using preset universal decoder Part executes described the step of carrying out pre decoding to the media file to be decoded, obtain a frame media data.
Second aspect, provides a kind of media file decoding apparatus, and described device includes:
Document analysis module obtains the mesh of the media file to be decoded for parsing to media file to be decoded Mark media package feature;
Relation acquisition module, for obtaining the corresponding relationship between media package feature and decoder plug-in unit;
Plug-in unit determining module, for determining the corresponding relationship with the presence or absence of the corresponding mesh of the target medium package feature Mark decoder plug-in unit;
File pre decoding module, for using when determining the target decoder plug-in unit from the corresponding relationship The target decoder plug-in unit carries out pre decoding to the media file to be decoded, obtains a frame media data;
File decoding module is used for when the frame media data is normal, using the target decoder plug-in unit to institute It states media file to be decoded to be decoded, obtains decoded media file.
Optionally, the document analysis module, is used for:
The file-related information to media file to be decoded is obtained, the file-related information includes file header, text Among part, at least one of end of file and file suffixes name;
The keyword for obtaining designated position in the file-related information obtains the target medium package feature.
Optionally, the media file to be decoded is video file, and the frame media data is a frame image data;Institute State device further include:
Resolution ratio determining module, for determining whether the corresponding resolution ratio of described image data is normal;
Picture determining module, for determining whether the corresponding image quality of described image data is normal.
The third aspect, provides a kind of media file decoding apparatus, and described device includes processor and memory;The storage Program is stored in device, described program is loaded as the processor and executed to realize that media file described in first aspect decodes Method.
Fourth aspect provides a kind of computer readable storage medium, program, described program is stored in the storage medium It is loaded as the processor and is executed to realize media file coding/decoding method described in first aspect.
The beneficial effects of the present application are as follows: by parsing to media file to be decoded, obtain media file to be decoded Target medium package feature;Obtain the corresponding relationship between media package feature and decoder plug-in unit;Determining corresponding relationship is It is no that there are the corresponding target decoder plug-in units of target medium package feature;Target decoder plug-in unit is being determined from corresponding relationship When, pre decoding is carried out to media file to be decoded using target decoder plug-in unit, obtains a frame media data;In a frame media number According to it is normal when, media file to be decoded is decoded using target decoder plug-in unit, obtains decoded media file;It can be with Solve the media file encapsulated to third party manufacturer using customized encoding and decoding standard and media formats using standard decoder The problem of being decoded unsuccessfully when being decoded;Since third party manufacturer is using customized encoding and decoding standard and customized matchmaker When physique formula packaged media file, obtained media file usually has specific media package feature, therefore, by obtaining matchmaker Corresponding relationship between body package feature and decoder plug-in unit;The target medium package feature for analyzing media file to be decoded, from The corresponding target decoder plug-in unit of the target medium package feature is determined in corresponding relationship, can be adapted to out and be used customized volume Decoding standard and customized media formats encapsulation media file to be decoded corresponding to target decoder plug-in unit, avoid using Standard decoder can not handle the problem of media file to be decoded, and the adaptive decoding ability of decoder can be improved.
Above description is only the general introduction of technical scheme, in order to better understand the technological means of the application, And can be implemented in accordance with the contents of the specification, with the preferred embodiment of the application and cooperate attached drawing below detailed description is as follows.
Detailed description of the invention
Fig. 1 is the structural schematic diagram for the media file decoding system that the application one embodiment provides;
Fig. 2 is the flow chart for the media file coding/decoding method that the application one embodiment provides;
Fig. 3 is the block diagram for the media file decoding apparatus that the application one embodiment provides;
Fig. 4 is the block diagram for the media file decoding apparatus that the application one embodiment provides.
Specific embodiment
With reference to the accompanying drawings and examples, the specific embodiment of the application is described in further detail.Implement below Example is not limited to scope of the present application for illustrating the application.
Fig. 1 is the structural schematic diagram for the media file decoding system that the application one embodiment provides, as shown in Figure 1, should System includes at least: management node 110, adaptive node 120 and decoding node 130.
Optionally, management node 110, adaptive node 120 and decoding node 130 belong to same equipment (such as same solution Code device);Alternatively, belonging to distinct device (such as different decoders).In one example, management node 110, adaptive node 120 belong to same equipment with decoding node 130, and management node 110, adaptive node 120 and decoding node 130 are based on process Between communication (Inter Process Communication, IPC) realize propagate and exchange information.Certainly, management node 110, from Adapting to node 120 and decoding node 130 can also communicate to connect by other means, and the present embodiment is not to the communication connection mode It limits.
Management node 110 is carried out for interacting with upper layer application, and to adaptive node 120 and decoding node 130 Management.Schematically, management node 110 is for receiving the decoding task that upper layer application issues, and by the task of the decoding task Information is sent to adaptive node 120.Wherein, mission bit stream includes but is not limited to media file to be decoded and/or this is to be decoded The filename of media file.
Adaptive node 120 is used to determine the corresponding target of decoding task according to the mission bit stream that management node 110 is sent Decoder plug-in unit.
Schematically, adaptive node 120 obtains media file to be decoded for parsing to media file to be decoded Target medium package feature;Obtain the corresponding relationship between media package feature and decoder plug-in unit;Determining corresponding relationship is It is no that there are the corresponding target decoder plug-in units of target medium package feature.
Wherein, adaptive node 120 is previously stored with the corresponding relationship between media package feature and decoder plug-in unit, should The mode of establishing of corresponding relationship includes: to collect a large amount of third party's media file;Each third party's media file is parsed Media package feature is obtained, and obtains the decoder plug-in unit of third party's media file, establishes each media package feature and solution Corresponding relationship between code device plug-in unit.
Adaptive node 120 is after determining the corresponding target decoder plug-in unit of target medium package feature, by the mesh Mark decoder plug-in unit is back to management node 110.
Management node 110 is also used to: the target decoder for calling adaptive node 120 to return from decoding node 130 is inserted Part;Pre decoding is carried out to media file to be decoded using target decoder plug-in unit, obtains a frame media data;In a frame media number According to it is normal when, media file to be decoded is decoded using target decoder plug-in unit, obtains decoded media file.
Wherein, decoding node 130 includes each decoder plug-in unit and universal decoder plug-in unit that corresponding relationship includes. Universal decoder plug-in unit is integrated to obtain using a variety of Plugin Mechanisms, and support to a variety of video/audio encoding and decoding device standards and It is decoded according to the media file of different multimedia standard packaging.
Since third party manufacturer is using customized encoding and decoding standard and customized media formats packaged media file When, obtained media file usually has specific media package feature, such as: there is nominal key etc. in file header, Therefore, in the present embodiment, by obtaining the corresponding relationship between media package feature and decoder plug-in unit;Analyze media to be decoded The target medium package feature of file determines that the corresponding target decoder of target medium package feature is inserted from corresponding relationship It is right can be adapted to out the media file to be decoded institute encapsulated using customized encoding and decoding standard and customized media formats for part The target decoder plug-in unit answered is avoided the problem that the media file to be decoded can not be handled using standard decoder, can be improved The adaptive decoding ability of decoder.
Fig. 2 is the flow chart for the media file coding/decoding method that the application one embodiment provides, and the present embodiment is in this way Applied to being illustrated in media file decoding system shown in FIG. 1.This method includes at least following steps:
Step 201, adaptive node is treated decoding media file and is parsed, and obtains the target matchmaker of media file to be decoded Body package feature.
Optionally, target medium package feature is used to indicate the encoding and decoding standard used when encapsulating media file to be decoded And/or encapsulation standard.Wherein, encoding and decoding standard includes general, announced encoding and decoding standard, such as: the mark such as H264, H265 It is quasi-;It further include the encoding and decoding standard that manufacturer is customized, a small range uses, such as: the encoding and decoding mark that certain intra-company uses It is quasi-;Encapsulation standard includes general, announced encapsulation standard, such as: the standards such as avi, mp4, mkv;It further include that manufacturer makes by oneself The encapsulation standard adopted, a small range uses, such as: the encapsulation standard that certain intra-company uses.
In one example, target medium package feature is got from the file-related information of media file to be decoded 's.At this point, adaptive node obtains the file-related information to media file to be decoded, this document relevant information includes file Head, among file, at least one of end of file and file suffixes name;Obtain the key of designated position in file-related information Word obtains target medium package feature.Media file to be decoded be third party manufacturer using customized encoding and decoding standard and Customized media formats encapsulate when, will include the third party factory in the file-related information of the media file to be decoded The corresponding keyword of quotient, such as: including among the title of third party manufacturer, file and end of file specific length in file header Title abbreviation in the binary data of byte including third party manufacturer, media suffix name are the suffix names of third party's vendor specific Deng can judge media file to be decoded by these keywords at this point, keyword can be got from file-related information It whether is that third party manufacturer is encapsulated using customized encoding and decoding standard and customized media formats.
Step 202, adaptive node obtains the corresponding relationship between media package feature and decoder plug-in unit.
Optionally, corresponding relationship is pre-stored in equipment belonging to adaptive node.The establishment process of corresponding relationship is at least wrapped It includes:
1, the media file that a large amount of third party manufacturer generates is collected.
Wherein, media file is that multiple third party manufacturers generates, the quantity of media file can be it is hundreds of, Even ten hundreds of, the present embodiment does not limit the quantity of media file.
2, for each media file, the file-related information of the media file is obtained.
File-related information includes the file header of each media file, among file, in end of file and file suffixes name At least one.
3, the media package feature of third party manufacturer is obtained from file-related information.
The media package feature of third party manufacturer and the media package feature of the universal standard are different.
4, the corresponding relationship between the media package feature of third party manufacturer and the decoder plug-in unit of third party manufacturer is established.
Step 203, adaptive node determines corresponding relationship with the presence or absence of the corresponding target decoder of target medium package feature Device plug-in unit.
Step 204, when determining target decoder plug-in unit from corresponding relationship, management node is inserted using target decoder Part carries out pre decoding to media file to be decoded, obtains a frame media data.
Optionally, the package types of target decoder plug-in unit are back to management node by adaptive node;Management node from The corresponding target decoder plug-in unit of the package types is called in decoding node, using target decoder plug-in unit to media text to be decoded Part carries out pre decoding, obtains a frame media data.
Optionally, it when being not determined by target decoder plug-in unit from corresponding relationship, is inserted using preset universal decoder Part carries out pre decoding to media file to be decoded, obtains a frame media data.
Step 205, when a frame media data is normal, management node is using target decoder plug-in unit to media text to be decoded Part is decoded, and obtains decoded media file.
Optionally, after management node pre decoding obtains a frame media data, it is whether normal that the frame media data can be detected;If The frame media data is normal, illustrates that target decoder plug-in unit can normally decode media file to be decoded, subsequent to continue to make It is decoded with target decoder plug-in unit;If frame media data is abnormal, illustrate target decoder plug-in unit cannot normally decode to Media file is decoded, the subsequent decoder plug-in unit that needs replacing is decoded media file to be decoded.
In one example, media file to be decoded is video file, at this point, a frame media data is a frame picture number According to;Whether management node detects the frame media data normal, comprising: determines whether the corresponding resolution ratio of image data is normal;With/ Or, determining whether the corresponding image quality of image data is normal.
Wherein it is determined that the ratio the resolution ratio whether corresponding resolution ratio of image data normally can be detection image data is No is preset ratio;When the ratio resolution ratio of image data is preset ratio, determine that the corresponding resolution ratio of image data is normal; When the ratio resolution ratio of image data is not preset ratio, determine that the corresponding resolution ratio of image data is abnormal.The preset ratio It can be 16:9,4:3 etc., the present embodiment does not limit the value of preset ratio.
Determine the corresponding image quality of image data whether normally can be in the display content of detection image data whether include Green screen situation and/or flower screen situation;Image is determined when the display content of image data does not include green screen situation and Hua Ping situation The corresponding image quality of data is normal;Picture number is determined when the display content of image data includes green screen situation and/or flower screen situation It is abnormal according to corresponding image quality.
In another example, media file to be decoded is audio file, at this point, a frame media data is a frame audio number According to;Whether management node detects the frame media data normal, comprising: determines that the noise data in the frame audio data accounts for whole frame sound Whether the ratio of frequency evidence reaches proportion threshold value;It is true when the ratio that noise data accounts for whole frame audio data is not up to proportion threshold value The fixed frame media data is normal;The frame media number is determined when the ratio that noise data accounts for whole frame audio data reaches proportion threshold value According to exception.Wherein, proportion threshold value can be 50%, 40% etc., and the present embodiment does not limit the value of the proportion threshold value.
Optionally, in a frame media data exception, management node redefines other solutions from multiple decoder plug-in units Code device plug-in unit;It is executed again using other decoder plug-in units and pre decoding is carried out to media file to be decoded, obtain a frame media number According to the step of, until the frame media data that pre decoding obtains is normal, at this point, management node to upper layer application return decode Success message;Alternatively, up to all decoder plug-in units have been called, and the frame that each decoder plug-in unit pre decoding obtains Media data stops when abnormal, at this point, management node returns to decoding failed message to upper layer application.
In conclusion media file coding/decoding method provided in this embodiment, by being parsed to media file to be decoded, Obtain the target medium package feature of media file to be decoded;Obtain the corresponding pass between media package feature and decoder plug-in unit System;Determine corresponding relationship with the presence or absence of the corresponding target decoder plug-in unit of target medium package feature;True from corresponding relationship When making target decoder plug-in unit, pre decoding is carried out to media file to be decoded using target decoder plug-in unit, obtains a frame matchmaker Volume data;When a frame media data is normal, media file to be decoded is decoded using target decoder plug-in unit, is solved Media file after code;It can solve and customized encoding and decoding standard and media are used to third party manufacturer using standard decoder The problem of media file of format encapsulation can decode unsuccessfully when being decoded;Since third party manufacturer is solved using customized volume When code standard and customized media formats packaged media file, obtained media file usually has specific media encapsulation special Sign, therefore, by obtaining the corresponding relationship between media package feature and decoder plug-in unit;Analyze the mesh of media file to be decoded Media package feature is marked, the corresponding target decoder plug-in unit of the target medium package feature, Ke Yishi are determined from corresponding relationship Allot target corresponding to the media file to be decoded encapsulated using customized encoding and decoding standard and customized media formats Decoder plug-in unit is avoided the problem that the media file to be decoded can not be handled using standard decoder, decoder can be improved Adaptive decoding ability.
In addition, by after determining target decoder plug-in unit, using the target decoder plug-in unit to media to be decoded File carries out pre decoding, rather than is decoded to entire media file to be decoded;It can be to avoid the target decoder determined Plug-in unit is not suitable for decoding media file to be decoded, and waste decodes asking for resource consumed by entire media file to be decoded Topic;Only just entire media file to be decoded is carried out when target decoder plug-in unit is suitable for decoding media file to be decoded Decoding can save resource consumed by decoding media file to be decoded.
Fig. 3 is the block diagram for the media file decoding apparatus that the application one embodiment provides, and the present embodiment is answered with the device For being illustrated in media file decoding system shown in FIG. 1.The device includes at least following module: file solution Analyse module 310, Relation acquisition module 320, plug-in unit determining module 330, file pre decoding module 340 and file decoding module 350.
Document analysis module 310 obtains the media file to be decoded for parsing to media file to be decoded Target medium package feature;
Relation acquisition module 320, for obtaining the corresponding relationship between media package feature and decoder plug-in unit;
Plug-in unit determining module 330, for determining that the corresponding relationship is corresponding with the presence or absence of the target medium package feature Target decoder plug-in unit;
File pre decoding module 340, for making when determining the target decoder plug-in unit from the corresponding relationship Pre decoding is carried out to the media file to be decoded with the target decoder plug-in unit, obtains a frame media data;
File decoding module 350, for using the target decoder plug-in unit pair when the frame media data is normal The media file to be decoded is decoded, and obtains decoded media file.
Correlative detail refers to above method embodiment.
Optionally, the document analysis module 310, is used for:
The file-related information to media file to be decoded is obtained, the file-related information includes file header, text Among part, at least one of end of file and file suffixes name;
The keyword for obtaining designated position in the file-related information obtains the target medium package feature.
Optionally, the media file to be decoded is video file, and the frame media data is a frame image data;Institute State device further include: resolution ratio determining module and picture determining module.
Resolution ratio determining module, for determining whether the corresponding resolution ratio of described image data is normal;
Picture determining module, for determining whether the corresponding image quality of described image data is normal.
It should be understood that the media file decoding apparatus provided in above-described embodiment is when carrying out media file decoding, Only the example of the division of the above functional modules, it in practical application, can according to need and by above-mentioned function distribution It is completed by different functional modules, i.e., the internal structure of media file decoding apparatus is divided into different functional modules, with complete At all or part of function described above.In addition, media file decoding apparatus provided by the above embodiment and media file Coding/decoding method embodiment belongs to same design, and specific implementation process is detailed in embodiment of the method, and which is not described herein again.
Fig. 4 is the block diagram for the media file decoding apparatus that the application one embodiment provides, which can be comprising Fig. 1 Shown in media file decoding system device, such as: smart phone, tablet computer, laptop, desktop computer or service Device.Media file decoding apparatus is also possible to referred to as user equipment, portable terminal, laptop terminal, terminal console, control eventually End, conference terminal etc., the present embodiment is not construed as limiting this.The device includes at least processor 401 and memory 402.
Processor 401 may include one or more processing cores, such as: 4 core processors, 4 core processors etc..Place Reason device 401 can use DSP (Digital Signal Processing, Digital Signal Processing), FPGA (Field- Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, may be programmed Logic array) at least one of example, in hardware realize.Processor 401 also may include primary processor and coprocessor, master Processor is the processor for being handled data in the awake state, also referred to as CPU (Central Processing Unit, central processing unit);Coprocessor is the low power processor for being handled data in the standby state.? In some embodiments, processor 401 can be integrated with GPU (Graphics Processing Unit, image processor), GPU is used to be responsible for the rendering and drafting of content to be shown needed for display screen.In some embodiments, processor 401 can also be wrapped AI (Artificial Intelligence, artificial intelligence) processor is included, the AI processor is for handling related machine learning Calculating operation.
Memory 402 may include one or more computer readable storage mediums, which can To be non-transient.Memory 402 may also include high-speed random access memory and nonvolatile memory, such as one Or multiple disk storage equipments, flash memory device.In some embodiments, the non-transient computer in memory 402 can Storage medium is read for storing at least one instruction, at least one instruction performed by processor 401 for realizing this Shen Please in embodiment of the method provide media file coding/decoding method.
In some embodiments, media file decoding apparatus is also optional includes: peripheral device interface and at least one outside Peripheral equipment.It can be connected by bus or signal wire between processor 401, memory 402 and peripheral device interface.Each periphery Equipment can be connected by bus, signal wire or circuit board with peripheral device interface.Schematically, peripheral equipment includes but unlimited In: radio circuit, touch display screen, voicefrequency circuit and power supply etc..
Certainly, media file decoding apparatus can also include less or more component, and the present embodiment is not construed as limiting this.
Optionally, the application is also provided with a kind of computer readable storage medium, in the computer readable storage medium It is stored with program, described program is loaded by processor and executed the media file coding/decoding method to realize above method embodiment.
Optionally, the application is also provided with a kind of computer product, which includes computer-readable storage medium Matter is stored with program in the computer readable storage medium, and described program is loaded by processor and executed to realize above-mentioned side The media file coding/decoding method of method embodiment.
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (10)

1. a kind of media file coding/decoding method, which is characterized in that the described method includes:
Media file to be decoded is parsed, the target medium package feature of the media file to be decoded is obtained;
Obtain the corresponding relationship between media package feature and decoder plug-in unit;
Determine the corresponding relationship with the presence or absence of the corresponding target decoder plug-in unit of the target medium package feature;
When determining the target decoder plug-in unit from the corresponding relationship, using the target decoder plug-in unit to described Media file to be decoded carries out pre decoding, obtains a frame media data;
When the frame media data is normal, the media file to be decoded is solved using the target decoder plug-in unit Code, obtains decoded media file.
2. obtaining institute the method according to claim 1, wherein described parse media file to be decoded State the target medium package feature of media file to be decoded, comprising:
Obtain the file-related information to media file to be decoded, the file-related information includes file header, in file Between, at least one of end of file and file suffixes name;
The keyword for obtaining designated position in the file-related information obtains the target medium package feature.
3. the method according to claim 1, wherein the media file to be decoded be video file, described one Frame media data is a frame image data;The method also includes:
Determine whether the corresponding resolution ratio of described image data is normal;And/or
Determine whether the corresponding image quality of described image data is normal.
4. the method according to claim 1, wherein the method also includes:
In the frame media data exception, other decoder plug-in units are redefined from multiple decoder plug-in units;
It is executed again using other described decoder plug-in units and pre decoding is carried out to the media file to be decoded, obtain a frame media The step of data.
5. method according to any one of claims 1 to 4, which is characterized in that the method also includes:
When being not determined by the target decoder plug-in unit from the corresponding relationship, held using preset universal decoder plug-in unit It goes described the step of is carried out by pre decoding, obtains a frame media data for the media file to be decoded.
6. a kind of media file decoding apparatus, which is characterized in that described device includes:
Document analysis module obtains the target matchmaker of the media file to be decoded for parsing to media file to be decoded Body package feature;
Relation acquisition module, for obtaining the corresponding relationship between media package feature and decoder plug-in unit;
Plug-in unit determining module, for determining the corresponding relationship with the presence or absence of the corresponding target solution of the target medium package feature Code device plug-in unit;
File pre decoding module, for when determining the target decoder plug-in unit from the corresponding relationship, using described Target decoder plug-in unit carries out pre decoding to the media file to be decoded, obtains a frame media data;
File decoding module, for when the frame media data is normal, using the target decoder plug-in unit to it is described to Decoding media file is decoded, and obtains decoded media file.
7. the apparatus according to claim 1, which is characterized in that the document analysis module is used for:
Obtain the file-related information to media file to be decoded, the file-related information includes file header, in file Between, at least one of end of file and file suffixes name;
The keyword for obtaining designated position in the file-related information obtains the target medium package feature.
8. device according to claim 6, which is characterized in that the media file to be decoded be video file, described one Frame media data is a frame image data;Described device further include:
Resolution ratio determining module, for determining whether the corresponding resolution ratio of described image data is normal;
Picture determining module, for determining whether the corresponding image quality of described image data is normal.
9. a kind of media file decoding apparatus, which is characterized in that described device includes processor and memory;In the memory It is stored with program, described program is loaded by the processor and executed to realize such as media described in any one of claim 1 to 5 File decoding method.
10. a kind of computer readable storage medium, which is characterized in that be stored with program, described program quilt in the storage medium For realizing media file coding/decoding method such as described in any one of claim 1 to 5 when processor executes.
CN201910188865.8A 2019-03-13 2019-03-13 Media file coding/decoding method, device and storage medium Pending CN109889894A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910188865.8A CN109889894A (en) 2019-03-13 2019-03-13 Media file coding/decoding method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910188865.8A CN109889894A (en) 2019-03-13 2019-03-13 Media file coding/decoding method, device and storage medium

Publications (1)

Publication Number Publication Date
CN109889894A true CN109889894A (en) 2019-06-14

Family

ID=66932071

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910188865.8A Pending CN109889894A (en) 2019-03-13 2019-03-13 Media file coding/decoding method, device and storage medium

Country Status (1)

Country Link
CN (1) CN109889894A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110650347A (en) * 2019-10-24 2020-01-03 腾讯云计算(北京)有限责任公司 Multimedia data processing method and device
CN111757120A (en) * 2020-06-22 2020-10-09 杭州海康威视数字技术股份有限公司 Data decoding method, electronic equipment and machine-readable storage medium
WO2020248909A1 (en) * 2019-06-12 2020-12-17 腾讯科技(深圳)有限公司 Video decoding method and apparatus, computer device, and storage medium
CN112702606A (en) * 2020-12-21 2021-04-23 深圳市广湖科技有限公司 Multi-format stream media intelligent conversion coder-decoder and use method thereof
CN113691816A (en) * 2021-08-16 2021-11-23 维沃移动通信(杭州)有限公司 Image display method, image display device, display equipment and storage medium
CN114501149A (en) * 2022-02-10 2022-05-13 天脉拓道(北京)科技有限公司 Method, device and equipment for decoding audio/video file and readable medium
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
US20080016365A1 (en) * 1996-01-17 2008-01-17 Moskowitz Scott A Data protection method and device
CN102169708A (en) * 2011-03-03 2011-08-31 深圳市融创天下科技发展有限公司 Audio and video play system, method, mobile terminal and player
CN102404556A (en) * 2011-11-30 2012-04-04 公安部第一研究所 Universal play system and method for surveillance tape files
CN104581171A (en) * 2013-10-15 2015-04-29 腾讯科技(深圳)有限公司 Method and device for playing videos on browser as well as mobile terminal
CN104683810A (en) * 2015-02-28 2015-06-03 武汉烽火众智数字技术有限责任公司 Dynamic decoding method and device based on characteristic analysis

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080016365A1 (en) * 1996-01-17 2008-01-17 Moskowitz Scott A Data protection method and device
CN102169708A (en) * 2011-03-03 2011-08-31 深圳市融创天下科技发展有限公司 Audio and video play system, method, mobile terminal and player
CN102404556A (en) * 2011-11-30 2012-04-04 公安部第一研究所 Universal play system and method for surveillance tape files
CN104581171A (en) * 2013-10-15 2015-04-29 腾讯科技(深圳)有限公司 Method and device for playing videos on browser as well as mobile terminal
CN104683810A (en) * 2015-02-28 2015-06-03 武汉烽火众智数字技术有限责任公司 Dynamic decoding method and device based on characteristic analysis

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020248909A1 (en) * 2019-06-12 2020-12-17 腾讯科技(深圳)有限公司 Video decoding method and apparatus, computer device, and storage medium
US11930197B2 (en) 2019-06-12 2024-03-12 Tencent Technology (Shenzhen) Company Limited Video decoding method and apparatus, computer device, and storage medium
CN110650347A (en) * 2019-10-24 2020-01-03 腾讯云计算(北京)有限责任公司 Multimedia data processing method and device
CN110650347B (en) * 2019-10-24 2022-07-01 腾讯云计算(北京)有限责任公司 Multimedia data processing method and device
CN111757120A (en) * 2020-06-22 2020-10-09 杭州海康威视数字技术股份有限公司 Data decoding method, electronic equipment and machine-readable storage medium
CN112702606A (en) * 2020-12-21 2021-04-23 深圳市广湖科技有限公司 Multi-format stream media intelligent conversion coder-decoder and use method thereof
CN113691816A (en) * 2021-08-16 2021-11-23 维沃移动通信(杭州)有限公司 Image display method, image display device, display equipment and storage medium
CN114501149A (en) * 2022-02-10 2022-05-13 天脉拓道(北京)科技有限公司 Method, device and equipment for decoding audio/video file and readable medium
CN115278258A (en) * 2022-07-11 2022-11-01 海南视联通信技术有限公司 Audio and video data processing method and device, terminal and readable storage medium

Similar Documents

Publication Publication Date Title
CN109889894A (en) Media file coding/decoding method, device and storage medium
CN104917764B (en) A kind of multimedia service method for pushing and system based on Quick Response Code
CN106131550B (en) Method and device for playing multimedia file
CN106803989B (en) Multi-screen interaction method and device and terminal equipment
CN104837052A (en) Playing method of multimedia data and device
CN109257646A (en) Method for processing video frequency, device, electronic equipment and computer-readable medium
US10476928B2 (en) Network video playback method and apparatus
US20200021772A1 (en) Multimedia recording data obtaining method and terminal device
CN112261377B (en) Web edition monitoring video playing method, electronic equipment and storage medium
CN113873255B (en) Video data transmission method, video data decoding method and related devices
CN110362547A (en) Coding, parsing, storage method and the device of journal file
EP3334165B1 (en) Video stream storing and video stream reading method and apparatus therefor
WO2024061005A1 (en) Read processing method and apparatus for audio and video buffer
CN111327951A (en) Multimedia data playing method, device, system and storage medium
CN112650804A (en) Big data access method, device, system and storage medium
CN108093258A (en) Coding/decoding method, computer installation and the computer readable storage medium of bit stream data
CN104750786A (en) Data display method and device
CN113453075A (en) Method and device for decoding multi-channel video, electronic equipment and storage medium
US20140301655A1 (en) Image decoding methods and image decoding devices
CN111953696A (en) Service data interaction method, system, device and medium
CN111459819A (en) Software testing method and device, electronic equipment and computer readable medium
CN111400630A (en) Resource preloading method and related equipment
CN106534137B (en) Media stream transmission method and device
CN109379591A (en) Picture code-transferring method, electronic device and computer readable storage medium
CN110321274B (en) Application program testing method and device, computing equipment and storage medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190614

RJ01 Rejection of invention patent application after publication