CN102932677B - Device and method for detecting pack format of media file - Google Patents

Device and method for detecting pack format of media file Download PDF

Info

Publication number
CN102932677B
CN102932677B CN201210291916.8A CN201210291916A CN102932677B CN 102932677 B CN102932677 B CN 102932677B CN 201210291916 A CN201210291916 A CN 201210291916A CN 102932677 B CN102932677 B CN 102932677B
Authority
CN
China
Prior art keywords
unit
mxf
information
detection
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.)
Active
Application number
CN201210291916.8A
Other languages
Chinese (zh)
Other versions
CN102932677A (en
Inventor
丁文华
姚威
宋宜纯
许钢鸣
商同
禇震宇
张二丽
黄振川
杨慕星
李扬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Central TV Station
Beijing Dayang Technology Development Inc
Original Assignee
China Central TV Station
Beijing Dayang Technology Development Inc
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 China Central TV Station, Beijing Dayang Technology Development Inc filed Critical China Central TV Station
Priority to CN201210291916.8A priority Critical patent/CN102932677B/en
Publication of CN102932677A publication Critical patent/CN102932677A/en
Application granted granted Critical
Publication of CN102932677B publication Critical patent/CN102932677B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Management Or Editing Of Information On Record Carriers (AREA)

Abstract

The invention relates to a device and method for detecting a pack format of a media file. The method comprises the following steps of: acquiring the media file; decoding the media file; selecting detection items; carrying out KLV Layer detection; reading MXF (Material Exchange Format) information; carrying out Partition Pack detection; carrying out Header Metadata detection; carrying out Essence detection; and outputting the detected information. According to the method and device provided by the invention, in the status that the media file is not completely parsed, the media file is selectively and partially parsed and detected, and then, the media file is detected quickly and simply, so that the resources are saved and the efficiency is increased.

Description

A kind of media file encapsulation format checkout gear and method
Technical field
The present invention relates to a kind of media file encapsulation format checkout gear and method, is the apparatus and method of a kind of computer network transmission, is a kind of checkout gear and method for media file that network is transmitted.
Background technology
For most of TV stations or other video-audio program broadcasting agency, before program broadcasts, to program, carrying out skill careful is to guarantee that program broadcasts the important link of checking on of safety.Traditional skill is only examined video and audio content (being the parameters such as Hei Chang, quiet frame, quiet, the blue end, peak value exceed standard) is detected, and along with record and broadcast system is tending towards omnidistance documentation gradually, " compression " and " file " becomes two keywords in digital broadcast television making and broadcast process.The program file that radio and television more and more manyly obtain having compressed from Digital Media or data link, only detects and cannot meet the demand of business development for program file high security, high reliability of broadcasting video and audio content.
In the record and broadcast environment of documentation, networking, not only to detect video and audio content and video and audio parameter, also will detect the compliance of file encapsulation.Video and audio file after compression, naked eyes cannot learn that code check is much, whether GOP length etc. meets standard.In order to address this problem, improve program and broadcast the standby reliability of broadcasting preparation of front system, guarantee final high safe broadcast, except traditional file content skill is examined, for manufacturing-broadcasting system, also must carry out complete detection to file encapsulating structure, avoid causing broadcast video server to be decoded unsuccessfully causing broadcast accident because program file encapsulation format does not conform to standard.
Summary of the invention
For solving the problem of prior art, the present invention proposes a kind of media file encapsulation format checkout gear and method.Described method and apparatus detects for the MXF media file of exporting in the each link manufacturing-broadcasting system of field of broadcast televisions, to check MXF file whether to meet related specifications, to guarantee program exchange and normal use, and guarantees the security reliability that program broadcasts.
The object of the present invention is achieved like this: a kind of media file encapsulation format checkout gear, it is characterized in that, comprise: Detection task acquiring unit, described Detection task acquiring unit is connected with File Open unit, described File Open unit is connected with dispensing unit and information output unit, described dispensing unit is connected with KLV Layer detecting unit and MXF DCA document content architecture reading unit, and described KLV Layer detecting unit is connected with information output unit; Described MXF DCA document content architecture reading unit is connected with Partition Pack detecting unit, Header Metadata detecting unit, Essence detecting unit, and described Partition Pack detecting unit, Header Metadata detecting unit, Essence detecting unit are connected with information output unit; Described Detection task acquiring unit obtains Detection task information from the database of technological audit system, and described Detection task information comprises the filename of MXF that needs detect and store path, detection degree of depth configuration information; The appointment MXF media file that described File Open unit reads according to the filename of the MXF in Detection task information and store path is decoded; The detection degree of depth configuration information that described dispensing unit reads according to Detection task acquiring unit, arranges the various parameters that encapsulation format detects, and comprises the project of detection and the degree of depth of detection; Described KLV Layer detecting unit is resolved the KLV structure in MXF file; Described MXF DCA document content architecture reading unit, in conjunction with the logical construction of MXF file, reads each KLV; Described information output unit records the information that all detecting units detect, and these are detected to communication to technological audit service end; Described Partition Pack detecting unit, Header Metadata detecting unit, Essence detecting unit are the unit that Partition Pack, Header Metadata, Essence are detected.
A detection method of using the media file encapsulation format of said apparatus, step is as follows:
Obtain the step of Detection task: for described Detection task acquiring unit, at database, obtain Detection task information, Detection task information comprises the filename of MXF that needs detect and store path, detection degree of depth configuration information;
The step of media file decoding: open by decoder the MXF file that Detection task information is specified for described File Open unit, and in File Open process, the physical structure of described MXF file is read and resolved, if open failure, enter " step of detection information output ", if opened successfully, enter next step;
Select the step of test item: for described dispensing unit, each test item is set and detects the degree of depth;
Carry out the step of KLV Layer detection: for described KLV Layer detecting unit according to Key, Length, Value structure, resolve each KLV structure in MXF file and detect, if detected unsuccessfully, enter " step of detection information output ", if detected successfully, enter next step;
Read the step of MXF information: for described MXF DCA document content architecture reading unit, from described MXF file, read MXF media file information and save backup;
Three steps are carried out simultaneously below,
The step that Partition Pack detects: the detection of the Item property value of media file information MXF DCA document content architecture reading unit being read for described Partition Pack detecting unit, and the detection to Random Index Pack, record testing result;
The step that Header Metadata detects: the structural metadata of media file information MXF DCA document content architecture reading unit being read for described Header Metadata detecting unit detects, and records testing result;
The step that Essence detects: the EssneceContainer of media file information MXF DCA document content architecture reading unit being read for described Essence detecting unit and the matching relationship of the matching relationship of Metadata, IndexTable and EssenceContainer, analyzing and testing, records testing result;
The step of detection information output: the testing result recording for described information output unit collection File Open unit, KLV Layer detecting unit, Partition Pack detecting unit, Header Metadata detecting unit, Essence detecting unit, according to separating deepness, selectively output detections result.
The beneficial effect that the present invention produces is: method and apparatus of the present invention is not exclusively being resolved under the state of media file, selectable part analysis media file also detects it, the process of its detection is arranged according to critical order, as: carry out KLV structure elucidation, Patition Pack validation checking, Header Metadata parsing and Essence and resolve, check rapidly MXF file whether to meet related specifications, once go wrong, no longer continue to detect.Such sequence can be used the fastest speed, and whether the encapsulation format that the most succinct mode detects a media file meets the requirements, and has saved resource and has also improved efficiency.Described method, for broadcast system provides the file that meets MXF standard completely, has covered the actual user demand of business before broadcasting, and has improved the safety and reliability of whole broadcast system.Described device, can be by the configuration in Detection task information, convenient, flexible On/Off encapsulation format detection, and can obtain intuitively executing state and the implementation progress that encapsulation format detects.Method and apparatus of the present invention makes the reliability of broadcasting front system file detection obtain General Promotion, thereby significantly promotes the fail safe of broadcast system.By file structure encapsulating structure close rule detection, having avoided can not be by the video server broadcast accident causing of decode because of file, has alleviated broadcast personnel's emergency operation frequency and operating pressure.For whole TV station, broadcast business, when enriching the careful function of skill, the fail safe that has improved broadcast system entirety.
Accompanying drawing explanation
Below in conjunction with drawings and Examples, the invention will be further described.
Fig. 1 is the structural representation of device described in inventive embodiments one;
Fig. 2 is the flow chart of method described in inventive embodiments two.
Embodiment
Embodiment mono-:
The present embodiment is a kind of media file encapsulation format checkout gear, and structure as shown in Figure 1.The present embodiment comprises: Detection task acquiring unit, described Detection task acquiring unit is connected with File Open unit, described File Open unit is connected with dispensing unit, described dispensing unit is connected with KLV Layer detecting unit and MXF DCA document content architecture reading unit, and described KLV Layer detecting unit is connected with information output unit; Described MXF DCA document content architecture reading unit is connected with Partition Pack detecting unit, Header Metadata detecting unit, Essence detecting unit, and described Partition Pack detecting unit, Header Metadata detecting unit, Essence detecting unit are connected with information output unit.
The present embodiment is a part for station synchronization quality technology auditing system.Whether the encapsulation format that technological audit system is not only examined media file meets relevant specification requirement, also detects the other technologies performance of media file, as: coded format, quality of image etc.The detection of media file encapsulation format has two kinds of modes: to the detection of file header and the detection of part in full.The detection of file header is by the parsing to the essential part of file, obtains some essential informations of this video and audio file; And the detection of part is actual in full, be that the encapsulating structure of file is detected, although do not need to decode, need to whole file read and be resolved.
The detection of the media file encapsulation format described in the present embodiment is mainly for MXF file, described MXF(Material eXchange Format) file is a kind of professional audio-video frequency media DIF.MXF has only stipulated the storage enclosure form of file, is a kind of file format irrelevant with concrete video encoding mode.Be mainly used in the links such as the making of video display industry media, editor, distribution and storage.It is mainly to carry out for the encapsulating structure of MXF file that MXF file encapsulation format detects, need to whole file be read and be resolved, between integrality to metadata wherein, data, the correctness of adduction relationship detects, but video/audio is not wherein decoded, therefore spent time cost is only relevant to file size.
Technological audit system is the network system of a service end and multiple clients, can carry out the technological audit of multiple media files simultaneously, for an examination task, supports multithreading examination.In the process of technological audit, client and service end keep continual message feedback, and the information of encapsulation format detected state, progress is fed back to service end, and this message feedback is two-way, and support task retry for the task of examination error condition.
The major part of the device described in the present embodiment is arranged on the client of technological audit system, and described device contacts by Detection task acquiring unit and information output unit and service end, exchange message.
Detection task acquiring unit described in the present embodiment is the Detection task information of obtaining from the database of technological audit system, described database can be all kinds, comprise Oracle, DB2, SQL 2005 etc., Detection task information comprises filename and store path, the detection degree of depth configuration information etc. of the MXF of needs detection.Detect the various demands that degree of depth configuration information mainly comprises examination, the project for example detecting and the degree of depth of detection etc.
File Open unit described in the present embodiment is actual in a file decoder, the appointment MXF media file that file decoder reads according to the filename of the MXF in Detection task information and store path is decoded, the decoding is not here completely by media file complete decoding, the partial decoding of h only needs being detected, to economize on resources.If read or decode failure, illustrate that this media file has problem, needn't proceed to detect, directly by information output unit, export the vicious information of this media file.
The detection degree of depth configuration information that dispensing unit described in the present embodiment reads according to Detection task acquiring unit, arranges the various parameters that encapsulation format detects, for example: the project of detection and the degree of depth of detection.Described test item can be whole test items, comprising: KLV Layer, Partition Pack, Header Metadata, Essence etc.Also can selectively carry out the detection of some project in KLV Layer, Partition Pack, Header Metadata, Essence detection.Described dispensing unit can be by specifying the resolved detection degree of depth, selectively detects and information output for example a resolved detection KLV structure or only resolved detection metadata.It is the only detection for file structure that KLV Layer detects; Header Metadata detects, PartitionPack detects and belongs to metadata detection, and it is the detection more deep to file that metadata detects, and is the detection that the related data relevance in concrete file and property value etc. are done.
KLV Layer detecting unit described in the present embodiment is resolved the KLV structure in MXF file, and this element is independent of MXF DCA document content architecture reading unit, according to Key, and Length, each KLV structure in Value structure elucidation MXF file.(Key, Length, Value) tlv triple that MXF file adopts SMPTE 336 to define is organized.
MXF DCA document content architecture reading unit described in the present embodiment, need to be in conjunction with the logical construction of MXF file when file is read, rather than simple reading each KLV.KLV Layer parsing is that the KLV tlv triple structure to recording in MXF file travels through, and whether correct to analyze each KLV structure, this is in fact also that one reads, and is just independently with above-mentioned MXF DCA document content architecture reading unit.
Information output unit described in the present embodiment is the unit being connected with technological audit service end, is the window with technological audit service end exchange message.Information output unit will record the information that all detecting units detect, and these are detected to communication to technological audit service end.The MXF file detection information of exporting comprises: KLV structural information, metadata information (Partition Pack, IndexTable, HeaderMetadata ...), statistical information (false alarm information), and four parts such as audiovisual information.Can be by specifying the degree of depth (as only resolved KLV structure or analytical element data only) of resolved detection, according to error level, the object information selectively file encapsulation format being detected exports technological audit service end to.
Partition Pack detecting unit described in the present embodiment, Header Metadata detecting unit, Essence detecting unit are the unit that Partition Pack, Header Metadata, Essence are detected.MXF filespec by whole file on the basis of KLV structure logic be divided into multiple Partition, and each Partition has a corresponding metadata to be called Partition Pack, Partition Pack has recorded the attributes such as some required positional informations of corresponding Partition, and it is the foundation structure of MXF file.Header Metadata(head metadata), be the key that MXF file can correctly be worked, essential record the required associated metadata of video/audio in file, as information such as the index positions of video type, audio types, solid data.Essence refers to the solid data recording in MXF file, i.e. video or voice data etc., and it is the body data of MXF file.Essence described in the present embodiment detects, and is mainly that positional information relevant in Essence data is detected, and the video and audio solid data content that wherein recorded is not processed.
Embodiment bis-:
The present embodiment is the detection method of the media file encapsulation format of device described in a kind of embodiment of use mono-, and the flow process of described method as shown in Figure 2.
Described in the present embodiment, method comprises that KLV structure elucidation, Patition Pack validation checking, Header Metadata resolve and Essence resolves.KLV Layer parsing is independent of MXF file and reads, according to Key, Length, each KLV structure in Value structure elucidation MXF file, can export the KLV structural information of whole file and the problem of finding in resolving be provided to miscue after resolving finishes.From the MXF file to be detected of specifying, read MXF media file information and preserve, for follow-up each detecting unit.Partition Pack resolves and depends on reading of MXF DCA document content architecture, in each Partition Pack, include multiple Item items in order to describe MXF media file information, Patition Pack validation checking is exactly whether analyze and detect the property value of each Item recording in Partition Pack consistent with the actual information in MXF file.Header Metadata resolves and is responsible for structural metadata and the description metadata of MXF file to resolve, the detection of exactly the Metadata Set of the structural metadata of each composition being carried out: the UUID(Unique Identifier that first detects each Metadata Set) whether unique; Whether the data content that secondly detects Metadata Sets is complete; Finally detect adduction relationship between each Metadata Set whether correct and rationally.Essence resolves and also depends on reading of MXF DCA document content architecture, comprises the matching relationship analysis to EssneceContainer and Metadata and the matching relationship analysis to IndexTable and EssenceContainer.After completing all detections, with textual form, error items is exported, output information has comprised KLV structural information, metadata information (PartitionPack, IndexTable, HeaderMetadata ...), four parts such as statistical information (false alarm information) and audiovisual information, can, by specifying the degree of depth (as only resolved KLV structure or analytical element data only) of resolved detection, selectively export.
Described in the present embodiment, the concrete steps of method are as follows:
Obtain the step of Detection task: for described Detection task acquiring unit, at database, obtain Detection task information, Detection task information comprises filename and store path, the detection degree of depth configuration information etc. of the MXF of needs detection.Detect the various demands that degree of depth configuration information mainly comprises examination, the project for example detecting and the degree of depth of detection etc.
The step of media file decoding: open by decoder the MXF file that Detection task information is specified for described File Open unit, and in the process opening file, the physical structure of described MXF file is read and resolved, if open failure, enter " step of detection information output ", if opened successfully, enter next step.Decoding described in this step just decoding needs the part detecting.If decoded unsuccessfully, open in other words failure, illustrate that this MXF file has serious problems, so stop detecting, directly there is the information of gross error to be sent to technological audit service end through information output unit this MXF file.
Select the step of test item: for described dispensing unit, according to detecting degree of depth configuration information, each test item is set and detects the degree of depth.
Carry out the step of KLV Layer detection: for described KLV Layer detecting unit according to Key, Length, Value structure, resolve each KLV structure in MXF file and detect, if detected unsuccessfully, enter " step of detection information output ", if detected successfully, enter next step.
The detection of KLV is from the beginning HPP(Header Partition Pack of a MXF) or Rand Index Table locates the position of each Partition Pack, and from the Key of each Partition Pack, detect step by step relevant KLV structure.Such as detecting the KLV structure of corresponding Header Metadata and Index Table etc. in HPP, for non-KLV data wherein, provide miscue.
KLV construction error belongs to the gross error of MXF.KLV construction error can cause the positional information recording in MXF file not mated with file physical location, causes correctly to follow-up solid data (video or audio frequency etc.), positioning.If there is in theory this mistake, directly exit detection.But in fact KLV structure detection and follow-up metadata detect separate carrying out.Detecting after KLV mistake, can the selection to detection mode according to user, decision is directly to return to error message to release and detect, or continues metadata to detect, to facilitate the further location to mistake.
Read the step of MXF information: for described MXF DCA document content architecture reading unit, from described media file, read MXF information and save backup.According to MXF file format feature, when file reading, first according to Random Index Pack(RIP, random index bag) corresponding metadata and structural information are located and preserved to file structure fast; If RIP does not exist or RIP misregistration, from first byte of file, file is scanned, obtain and preserve file structure and associated metadata information.
Three steps are carried out simultaneously below,
The step that Partition Pack detects: media file information MXF DCA document content architecture reading unit being read for described Partition Pack detecting unit is carried out Item property value, and the detection to Random Index Pack, record testing result.Partition Pack resolves and detects and depends on reading of MXF file, in each Partition Pack, include multiple Item items in order to describe MXF fileinfo, Patition Pack validation checking is exactly whether analyze and detect the property value of each Item recording in Partition Pack consistent with the actual information in MXF file.
In addition, Patition Pack validation checking also comprises the detection to Random Index Pack.For example in MXF file, have Random Index Pack, whether the Partition side-play amount that can detect this RIP record is correct.
The step that Header Metadata detects: the structural metadata of media file information MXF DCA document content architecture reading unit being read for described Header Metadata detecting unit detects, and records testing result.Header Metadata resolves and detects and depends on reading of MXF file.This step is resolved structural metadata and the description metadata of MXF file.Wherein, in MXF file structure standard, structural metadata must have, and description metadata is optional.Description metadata is expanded as MXF file provides further metadata information in the mode of plug-in unit, is mainly the descriptor for contents of media files being created by producer.
In structural metadata, comprise multiple metadata set (Metadata Set), main Metadata Set has: Primer Pack, Preface, Identification, Content Storage, Material Package and Source Package.Primer Pack has recorded the Universal Label using in whole MXF file; Preface metadata record the information such as the compressed format that adopts of the operator scheme used of MXF file and video and audio; Business Name, product information and the modification history etc. that create this MXF file in Identification, have been comprised; Content Storage has mainly comprised various material package information used (as Material Package and Source Package etc.) and solid data information etc. in file.Because MXF has adopted the organizational form of quoting chain to file, the mistake of metadata concentrated part determinant attribute value can cause the location failure to follow-up, causes MXF file unavailable.
The test item of structural data comprises: whether the Unique Identifier data content whether unique, that detect Metadata Set that detects each Metadata Set complete, whether detect adduction relationship between each Metadata Set correct and rationally.
The step that Essence detects: the matching relationship of the Essence Container of media file information MXF DCA document content architecture reading unit being read for described Essence detecting unit and the matching relationship of Header Metadata, Index Table and Essence Container, analyzing and testing, records testing result.
The step of detection information output: the testing result recording for described information output unit collection File Open unit, KLV Layer detecting unit, Partition Pack detecting unit, Header Metadata detecting unit, Essence detecting unit, according to separating deepness, selectively output detections result.
If receive the information that the MXF file sent File Open unit cannot be opened, this information be directly sent to technological audit service end.
Embodiment tri-:
The present embodiment is the improvement of embodiment bis-, the refinement of the step that to be embodiment bis-detect about Header Metadata, and included sub-step in " step that Header Metadata detects " described in the present embodiment:
Whether the Unique Identifier that detects each Metadata Set is unique.
Whether the data content that detects Metadata Set is complete, whether comprises all essential attributes.For example: all Required attributes that define in SMPTE 377 standards.
Detect adduction relationship between each Metadata Set whether correct and rationally.For example: whether the Source Package ID in Material Package metadata set can index correct Source Package.
Embodiment tetra-:
The present embodiment is the improvement of embodiment bis-, the refinement of the step that to be embodiment bis-detect about Essence, and included sub-step in " step that Essence detects " described in the present embodiment:
Matching relationship to Essnece Container and Header Metadata is analyzed.The video format of for example, preserving in the video code model, recording in Header Metadata and Essence Container is inconsistent.
Matching relationship to Index Table and Essence Container is analyzed.For example: the position of certain frame video data that IndexTable records and the physical location of these frame data in EssenceContainer are inconsistent.
Embodiment five:
The present embodiment is the improvement of embodiment bis-, be embodiment bis-about the step refinement of detection information output, the information of exporting in " step of detection information output " described in the present embodiment comprises: KLV structural information, metadata information, statistical information output, video and audio descriptor.
The output of KLV structural information, according to its skew Offset hereof, Key, Length output, can export separately with xml form, also can output in a txt file according to stream format and metadata information.
Metadata information output (PartitionPack, IndexTable, HeaderMetadata ...), the Sequential output that can occur according to metadata in file, also can be according to the adduction relationship output of Metadata Sets.
Statistical information output, according to Error, Warning, tri-different rank outputs of Tips.Error information may cause when MXF file is play, occurring relatively grave error, cause the problems such as player collapse.Warning information can not cause player collapse, but may have compatibility issue to different players.Tips information just causes the entry of compatibility issue to be pointed out some than being easier to, and the entry of Tips information output need to meet SMPTE 377M(MXF specification document) standard of document.
The output of video and audio descriptor, if require output video and audio descriptor, directly reads and exports video and audio descriptor.
The output of above-mentioned information, is according to selecting in the step of test item, and dispensing unit carries out the setting of each test item and the detection degree of depth according to detection depth information.
Finally it should be noted that, below only unrestricted in order to technical scheme of the present invention to be described, although the present invention is had been described in detail with reference to preferred arrangement scheme, those of ordinary skill in the art is to be understood that, can be to technical scheme of the present invention (such as the annexation of device, the front and back order of step etc.) modify or be equal to replacement, and do not depart from the spirit and scope of technical solution of the present invention.Method of the present invention can be worked out the program for being applied to computer system, and runs in computer network system of the present invention.

Claims (5)

1. a media file encapsulation format checkout gear, it is characterized in that, comprise: Detection task acquiring unit, described Detection task acquiring unit is connected with File Open unit, described File Open unit is connected with dispensing unit and information output unit, described dispensing unit is connected with KLV Layer detecting unit and MXF DCA document content architecture reading unit, and described KLV Layer detecting unit is connected with information output unit; Described MXF DCA document content architecture reading unit is connected with Partition Pack detecting unit, Header Metadata detecting unit, Essence detecting unit, and described Partition Pack detecting unit, Header Metadata detecting unit, Essence detecting unit are connected with information output unit; Described Detection task acquiring unit obtains Detection task information from the database of technological audit system, and described Detection task information comprises the filename of MXF that needs detect and store path, detection degree of depth configuration information; The appointment MXF media file that described File Open unit reads according to the filename of the MXF in Detection task information and store path is decoded; The detection degree of depth configuration information that described dispensing unit reads according to Detection task acquiring unit, arranges the various parameters that encapsulation format detects, and comprises the project of detection and the degree of depth of detection; Described KLV Layer detecting unit is resolved the KLV structure in MXF file; Described MXF DCA document content architecture reading unit, in conjunction with the logical construction of MXF file, reads each KLV; Described information output unit records the information that all detecting units detect, and these are detected to communication to technological audit service end; Described Partition Pack detecting unit, Header Metadata detecting unit, Essence detecting unit are the unit that Partition Pack, Header Metadata, Essence are detected.
2. right to use requires a detection method for the media file encapsulation format of device described in 1, it is characterized in that the step of described method comprises:
Obtain the step of Detection task: for described Detection task acquiring unit, at database, obtain Detection task information, Detection task information comprises the filename of MXF that needs detect and store path, detection degree of depth configuration information;
The step of media file decoding: open by decoder the MXF file that Detection task information is specified for described File Open unit, and in File Open process, the physical structure of described MXF file is read and resolved, if open failure, enter " step of detection information output ", if opened successfully, enter next step;
Select the step of test item: for described dispensing unit, each test item is set and detects the degree of depth;
Carry out the step of KLV Layer detection: for described KLV Layer detecting unit according to Key, Length, Value structure, resolve each KLV structure in MXF file and detect, if detected unsuccessfully, enter " step of detection information output ", if detected successfully, enter next step;
Read the step of MXF information: for described MXF DCA document content architecture reading unit, from described MXF file, read MXF media file information and save backup;
Three steps are carried out simultaneously below,
The step that Partition Pack detects: the Item property value of media file information MXF DCA document content architecture reading unit being read for described Partition Pack detecting unit detects, and Random Index Pack is detected, record testing result;
The step that Header Metadata detects: the structural metadata of media file information MXF DCA document content architecture reading unit being read for described Header Metadata detecting unit detects, and records testing result;
The step that Essence detects: the matching relationship of the EssneceContainer of media file information MXF DCA document content architecture reading unit being read for described Essence detecting unit and matching relationship, IndexTable and the EssenceContainer of Header Metadata carries out analyzing and testing, records testing result;
The step of detection information output: the testing result recording for described information output unit collection File Open unit, KLV Layer detecting unit, Partition Pack detecting unit, Header Metadata detecting unit, Essence detecting unit, according to separating deepness, selectively output detections result.
3. method according to claim 2, is characterized in that, included sub-step in described " step that Header Metadata detects ":
Whether the Unique Identifier that detects each Metadata Set is unique;
Whether the data content that detects Metadata Set is complete;
Detect adduction relationship between each Metadata Set whether correct and rationally.
4. method according to claim 2, is characterized in that, included sub-step in described " step that Essence detects ":
Matching relationship to EssneceContainer and Header Metadata is analyzed;
Matching relationship to IndexTable and EssenceContainer is analyzed.
5. method according to claim 2, is characterized in that, the information of exporting in described " step of detection information output " comprises: KLV structural information, metadata information, statistical information, video and audio descriptor.
CN201210291916.8A 2012-08-16 2012-08-16 Device and method for detecting pack format of media file Active CN102932677B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210291916.8A CN102932677B (en) 2012-08-16 2012-08-16 Device and method for detecting pack format of media file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210291916.8A CN102932677B (en) 2012-08-16 2012-08-16 Device and method for detecting pack format of media file

Publications (2)

Publication Number Publication Date
CN102932677A CN102932677A (en) 2013-02-13
CN102932677B true CN102932677B (en) 2014-05-07

Family

ID=47647361

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210291916.8A Active CN102932677B (en) 2012-08-16 2012-08-16 Device and method for detecting pack format of media file

Country Status (1)

Country Link
CN (1) CN102932677B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109246333A (en) * 2018-09-19 2019-01-18 北京正奇联讯科技有限公司 The control method and device of video playing

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2371889A (en) * 2001-02-02 2002-08-07 Sony Uk Ltd Data structures
CN101599084A (en) * 2008-06-05 2009-12-09 株式会社东芝 Image is included transcriber, recording method, reproducting method and is included reproducting method
CN101692340A (en) * 2009-09-25 2010-04-07 北京中企开源信息技术有限公司 Method for processing material exchange format files
CN101729538A (en) * 2008-10-16 2010-06-09 株式会社东芝 Image recording and regenerating apparatus, and file management method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5044687B2 (en) * 2010-09-16 2012-10-10 株式会社東芝 Video processing apparatus and file management method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2371889A (en) * 2001-02-02 2002-08-07 Sony Uk Ltd Data structures
CN101599084A (en) * 2008-06-05 2009-12-09 株式会社东芝 Image is included transcriber, recording method, reproducting method and is included reproducting method
CN101729538A (en) * 2008-10-16 2010-06-09 株式会社东芝 Image recording and regenerating apparatus, and file management method
CN101692340A (en) * 2009-09-25 2010-04-07 北京中企开源信息技术有限公司 Method for processing material exchange format files

Also Published As

Publication number Publication date
CN102932677A (en) 2013-02-13

Similar Documents

Publication Publication Date Title
US8001486B2 (en) Method for verification of file-based media content
US20100100640A1 (en) Video recording and playing apparatus, and file management method
US9106935B2 (en) Method and apparatus for transmitting and receiving a content file including multiple streams
US20090070850A1 (en) System and method for searching video signals
EP2195952B1 (en) Apparatus and method for storing and reading a file having a media data container and a metadata container
US11356749B2 (en) Track format for carriage of event messages
CN104317939A (en) Log statistics method and system on basis of digital film playing server
CN105578203B (en) Video file quality detecting system and method
CN101335591B (en) Apparatus and method for processing a bitstream
US8624982B2 (en) Receiver and a transmitter
CN102932677B (en) Device and method for detecting pack format of media file
US11847155B2 (en) Systems and methods for selecting digital data for archival
CN104394466B (en) High safety set top box production method
CN114125469B (en) MP4 file repairing method, device, electronic equipment and storage medium
Casey et al. Design tradeoffs for developing fragmented video carving tools
CN102857812B (en) A kind of fault-tolerance approach supporting TS files in stream media and system
KR20090127052A (en) Video recording and playback equipment, video recording method, video playback method, and video recording and playback method
CN107920187B (en) Data exchange method and equipment for media-integrated studio
CN112752165A (en) Subtitle processing method, subtitle processing device, server and computer-readable storage medium
US10158888B2 (en) Method and apparatus for reproducing video data
CN102231804B (en) Fault tolerance method supporting PS streaming media file
KR101085183B1 (en) Digital cinema data format converting apparatus and method thereof
US20240135942A1 (en) Decoding method and apparatus, and computer readable storage medium
JP4378157B2 (en) Data processing method and apparatus
CN112866717A (en) Method and system capable of extracting H264 code stream stored in MP4 file

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