CN108933938A - A kind of video quality method of inspection, device and electronic equipment - Google Patents
A kind of video quality method of inspection, device and electronic equipment Download PDFInfo
- Publication number
- CN108933938A CN108933938A CN201810966511.7A CN201810966511A CN108933938A CN 108933938 A CN108933938 A CN 108933938A CN 201810966511 A CN201810966511 A CN 201810966511A CN 108933938 A CN108933938 A CN 108933938A
- Authority
- CN
- China
- Prior art keywords
- video
- audio
- inspection
- target video
- result
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N17/00—Diagnosis, testing or measuring for television systems or their details
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 embodiment of the invention provides a kind of video quality method of inspection, device and electronic equipments.The described method includes: obtaining the target video to quality inspection;Target video is decapsulated, the first audio data and the first video data of target video are obtained;For the first audio data, the first audio test value for examining item about at least one first audio is obtained, and is based on the first audio test value, determines the audio inspection result of target video;For the first video data, the first video inspection value about at least one the first video inspection item is obtained, and is based on the first video inspection value, determines the video inspection result of target video;Based on audio inspection result and video inspection as a result, determining the quality test results of target video, whether the quality that quality test results at least are used to characterize target video is qualified.Video quality can effectively be examined using the embodiment of the present invention.
Description
Technical field
The present invention relates to quality inspection fields, more particularly to a kind of video quality method of inspection, device and electronic equipment.
Background technique
In the modern life, it is seen everywhere various videos, such as film and advertisement, these videos can be
The video of line live streaming, such as the news video and reality TV show video that are broadcast live online, are also possible to local video, as downloaded
Various network videos and the video etc. shot with video capture equipment.
In order to obtain preferable video display effect, the inspection of video quality is most important, therefore, is badly in need of a kind of view at present
Frequency quality inspection method can effectively examine video quality.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of video quality method of inspection, device and electronic equipment, to realize
The purpose that video quality is effectively examined.Specific technical solution is as follows:
In a first aspect, the embodiment of the invention provides a kind of video quality methods of inspection, which comprises
Obtain the target video to quality inspection;
The target video is decapsulated, the first audio data and the first video data of the target video are obtained;
For the first audio data, the first audio test value that item is examined about at least one first audio, and base are obtained
In the first audio test value, the audio inspection result of the target video is determined;The audio inspection result is at least used for
Whether the audio content for characterizing the target video is qualified;
For the first video data, the first video inspection value about at least one the first video inspection item, and base are obtained
In the first video inspection value, the video inspection result of the target video is determined;The video inspection result is at least used for
Whether the video content for characterizing the target video is qualified;
Based on the audio inspection result and the video inspection as a result, determining the quality inspection knot of the target video
Whether fruit, the quality that the quality test results are at least used to characterize the target video are qualified.
Optionally, the target video is up-to-standard are as follows: the audio content qualification and video content qualification;
The target video it is off quality are as follows: the audio content and the video content at least one do not conform to
Lattice.
Optionally, based on the audio inspection result and the video inspection as a result, determining the quality of the target video
Before inspection result, the method also includes:
First audio data and first video data are synchronized into inspection, it is corresponding to obtain the target video
Audio-visual synchronization inspection result;
Correspondingly, it is described based on the audio inspection result and the video inspection as a result, determining the target video
Quality test results, comprising:
Based on the audio inspection result, the video inspection result and the audio-visual synchronization inspection result, institute is determined
State the quality test results of target video.
Optionally, described that first audio data and first video data are synchronized into inspection, it obtains described
The step of target video corresponding audio-visual synchronization inspection result, comprising:
Each data of the timestamp of each data block based on first audio data and first video data
The timestamp of block determines timestamp sequence;
Judge whether the timestamp sequence meets: timestamp arranges for ascending order, and adjacent in the timestamp sequence
The time interval of two timestamps is not more than third threshold value, if it is, determining the corresponding audio-visual synchronization of the target video
Inspection result is qualification, if it is not, then determining that the corresponding audio-visual synchronization inspection result of the target video is unqualified;
Wherein, the third threshold value is the smaller in first threshold and second threshold, and the first threshold is based on the
Value determined by the time interval of the timestamp of the adjacent two data blocks of one audio data, the second threshold are based on first
Value determined by the time interval of the timestamp of the adjacent two data blocks of video data.
Optionally, the target video is up-to-standard are as follows: the audio content is qualified, the video content is qualified and institute
It is qualified to state audio-visual synchronization inspection result;
The target video it is off quality are as follows: the audio content, the video content and the audio-visual synchronization
At least one is unqualified for inspection result.
Optionally, described to decapsulate the target video, obtain the first audio data and first of the target video
Before the step of video data, the method also includes:
Whether the encapsulation format for examining the target video is default encapsulation format, if so, executing described by the mesh
The step of marking video decapsulation, obtaining the first audio data and the first video data of the target video;
Otherwise, it determines the target video is off quality.
Optionally, described to be based on the first audio test value, it determines the audio inspection result of the target video, wraps
It includes:
Judge whether the first audio test value meets corresponding preset audio condition, if so, determining the target
The audio content of video is qualified, otherwise, it is determined that the audio content of the target video is unqualified;
The audio content qualification or audio content obtained based on judgement is underproof to be determined as a result, determining the target video
Audio inspection result.
Optionally, determine based on the audio content qualification or audio content that judge to obtain are underproof as a result, described in determining
The audio inspection result of target video, comprising:
The audio content that judgement is obtained is qualified or the underproof judgement of audio content is as a result, as the target video
Audio inspection result.
Optionally, the audio content obtained based on judgement is qualified or the underproof judgement of audio content is as a result, determine
Before the audio inspection result of the target video, the method also includes:
First audio data is decoded;
For decoded first audio data, obtains and examine the second audio of item to examine about at least one second audio
Value;
The audio content obtained based on judgement is qualified or the underproof judgement of audio content is as a result, determine the target
The audio inspection result of video, comprising:
The audio content that judgement is obtained is qualified or the underproof judgement of audio content is as a result, and second audio inspection
Value is tested, the audio inspection result of the target video is determined as;
Correspondingly, the quality test results of the target video are also used to characterize the second audio test value.
Optionally, before the decoding to first audio data, the method also includes:
Examine whether first audio data meets preset audio coding mode, if so, executing described to described the
The step of one audio data decodes;
Otherwise, it determines the target video is off quality.
Optionally, described to be based on the first video inspection value, the video inspection of the target video is determined as a result, packet
It includes:
Judge whether the first video inspection value meets corresponding pre- setting video condition, if so, determining the target
The video content of video is qualified, otherwise, it is determined that the video content of the target video is unqualified;
The video content qualification or video content obtained based on judgement is underproof to be determined as a result, determining the target video
Video inspection result.
Optionally, the video content obtained based on judgement is qualified or the underproof judgement of video content is as a result, determine
The video inspection result of the target video, comprising:
The video content that judgement is obtained is qualified or the underproof judgement of video content is as a result, as the target video
Video inspection result.
Optionally, the video content obtained based on judgement is qualified or the underproof judgement of video content is as a result, determine
Before the video inspection result of the target video, the method also includes:
To first video data decoding;
For decoded first video data, the second video inspection about at least one the second video inspection item is obtained
Value;
The video content obtained based on judgement is qualified or the underproof judgement of video content is as a result, determine the target
The video inspection result of video, comprising:
The video content that judgement is obtained is qualified or the underproof judgement of video content is as a result, and second video inspection
Value is tested, the video inspection result of the target video is determined as;
Correspondingly, the quality test results of the target video are also used to characterize the second video inspection value.
Optionally, it is described to first video data decoding before, the method also includes:
Examine whether first video data meets default Video coding mode, if so, executing described to described the
The step of one video data decoding;
Otherwise, it determines the target video is off quality.
Optionally, it includes: one in code rate, Caton number and Caton duration that at least one described first audio, which examines item,
Or it is multiple;
At least one described first video inspection item includes: in code rate, resolution ratio, frame per second, Caton number and Caton duration
One or more.
Second aspect, the embodiment of the invention provides a kind of video quality verifying attachment, described device includes:
Module is obtained, for obtaining the target video to quality inspection;
Decapsulation module, for the target video to be decapsulated, obtain the target video the first audio data and
First video data;
First audio inspection module obtains for being directed to the first audio data and examines item about at least one first audio
The first audio test value, and be based on the first audio test value, determine the audio inspection result of the target video;It is described
Whether the audio content that audio inspection result is at least used to characterize the target video is qualified;
First video inspection module is obtained for being directed to the first video data about at least one the first video inspection item
The first video inspection value, and be based on the first video inspection value, determine the video inspection result of the target video;It is described
Whether the video content that video inspection result is at least used to characterize the target video is qualified;
As a result determining module is used for based on the audio inspection result and the video inspection as a result, determining the target
Whether the quality test results of video, the quality that the quality test results are at least used to characterize the target video are qualified.
The third aspect, the embodiment of the invention provides a kind of electronic equipment, including processor and memory, wherein
The memory, for storing computer program;
The processor when for executing the program stored on the memory, realizes that the embodiment of the present invention is provided
The video quality method of inspection the step of.
In scheme provided by the embodiment of the present invention, target video is decapsulated first, obtains the first audio data and the
Then on the one hand one video data is tested for the first audio data, obtain and examine item about at least one first audio
The first audio test value, and be based on the first audio test value, determine the audio inspection result of the target video;It is another
Aspect is tested for the first video data, obtains the first video inspection value about at least one the first video inspection item,
And it is based on the first video inspection value, determine the video inspection result of the target video;Finally examined based on the audio
As a result with the video inspection as a result, determining the quality test results of the target video, wherein the quality test results are extremely
It is few whether qualified for characterizing the quality of the target video.Therefore, scheme provided by the embodiment of the present invention can be to video
Quality is effectively examined.
Certainly, it implements any of the products of the present invention or method must be not necessarily required to reach all the above excellent simultaneously
Point.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is a kind of a kind of flow diagram of the video quality method of inspection provided by the embodiment of the present invention;
Fig. 2 is a kind of another flow diagram of the video quality method of inspection provided by the embodiment of the present invention;
Fig. 3 is a kind of another flow diagram of the video quality method of inspection provided by the embodiment of the present invention;
Fig. 4 is a kind of another flow diagram of the video quality method of inspection provided by the embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of video quality verifying attachment provided by the embodiment of the present invention;
Fig. 6 is the structural schematic diagram of a kind of electronic equipment provided by the embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention is described.
In order to effectively be examined to video quality, the embodiment of the invention provides a kind of video quality method of inspection,
Device, electronic equipment and storage medium.
It should be noted that a kind of executing subject of the video quality method of inspection provided by the embodiment of the present invention can be
A kind of video quality verifying attachment, the video quality verifying attachment can be run in electronic equipment.Wherein, which can
Think a server or terminal device, is not limited thereto certainly.
It is introduced in the following, being provided for the embodiments of the invention a kind of video quality method of inspection first.
As shown in Figure 1, a kind of video quality method of inspection provided by the embodiment of the present invention, may include steps of:
S101 obtains the target video to quality inspection.
The target video can be the video being broadcast live online, such as the news video and reality TV show video that are broadcast live online,
It is also possible to local video, such as the various network videos downloaded and the video shot with video capture equipment.
It can be the video that downloading is broadcast live online to the mode of the target video of quality inspection correspondingly, obtaining, such as logical
Preset download tool or program are crossed to download the video being broadcast live online.Alternatively, obtaining the side of the target video to quality testing
Formula, which can be, obtains local video from preset memory locations, wherein and the preset memory locations can be located locally in equipment,
It can also be located in remote server, this is all reasonable.Here, not obtaining in the embodiment of the present invention to quality inspection
The mode of target video be defined.
In embodiments of the present invention, the relevant information for the target video that can be determined based on user, is obtained to quality inspection
Target video, detailed process is explained below.
S102 decapsulates the target video, obtains the first audio data and the first video counts of the target video
According to.
In embodiments of the present invention, it can use existing video decapsulation technology, the target video decapsulated, is obtained
The first audio data and the first video data after obtaining target video decapsulation.It will be appreciated by persons skilled in the art that institute
It states the first audio data and only contains the corresponding data of sound in target video, be with FLV (FlashVideo, Streaming Media) format
Example, the first audio data are audio FLV Tag data;First video data only contains the corresponding number of picture in target video
According to by taking FLV format as an example, the first video data is video FLV Tag data.In embodiments of the present invention, used video
Decapsulation technology can decapsulate the video of a variety of mainstream formats, such as FLV format and MPEG2-TS (Transport
Stream, transport stream, also known as TS, TP, MPEG-TS or M2T) format etc..
Here, the treatment process of video decapsulation technology is not introduced.
S103 obtains the first audio test value that item is examined about at least one first audio for the first audio data,
And it is based on the first audio test value, determine the audio inspection result of the target video.
Described at least one first audio is examined item can be and is preset, illustratively, at least one described first sound
It may include: one or more of code rate, Caton number and Caton duration that frequency, which examines item,;The first audio test value is pair
The first audio answered examines the specific value of item, for example the corresponding test value of code rate can be 124kbps etc., and Caton number is corresponding
Test value can be it is 2 inferior, the corresponding test value of Caton duration can be 0.15 second etc..
Optionally, described to be based on the first audio test value, determine the audio inspection result of the target video, it can be with
Include the following steps A1 and B1:
A1, judges whether the first audio test value meets corresponding preset audio condition, if so, determining the mesh
The audio content for marking video is qualified, otherwise, it is determined that the audio content of the target video is unqualified;
Wherein, preset audio condition can be in a preset range, less than a preset threshold, alternatively, it is pre- to be greater than one
If threshold value etc., specifically which kind of preset audio condition to examine item related to specific audio using, for example code rate is usually more Gao Yue
Good, then the corresponding preset audio condition of code rate can be for greater than a default code rate lowest threshold, such as 128kbps etc..In this hair
In bright embodiment, the pause for occurring 150 milliseconds or more in audio can be considered as a Caton, it is of course also possible to select 150 millis
There is the standard of Caton as audio is judged in other numerical value other than second;The corresponding preset audio condition of Caton number can be
Caton number is 0;The corresponding preset audio condition of Caton duration can be 150 milliseconds or other numerical value.
It is understood that can be gone out with screening using each preset audio condition and be unsatisfactory for the first of preset audio condition
Audio test value can then be oriented where leading to the underproof particular problem of audio content, be conducive in subsequent quick solution
The certainly quality problems of target audio.
B1, the audio content qualification or audio content obtained based on judgement is underproof to be determined as a result, determining the target
The audio inspection result of video.
Wherein it is possible to which the audio content that judgement is obtained is qualified or the underproof judgement of audio content is as a result, as described
The audio inspection result of target video.So, the audio inspection result is at least used to characterize in the audio of the target video
Whether hold qualified.It is, of course, understood that the audio inspection result can also include each first audio test value, from
And keeps audio inspection result specific in further detail and be convenient for reading.
S104 obtains the first video inspection value about at least one the first video inspection item for the first video data,
And it is based on the first video inspection value, determine the video inspection result of the target video.
Described at least one video inspection item, which can be, to be preset, illustratively, at least one first video inspection
Testing item may include: one or more of code rate, resolution ratio, frame per second, Caton number and Caton duration.The first video inspection
The specific value that value is corresponding first video inspection item is tested, for example the corresponding test value of code rate can be 1200kbps etc., point
The corresponding test value of resolution can be 1680*1050 pixel etc., and the corresponding test value of frame per second can be 10 frames/second etc., Caton time
The corresponding test value of number can be inferior for 2, and the corresponding test value of Caton duration can be 0.15 second etc..
Optionally, described to be based on the first video inspection value, the video inspection of the target video is determined as a result, can be with
Include the following steps A2 and B2:
A2, judges whether the first video inspection value meets corresponding pre- setting video condition, if so, determining the mesh
The video content for marking video is qualified, otherwise, it is determined that the video content of the target video is unqualified;
Wherein, pre- setting video condition can be in a preset range, less than a preset threshold, alternatively, it is pre- to be greater than one
It is specifically related to specific video inspection item using which kind of pre- setting video condition if threshold value etc., for example code rate is usually more Gao Yue
Good, then the corresponding pre- setting video condition of code rate can be a default code rate lowest threshold, such as 500kbps etc.;Resolution ratio is corresponding
Pre- setting video condition can be a default resolving range, or for a default resolution ratio lowest threshold etc., naturally it is also possible to
It is not provided with default resolution ratio lowest threshold etc., this is all can be reasonable;The corresponding pre- setting video condition of frame per second can be default for one
Frame per second lowest threshold, for example be 10 frames/second etc..In embodiments of the present invention, can will occur 250 milliseconds or more in video to stop
Pause and be considered as a Caton, it is of course also possible to select other numerical value other than 250 milliseconds, the mark of Caton occurs as video is judged
It is quasi-;It is 0 that the corresponding pre- setting video condition of Caton number, which can be Caton number,;The corresponding pre- setting video condition of Caton duration can be with
For 250 milliseconds or other numerical value.
It is understood that can go out be unsatisfactory for corresponding to pre- setting video condition with screening using each pre- setting video condition
First video inspection value can then be oriented where leading to the underproof particular problem of video content, be conducive to subsequent fast
Speed solves the quality problems of target video.
B2, the video content qualification or video content obtained based on judgement is underproof to be determined as a result, determining the target
The video inspection result of video.
Wherein it is possible to which the video content that judgement is obtained is qualified or the underproof judgement of video content is as a result, as described
The video inspection result of target video.So, the video inspection result is at least used to characterize in the video of the target video
Whether hold qualified.It is, of course, understood that the video inspection result can also include each first video inspection value, from
And keeps video inspection result specific in further detail and be convenient for reading.
It should be noted that S103 and S104 can be executed parallel, the quality inspection effect of target video can be improved in this way
Rate.It is of course also possible to first carry out S103, then S104 is executed, or conversely, this is all reasonable.
S105, based on the audio inspection result and the video inspection as a result, determining the quality inspection of the target video
Test result.
Wherein, the quality test results be at least used to characterize the target video quality it is whether qualified.It is understood that
, the target video it is up-to-standard are as follows: the audio content is qualified and the video content is qualified;The target video
It is off quality are as follows: at least one is unqualified for the audio content and the video content.
It is, of course, understood that the quality test results of the target video can also be examined comprising each first audio
Test value and each first video inspection value.
Optionally, after the quality test results for determining the target video, the method also includes:
Export the quality test results.
In embodiments of the present invention, the output format that can be selected according to user, such as MS Office Applications excel table
Xls format or the doc format of MS Office Applications word document etc., export the quality test results, in order to user's browsing
And it saves.The quality test results can be subsequently used for providing the quality assurance of video product and to the investigation of quality problems
Deng tool has been widely used.
Specifically, in embodiments of the present invention, can obtain and use in the step of obtaining the target video to quality inspection
The output format of family selection, the output format then selected according to user export the quality test results.About acquisition user
The content of the output format of selection will be introduced in the declaratives for S101 step later.
In the scheme provided by the embodiment of the present invention, user's choosing can be got during obtaining target video
The output format for the quality test results selected, and after the quality test results for determining the target video, it is selected according to user
The output format output quality test results selected.The embodiment of the present invention can provide different output formats, different for meeting
Scene demand uses the quality test results for subsequent different scenes, provides great convenience.
In scheme provided by the embodiment of the present invention, target video is decapsulated first, obtains the first audio data and the
Then on the one hand one video data is tested for the first audio data, obtain and examine item about at least one first audio
The first audio test value, and be based on the first audio test value, determine the audio inspection result of the target video;It is another
Aspect is tested for the first video data, obtains the first video inspection value about at least one the first video inspection item,
And it is based on the first video inspection value, determine the video inspection result of the target video;Finally examined based on the audio
As a result with the video inspection as a result, determining the quality test results of the target video, wherein the quality test results are extremely
It is few whether qualified for characterizing the quality of the target video.Therefore, scheme provided by the embodiment of the present invention can be to video
Quality is effectively examined.
As described in S101, in embodiments of the present invention, the target video to quality inspection that can be determined based on user
Relevant information, obtain the target video, the process described in detail below.
It should be noted that in embodiments of the present invention, which can be with default programming language
Open source net can be used in the client write in the case where developing environment Linux+Vim/Windows+VS2010, the client
The agreement libcurl and agreement librtmp analog subscriber in network library download live stream, that is, download the video being broadcast live online, and
It tests in the subsequent quality to live stream, certainly, the client also available local video, and subsequent to this
The quality of the video on ground is tested.
Optionally, in embodiments of the present invention, obtaining can to a kind of specific implementation of the target video of quality inspection
With are as follows:
Address based on the target video to quality inspection obtains target video.
Detailed process may comprise steps of:
The first step obtains the address of the target video to quality inspection.
In the specific implementation, the client can provide a user interface, and receive user in institute
State the address of the target video to quality inspection inputted in user interface.Wherein, the address of the target video can be with
For URL (Uniform Resource Locator, uniform resource locator) address of network video, or local view
The path address etc. of frequency.
Second step obtains target video based on the address of the target video.
In the specific implementation, it is directed to live stream, the client can the URL based on the live stream
Location obtains the live stream by downloading mode, it should be noted that the client has the compatible energy of downloading of live stream
Power, it can the compatible live stream for downloading a variety of popular protocols in the industry, a variety of popular protocols such as agreement rtmp and agreement http etc.,
After the client identifies the agreement of the live stream, the data downloading mode for being suitble to the agreement of the live stream can be used,
The live stream is downloaded.
It is directed to local video, the client can be directly acquired according to the path address of the local video
The local video.
In the specific implementation, the address for the target video that user inputs in user interface can use, it can
Rapidly and accurately to obtain target video, basis is provided for the inspection of subsequent video quality.
Optionally, in embodiments of the present invention, another specific implementation of the target video to quality inspection is obtained
It can be with are as follows:
Address and inspection configuration item based on the target video to quality inspection obtain target video.
Wherein, the inspection configuration item includes: the test mode model and corresponding parameter modelInfo of test mode, institute
Stating test mode is the specific method for examining video quality, and the corresponding parameter of the test mode be the specific of inspection video quality
Parameter required for method.
Detailed process may comprise steps of:
The first step obtains the address of the target video to quality inspection.
Identical as specific implementation above, the client can receive user's input by user interface
Target video address.
Second step determines test mode.
In the specific implementation, the client can receive the target view that user determines in user interface
The test mode of frequency.
Detailed process can be with are as follows: user interface can be preset with multiple test modes numbers, and the client can be with
User's identified test mode number in user interface is obtained, and is numbered according to the test mode that user determines
Determine corresponding test mode.Wherein, the test mode number and the corresponding relationship of test mode are pre-set.In advance
If test mode number can be the numerical value such as 0,1,2 and 3, different numerical value represents different test modes, for example 0 represents and presses
Static check is done according to live stream size;1 representative does static check according to live streaming flow/time length;2 representatives make local video file quiet
State is examined;3 representatives do dynamic check etc. to live stream.
It should be noted that it is corresponding, such as target with the address of target video that the test mode that user determines, which is numbered,
The address of video is the address URL, then the test mode number that user determines is 0,1 or 3;For example the address of target video is local
The path address of video, then the test mode number that user determines is 2.If the user determine that test mode number with target regard
The address of frequency does not correspond to, and the client can show error information, and user is prompted to redefine etc..
It should be noted that each test mode is preset with the inspection of at least one first audio in the specific implementation
It tests item, at least one first video inspection item, each first audio and examines the corresponding preset audio condition of item and each first view
Frequency examines the corresponding pre- setting video condition of item.Different test modes, same first audio examine preset audio corresponding to item
Condition may be the same or different;Different test modes, pre- setting video condition corresponding to same first video inspection item
It may be the same or different.
Third step determines the corresponding parameter of test mode.
In the specific implementation, inspection mould that available user inputs in the corresponding position of user interface
Parameter corresponding to formula, such as:
It is to do static check according to live stream size for test mode, corresponding parameter includes the size of live stream, such as
30M etc., expression are directed to live stream corresponding to the address of target video, need to download the video data of live stream 30M into
Performing check;
It is to do static check according to live streaming flow/time length for test mode, corresponding parameter includes the duration of live stream, such as
180 seconds etc., expression was directed to live stream corresponding to the address of target video, needed to download 180 seconds video counts of live stream
According to testing;
It is that static check is done to local video file for test mode, corresponding parameter can be not provided with, indicate to be directed to
The video of the local corresponding to the address of target video carries out one-hundred-percent inspection;Corresponding parameter can certainly be set, it is such as big
Small or duration etc. indicates to need according to the size of user setting or duration etc., local corresponding to the address to target video
Video carries out partial test;
It is that live stream does dynamic check for test mode, corresponding parameter can be not provided with, indicated in real time from main broadcaster end
The block data for obtaining live stream, individually examines each block data, and carry out joint inspection to multiple block datas
It tests;Parameter corresponding to individually inspection and/or joint survey etc. can certainly be set.
4th step, address, the test mode and the corresponding parameter of the test mode based on the target video are obtained
Take target video.
In the specific implementation, the test mode that can be determined by user determines the specific inspection of target video
Method, and target video is obtained according to the requirement of the corresponding parameter of test mode based on determining test mode, such as
Test mode is to do static check, and corresponding parameter according to live streaming flow/time length are as follows: live stream when it is 180 seconds a length of, then can be with
Using the address of target video, the video flowing of downloading 180 seconds obtains the target video.
It, can be subsequent to different target videos, using the stronger inspection party of specific aim in the specific implementation
Method is tested, and the subsequent more accurate quality test results of acquisition are conducive to;Meanwhile the address based on the target video, institute
Test mode and the corresponding parameter of the test mode are stated, available more accurate, more specific target video is conducive to improve
The speed that video quality is examined.
It should be noted that can also be handed in the client by user in above two specific implementation
Mutual interface receives the service that user determines and returns to format form, and the service returns to the quality that format is the target video and examines
Test the output format of result.
Specifically, user interface has preset multiple services to return to format, the available user of client is logical
The mode etc. clicked or chosen is crossed, the service determined returns to format.Wherein, preset multiple services return to format can be with
Are as follows: computer code language json format or text formatting etc., wherein json format is convenient for computer program parsing, text lattice
Formula is intuitively read convenient for user.
Format is returned by determining to service, the suitable output lattice of quality test results can be selected according to the demand of user
Formula can provide convenience using the quality test results to be subsequent.
It is illustrated below with the program of one section of relevant information about target video in client, on understanding
State the relevant information of the target video in specific implementation.Described program are as follows:
StreamEval.cgi? url=rtmp: // 124.192.151.131:1935/liveshow/rqq_
Sjicjyyv@for m=json@model=1@modelInfo=180;
In above procedure, character after url:
" rtmp: // 124.192.151.131:1935/liveshow/rqq_sjicjyyv " is the net of the target video
Network address;" form=json " is that service return format is json format;The model=1 indicate test mode be by
It directly broadcasts flow/time length and does static check;The modelInfo=180 indicates that live streaming flow/time length is 180 seconds.
As another embodiment, referring to fig. 2, Fig. 2 is a kind of video quality inspection party provided by the embodiment of the present invention
Another flow diagram of method, may comprise steps of:
S201 obtains the target video to quality inspection.
S202 decapsulates the target video, obtains the first audio data and the first video counts of the target video
According to.
S203 obtains the first audio test value that item is examined about at least one first audio for the first audio data,
And it is based on the first audio test value, determine the audio inspection result of the target video.
Wherein, the audio inspection result be at least used to characterize the target video audio content it is whether qualified.Certainly,
The audio inspection result can also include each first audio test value.
S204 obtains the first video inspection value about at least one the first video inspection item for the first video data,
And it is based on the first video inspection value, determine the video inspection result of the target video.
Wherein, the video inspection result be at least used to characterize the target video video content it is whether qualified.Certainly,
The video inspection result can also include each first video inspection value.
In embodiments of the present invention, the detailed process of S201-S204 and the detailed process of S101-S104 are corresponding identical, because
This is repeated no more.
First audio data and first video data are synchronized inspection by S205, obtain the target view
Frequently corresponding audio-visual synchronization inspection result.
In common video quality problems, it is a more serious video quality problems that sound, which is drawn asynchronous, therefore, this
Inventive embodiments can after individually having been inspected to the first audio data and the first video data, to the first audio data and
First video data synchronizes inspection, and the target video is examined to draw nonsynchronous problem with the presence or absence of sound.
Specifically, S205 may comprise steps of a and b:
A, each number of the timestamp of each data block based on first audio data and first video data
According to the timestamp of block, timestamp sequence is determined;
It will be appreciated by persons skilled in the art that the timestamp of the data block of the first audio data is audio encoding process
The play time of the audio data block of middle record, the timestamp of the data block of the first video data are recorded in video coding process
Video data block play time.Under normal circumstances, obtain a data block time, with the data block correspondent time when
Between be consistent.
Wherein, the process of target video is obtained, is the different data block for successively getting target video, these data in fact
There is audio data block in block, also there is video data block, all audio data blocks constitute the first audio data, all video counts
The first video data is constituted according to block.It is possible to understand, the target video got is one in fact about data block
First ray, the First ray are as follows: each data block and the first video counts of the first audio data are arranged according to acquisition time
According to each data block, the sequence of the data block constituted.
Because each data block has corresponding timestamp in First ray, it is possible to determine based on First ray
The corresponding timestamp sequence of one sequence.
B, judges whether the timestamp sequence meets: timestamp is ascending order arrangement, and phase in the timestamp sequence
The time interval of adjacent two timestamps is not more than third threshold value, if it is, determining that the corresponding audio-video of the target video is same
Walking inspection result is qualification, if it is not, then determining that the corresponding audio-visual synchronization inspection result of the target video is unqualified.
Wherein, the third threshold value is the smaller in first threshold and second threshold, and the first threshold is based on the
Value determined by the time interval of the timestamp of the adjacent two data blocks of one audio data, the second threshold are based on first
Value determined by the time interval of the timestamp of the adjacent two data blocks of video data.
Specifically, step b may comprise steps of b1 to b3:
Step b1 determines the first threshold based on the time interval of the timestamp of the adjacent two data blocks of the first audio data
Value, and second threshold is determined based on the time interval of the timestamp of the adjacent two data blocks of the first video data.
Specifically, in available first audio data, the time interval of the timestamp of every two adjacent data blocks, determine
The rule for the time interval that most time interval is met filters out the time interval for being unsatisfactory for the rule, and will be remaining more
A time interval averaged, obtains first threshold, certainly can also be directly to all time interval averageds, can also
To take median etc. in multiple time intervals, this is all reasonable, here, not limiting the determination process of first threshold.
The determination process of second threshold and the determination process of first threshold are similar, and details are not described herein.
It should be noted that first threshold and the determination process of second threshold can also be completed before step b, for example,
After the completion of audio inspection and video inspection, audio-visual synchronization inspection is completed before starting, this is all reasonable.
Step b2 determines that the smaller in the first threshold and the second threshold is third threshold value.
Step b3, judges whether the timestamp sequence meets: timestamp is ascending order arrangement, and the timestamp sequence
In the time interval of two neighboring timestamp be not more than the third threshold value, if it is, determining that the timestamp sequence meets
Synchronous condition, if it is not, then determining that the timestamp sequence is unsatisfactory for synchronous condition.
It should be noted that the timestamp sequence must simultaneously meet two conditions:
(1) timestamp is ascending order arrangement;
(2) the time interval of two neighboring timestamp is not more than the third threshold value in the timestamp sequence.
If only meeting a condition, the timestamp sequence cannot be considered as and meet synchronous condition.
Step b3, if the timestamp sequence meets synchronous condition, it is determined that the corresponding audio-video of the target video
Verification of synchronization result is qualification, if the timestamp sequence is unsatisfactory for synchronous condition, it is determined that the target video is corresponding
Audio-visual synchronization inspection result is unqualified.
It will be appreciated by persons skilled in the art that illustrating audio number if the timestamp sequence meets synchronous condition
According to the relationship of block and the play time of video data block, meet the audio data block and video counts that audio/video coding process implies
According to the corresponding relationship of block, that is to say, that the timestamp sequence meets synchronous condition, then audio-visual synchronization.
In the scheme provided by the embodiment of the present invention, it is asynchronous existing to be directed to the sound picture being affected to video quality
As increasing audio-visual synchronization test stage to the first audio data and the first video data, whether can verify target video
Sound, which is drawn, to be synchronized, and therefore, scheme provided by the embodiment of the present invention can provide another effective inspection for the inspection of video quality
, be conducive to improve video quality.
S206 is based on the audio inspection result, the video inspection result and the audio-visual synchronization inspection result, really
The quality test results of the fixed target video.
It is understood that the target video is up-to-standard are as follows: the audio content qualification, the video content close
Lattice and audio-visual synchronization inspection result qualification;The target video it is off quality are as follows: the audio content, the view
At least one is unqualified for frequency content and the audio-visual synchronization inspection result.
It is, of course, understood that can also include that the audio is examined in the quality test results of the target video
As a result, the specific test value of the video inspection result and the audio-visual synchronization inspection result.
In embodiments of the present invention, compared to embodiment shown in FIG. 1, it joined audio-visual synchronization test stage, therefore,
The quality test results of the target video not only can be determining based on the audio inspection result and the video inspection result,
It is also based on audio-visual synchronization inspection result to determine, therefore, the method for determination of quality test results can be expanded, meanwhile, it can
To obtain the careful quality test results of more horn of plenty.
In scheme provided by the embodiment of the present invention, target video is decapsulated first, obtains the first audio data and the
Next on the one hand one video data is tested for the first audio data, obtain and examine about at least one the first audio
First audio test value of item, and it is based on the first audio test value, determine the audio inspection result of the target video;Separately
On the one hand it tests for the first video data, obtains the first video inspection about at least one the first video inspection item
Value, and it is based on the first video inspection value, determine the video inspection result of the target video;Then by first audio
Data and first video data synchronize inspection, obtain the corresponding audio-visual synchronization inspection result of the target video;
It is finally based on the audio inspection result, the video inspection result and the audio-visual synchronization inspection result, determines the mesh
Mark the quality test results of video.Wherein, the quality test results be at least used to characterize the target video quality whether
It is qualified.Therefore, scheme provided by the embodiment of the present invention can effectively examine video quality.
As another embodiment, referring to Fig. 3, Fig. 3 is a kind of video quality inspection party provided by the embodiment of the present invention
Another flow diagram of method, may comprise steps of:
S301 obtains the target video to quality inspection.
S302 decapsulates the target video, obtains the first audio data and the first video counts of the target video
According to.
In embodiments of the present invention, the detailed process of S301-S302 and the detailed process of S101-S102 are corresponding identical,
This is repeated no more.
S303 obtains the first audio test value that item is examined about at least one first audio for the first audio data;
S304, judges whether the first audio test value meets corresponding preset audio condition, if so, described in determining
The audio content of target video is qualified, otherwise, it is determined that the audio content of the target video is unqualified;
In embodiments of the present invention, the detailed process of S303-S304 has been introduced in S103, and details are not described herein.
S305 decodes first audio data;
In embodiments of the present invention, existing audio decoding techniques be can use, first audio data is decoded, with
For FLV format, it is exactly that audio FLV Tag data are decoded, obtains pulse code modulation PCM (Pulse Code
Modulation, PCM) data.Here, the treatment process of audio decoding techniques is not introduced.
S306 obtains the second sound that item is examined about at least one second audio for decoded first audio data
Frequency test value;
The correctness of Audio data compression, incorrect audio data can be examined to the decoded process of the first audio data
Compression will lead to the first audio data decoding failure, and perhaps decoding exception finally makes target video can not normal play or flower
Screen etc..
It may include audio coding compress mode, different audio codings compression side that at least one described second audio, which examines item,
User profile profile under formula, the specification of the profile is higher, and the compression ratio for representing audio data is higher;It is described
It can also include the audio coding strategy etc. of product that at least one second audio, which examines item,.Certainly, it is described at least one second
Audio examines item to be not limited to this.
It should be noted that the second audio test value embodies, it can after being decoded to the first audio data
Some data and the analyses about audio content quality obtained are as a result, the second audio test value divides commonly used in competing product
Analysis.
S307, the audio content that judgement is obtained is qualified or the underproof judgement of audio content is as a result, and described second
Audio test value is determined as the audio inspection result of the target video;
Wherein, the audio inspection result be at least used to characterize the target video audio content it is whether qualified.Certainly,
The audio inspection result also contains the second audio test value.
S308 obtains the first video inspection value about at least one the first video inspection item for the first video data;
S309, judges whether the first video inspection value meets corresponding pre- setting video condition, if so, described in determining
The video content of target video is qualified, otherwise, it is determined that the video content of the target video is unqualified;
In embodiments of the present invention, the detailed process of S308-S309 has been introduced in S104, and details are not described herein.
S3010, to first video data decoding;
In embodiments of the present invention, existing video decoding techniques be can use, by first video data decoding, with
For FLV format, it is exactly that video FLV Tag data are decoded, obtains colour coding method yuv data.
Here, the treatment process of video decoding techniques is not introduced.
S3011 obtains the second view about at least one the second video inspection item for decoded first video data
Frequency test value;
The correctness of video data compression, incorrect video data can be examined to the process of the first video data decoding
Compression will lead to the failure of the first video data decoding, and perhaps decoding exception finally makes target video can not normal play or flower
Screen etc..
At least one described second video inspection item may include Video coding compress mode, different video coding compression side
Profile under formula, the specification of the profile is higher, and the compression ratio for representing video data is higher;It is described at least one second
Video inspection item can also include the video coding strategies etc. of product.Certainly, at least one described second video inspection item is simultaneously
It is without being limited thereto.
It should be noted that the second video inspection value embodies, it later can to the first video data decoding
Some data and the analyses about video content quality obtained are as a result, the second video inspection value is divided commonly used in competing product
Analysis.
S3012, the video content that judgement is obtained is qualified or the underproof judgement of video content is as a result, and described second
Video inspection value is determined as the video inspection result of the target video;
Wherein, the video inspection result be at least used to characterize the target video video content it is whether qualified.Certainly,
The video inspection result also contains the second video inspection value.
S3013, based on the audio inspection result and the video inspection as a result, determining the quality inspection of the target video
Test result.
Wherein, the quality test results be at least used to characterize the target video quality it is whether qualified.
Certainly, the quality test results of the target video also contain each first audio test value and each first
Video inspection value, the quality test results of the target video are also used to characterize the second audio test value and second view
Frequency test value.
In embodiments of the present invention, compared to embodiment shown in FIG. 1, decoded test stage, Neng Gouyin be joined
Enter and examine item to test for audio specific to decoded audio data, and introduces and be directed to decoded video data institute
Distinctive video inspection item is tested, and checkout procedure can be made more careful, specific and effective.It is emphasized that having
In body application, on the basis of embodiment shown in Fig. 1, the decoded proving ring about audio data can be simply added into
Section, can also be simply added into the decoded test stage about video data, this is all reasonable.
In scheme provided by the embodiment of the present invention, target video is decapsulated first, obtains the first audio data and the
Then on the one hand one video data is tested for the first audio data, obtain and examine item about at least one first audio
The first audio test value, first audio data is decoded later, for decoded first audio data, obtain about
At least one second audio examines the second audio test value of item, and determines the audio inspection result of the target video;It is another
Aspect is tested for the first video data, obtains the first video inspection value about at least one the first video inspection item,
First video data decoding is obtained for decoded first video data about at least one the second video later
The second video inspection value of item is examined, and determines the video inspection result of the target video;Finally examined based on the audio
As a result with the video inspection as a result, determining the quality test results of the target video.Therefore, the embodiment of the present invention is provided
Scheme video quality can effectively be examined.
As another embodiment, on the basis of embodiment that can be shown in Fig. 3, add in embodiment illustrated in fig. 2
Audio-visual synchronization test stage, referring to fig. 4, Fig. 4 be a kind of video quality method of inspection provided by the embodiment of the present invention again
A kind of flow diagram, S401-S4012 is identical as S301-S3012 in Fig. 4, and details are not described herein, only in Fig. 4
S4013-S4014 is introduced:
First audio data and first video data are synchronized inspection by S4013, obtain the target view
Frequently corresponding audio-visual synchronization inspection result.
About the detailed process of the step, S204 in the embodiment depicted in figure 2 is had been introduced, and details are not described herein.
S4014 is based on the audio inspection result, the video inspection result and the audio-visual synchronization inspection result,
Determine the quality test results of the target video.
Wherein, the quality test results be at least used to characterize the target video quality it is whether qualified.
It is understood that the target video is up-to-standard are as follows: the audio content qualification, the video content close
Lattice and audio-visual synchronization inspection result qualification;
The target video it is off quality are as follows: the audio content, the video content and the audio-visual synchronization
At least one is unqualified for inspection result.
Certainly, the quality test results of the target video also contain each first audio test value and each first
Video inspection value, the quality test results of the target video are also used to characterize the second audio test value and second view
Each test value in frequency test value and audio-visual synchronization inspection.
In embodiments of the present invention, compared to embodiment shown in FIG. 1, decoded test stage and audio-video be joined
Therefore verification of synchronization link can expand the method for determination of quality test results, meanwhile, available more horn of plenty is careful
Quality test results.
In scheme provided by the embodiment of the present invention, target video is decapsulated first, obtains the first audio data and the
Then on the one hand one video data is tested for the first audio data, obtain and examine item about at least one first audio
The first audio test value, first audio data is decoded later, for decoded first audio data, obtain about
At least one second audio examines the second audio test value of item, and determines the audio inspection result of the target video;It is another
Aspect is tested for the first video data, obtains the first video inspection value about at least one the first video inspection item,
First video data decoding is obtained for decoded first video data about at least one the second video later
The second video inspection value of item is examined, and determines the video inspection result of the target video;Also, by the first audio number
Inspection is synchronized according to first video data, obtains the corresponding audio-visual synchronization inspection result of the target video;Most
It is based on the audio inspection result, the video inspection result and the audio-visual synchronization inspection result afterwards, determines the target
The quality test results of video.Therefore, scheme provided by the embodiment of the present invention can effectively examine video quality.
It should be noted that in Fig. 3 and embodiment shown in Fig. 4, for the first audio data and the first video data
Two aspects examine, carried out wherein corresponding step is not necessarily synchronous.Such as in the embodiment shown in fig. 4, the first sound may be directed to
Frequency is S405 step according to progress, and at this point, be directed to the progress of the first video data is S408 step etc., this is all reasonable
's.
On the basis of Fig. 1-Fig. 4 embodiment, as another embodiment, the target video is decapsulated described,
Before the step of obtaining the first audio data and the first video data of the target video, can with the following steps are included:
Whether the encapsulation format for examining the target video is default encapsulation format, if so, executing described by the mesh
The step of marking video decapsulation, obtaining the first audio data and the first video data of the target video;Otherwise, it determines described
Target video it is off quality.
It will be appreciated by persons skilled in the art that the encapsulation format of video can be several default encapsulation format, it is each
The content of the default encapsulation format of kind is fixed.By taking FLV format as an example, which includes FLV and FLV body, wherein FLV and FLV
Body is also respectively provided with immobilized substance, for example there is fixed word joint number etc..
It in embodiments of the present invention, can be based on the various video formats of mainstream, such as FLV format or MPEG2-TS format
Deng multiple default encapsulation format of video are arranged.In embodiments of the present invention, after getting the target video, Ke Yili
With the immobilized substance of each default encapsulation format, first examine whether the encapsulation format of the target video is multiple default encapsulation lattice
It one in formula, if so, indicating to decapsulate the target video, then executes and described decapsulates the target video
The step of, if not, indicating the encapsulation format error of target video, it can not decapsulate, then can determine the target video
Quality test results are unqualified.
In scheme provided by the embodiment of the present invention, before target video decapsulation, the target video is first examined
Whether encapsulation format is default encapsulation format, can quickly verify whether the encapsulation format of target video malfunctions, if examined
Encapsulation format malfunctions out, can save subsequent Check-Out Time, and quickly obtaining quality test results is underproof conclusion;Together
When, can also in the subsequent specific link for further judging using other technologies means that encapsulation format to be caused to malfunction, such as be
Error is encoded in the cataloged procedure of target video, or occurs loss of data etc. in network transmission process, orients encapsulation
The specific link of format error, is conducive to improve video quality as early as possible.
On the basis of Fig. 3 and embodiment illustrated in fig. 4, as another embodiment, to the first audio data solution
Code before, can with the following steps are included:
Examine whether first audio data meets preset audio coding mode, if so, executing described to described the
The step of one audio data decodes;Otherwise, it determines the target video is off quality.
It will be appreciated by persons skilled in the art that generalling use several fixed forms, such as AAC to audio coding
(Advanced Audio Coding, Advanced Audio Coding) coding mode etc..In embodiments of the present invention, it can be based on a variety of
The audio coding mode of mainstream presets at least one preset audio coding mode, and examines whether first audio data accords with
One of a variety of preset audio coding modes are closed, if so, indicating to decode first audio data, then execute institute
It states to the decoded step of the first audio data, if not, indicating the coding mode error of first audio data, can not solve
Code, it is determined that the target video it is off quality.
Similarly, before to first video data decoding, can with the following steps are included:
Examine whether first video data meets default Video coding mode, if so, executing described to described the
The step of one video data decoding;Otherwise, it determines the target video is off quality.
It will be appreciated by persons skilled in the art that generalling use several fixed forms to Video coding, compiles and solve such as video
The standard of code technology H.264 coding mode or video encoding standard H.265 coding mode etc..The embodiment of the present invention can be based on more
The Video coding mode of kind mainstream presets at least one default Video coding mode, and whether examines first video data
Meet one of a variety of default Video coding modes, if so, indicating then execute first video data decoding
It is described to first video data decoding the step of, if not, indicating the coding mode error of first video data, nothing
Method decoding, it is determined that the target video it is off quality.
In scheme provided by the embodiment of the present invention, before to first audio data decoding, described the is first examined
Whether one audio data meets preset audio coding mode, and to first video data decoding before, first examine described in
Whether the first video data meets default Video coding mode, can quickly verify the coding mode of first audio data
And/or whether the coding mode of first video data malfunctions, if verifying that at least one in the two malfunctions, can save
Subsequent Check-Out Time is gone, quickly determines the off quality of the target video;At the same time it can also use other skills subsequent
Art means further judge the coding mode error of the coding mode for leading to the first audio data and/or first video data
Specific link, for example be to encode error in the cataloged procedure of target video, or occur data in network transmission process
Lose etc., the specific link of coding mode error is oriented, is conducive to improve video quality as early as possible.
In summary multiple embodiments are it is known that scheme provided by the present invention, entire checkout procedure are thrown without artificial
Enter, can be realized full-automatic inspection, therefore, human input can be saved, improve and examine speed.Also, it is directed to common view
Frequency quality problems preset multiple inspection items and corresponding test condition, can obtain the test value of multiple quantizations for examining item, because
This is capable of providing objective, effective video quality test results.Meanwhile scheme provided by the embodiment of the present invention, it can be compatible with
The various video agreement of mainstream, audio-video encapsulation format, audio coding mode and Video coding mode in the industry, therefore can be to industry
Interior common video is tested, and the scope of application is wider.Scheme provided by the present invention can be used as video quality inspection man under line
Tool, can also be used as the quality monitoring tool of online live stream, the quality condition of live stream on line can be monitored in real time.And it can
Using the tool as competing hand live streaming quality assessment, can to industry mainly competing product such as Chinese prickly ash, reflecting visitor, panda, footpath between fields footpath between fields etc., realization is small
When grade quality monitoring, therefore, scheme provided by the present invention, tool has been widely used.
Corresponding to above method embodiment, the embodiment of the invention also provides a kind of video quality verifying attachments, such as Fig. 5 institute
Show, which includes:
Module 501 is obtained, for obtaining the target video to quality inspection;
Decapsulation module 502 obtains the first audio data of the target video for decapsulating the target video
With the first video data;
First audio inspection module 503 is obtained and is examined about at least one the first audio for being directed to the first audio data
First audio test value of item, and it is based on the first audio test value, determine the audio inspection result of the target video;Institute
State audio inspection result be at least used to characterize the target video audio content it is whether qualified;
First video inspection module 504 is obtained for being directed to the first video data about at least one the first video inspection
First video inspection value of item, and it is based on the first video inspection value, determine the video inspection result of the target video;Institute
State video inspection result be at least used to characterize the target video video content it is whether qualified;
As a result determining module 505 are used for based on the audio inspection result and the video inspection as a result, determining the mesh
The quality test results of video are marked, whether the quality that the quality test results are at least used to characterize the target video is qualified.
Optionally, in embodiments of the present invention, the target video is up-to-standard are as follows: the audio content qualification and institute
State video content qualification;
The target video it is off quality are as follows: the audio content and the video content at least one do not conform to
Lattice.
Optionally, in embodiments of the present invention, described device further include:
Verification of synchronization module, for based on the audio inspection result and the video inspection as a result, the determination mesh
Before the quality test results for marking video, first audio data and first video data are synchronized into inspection, obtained
To the corresponding audio-visual synchronization inspection result of the target video;
Correspondingly, the result determining module 505, is specifically used for:
Based on the audio inspection result, the video inspection result and the audio-visual synchronization inspection result, institute is determined
State the quality test results of target video.
Optionally, in embodiments of the present invention, the verification of synchronization module, is specifically used for:
Each data of the timestamp of each data block based on first audio data and first video data
The timestamp of block determines timestamp sequence;
Judge whether the timestamp sequence meets: timestamp arranges for ascending order, and adjacent in the timestamp sequence
The time interval of two timestamps is not more than third threshold value, if it is, determining the corresponding audio-visual synchronization of the target video
Inspection result is qualification, if it is not, then determining that the corresponding audio-visual synchronization inspection result of the target video is unqualified;
Wherein, the third threshold value is the smaller in first threshold and second threshold, and the first threshold is based on the
Value determined by the time interval of the timestamp of the adjacent two data blocks of one audio data, the second threshold are based on first
Value determined by the time interval of the timestamp of the adjacent two data blocks of video data.
Optionally, in embodiments of the present invention, the target video is up-to-standard are as follows: the audio content qualification, institute
It states video content qualification and the audio-visual synchronization inspection result is qualified;
The target video it is off quality are as follows: the audio content, the video content and the audio-visual synchronization
At least one is unqualified for inspection result.
Optionally, in embodiments of the present invention, described device further include:
Encapsulation format inspection module obtains the of the target video for decapsulating the target video described
Before one audio data and the first video data, examine whether the encapsulation format of the target video is default encapsulation format, such as
Fruit is, by the decapsulation module 502 execute it is described the target video is decapsulated, obtain the first sound of the target video
The step of frequency evidence and the first video data;
Otherwise, it determines the target video is off quality.
Optionally, in embodiments of the present invention, the first audio inspection module 503, comprising:
First judging submodule, for judging whether the first audio test value meets corresponding preset audio condition,
If so, determining that the audio content of the target video is qualified, otherwise, it is determined that the audio content of the target video is unqualified;
First determines submodule, and the audio content for being obtained based on judgement is qualified or the underproof judgement of audio content is tied
Fruit determines the audio inspection result of the target video.
Optionally, in embodiments of the present invention, it described first determines submodule, is specifically used for:
The audio content that judgement is obtained is qualified or the underproof judgement of audio content is as a result, as the target video
Audio inspection result.
Optionally, in embodiments of the present invention, described device further include:
Audio decoder module, for described qualified based on the audio content that obtains of judgement or audio content is underproof sentences
Determine as a result, being decoded before the audio inspection result of the determining target video to first audio data;
Second audio inspection module is obtained for being directed to decoded first audio data about at least one the second sound
Frequency examines the second audio test value of item;
Described first determines submodule, is specifically used for:
The audio content that judgement is obtained is qualified or the underproof judgement of audio content is as a result, and second audio inspection
Value is tested, the audio inspection result of the target video is determined as;
Correspondingly, the quality test results of the target video are also used to characterize the second audio test value.
Optionally, in embodiments of the present invention, described device further include:
Audio coding mode inspection module, for examining described the before the decoding to first audio data
Whether one audio data meets preset audio coding mode, if so, being executed by the audio decoder module described to described the
The step of one audio data decodes;
Otherwise, it determines the target video is off quality.
Optionally, in embodiments of the present invention, which is characterized in that the first video inspection module 504, comprising:
Second judgment submodule, for judging whether the first video inspection value meets corresponding pre- setting video condition,
If so, determining that the video content of the target video is qualified, otherwise, it is determined that the video content of the target video is unqualified;
Second determines submodule, and the video content for being obtained based on judgement is qualified or the underproof judgement of video content is tied
Fruit determines the video inspection result of the target video.
Optionally, in embodiments of the present invention, it described second determines submodule, is specifically used for:
The video content that judgement is obtained is qualified or the underproof judgement of video content is as a result, as the target video
Video inspection result.
Optionally, in embodiments of the present invention, described device further include:
Video decoding module, for described qualified based on the video content that obtains of judgement or video content is underproof sentences
Calmly as a result, before the video inspection result of the determining target video, to first video data decoding;
Second video inspection module is obtained for being directed to decoded first video data about at least one the second view
Frequency examines the second video inspection value of item;
Described second determines submodule, is specifically used for:
The video content that judgement is obtained is qualified or the underproof judgement of video content is as a result, and second video inspection
Value is tested, the video inspection result of the target video is determined as;
Correspondingly, the quality test results of the target video are also used to characterize the second video inspection value.
Optionally, in embodiments of the present invention, described device further include:
Video coding mode inspection module, for it is described to first video data decoding before, the method is also
Include:
Examine whether first video data meets default Video coding mode, if so, decoding mould by the video
Block execute it is described to first video data decoding the step of;
Otherwise, it determines the target video is off quality.
Optionally, in embodiments of the present invention, it includes: code rate, Caton number that at least one described first audio, which examines item,
And one or more of Caton duration;
At least one described first video inspection item includes: in code rate, resolution ratio, frame per second, Caton number and Caton duration
One or more.
In scheme provided by the embodiment of the present invention, target video is decapsulated first, obtains the first audio data and the
Then on the one hand one video data is tested for the first audio data, obtain and examine item about at least one first audio
The first audio test value, and be based on the first audio test value, determine the audio inspection result of the target video;It is another
Aspect is tested for the first video data, obtains the first video inspection value about at least one the first video inspection item,
And it is based on the first video inspection value, determine the video inspection result of the target video;Finally examined based on the audio
As a result with the video inspection as a result, determining the quality test results of the target video, wherein the quality test results are extremely
It is few whether qualified for characterizing the quality of the target video.Therefore, scheme provided by the embodiment of the present invention can be to video
Quality is effectively examined.
Corresponding to above method embodiment, the embodiment of the invention also provides a kind of electronic equipment, as shown in fig. 6, can be with
Including processor 601 and memory 602, wherein
The memory 602, for storing computer program;
The processor 601 when for executing the program stored on the memory 602, realizes the embodiment of the present invention
The step of provided video quality method of inspection.
Above-mentioned memory may include RAM (Random Access Memory, random access memory), also may include
NVM (Non-Volatile Memory, nonvolatile memory), for example, at least a magnetic disk storage.Optionally, memory
It can also be that at least one is located away from the storage device of above-mentioned processor.
Above-mentioned processor can be general processor, including CPU (Central Processing Unit, central processing
Device), NP (Network Processor, network processing unit) etc.;Can also be DSP (Digital Signal Processor,
Digital signal processor), ASIC (Application Specific Integrated Circuit, specific integrated circuit),
FPGA (Field-Programmable Gate Array, field programmable gate array) or other programmable logic device are divided
Vertical door or transistor logic, discrete hardware components.
In addition, the embodiment of the invention provides one kind corresponding to the video quality method of inspection provided by above-described embodiment
Computer readable storage medium is stored with computer program in the computer readable storage medium, and computer program is by processor
The step of video quality method of inspection provided by the embodiment of the present invention is realized when execution.
For electronic equipment and computer readable storage medium embodiment, method content base as involved in it
Originally it is similar to embodiment of the method above-mentioned, so being described relatively simple, referring to the part explanation of embodiment of the method in place of correlation
?.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality
For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method
Part explanation.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all
Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention
It is interior.
Claims (17)
1. a kind of video quality method of inspection characterized by comprising
Obtain the target video to quality inspection;
The target video is decapsulated, the first audio data and the first video data of the target video are obtained;
For the first audio data, the first audio test value for examining item about at least one first audio is obtained, and is based on institute
The first audio test value is stated, determines the audio inspection result of the target video;The audio inspection result is at least used to characterize
Whether the audio content of the target video is qualified;
For the first video data, the first video inspection value about at least one the first video inspection item is obtained, and is based on institute
The first video inspection value is stated, determines the video inspection result of the target video;The video inspection result is at least used to characterize
Whether the video content of the target video is qualified;
Based on the audio inspection result and the video inspection as a result, determining the quality test results of the target video, institute
State quality test results be at least used to characterize the target video quality it is whether qualified.
2. the method according to claim 1, wherein the target video is up-to-standard are as follows: in the audio
It is qualified to hold the qualified and described video content;
The target video it is off quality are as follows: at least one is unqualified for the audio content and the video content.
3. the method according to claim 1, wherein being based on the audio inspection result and the video inspection knot
Fruit, before the quality test results for determining the target video, the method also includes:
First audio data and first video data are synchronized into inspection, obtain the corresponding sound of the target video
Audio video synchronization inspection result;
Correspondingly, it is described based on the audio inspection result and the video inspection as a result, determining the quality of the target video
Inspection result, comprising:
Based on the audio inspection result, the video inspection result and the audio-visual synchronization inspection result, the mesh is determined
Mark the quality test results of video.
4. according to the method described in claim 3, it is characterized in that, described by first audio data and first video
The step of data synchronize inspection, obtain the target video corresponding audio-visual synchronization inspection result, comprising:
Each data block of the timestamp of each data block based on first audio data and first video data
Timestamp determines timestamp sequence;
Judge whether the timestamp sequence meets: timestamp arranges for ascending order, and two neighboring in the timestamp sequence
The time interval of timestamp is not more than third threshold value, if it is, determining that the corresponding audio-visual synchronization of the target video is examined
It as a result is qualification, if it is not, then determining that the corresponding audio-visual synchronization inspection result of the target video is unqualified;
Wherein, the third threshold value is the smaller in first threshold and second threshold, and the first threshold is based on the first sound
Value determined by the time interval of the timestamp of the adjacent two data blocks of frequency evidence, the second threshold are based on the first video
Value determined by the time interval of the timestamp of the adjacent two data blocks of data.
5. according to the method described in claim 4, it is characterized in that, the target video it is up-to-standard are as follows: in the audio
Hold qualified, the described video content qualification and the audio-visual synchronization inspection result is qualified;
The target video it is off quality are as follows: the audio content, the video content and the audio-visual synchronization are examined
As a result at least one is unqualified.
6. obtaining the mesh the method according to claim 1, wherein described decapsulate the target video
Before the step of marking the first audio data and the first video data of video, the method also includes:
Whether the encapsulation format for examining the target video is default encapsulation format, regards the target if so, execution is described
The step of frequency decapsulates, and obtains the first audio data and the first video data of the target video;
Otherwise, it determines the target video is off quality.
7. method according to claim 1-6, which is characterized in that it is described to be based on the first audio test value,
Determine the audio inspection result of the target video, comprising:
Judge whether the first audio test value meets corresponding preset audio condition, if so, determining the target video
Audio content it is qualified, otherwise, it is determined that the audio content of the target video is unqualified;
The audio content qualification or audio content obtained based on judgement is underproof to be determined as a result, determining the sound of the target video
Frequency inspection result.
8. the method according to the description of claim 7 is characterized in that the audio content qualification or audio obtained based on judgement
Content is underproof to be determined as a result, determining the audio inspection result of the target video, comprising:
The audio content qualification or audio content that judgement is obtained are underproof to determine the audio as a result, as the target video
Inspection result.
9. the method according to the description of claim 7 is characterized in that the audio content qualification or audio obtained based on judgement
Content is underproof to be determined as a result, before the audio inspection result for determining the target video, the method also includes:
First audio data is decoded;
For decoded first audio data, the second audio test value that item is examined about at least one second audio is obtained;
The audio content obtained based on judgement is qualified or the underproof judgement of audio content is as a result, determine the target video
Audio inspection result, comprising:
The audio content that judgement is obtained is qualified or the underproof judgement of audio content is as a result, and second audio inspection
Value, is determined as the audio inspection result of the target video;
Correspondingly, the quality test results of the target video are also used to characterize the second audio test value.
10. according to the method described in claim 9, it is characterized in that, it is described to first audio data decoding before, it is described
Method further include:
Examine whether first audio data meets preset audio coding mode, if so, executing described to first sound
The step of frequency is according to decoding;
Otherwise, it determines the target video is off quality.
11. method according to claim 1-6, which is characterized in that it is described to be based on the first video inspection value,
Determine the video inspection result of the target video, comprising:
Judge whether the first video inspection value meets corresponding pre- setting video condition, if so, determining the target video
Video content it is qualified, otherwise, it is determined that the video content of the target video is unqualified;
The video content qualification or video content obtained based on judgement is underproof to be determined as a result, determining the view of the target video
Frequency inspection result.
12. according to the method for claim 11, which is characterized in that the video content obtained based on judgement is qualified or regards
Frequency content is underproof to be determined as a result, determining the video inspection result of the target video, comprising:
The video content qualification or video content that judgement is obtained are underproof to determine the video as a result, as the target video
Inspection result.
13. according to the method for claim 11, which is characterized in that the video content obtained based on judgement is qualified or regards
Frequency content is underproof to be determined as a result, before the video inspection result for determining the target video, the method also includes:
To first video data decoding;
For decoded first video data, the second video inspection value about at least one the second video inspection item is obtained;
The video content obtained based on judgement is qualified or the underproof judgement of video content is as a result, determine the target video
Video inspection result, comprising:
The video content that judgement is obtained is qualified or the underproof judgement of video content is as a result, and second video inspection
Value, is determined as the video inspection result of the target video;
Correspondingly, the quality test results of the target video are also used to characterize the second video inspection value.
14. according to the method for claim 13, which is characterized in that it is described to first video data decoding before, institute
State method further include:
Examine whether first video data meets default Video coding mode, if so, executing described to first view
The step of frequency is according to decoding;
Otherwise, it determines the target video is off quality.
15. method according to claim 1-6, which is characterized in that at least one described first audio examines item
It include: one or more of code rate, Caton number and Caton duration;
At least one described first video inspection item includes: one in code rate, resolution ratio, frame per second, Caton number and Caton duration
It is a or multiple.
16. a kind of video quality verifying attachment characterized by comprising
Module is obtained, for obtaining the target video to quality inspection;
Decapsulation module obtains the first audio data and first of the target video for decapsulating the target video
Video data;
First audio inspection module obtains for being directed to the first audio data and examines the of item about at least one first audio
One audio test value, and it is based on the first audio test value, determine the audio inspection result of the target video;The audio
Whether the audio content that inspection result is at least used to characterize the target video is qualified;
First video inspection module obtains the about at least one the first video inspection item for being directed to the first video data
One video inspection value, and it is based on the first video inspection value, determine the video inspection result of the target video;The video
Whether the video content that inspection result is at least used to characterize the target video is qualified;
As a result determining module is used for based on the audio inspection result and the video inspection as a result, determining the target video
Quality test results, whether the quality that the quality test results are at least used to characterize the target video qualified.
17. a kind of electronic equipment, which is characterized in that including processor and memory, wherein
The memory, for storing computer program;
The processor when for executing the program stored on the memory, realizes that claim 1-15 is any described
Method and step.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810966511.7A CN108933938A (en) | 2018-08-23 | 2018-08-23 | A kind of video quality method of inspection, device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810966511.7A CN108933938A (en) | 2018-08-23 | 2018-08-23 | A kind of video quality method of inspection, device and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108933938A true CN108933938A (en) | 2018-12-04 |
Family
ID=64445840
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810966511.7A Pending CN108933938A (en) | 2018-08-23 | 2018-08-23 | A kind of video quality method of inspection, device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108933938A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110430425A (en) * | 2019-07-31 | 2019-11-08 | 北京奇艺世纪科技有限公司 | A kind of video fluency determines method, apparatus, electronic equipment and medium |
CN110519646A (en) * | 2019-09-19 | 2019-11-29 | 北京市博汇科技股份有限公司 | A kind of monitoring method and device of OTT internet video |
CN110585702A (en) * | 2019-09-17 | 2019-12-20 | 腾讯科技(深圳)有限公司 | Sound and picture synchronous data processing method, device, equipment and medium |
CN111479105B (en) * | 2020-03-12 | 2021-06-04 | 上海交通大学 | Video and audio joint quality evaluation method and device |
CN111479107B (en) * | 2020-03-12 | 2021-06-08 | 上海交通大学 | No-reference audio and video joint quality evaluation method based on natural audio and video statistics |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101523916A (en) * | 2006-10-19 | 2009-09-02 | 艾利森电话股份有限公司 | A method of determining video quality |
CN101601266A (en) * | 2007-02-02 | 2009-12-09 | 艾利森电话股份有限公司 | The method and apparatus that is used for video telephony quality assessment |
CN103051921A (en) * | 2013-01-05 | 2013-04-17 | 北京中科大洋科技发展股份有限公司 | Method for precisely detecting video and audio synchronous errors of video and audio processing system |
CN104539943A (en) * | 2012-08-22 | 2015-04-22 | 华为技术有限公司 | Method and device for monitoring multimedia quality |
CN105120340A (en) * | 2013-06-08 | 2015-12-02 | 孔涛 | Real-time playing fault analysis device for ATSC (Advanced Television Systems Committee) TV programs |
CN106559707A (en) * | 2015-09-29 | 2017-04-05 | 华为技术有限公司 | Video quality detection method, device and Quality management center |
CN107493509A (en) * | 2017-09-25 | 2017-12-19 | 中国联合网络通信集团有限公司 | Video quality monitoring method and device |
-
2018
- 2018-08-23 CN CN201810966511.7A patent/CN108933938A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101523916A (en) * | 2006-10-19 | 2009-09-02 | 艾利森电话股份有限公司 | A method of determining video quality |
CN101601266A (en) * | 2007-02-02 | 2009-12-09 | 艾利森电话股份有限公司 | The method and apparatus that is used for video telephony quality assessment |
CN104539943A (en) * | 2012-08-22 | 2015-04-22 | 华为技术有限公司 | Method and device for monitoring multimedia quality |
CN103051921A (en) * | 2013-01-05 | 2013-04-17 | 北京中科大洋科技发展股份有限公司 | Method for precisely detecting video and audio synchronous errors of video and audio processing system |
CN105120340A (en) * | 2013-06-08 | 2015-12-02 | 孔涛 | Real-time playing fault analysis device for ATSC (Advanced Television Systems Committee) TV programs |
CN106559707A (en) * | 2015-09-29 | 2017-04-05 | 华为技术有限公司 | Video quality detection method, device and Quality management center |
CN107493509A (en) * | 2017-09-25 | 2017-12-19 | 中国联合网络通信集团有限公司 | Video quality monitoring method and device |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110430425A (en) * | 2019-07-31 | 2019-11-08 | 北京奇艺世纪科技有限公司 | A kind of video fluency determines method, apparatus, electronic equipment and medium |
CN110430425B (en) * | 2019-07-31 | 2021-02-05 | 北京奇艺世纪科技有限公司 | Video fluency determination method and device, electronic equipment and medium |
CN110585702A (en) * | 2019-09-17 | 2019-12-20 | 腾讯科技(深圳)有限公司 | Sound and picture synchronous data processing method, device, equipment and medium |
CN110519646A (en) * | 2019-09-19 | 2019-11-29 | 北京市博汇科技股份有限公司 | A kind of monitoring method and device of OTT internet video |
CN111479105B (en) * | 2020-03-12 | 2021-06-04 | 上海交通大学 | Video and audio joint quality evaluation method and device |
CN111479107B (en) * | 2020-03-12 | 2021-06-08 | 上海交通大学 | No-reference audio and video joint quality evaluation method based on natural audio and video statistics |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108933938A (en) | A kind of video quality method of inspection, device and electronic equipment | |
CN108063970A (en) | A kind of method and apparatus for handling live TV stream | |
CN110213610A (en) | A kind of live scene recognition methods and device | |
EP3171593B1 (en) | Testing system and method | |
CN106330621B (en) | A kind of test method and test macro of interchanger transmission signal performance | |
CN108989884A (en) | Live video delay performance test method, device, equipment and storage medium | |
KR102260946B1 (en) | Techniques for detecting media playback errors | |
TW201347522A (en) | Synchronization of multimedia streams | |
CN104902346B (en) | A kind of video broadcasting method and device | |
CN110585702A (en) | Sound and picture synchronous data processing method, device, equipment and medium | |
CN105848005A (en) | Video subtitle display method and video subtitle display device | |
CN108322791A (en) | A kind of speech evaluating method and device | |
CN105187897B (en) | The media file span playback method and system more being segmented | |
CN106713011A (en) | Method and system for obtaining test data | |
US20140176728A1 (en) | Receiver and a transmitter | |
CN110381336A (en) | Video clip emotion determination method, device and computer equipment based on 5.1 sound channels | |
CN106375853A (en) | Method and device for detecting electronic program menu | |
US10097819B2 (en) | Testing system, testing method, computer program product, and non-transitory computer readable data carrier | |
García et al. | Testing framework for WebRTC services | |
CN105915965A (en) | Broadcasting list checking method and apparatus | |
CN107968942A (en) | A kind of live platform audio and video measurement method for time difference and system | |
CN112769645B (en) | Terminal testing method and device, terminal equipment and storage medium | |
CN108337503B (en) | Digital television field environment simulation method, terminal and computer readable medium | |
CN109218849A (en) | A kind of processing method of live data, device, equipment and storage medium | |
CN112423124B (en) | Dynamic playing method, device and system based on large-screen video player |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181204 |
|
RJ01 | Rejection of invention patent application after publication |