CN105721864A - Efficient regression test method based on audio/video packaging layer parameter detection - Google Patents

Efficient regression test method based on audio/video packaging layer parameter detection Download PDF

Info

Publication number
CN105721864A
CN105721864A CN201610268188.7A CN201610268188A CN105721864A CN 105721864 A CN105721864 A CN 105721864A CN 201610268188 A CN201610268188 A CN 201610268188A CN 105721864 A CN105721864 A CN 105721864A
Authority
CN
China
Prior art keywords
file
metadata
new
method based
media file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610268188.7A
Other languages
Chinese (zh)
Other versions
CN105721864B (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.)
Hangzhou Dang Hong Polytron Technologies Inc
Original Assignee
Hangzhou Arcvideo 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 Hangzhou Arcvideo Technology Co ltd filed Critical Hangzhou Arcvideo Technology Co ltd
Priority to CN201610268188.7A priority Critical patent/CN105721864B/en
Publication of CN105721864A publication Critical patent/CN105721864A/en
Application granted granted Critical
Publication of CN105721864B publication Critical patent/CN105721864B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/004Diagnosis, testing or measuring for television systems or their details for digital television systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)

Abstract

The invention discloses an efficient regression test method based on audio/video packaging layer parameter detection. General parameters and the metadata in a media file are extracted by an analyzing tool; the general parameters and metadata are written in a newly built feature file A and are stored; when the version of the analyzing tool is updated, new general parameters and new metadata in the same media file are extracted by the version updated analyzing tool; the new general parameters and the new metadata are written in another newly built feature file B and are stored; and a comparison result is output through comparing the feature file A and the feature file B. Through adoption of the method provided by the invention, for various regression tests in a packaging layer, time only needs to be consumed for preparation for the first time; in the follow-up regression tests, 80% of test manpower investment of a module can be saved; and a back-off problem resulting from adding a new function can be rapidly discovered and rapidly avoided through automatically outputting results.

Description

A kind of efficient regression testing method based on audio frequency and video encapsulated layer parameter detecting
Technical field
The present invention relates to a kind of efficient regression testing method based on audio frequency and video encapsulated layer parameter detecting.
Background technology
The audio frequency and video package type that present multimedia field relates to is more, need to cover for the test encapsulating parsing module after edition upgrading every time and test material in a large number, such as TS, FLV, MKV, AVI, MPG, MXF, MP4, the test of the encapsulation format of each class such as WMV, it is required for the parameter of its support is traveled through, all can there is more repetitive operation in each iteration, so the input to manpower is very big, and in each iterative process, carry out artificial repeated authentication for substantial amounts of material and substantial amounts of parameter, unavoidably there will be omission, cause result distortion.
Summary of the invention
Based on this, it is necessary to provide a kind of and automatization can export result and a kind of efficient regression testing method based on audio frequency and video encapsulated layer parameter detecting that other factors can be avoided to disturb.
According to an aspect of the present invention, it is provided that a kind of efficient regression testing method based on audio frequency and video encapsulated layer parameter detecting, comprise the steps:
Adopt analytical tool to extract the conventional parameter in a media file and metadata, and conventional parameter and metadata be written in a newly-built tag file A and preserve;
When, after analytical tool more redaction, being extracted the new conventional parameter in same media file and new metadata by the analytical tool of redaction, and new conventional parameter and new metadata be written in another newly-built tag file B and preserve;
By comparison tag file A and tag file B, export comparison result.
Wherein in an embodiment, the store method of tag file is as follows:
Each the Radix Rumicis data after each media file resolves are stored in the structure information storage mode of " | StartCode | packet length | Payload | ", wherein StartCode represents the start code of each structure information storage, packet length represents the length of Payload, and Payload represents valid data.
Wherein in an embodiment, each Radix Rumicis data correspondence media file resolve after an audio stream or a video flowing, each the Radix Rumicis data correspondence parsed for media file generates a tag file.
Wherein in an embodiment, the method for comparison tag file, specifically the StartCode in two tag files, packet length and tri-parts of Payload are compared respectively.
This efficient regression testing method based on audio frequency and video encapsulated layer parameter detecting, the audio frequency and video conventional parameter and the metadata that are parsed by each encapsulation carry out labelling, and synthesize according to the frame mode of every kind of encapsulation itself, generate a new tag file that former media file eigenvalue is marked, when each regression tested, with the analytical tool of redaction compares to confirm to update whether rollback problem for the tag file that this media file generates, such an approach achieves automatization's output result, a large amount of repeated works can be saved, not only increase the efficiency of test job, it also avoid the interference of other factors.
Accompanying drawing explanation
Fig. 1 is a kind of based on extracting media file information and writing the logic diagram of newly-built tag file step in the efficient regression testing method of audio frequency and video encapsulated layer parameter detecting of an embodiment of the present invention;
Fig. 2 is a kind of based in the efficient regression testing method of audio frequency and video encapsulated layer parameter detecting, version extracting parameter information before and after analytical tool being carried out the logic diagram of regression test step of invention one embodiment;
Fig. 3 is the structural representation of the structure information storage of tag file in Fig. 1;
Fig. 4 is the structural representation of each Radix Rumicis data structure preserving type of Fig. 1;
Fig. 5 is the logic diagram of the regression test process of Fig. 2.
Detailed description of the invention
For the ease of understanding the present invention, with specific embodiment, the present invention will be described more fully below.But, the present invention can realize in many different forms, however it is not limited to embodiment described herein.On the contrary, the purpose providing this embodiment is to make the understanding to the disclosure more thorough comprehensively.
A kind of efficient regression testing method based on audio frequency and video encapsulated layer parameter detecting of one embodiment of the invention, comprises the steps:
Step 1 is as it is shown in figure 1, adopt analytical tool to extract the conventional audio frequency and video parameter in a media file and metadata, and conventional audio frequency and video parameter and metadata is written in a newly-built tag file A and preserves.Specific in the present embodiment, it is then VideoParameter, AudioParameter and ElementStream three information of part being extracted TS file video content by the Parser module of analytical tool, and it is written in a newly-built tag file, the name of newly-built tag file is consistent with this TS file name, preserves as a test case;
Step 2, when after analytical tool more redaction, the new conventional parameter in same media file and new metadata is extracted by the analytical tool of redaction, and new conventional parameter and new metadata be written in another newly-built tag file B and preserve, principle is with step 1.
Step 3 is as in figure 2 it is shown, by comparison tag file A and tag file B, export comparison result.Namely by the parameter information of upper iteration version acquisition as protocol, the parameter information drawn with a collection of content with next version carries out regression test, draws final testing result.
Specifically, in the present embodiment, the store method of tag file is as follows:
As shown in Figure 3, each the Radix Rumicis data after each TS document analysis are stored in the self-defined information storage organization mode of " | StartCode | packet length | Payload | ", wherein StartCode represents the start code of each structure information storage, packet length represents the length of Payload, and Payload represents valid data.
Each Radix Rumicis data correspondence media file resolve after an audio stream or a video flowing, each the Radix Rumicis data correspondence parsed for media file generates a tag file.Namely each the Radix Rumicis data parsed for each media file, all can generate a characteristic of correspondence file.As shown in Figure 4, preserving type for each Radix Rumicis data, a video and an audio frequency is had when a media file, so can generate two tag files for this file, if the media file of correspondence has multiple video flowing and audio stream, so then generating characteristic of correspondence file for each video flowing and audio stream, before and after analytical tool, version is compared by these tag files, exports comparison result.
Specifically, in the present embodiment, the method for comparison tag file, as it is shown in figure 5, specifically compare the StartCode in two tag files, packet length and tri-parts of Payload respectively.
For in various encapsulated layer regression tests, by the method for the embodiment of the present invention, then have only to consume some times on first time prepares, regression test from now on can be saved this module 80% and test the input of manpower, export result by automatization can quickly find, and evade rapidly the rollback problem occurred because increasing New function.
This efficient regression testing method based on audio frequency and video encapsulated layer parameter detecting, the audio frequency and video conventional parameter and the metadata that are parsed by each encapsulation carry out labelling, and synthesize according to the frame mode of every kind of encapsulation itself, generate a new tag file that former media file eigenvalue is marked, when each regression tested, with the analytical tool of redaction compares to confirm to update whether rollback problem for the tag file that this media file generates, such an approach achieves automatization's output result, a large amount of repeated works can be saved, not only increase the efficiency of test job, it also avoid the interference of other factors.
Above example only have expressed the individual embodiments of the present invention, and it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that, for the person of ordinary skill of the art, without departing from the inventive concept of the premise, it is also possible to making some deformation and improvement, these broadly fall into protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.

Claims (4)

1. the efficient regression testing method based on audio frequency and video encapsulated layer parameter detecting, it is characterised in that comprise the steps:
Adopt analytical tool to extract the conventional parameter in a media file and metadata, and described conventional parameter and described metadata be written in a newly-built tag file A and preserve;
When after described analytical tool more redaction, extracted the new conventional parameter in same described media file and new metadata by the analytical tool of described redaction, and described new conventional parameter and described new metadata be written in another newly-built tag file B and preserve;
By tag file A described in comparison and described tag file B, export comparison result.
2. a kind of efficient regression testing method based on audio frequency and video encapsulated layer parameter detecting according to claim 1, it is characterised in that the store method of described tag file is as follows:
Each the Radix Rumicis data after each described media file resolves are stored in the structure information storage mode of " | StartCode | packet length | Payload | ", wherein said StartCode represents the start code of each described structure information storage, described packet length represents the length of described Payload, and described Payload represents valid data.
3. a kind of efficient regression testing method based on audio frequency and video encapsulated layer parameter detecting according to claim 2, it is characterized in that, the corresponding described media file of each described Radix Rumicis data resolve after a described audio stream or a video flowing, each the described Radix Rumicis data correspondence parsed for described media file generates a described tag file.
4. a kind of efficient regression testing method based on audio frequency and video encapsulated layer parameter detecting according to claim 2, it is characterized in that, described StartCode in two described tag files, described packet length and tri-parts of described Payload are specifically compared by the method for tag file described in comparison respectively.
CN201610268188.7A 2016-04-20 2016-04-20 A kind of efficient regression testing method based on audio and video encapsulated layer parameter detecting Active CN105721864B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610268188.7A CN105721864B (en) 2016-04-20 2016-04-20 A kind of efficient regression testing method based on audio and video encapsulated layer parameter detecting

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610268188.7A CN105721864B (en) 2016-04-20 2016-04-20 A kind of efficient regression testing method based on audio and video encapsulated layer parameter detecting

Publications (2)

Publication Number Publication Date
CN105721864A true CN105721864A (en) 2016-06-29
CN105721864B CN105721864B (en) 2018-09-21

Family

ID=56162133

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610268188.7A Active CN105721864B (en) 2016-04-20 2016-04-20 A kind of efficient regression testing method based on audio and video encapsulated layer parameter detecting

Country Status (1)

Country Link
CN (1) CN105721864B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111355957A (en) * 2018-12-21 2020-06-30 三星显示有限公司 Display stream codec, method of encoding display data, and computer-readable medium
CN112580467A (en) * 2020-12-08 2021-03-30 平安国际智慧城市科技股份有限公司 Video regression testing method and device, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7366961B1 (en) * 2000-01-24 2008-04-29 Ati Technologies, Inc. Method and system for handling errors
CN101178687A (en) * 2007-11-26 2008-05-14 中兴通讯股份有限公司 Software regression testing method
CN103049367A (en) * 2011-10-11 2013-04-17 神州数码信息系统有限公司 Automatic testing method for software
CN103064781A (en) * 2011-10-18 2013-04-24 飞图科技(北京)有限公司 Mobile software automated testing method
CN103678097A (en) * 2012-09-05 2014-03-26 百度在线网络技术(北京)有限公司 Method and device for selecting regression test case

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7366961B1 (en) * 2000-01-24 2008-04-29 Ati Technologies, Inc. Method and system for handling errors
CN101178687A (en) * 2007-11-26 2008-05-14 中兴通讯股份有限公司 Software regression testing method
CN103049367A (en) * 2011-10-11 2013-04-17 神州数码信息系统有限公司 Automatic testing method for software
CN103064781A (en) * 2011-10-18 2013-04-24 飞图科技(北京)有限公司 Mobile software automated testing method
CN103678097A (en) * 2012-09-05 2014-03-26 百度在线网络技术(北京)有限公司 Method and device for selecting regression test case

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111355957A (en) * 2018-12-21 2020-06-30 三星显示有限公司 Display stream codec, method of encoding display data, and computer-readable medium
CN112580467A (en) * 2020-12-08 2021-03-30 平安国际智慧城市科技股份有限公司 Video regression testing method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN105721864B (en) 2018-09-21

Similar Documents

Publication Publication Date Title
CN102004744B (en) Data extraction system and method from one source table to table of at least one object database
WO2019237540A1 (en) Method and device for acquiring financial data, terminal device, and medium
CN102243699A (en) Malicious code detection method and system
CN104699714B (en) Book version formatted file is converted to the method and device of EPUB formatted files
CN106874180A (en) Detection System And Method Thereof
US20080155519A1 (en) Code translator
WO2014012459A1 (en) Method, apparatus and client device for extracting signature information from application installation packages
CN107168695B (en) Excel data analysis method and system
CN108090041B (en) Method and device for generating advertisement creativity
CN103077192B (en) A kind of data processing method and system thereof
CN102012857A (en) Device and method for automatically testing web page
CN108241720B (en) Data processing method, device and computer readable storage medium
CN103377123B (en) A kind of web page code automated testing method and device
US9201754B2 (en) Recording application consumption details
CN105721864A (en) Efficient regression test method based on audio/video packaging layer parameter detection
CN111930708B (en) Ceph object storage-based object tag expansion system and method
CN111625689B (en) SVG graph and monitoring information correlation verification method for transformer substation
CN109074504A (en) The processing of 3D printing file
CN101295245B (en) Intelligent extracting method based on model information
CN106874147B (en) Method for recovering and analyzing pre-read file of Windows operating system
CN106886439B (en) Method for rapidly initializing SCM (sparse code multiple Access) security baseline knowledge base
CN104320454A (en) Method and system for realizing user-defined output in HTTP protocol recovery
CN106469048A (en) A kind of method and apparatus calling content in attribute configuration file
CN109033096A (en) The classification interpretation method and system of patent document
Zheng et al. A fragment classification method depending on data type

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: 310000 A Block, 16th Floor, E Building, Paradise Software Park, No. 3 Xidoumen Road, Hangzhou City, Zhejiang Province

Patentee after: Hangzhou Dang Hong Polytron Technologies Inc

Address before: 310000 B2010, two floor, North (two), six and 368 Road, Binjiang District, Hangzhou, Zhejiang.

Patentee before: HANGZHOU DANGHONG TECHNOLOGY CO., LTD.

CP03 Change of name, title or address