A kind of video decode highly effective testing method
[technical field]
The present invention relates to the multimedia field, relate in particular to a kind of video decode highly effective testing method.
[background technology]
1.1 video definition
The video general reference is caught a series of static image in 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, look it is level and smooth continuous visual effect, continuous like this picture is called video, the saving format of the common various dynamic images of reference, the video of being spoken of refers to compression of video data technology and file attribute here.
File has comprised three parts usually, is respectively file header, data block and index block.
File header comprises parameters such as the data format of file general information, definition and used compression algorithm.
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; The Real Video, the WMV of Microsoft that also have Real-Networks that is widely used on the internet in addition and the QuickTime of Apple company etc.
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 processing field in other words each second.High frame per second can obtain animation more smooth, more true to nature.
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 different modeling effects, 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 in today of the Internet high speed development image and sound adding electronic signal are just become inevitable trend with transmission.
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 the key issue of image adding electronic signal is compressed exactly.The compression of video is exactly to video coding, promptly by 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, because the bit stream data behind the coding has correlation, comprised a lot of information, in the existing technical scheme, test decode normally manually generates code stream by reference model, or behind the code stream after download is encoded, utilizes reference model that this code stream is decoded again on the net, 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 to be solved in the present invention is to provide a kind of video decode highly effective testing method, and more fully 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 described compatibility test: at first video data to be measured is classified, distinguish the encapsulation format of file type by the suffix name of file, thereby obtain dissimilar package files, dissimilar package files is distinguished file with the different coding type of package file by the aid on the PC, and described 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, its result is compared whether 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 the test of described decoding performance: to video data acquiring to be measured, described collection is to carry out the border garbled data according to the performance index of player software design, the visual effect of simultaneously comprehensive picture draws the video data that is fit to test, the video data of gathering is play by video player, test out video data whether can play, whether smooth, whether synchronous, and carry out Performance Evaluation by the output result;
Above-mentioned described equivalent partitioning is adopted in described error correcting capability test: at first video data to be measured is classified, distinguish the encapsulation format of file type by the suffix name of file, thereby obtain dissimilar package files, dissimilar package files is distinguished file with the different coding type of package file by the aid on the PC, and described 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 player are assessed, response normal play when playing the reasonable video data of supporting tells 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 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 described 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 described decoding performance: to video data acquiring to be measured, the video data of gathering is play by video player, test out video data whether can play, whether smooth, whether synchronous, and carry out Performance Evaluation by the output result; Above-mentioned described equivalent partitioning is adopted in described 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]
The present invention is further illustrated in conjunction with the embodiments 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 described compatibility test: at first video data to be measured is classified, distinguish the encapsulation format of file type by the suffix name of file, thereby obtain dissimilar package files, dissimilar package files is distinguished file with the different coding type of package file by the aid on the PC, and described 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, its result is compared whether 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 the test of described decoding performance: to video data acquiring to be measured, described collection is to carry out the border garbled data according to the performance index of player software design, the visual effect of simultaneously comprehensive picture draws the video data that is fit to test, the video data of gathering is play by video player, test out video data whether can play, whether smooth, whether synchronous, and carry out Performance Evaluation by the output result;
Above-mentioned described equivalent partitioning is adopted in described error correcting capability test: at first video data to be measured is classified, distinguish the encapsulation format of file type by the suffix name of file, thereby obtain dissimilar package files, dissimilar package files is distinguished file with the different coding type of package file by the aid on the PC, and described 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 player are assessed, response normal play when playing the reasonable video data of supporting tells 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.
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 class 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 described compatibility test, at first video data to be measured classified, and the encapsulation format of the suffix name Ke De file by file, this is one of compatibility test element.Because the video flowing in any one encapsulation format is made by different coding standard compressions, 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 Shu Ru data and expected results 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 a class, call number 1,2,3,4,5,6,7,8,9 by 1 to N film source suffix of file suffixes star mkv's by name.
Step 2 is analyzed to such an extent that be encoded to H.264 that vc-1 mpeg_4 etc. is respectively that 123,456 789 see shown in Figure 2 by Media info.
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 input data number 123 the output display result of x and the result that numbering 1 is exported be consistent, so draw testing data 123 the x 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 described decoding performance test: to video data acquiring to be measured, described 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 by the output result.Performance index be one with reference to theoretical value, and most critical is 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 following several picture 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 class 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 by video player, test out video data whether can play, whether smooth, whether synchronous, and carry out Performance Evaluation by the output result.
Described 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 by the suffix name of file, thereby obtain dissimilar package files, dissimilar package files is distinguished file with the different coding type of package file by the aid on the PC, and described 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 player are assessed, response normal play when playing 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 file data of support can divide following a few class substantially: file body breakage, data are downloaded imperfect, index data and are lost or the like.
The above only is preferred embodiment of the present invention, and all equalizations of being done according to the present patent application claim change and modify, and all should belong to covering scope of the present invention.