[background technology]
1.1 video definition
The video general reference is caught a series of static image with signal of telecommunication mode, record is handled, and stores, and transmits, with the various technology of reappearing; Another kind of saying continuous images changes per second and surpasses 24 hardwoods (frame) when picture is above; According to persistence of vision principle; Human eye can't be distinguished the tableaux of single width, looks it is level and smooth continuous visual effect, and continuous like this picture is called video; The saving format of the common various dynamic images of reference, the video of being spoken of here refers to compression of video data technology and file attribute.
File has comprised three parts usually, is respectively file header, data block and index block.
File header comprises parameters such as data format and the used compression algorithm of file general information, definition.
Wherein data block comprises actual data stream, i.e. the sequence data of image and sound, and this is a document body.
Index block comprises data block tabulation and their positions hereof, is responsible for guaranteeing data random access ability in the file.
1.2 data attribute
1.2.1 encapsulation format
Encapsulation format also is container, refers to encoding compression is good video file and audio file are put in the file according to certain form, forms a storable file.
1.2.2 video code model
Video coding is meant initial data carried out specific compress technique, convert to a kind of high image quality, just with Network Transmission, to reduce the video file of memory space.Present of paramount importance video encoding and decoding standard have International Telecommunication Association H.261, H.263, video coding H.264; The subordinate's of mechanism of International Standards Organization MPEG ' motion picture expert group ' Mpeg-1, Mpeg2, the Mpeg4 standard formulated; Real Video, the WMV of Microsoft and the QuickTime of Apple company etc. that also have Real-Networks that are widely used on the internet in addition.
The following subordinate list one of the relation of common encapsulation format and coded format
Encapsulation format coded format encapsulation format coded format
Subordinate list one
1.2.3 resolution
Video resolution refers to the precision of image, and pixel that image shows what are meant.Because image is made up of pixel, the pixel that image comprises is many more, and picture is just meticulous more, so the information that shows is also many more, promptly resolution is one of very important performance index.As with resolution being 1280 * 720 screen, promptly include 1280 pixels on each bar horizontal line, have 720 lines, promptly scanning columns is 1280 row, line number is 720 row.
Common resolution and title subordinate list two
Subordinate list two
1.2.4 frame per second
Frame per second is meant that per second shows frame number.The number of times that the frame number of per second (fps) can upgrade during frame per second presentation graphic processor processes field in other words each second.High frame per second can obtain more smooth, more true to nature animation.
1.2.5 code check
The data bits that the unit interval transmitted when code check was exactly transfer of data, unit is that kbps is the kilobit per second.Also claim sample rate, sampling rate is big more in the unit interval, and precision is just high more, and the file that deals that is to say that just more near original document the details of picture is just abundant more.
1.3 the relation of shooting angle and vision
Shooting angle comprises shooting height, takes direction and shooting distance.Shooting height is divided into flat three kinds of the bats of clapping, take a crane shot and face upward.Take direction and be divided into positive angle, side angle, oblique side angle degree, back side angle etc.Shooting distance is one of other element of decision scape.More than be referred to as geometric angle.Different angles can obtain the different moulding effect, has the function of appeal is together arranged.Angle can the record be reproduced or the exaggeration performance is bowed greatly and faced upward the special visual effect that must show meaning greatly.
Begin till now from the transmission of initial summary image, image and sound have become necessity indispensable in the life, and just become inevitable trend to image and sound adding electronic signal with transmission today of high speed development in the Internet.
In the image decompressor technology, because uncompressed video image committed memory is excessive, the required bandwidth of transmission of digital image far is narrower than not compressed image, therefore compresses the key issue of image adding electronic signal exactly.The compression of video is exactly to video coding, promptly through specific compress technique the file conversion of certain video format is become another kind of video format file, transmits to reduce its data volume again, decodes accordingly after receiving data again, recovers former video data.The video image processing module is exactly the function that realizes video coding and decoding.
Certain obstacle is just arranged when carrying out test decode,, comprised a lot of information because the bit stream data behind the coding has correlation; In the existing technical scheme; Test decode normally manually generates code stream by reference model, or after downloading the code stream behind the coding on the net, utilizes reference model that this code stream is decoded again; The test effect of its decoding is bad, and the result data of test is not very accurate.
[summary of the invention]
The technical problem that the present invention will solve is to provide a kind of video decode highly effective testing method, and more comprehensively test simultaneously is more convenient to make the video decode test.
The present invention is achieved in that a kind of video decode highly effective testing method, comprises compatibility test, performance test and error correcting capability test three phases;
Equivalent partitioning is adopted in said compatibility test: at first video data to be measured is classified; Distinguish the encapsulation format of file type through the suffix name of file; Thereby obtain dissimilar package files; Dissimilar package files is distinguished the file with the different coding type of package file through the aid on the PC, and said aid comprises Media info analysis software, Kmplayer video player; Play the document result of the corresponding different coding type of output in will file input video player with the different coding type of package file; Whether compare the document result of judging said different coding type consistent; Unanimity video data then to be measured is an equivalent data, is not that unanimity then is not an equivalent data;
The marginal testing method is adopted in said performance test: to video data acquiring to be measured; Said collection is based on the performance indications of player software design and carries out the border garbled data; The visual effect of simultaneously comprehensive picture draws the video data that is fit to test; The video data of gathering is play through video player, test out video data whether can play, whether smooth, whether synchronous, and carry out Performance Evaluation through the output result;
Above-mentioned described equivalent partitioning is adopted in said error correcting capability test: at first video data to be measured is classified; Distinguish the encapsulation format of file type through the suffix name of file; Thereby obtain dissimilar package files; Dissimilar package files is distinguished the file with the different coding type of package file through the aid on the PC, and said aid comprises Media info analysis software, Kmplayer video player; To play in the file input video player with the different coding type of package file; After guaranteeing the video player groundwork; Stability and error correcting capability to video player are assessed; Response normal play when video player is play the reasonable video data of supporting; Tell the user that this video player is not supported this class file but not the unreasonable video data of video data of supporting and support must eject the human-computer dialogue frame, the unreasonable video data of said support comprises that file body is damaged, data are downloaded imperfect and index data is lost.
The present invention has following advantage: the inventive method comprises compatibility test, performance test and error correcting capability test three phases; Equivalent partitioning is adopted in said compatibility test: at first video data to be measured is classified; Play the document result of the corresponding different coding type of output in will file input video player, its result is compared with the different coding type of package file; The marginal testing method is adopted in the test of said decoding performance: to video data acquiring to be measured; The video data of gathering is play through video player; Test out video data whether can play, whether smooth, whether synchronous, and carry out Performance Evaluation through the output result; Above-mentioned described equivalent partitioning is adopted in said error correcting capability test: after guaranteeing the video player groundwork, the stability and the error correcting capability of player are assessed.The present invention makes the test better effects if of decoding, and the test result data accurately simultaneously the test more convenient.
[description of drawings]
Fig. 1 is the inventive method schematic flow sheet.
Fig. 2 is the compatibility test equivalence division methods of the present invention's one specific embodiment.
Fig. 3 plays the result for the equivalent data of the compatibility test of the present invention's one specific embodiment.
Fig. 4 is the marginal testing method of the decoding performance test of the present invention's one specific embodiment.
[embodiment]
Combine embodiment that the present invention is further described with reference to the accompanying drawings.
A kind of video decode highly effective testing method is seen compatibility test, performance test and the error correcting capability test three phases of comprising shown in Figure 1;
Equivalent partitioning is adopted in said compatibility test: at first video data to be measured is classified; Distinguish the encapsulation format of file type through the suffix name of file; Thereby obtain dissimilar package files; Dissimilar package files is distinguished the file with the different coding type of package file through the aid on the PC, and said aid comprises Media info analysis software, Kmplayer video player; Play the document result of the corresponding different coding type of output in will file input video player with the different coding type of package file; Whether compare the document result of judging said different coding type consistent; Unanimity video data then to be measured is an equivalent data, is not that unanimity then is not an equivalent data;
The marginal testing method is adopted in said performance test: to video data acquiring to be measured; Said collection is based on the performance indications of player software design and carries out the border garbled data; The visual effect of simultaneously comprehensive picture draws the video data that is fit to test; The video data of gathering is play through video player, test out video data whether can play, whether smooth, whether synchronous, and carry out Performance Evaluation through the output result;
Above-mentioned described equivalent partitioning is adopted in said error correcting capability test: at first video data to be measured is classified; Distinguish the encapsulation format of file type through the suffix name of file; Thereby obtain dissimilar package files; Dissimilar package files is distinguished the file with the different coding type of package file through the aid on the PC, and said aid comprises Media info analysis software, Kmplayer video player; To play in the file input video player with the different coding type of package file; After guaranteeing the video player groundwork; Stability and error correcting capability to video player are assessed; Response normal play when video player is play the reasonable video data of supporting; Tell the user that this video player is not supported this class file but not the unreasonable video data of video data of supporting and support must eject the human-computer dialogue frame, the unreasonable video data of said support comprises that file body is damaged, data are downloaded imperfect and index data is lost.
Wherein said performance index are that the decoding output effect of real screen is analyzed, because test needs covering picture effect as much as possible, so obtain higher video pictures according to the different angles of video capture with different visions; Adopt the higher video pictures fragment of this type to carry out the decoding performance test, improved testing efficiency and can draw the actual performance index more accurately, thus the poor efficiency test of the blindness of avoiding, eliminating one by one.
Further specify below in conjunction with a specific embodiment:
The video decode highly effective testing method comprises compatibility test, performance test and error correcting capability test three phases;
Equivalent partitioning is adopted in said compatibility test, at first video data to be measured classified, and the encapsulation format of the suffix name Ke De file through file, this is one of compatibility test element.Because the video flowing in any encapsulation format is made by the different coding standard compression; So need further to analyze the video coding type (can by the aid on the PC such as Media info analysis software or Kmplayer video player etc.) of testing data, guarantee the complete bright property of compatibility test.Clearly the data and the expected results of input judge whether player supports the video of such coding.
For example:
Tested object: judge whether compatible mkv form
Test data: video film source storehouse numbering 1,2,3,4,5 ... N film source
Testing scheme
Step 1 is classified as one type, call number 1,2,3,4,5,6,7,8,9 through 1 to N film source suffix of file suffixes star mkv's by name.
Step 2 through Media info analyze be encoded to mpeg_4 etc. be respectively 789 see shown in Figure 2.
Step 3 is imported player output result to be measured with video data to be measured and is compared with expected results, sees shown in Figure 3.
Can get step 1 by flow chart and adopt the division classification method, and make the preparation of testing data for step 2.Step 2 the input data number 2 the result that exports of output display result and numbering 1 be consistent, so draw testing data 2 film source be equivalent data.This method of equal effect in like manner can apply to the compatibility test of other coded formats, improves testing efficiency and accuracy so greatly.
The marginal testing method is adopted in said decoding performance test: to video data acquiring to be measured; Said collection is to carry out the border garbled data according to the performance index of player software design, and whether bright-coloured the performance of video playback is embodied on sense organ whether picture is clear, smooth, color true to nature, sound picture whether synchronous (as shown in Figure 4).The angle of technology is the height of decoding capability.The performance test of decoding is the assessment of definition to picture, fluency, colorfulness, audio-visual synchronization situation.Drawing resolution, code check, frame per second three is the three big parameters that influence decoding performance.Judge the decoding of player from the degree of support of resolution and whether support high-definition movie; Code check is meant the data volume of per second output, and when decoding capability can't reach fluency that requirement causes picture with variation, card is felt immediately.Frame per second is meant the picture number of per second output; When image change per second >=16 frames (frame) picture, according to persistence of vision principle, human eye can't be distinguished the tableaux of single width; Look it is level and smooth continuous visual effect; If the frame per second of player output is less than the rated value of testing data, the sense of jumping will appear in picture, cause picture to lose authenticity.
The attribute information of film source Test_1 for example
Tested object: smooth playing video whether
The marginal testing method is adopted in the decoding performance test; The emphasis testing data is gathered; Gather principle and carry out the border garbled data according to the performance index of player software design, the visual effect of simultaneously comprehensive picture draws the data that are fit to test, and carries out Performance Evaluation through the output result.Performance index are a reference theoretical value, and most critical is the decoding output effect to real screen.Therefore test needs to cover picture effect as much as possible.According to the angle of video capture and the relation of vision; Substantially can reduce the following several kinds of pictures higher to decoding request---the fragment that action is fierce, aerial takes, rich imagination space is moved or the like in space rotation, orientation also is best suited for the testing data as the decoding performance test.It is terrible that such fragment concentrates on some actions, natural views, and ball contests etc. are the video of material.According to the analysis of these fragment video flowings, action climax-changeable picture in people's composition lens orientation must be exported the lot of data amount and keep vivid effect, is to belong to code check peak value fragment; Natural views belong to high definition, fragment that colorfulness is high; The continuity of ball sports figure action belongs to each details picture performance the fragment of high frame per second incisively and vividly.Adopt this type fragment to carry out the decoding performance test and improve testing efficiency and can draw the actual performance index more accurately, thus the poor efficiency test of the blindness of avoiding, eliminating one by one.
The for example video flowing analysis of Test_1, test process note the details that the figure action of video pictures changes, sound and picture coupling, and the captured picture that gets off that camera lens moves changes, and picture is exported items such as successive.The video data of gathering is play through video player, test out video data whether can play, whether smooth, whether synchronous, and carry out Performance Evaluation through the output result.
Said error correcting capability test, error correcting capability is all very important to any a software, because the user operates unavoidable misoperation or some destructive behaviors, so must carry out this function for improving the software quality.Above-mentioned described equivalent partitioning is adopted in the error correcting capability test: at first video data to be measured is classified; Distinguish the encapsulation format of file type through the suffix name of file; Thereby obtain dissimilar package files; Dissimilar package files is distinguished the file with the different coding type of package file through the aid on the PC, and said aid comprises Media info analysis software, Kmplayer video player; To play in the file input video player with the different coding type of package file; After guaranteeing the video player groundwork; Stability and error correcting capability to video player are assessed; Response normal play when video player is play the reasonable video data of supporting; Tell the user that this video player is not supported this class file but not the unreasonable video data of video data of supporting and support must eject the human-computer dialogue frame, the unreasonable video data of support can divide following several types substantially: file body is damaged, the data download is imperfect, index data is lost or the like.
[0065] the above is merely preferred embodiment of the present invention, and all equalizations of doing according to claim of the present invention change and modify, and all should belong to covering scope of the present invention.