CN102117271B - Method and terminal for playing falsely-encapsulated audio/video files - Google Patents
Method and terminal for playing falsely-encapsulated audio/video files Download PDFInfo
- Publication number
- CN102117271B CN102117271B CN 200910113693 CN200910113693A CN102117271B CN 102117271 B CN102117271 B CN 102117271B CN 200910113693 CN200910113693 CN 200910113693 CN 200910113693 A CN200910113693 A CN 200910113693A CN 102117271 B CN102117271 B CN 102117271B
- Authority
- CN
- China
- Prior art keywords
- audio
- video document
- information
- video
- standard format
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 26
- 238000005538 encapsulation Methods 0.000 claims description 59
- 230000008878 coupling Effects 0.000 claims description 9
- 238000010168 coupling process Methods 0.000 claims description 9
- 238000005859 coupling reaction Methods 0.000 claims description 9
- 239000000284 extract Substances 0.000 claims description 9
- 238000000605 extraction Methods 0.000 claims description 6
- 230000002452 interceptive effect Effects 0.000 abstract 1
- 238000006243 chemical reaction Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000000295 complement effect Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000007789 sealing Methods 0.000 description 1
Images
Abstract
The invention provides a method and device for playing falsely-encapsulated audio/video files. The method comprises the steps of: comparing an audio/video file to be played with information characteristic point values with standard format corresponding to the audio/video file to be played one by one; resolving information when matched characteristic point values exist to obtain resolving information, and storing the resolving information in a temporary database; when the resolving information can correctly reflect the information of the whole falsely-encapsulated audio/video file, stopping the comparison of the information characteristic point values, and transmitting the resolving information stored in the temporary database to a decoding module of a player for playing. Based on an LINUX operation system, the method and the terminal can normally play the falsely-encapsulated audio/video files without interfering the work of a standard format resolver.
Description
Technical field
The present invention relates to a kind of field of computer technology, particularly a kind of based on LINUX(operating system) method and the terminal of system plays encapsulation dislocation audio-video document.
Background technology
MKV is a kind of media file of Matroska, Matroska is a kind of new multimedia encapsulation format, and it can be encapsulated into the caption stream of the audio frequency of the video of multiple different coding and 16 above different-formats and different language in the middle of a Matroska Media file.
MKV is not a kind of compressed format, and MKV is a kind of Novel multimedia encapsulation format, claims multimedia container (Multimedia Container) yet.It is different from the video code models such as DivX, XviD, also is different from the audio coding forms such as MP3, Ogg.MKV just provides " combination " and " encapsulation " form of shell for these sounds, video.In other words, MKV is exactly a kind of Container Format, and the forms such as common AVI, VOB, MPEG, RM also all belong to this type in fact.But they otherwise structure is outmoded, or open not, this has just facilitated the birth of this class Novel multimedia encapsulation format of MKV.
It is video file that the Matroska media have defined the file of three types: MKV, and its inside may also include audio frequency and captions; MKA is single audio file, but many and polytype track may be arranged; MKS is subtitle file.These three kinds of files are the most common with MKV.
The characteristics of MKV maximum are exactly to hold video, audio frequency and the caption stream of number of different types coding, even unusual RealMedia(player of sealing) and QuickTime(player) this class Streaming Media also included into by it, can be described as once the overturning greatly of traditional media form, almost become an omnipotent media container.
Owing to there being at present a large amount of MKV encapsulation software packagings, and each software is not identical because of the company of writing, individual's technical merit, cause occurring a large amount of encapsulation dislocation MKV video files, its broadcast information of this file is complete, but on data structure, do not carry out the data combination according to the MKV standard format, if resolve according to the MKV standard format, can not obtain correct information, so just make player can't be correctly decoded broadcast.
Particularly based under the linux operating system environment, audio/video information encapsulation dislocation in the audio-video document factor data often can cause the situation appearance that can't play.
Therefore, prior art has yet to be improved and developed.
Summary of the invention
In view of above-mentioned the deficiencies in the prior art part, the object of the present invention is to provide a kind of method and terminal of playing encapsulation dislocation audio-video document, thereby can correctly resolve encapsulation dislocation audio-video document and obtain broadcast information, making player can play such file.
In order to achieve the above object, the present invention has taked following technical scheme:
A kind of method based on LINUX system plays encapsulation dislocation audio-video document wherein, comprises step:
The audio-video document that need are play is compared one by one with the information characteristics point value of its corresponding standard format;
Carry out information analysis when having the feature point value of coupling, obtain resolving information, and described resolving information is stored in volatile data base;
When described resolving information correctly reflects the information of whole encapsulation dislocation audio-video document, stop the comparison of described information characteristics point value, send to the described resolving information that leaves in volatile data base the decoder module of player to play;
Wherein, described information characteristics point value is information element or the point with described encapsulation dislocation audio-video document feature.
Described method based on LINUX system plays encapsulation dislocation video file, wherein, further comprise: set up the audio-video document encapsulation format comparison database of a corresponding standard format, be used for format character sign and the parameter extraction agreement of storage standards form audio-video document.
Described method based on LINUX system plays encapsulation dislocation audio-video document, wherein, further comprise with the comparison process of described information characteristics point value: open described audio-video document according to the mode of document flow, can judgement play; Extract and the corresponding standard format of described audio-video document from described comparison database in the time can not playing, described audio-video document and the corresponding informance feature point value that is extracted in standard format are compared one by one.
Described method based on LINUX system plays encapsulation dislocation audio-video document, wherein, the process that can described judgement play further comprises: use corresponding standard format that described audio-video document is resolved, can judgement play described audio-video document; In the time can not playing, obtain parses error message by the standard format resolver.
Described method based on LINUX system plays encapsulation dislocation audio-video document, wherein, described audio-video document comprises MKV video file or TS stream character type identification document.
A kind of terminal wherein, comprising:
Comparing module, the audio-video document that is used for playing is compared one by one with the information characteristics point value of its corresponding standard format;
Parsing module is used for the comparison according to described comparing module, carries out information analysis when having the feature point value of coupling, obtains resolving information, and described resolving information is stored in volatile data base;
Information sending module, be used for when described resolving information correctly reflects the information of whole encapsulation dislocation audio-video document, stop the contrast of described audio-video document, and send to the described resolving information that leaves in volatile data base the decoder module of player to play;
The comparison database is for signature identification and the parameter extraction agreement of storage file form;
Wherein, described information characteristics point value is information element or the point with described encapsulation dislocation audio-video document feature.
Described terminal wherein, also comprises:
Data read module is used for obtaining encapsulation dislocation audio-video document, and, in the time can not playing described audio-video document, extract and the corresponding standard format of described audio-video document from described comparison database.
The invention provides a kind of method and terminal based on LINUX system plays encapsulation dislocation audio-video document, compare one by one with the information characteristics point value of its corresponding standard format by the audio-video document that will encapsulate dislocation, and carry out information analysis when finding the feature point value of coupling, obtain resolving information, described resolving information is stored in volatile data base; Then when can enough reflecting the audio-video document of encapsulation dislocation, plays resolving information this resolving information.Under the LINUX operating system environment, can correctly play the audio-video document of encapsulation dislocation, and work that can interference standard format analysis device.
Description of drawings
Fig. 1 is the method flow diagram based on LINUX system plays encapsulation dislocation audio-video document that the embodiment of the present invention provides.
The terminal structure schematic diagram that Fig. 2 provides for the embodiment of the present invention.
The encapsulating structure figure of the MKV video file that Fig. 3 a, Fig. 3 b provide for the embodiment of the present invention.
Embodiment
The invention provides a kind of method and terminal based on LINUX system plays encapsulation dislocation audio-video document, be used for playing the audio-video document of encapsulation dislocation based on LINUX operating system in terminals such as computing machines, be specially: the audio-video document that will encapsulate dislocation is compared one by one with the information characteristics point value of its corresponding standard format; If find the feature point value of coupling, carry out information analysis, obtain resolving information, described resolving information is stored in volatile data base; When described resolving information correctly reflects the information of whole encapsulation dislocation audio-video document, stop the comparison of described information characteristics point value, send to the described resolving information that leaves in volatile data base the decoder module of player to play.Under the LINUX operating system environment, can correctly play encapsulation dislocation audio-video document, and work that can interference standard format analysis device.For making purpose of the present invention, technical scheme and advantage clearer, clear and definite, developing simultaneously referring to accompanying drawing, the present invention is described in more detail for embodiment.
As shown in Figure 1, the method based on LINUX system plays encapsulation dislocation audio-video document that provides of the embodiment of the present invention comprises step:
100, set up the audio-video document encapsulation format comparison database of a corresponding standard format, be used for format character sign and the parameter extraction agreement of storage standards form audio-video document.
101, open described audio-video document according to the mode of document flow, judge whether and to play, namely be specially: use the standard format corresponding with described audio-video document that described audio-video document is resolved, judge whether to play described audio-video document, if can not, determine it is encapsulation dislocation audio-video document, the standard format resolver obtains parses error message, carry out step 102.
102, extract and the corresponding standard format of described audio-video document from described comparison database in the time can not playing, described audio-video document and the corresponding informance feature point value that is extracted in standard format are compared one by one;
This information characteristics point is information element or the point with this encapsulation dislocation audio-video document feature, and finds out its identical or be complementary information element or point.
If 103 find the feature point value of coupling, carry out information analysis, obtain resolving information, described resolving information is stored in volatile data base;
Resolve this feature point value, the audio-video document information that obtains resolving.
104, when described resolving information correctly reflects the information of whole encapsulation dislocation audio-video document, stop the comparison of described information characteristics point value, send to the described resolving information that leaves in volatile data base the decoder module of player to play.
The embodiment of the present invention also provides a kind of terminal, as shown in Figure 2, comprising:
Further in embodiment, described terminal also comprises:
Wherein, audio-video document described above comprises that the file of the character type signs such as MKV video file or other TS stream is all applicable.
The present invention is described in more detail below by a concrete Application Example:
As shown in Fig. 3 a and Fig. 3 b, the normal MKV video file 301 of MKV standard format, normal MKV video file 301 is divided into two parts: the data file starting position is that normal MKV video file head part 302, back are normal MKV video file data division 303; And encapsulation dislocation MKV video file 304 is divided into three parts: encapsulation dislocation MKV video file data division 1, encapsulation dislocation MKV video file head 306, encapsulation dislocation MKV video file data division 2 307.
For above-mentioned wrongly installed position MKV video file 304, this encapsulation dislocation MKV video file 304 playing process comprise: this MKV data read module is sent the MKV video file into MKV standard format parsing module, when the MKV video file is normal MKV video file 301, MKV standard format parsing module can correctly be identified this normal MKV video file 301, and obtain relevant audio/video information, transmit audio/video information and data and carry out the file broadcast to MKV data decode playing module.
When the MKV video file misplaces MKV video file 304 for encapsulation, MKV standard format parsing module can not correctly be identified this document, start described comparing module 201, extract and the corresponding standard format of this MKV video file from described comparison database, described encapsulation dislocation MKV video file 304 is compared one by one with the various MKV information characteristics point values that the standard format that extracts presets.Described encapsulation dislocation MKV video file 304 is carried out information analysis, obtain resolving information, described resolving information is stored in volatile data base.
When finding that described resolving information can correctly reflect the various information of whole encapsulation dislocation MKV video file, stop the contrast of described MKV video file, send to the described resolving information that leaves in volatile data base the decoder module of player to play.
In sum, the invention provides a kind of method and terminal based on LINUX system plays encapsulation dislocation audio-video document, its audio-video document that will play is compared one by one with the information characteristics point value of its corresponding standard format; Carry out information analysis when having the feature point value of coupling, obtain resolving information, and described resolving information is stored in volatile data base; When described resolving information correctly reflects the information of whole encapsulation dislocation audio-video document, stop the comparison of described information characteristics point value, send to the described resolving information that leaves in volatile data base the decoder module of player to play.Under the LINUX operating system environment, can correctly play the audio-video document of encapsulation dislocation, and work that can interference standard format analysis device.
Should be understood that, for those of ordinary skills, can be improved according to the above description or conversion, and all these improve and conversion all should belong to the protection domain of claims of the present invention.
Claims (1)
1. the method based on LINUX system plays encapsulation dislocation audio-video document, is characterized in that, comprises step:
Set up the audio-video document encapsulation format comparison database of a corresponding standard format, be used for format character sign and the parameter extraction agreement of storage standards form audio-video document;
Obtain encapsulation dislocation audio-video document; And,
In the time can not playing described audio-video document, extract and the corresponding standard format of described audio-video document from described comparison database;
The audio-video document that need are play is compared one by one with the information characteristics point value of its corresponding standard format;
Carry out information analysis when having the feature point value of coupling, obtain resolving information, and described resolving information is stored in volatile data base;
When described resolving information correctly reflects the information of whole encapsulation dislocation audio-video document, stop the comparison of described information characteristics point value, send to the described resolving information that leaves in volatile data base the decoder module of player to play;
Wherein, described information characteristics point is for having information element or the point of described encapsulation dislocation audio-video document feature.
2, encapsulate as claimed in claim 1 the method for dislocation audio-video document based on the LINUX system plays, it is characterized in that, further comprise with the comparison process of described information characteristics point value: open described audio-video document according to the mode of document flow, can judgement play; Extract and the corresponding standard format of described audio-video document from described comparison database in the time can not playing, described audio-video document and the corresponding informance feature point value that is extracted in standard format are compared one by one.
3, encapsulate as claimed in claim 2 the method for dislocation audio-video document based on the LINUX system plays, it is characterized in that, the process that can described judgement play further comprises: use corresponding standard format that described audio-video document is resolved, can judgement play described audio-video document; In the time can not playing, obtain parses error message by the standard format resolver.
4, based on the method for LINUX system plays encapsulation dislocation audio-video document, it is characterized in that as described in as arbitrary in claims 1 to 3, described audio-video document comprises MKV video file or TS stream character type identification document.
5, a kind of device based on LINUX system plays encapsulation dislocation audio-video document, is characterized in that, comprising:
Comparison Database module, for the audio-video document encapsulation format comparison database of setting up a corresponding standard format, described comparison database is used for format character sign and the parameter extraction agreement of storage standards form audio-video document;
Data read module is used for obtaining encapsulation dislocation audio-video document, and, in the time can not playing described audio-video document, extract and the corresponding standard format of described audio-video document from described comparison database;
Comparing module, the audio-video document that is used for playing is compared one by one with the information characteristics point value of its corresponding standard format;
Parsing module is used for the comparison according to described comparing module, carries out information analysis when having the feature point value of coupling, obtains resolving information, and described resolving information is stored in volatile data base;
Information sending module, be used for when described resolving information correctly reflects the information of whole encapsulation dislocation audio-video document, stop the contrast of described audio-video document, and send to the described resolving information that leaves in volatile data base the decoder module of player to play;
Wherein, described information characteristics point is for having information element or the point of described encapsulation dislocation audio-video document feature.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200910113693 CN102117271B (en) | 2009-12-31 | 2009-12-31 | Method and terminal for playing falsely-encapsulated audio/video files |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200910113693 CN102117271B (en) | 2009-12-31 | 2009-12-31 | Method and terminal for playing falsely-encapsulated audio/video files |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102117271A CN102117271A (en) | 2011-07-06 |
CN102117271B true CN102117271B (en) | 2013-06-19 |
Family
ID=44216045
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200910113693 Expired - Fee Related CN102117271B (en) | 2009-12-31 | 2009-12-31 | Method and terminal for playing falsely-encapsulated audio/video files |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102117271B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103106251B (en) * | 2013-01-14 | 2016-08-03 | 冠捷显示科技(厦门)有限公司 | A kind of system filtering the media file that display device can not be play and filter method |
CN105740292B (en) * | 2014-12-12 | 2019-06-28 | 深圳市中兴微电子技术有限公司 | A kind of coding/decoding method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1190292A (en) * | 1996-12-27 | 1998-08-12 | 大宇电子株式会社 | Error concealment method and apparatus |
CN1798097A (en) * | 2004-12-24 | 2006-07-05 | 腾讯科技(深圳)有限公司 | Method for buffering data in stream media |
CN101188772A (en) * | 2006-11-17 | 2008-05-28 | 中兴通讯股份有限公司 | A method for hiding time domain error in video decoding |
-
2009
- 2009-12-31 CN CN 200910113693 patent/CN102117271B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1190292A (en) * | 1996-12-27 | 1998-08-12 | 大宇电子株式会社 | Error concealment method and apparatus |
CN1798097A (en) * | 2004-12-24 | 2006-07-05 | 腾讯科技(深圳)有限公司 | Method for buffering data in stream media |
CN101188772A (en) * | 2006-11-17 | 2008-05-28 | 中兴通讯股份有限公司 | A method for hiding time domain error in video decoding |
Also Published As
Publication number | Publication date |
---|---|
CN102117271A (en) | 2011-07-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104094540B (en) | Service uses reported data transmission | |
CN102110458B (en) | Playing terminal as well as method and device for playing an audio/video file | |
CN101637029B (en) | Transcoding of media content | |
CN104429091A (en) | Methods and apparatus for identifying media | |
CN102291580B (en) | Video transmission method based on Android system | |
KR101802273B1 (en) | Apparatus and method for transmitting/receiving contents cosisting of a pluarlity of streams | |
CN104661079B (en) | A kind of multimedia form test method and device | |
CN103165151B (en) | Method for broadcasting multimedia file and device | |
CN109478412B (en) | Information processing apparatus, information processing method, and program | |
WO2021031590A1 (en) | Audio and video pushing method, mobile terminal and display terminal | |
CN102118539A (en) | Multimedia playing terminal as well as playing method and device for dragging multimedia files | |
CN102117271B (en) | Method and terminal for playing falsely-encapsulated audio/video files | |
CN110740391A (en) | method for repairing MP4 damaged files | |
CN101841777B (en) | Method and system for controlling service of mobile terminal | |
CN101572778B (en) | Method and system for broadcasting programs | |
CN103269450B (en) | A kind of multimedia system towards Android intelligent television | |
CN102857833B (en) | Audio decoding system and method adapted to android stagefright multimedia framework | |
CN101802803B (en) | Method and apparatus for generating and reproducing media object-based metadata | |
CN113660442B (en) | Video restoration method and device, electronic equipment and readable medium | |
CN102333242A (en) | Device and method for matching streaming media language information | |
CN101803378A (en) | Method and apparatus for generating and accessing metadata in media file format | |
CN104683810B (en) | A kind of dynamic decoder method and apparatus based on signature analysis | |
Luck et al. | An integrated approach to recovering deleted files from NAND flash data | |
US9548825B1 (en) | Audio event triggers for broadcast | |
US20080235401A1 (en) | Method of storing media data delivered through a network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20130619 |