CN116939192A - Delay test method, delay test device, electronic equipment and computer readable storage medium - Google Patents

Delay test method, delay test device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN116939192A
CN116939192A CN202210383071.9A CN202210383071A CN116939192A CN 116939192 A CN116939192 A CN 116939192A CN 202210383071 A CN202210383071 A CN 202210383071A CN 116939192 A CN116939192 A CN 116939192A
Authority
CN
China
Prior art keywords
audio
test
target
video
frame
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
Application number
CN202210383071.9A
Other languages
Chinese (zh)
Inventor
何家锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202210383071.9A priority Critical patent/CN116939192A/en
Publication of CN116939192A publication Critical patent/CN116939192A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/004Diagnosis, testing or measuring for television systems or their details for digital television systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays

Landscapes

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

Abstract

The embodiment of the application discloses a delay test method, a delay test device, an electronic device and a computer readable storage medium, wherein a test video played by a tested device is detected, the test video comprises a periodic target video frame, and the target video frame corresponds to a target audio frame in test audio played by the tested device; if the tested equipment is detected to display the target video frame, outputting a detection audio frame; and determining the audio-video delay condition of the tested equipment according to the output states of the target audio frame and the detection audio frame in a preset period. When the target video frame is detected, the scheme outputs the detection audio frame, and the delay test between the target video frame and the target audio frame is converted into the delay test between the detection audio frame and the target audio frame, namely, the delay test is converted into the test on the same type of data, so that the test difficulty is reduced, and the test accuracy is improved.

Description

Delay test method, delay test device, electronic equipment and computer readable storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a delay test method, a delay test device, an electronic device, and a computer readable storage medium.
Background
With the development of communication technology, various devices supporting video call and remote video monitoring appear, in the process of video call or remote video monitoring, the devices need to transmit audio and video to receiving devices such as mobile phones, televisions or computers through a network, and because of the change of network conditions, audio and video data cannot be synchronously transmitted to the receiving devices, so that the phenomenon that video pictures and audio are not synchronous can occur. In order to ensure that the audio and video of the equipment can be synchronously played after being transmitted, the equipment needs to be tested before leaving the factory. When the audio and video synchronization test is carried out on the equipment, a tester watches the audio and video played by the receiving equipment, judges whether the audio corresponding to a video picture is heard when the tester sees the video picture or not, so as to judge whether the audio and video are synchronous or not, however, because the video picture and the audio are required to be judged through different senses, whether the audio and the video are synchronous or not is difficult to determine, and the accuracy of a test result is low.
Disclosure of Invention
The embodiment of the application provides a delay test method, a delay test device, electronic equipment and a computer readable storage medium, which can reduce test difficulty and improve test accuracy.
The delay test method provided by the embodiment of the application comprises the following steps:
detecting a test video played by a tested device, wherein the test video comprises a periodic target video frame, and the target video frame corresponds to a target audio frame in test audio played by the tested device;
outputting a detection audio frame if the tested device is detected to display the target video frame;
and determining the audio-video delay condition of the tested equipment according to the output states of the target audio frame and the detection audio frame in a preset period.
Accordingly, another delay test method provided by the embodiment of the application includes:
detecting test audio played by the tested equipment, wherein the test audio comprises periodic target audio frames, and the target audio frames correspond to target video frames in test video played by the tested equipment;
if the tested equipment is detected to play the target audio frame, outputting an optical signal;
and determining the audio-video delay condition of the tested equipment according to the output states of the target video frame and the optical signal in a preset period.
Correspondingly, the embodiment of the application also provides a delay testing device, which comprises:
the first detection unit is used for detecting a test video played by the tested equipment, wherein the test video comprises a periodic target video frame, and the target video frame corresponds to a target audio frame in test audio played by the tested equipment;
the first output unit is used for outputting a detection audio frame if the tested device is detected to display the target video frame;
and the first delay determining unit is used for determining the audio-video delay condition of the tested equipment according to the output states of the target audio frame and the detection audio frame in a preset period.
In an embodiment, the target video frame includes an optical signal image, and the first detection unit includes:
and the brightness detection subunit is used for detecting brightness change of the test video played by the tested equipment through the photosensitive sensor so as to detect the target video frame.
In an embodiment, the first delay determining unit includes:
the first acquisition subunit is used for respectively acquiring waveform data corresponding to the target audio frame and the detection audio frame;
a state determination subunit, configured to determine output states of the target audio frame and the detected audio frame according to the number of waveform data;
and the delay condition determining subunit is used for determining the audio/video delay condition of the tested equipment according to the output state.
In an embodiment, the first delay determining unit includes:
a second acquisition subunit, configured to acquire target waveform data of the target audio frame and detected waveform data of the detected audio frame;
and the first time calculating subunit is used for calculating the audio/video delay time of the tested equipment according to the target waveform data and the detection waveform data.
Correspondingly, another delay test device provided in the embodiment of the present application further includes:
the second detection unit is used for detecting the test audio played by the tested equipment, wherein the test audio comprises periodic target audio frames, and the target audio frames correspond to target video frames in the test video played by the tested equipment;
the second output unit is used for outputting an optical signal if the tested equipment is detected to play the target audio frame;
and the second delay determining unit is used for determining the audio-video delay condition of the tested equipment according to the output states of the target video frame and the optical signal in a preset period.
In an embodiment, the second delay determining unit includes:
the signal detection subunit is used for detecting the target video frame and the optical signal through the photosensitive sensor to obtain electric signal data;
a second time calculating subunit, configured to calculate a play time difference between the target video frame and the detected video frame according to the electrical signal data;
and the time determining subunit is used for determining the play time difference as the audio/video delay time of the tested equipment.
In an embodiment, the delay test apparatus further comprises:
a test passing unit, configured to determine that the tested device passes a test if the audio delay time meets a preset condition;
and the test failing unit is used for determining that the test of the tested equipment fails if the audio delay time does not meet the preset condition.
Correspondingly, the embodiment of the application also provides electronic equipment which comprises a memory and a processor; the memory stores a computer program, and the processor is configured to run the computer program in the memory, so as to execute any delay test method provided by the embodiment of the present application.
Accordingly, embodiments of the present application also provide a computer readable storage medium for storing a computer program loaded by a processor to perform any of the delay test methods provided by the embodiments of the present application.
According to the embodiment of the application, the test video played by the tested equipment is detected, the test video comprises periodic target video frames, and the target video frames correspond to target audio frames in the test audio played by the tested equipment; if the tested equipment is detected to display the target video frame, outputting a detection audio frame; and determining the audio-video delay condition of the tested equipment according to the output states of the target audio frame and the detection audio frame in a preset period.
When the target video frame is detected, the scheme outputs the detection audio frame, and the delay test between the target video frame and the target audio frame is converted into the delay test between the detection audio frame and the target audio frame, namely, the delay test is converted into the test on the same type of data, so that the test difficulty is reduced, and the test accuracy is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a delay test method provided by an embodiment of the present application;
FIG. 2 is a flow chart of another delay test method provided by an embodiment of the present application;
FIG. 3 is a schematic diagram of a delay test apparatus according to an embodiment of the present application;
FIG. 4 is a schematic diagram of another delay test apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The embodiment of the application provides a delay test method, a delay test device, electronic equipment and a computer readable storage medium. The delay test device can be integrated in electronic equipment, and the electronic equipment can comprise terminal equipment such as mobile phones, wearable intelligent equipment, tablet computers and the like.
The following will describe in detail. The following description of the embodiments is not intended to limit the preferred embodiments.
The present embodiment will be described from the viewpoint of a delay test apparatus which can be integrated in an electronic device in particular.
The embodiment of the application provides a delay test method, as shown in fig. 1, which comprises the following specific flow:
the tested equipment can be equipment which needs to test whether played audio and video are synchronous or not, and the tested equipment can comprise equipment which can support audio and video display, such as a mobile phone, a tablet personal computer, a notebook computer, a television, a projector and the like.
The test video may be a video for testing whether the tested device has an audio/video delay condition, the test video may include a periodic target video frame, the target video frame may be a video frame that can be distinguished from other video frames in the test video, for example, the test video may include a video segment that displays a black picture for 5 seconds and a video segment that displays a white picture for 1 second, and the target video frame may be a video segment that displays a white picture in the test video.
The test audio may be audio for testing whether the tested device has an audio-video delay condition, the test audio may include periodic target audio frames, the target audio frames may be audio frames that can be different from other audio frames in the test audio, for example, the test video frames may include audio segments with 5 seconds silence and audio segments with 1 second explosion sound, the target video frames may be audio segments with explosion sound in the test audio, the appearance period of the target video frames in the test audio is the same as the appearance period of the target video frames in the test video, and the target video frames and the target audio frames are in one-to-one correspondence, when the tested device does not have the audio-video delay condition, the target video frames and the target audio frames are played simultaneously.
101. And detecting the test video played by the tested equipment, wherein the test video comprises periodic target video frames, and the target video frames correspond to target audio frames in the test audio played by the tested equipment.
For example, the device under test may transmit the test video and the test audio to the device under test through a device (for example, a camera, etc.) capable of performing a video call or a remote data transmission with the device under test, and play the test video and the test audio according to the received audio-video data.
Taking a camera as an example for explanation: the camera is connected with the tested equipment through a network, the camera can transmit the collected audio and video data to the tested equipment through the network connection, and the electronic equipment capable of simultaneously playing the test video and the test audio is placed in front of the camera, so that the equipment head can collect the audio and video data and send the audio and video data to the tested equipment in real time, and the tested equipment plays the test video and the test audio based on the received audio and video data.
The method comprises the steps that a test video played by a tested device can be detected in different modes according to the content type of a target video frame, for example, if the target video frame is a video frame containing a preset special image (such as a circular image, a kitten or a puppy, etc.), image recognition is carried out on the test video played by the tested device to determine whether the video frame currently played by the tested device is the target video frame, if the video frame currently played contains the preset special image, the target video frame is detected, and if the video frame does not contain the preset special image, the target video frame is not detected; if the target video frame is a video frame with a specific color, the color sensor can be used for detecting the test video played by the tested equipment, if the currently played video frame is the video frame with the specific color, the target video frame is detected, and if the currently played video frame is not the video frame with the specific color, the target video frame is not detected; if the target video frame contains an optical signal image, a video frame of a preset brightness picture can be displayed, and the test video played by the tested device can be detected by the photosensitive sensor, that is, in an embodiment, the step of detecting the test video played by the tested device specifically includes:
and detecting brightness change of the test video played by the tested equipment through the photosensitive sensor so as to detect the target video frame.
The light signal image may be a white image, other video frames in the test video may include a black image, the tested device may display a black image based on the other video frames, and display a white image based on the target video frame, so that brightness changes, and the photosensitive sensor detects the target video frame through the brightness changes.
102. And outputting the detection audio frame if the detected device displays the target video frame.
The detected audio frame may be used to output a sound such as a burst sound that can be noticed, and the detected audio frame may be the same as or different from the target audio frame.
For example, specifically, if the tested device is detected to display the target video, a detection audio frame is output.
103. And determining the audio-video delay condition of the tested equipment according to the output states of the target audio frame and the detection audio frame in a preset period.
The preset period may be an occurrence period of the target video frame and the target audio frame.
For example, specifically, if the target audio frame played by the tested device and the detected audio frame are both burst sounds, in a preset period, if two burst sounds are heard, it is determined that the tested device has audio and video delay, and if only one burst sound is heard, it is determined that the tested device has no audio and video delay.
Optionally, the audio acquisition device (for example, a microphone) may acquire the detected audio frame and the target audio frame output by the tested device, and the sound signal is connected to the oscilloscope or the computer, so that the waveform corresponding to the sound signal is obtained by using the oscilloscope or the computer, and the output states of the target video frame and the detected audio frame can be objectively quantized by the oscilloscope or the computer, that is, the step of determining the audio-video delay condition of the tested device according to the output states of the target audio frame and the detected audio frame in the preset period may specifically include:
respectively acquiring waveform data corresponding to a target audio frame and a detection audio frame;
determining a target audio frame and detecting an audio frame output state according to the number of waveform data;
and determining the audio and video delay condition of the tested equipment according to the output state.
The waveform data may be data obtained by fitting an acquired sound signal, for example, a sine wave signal may be obtained by fitting an acquired sound signal, and the waveform data may be y=sinx+a.
For example, the method specifically includes collecting a target audio frame and a sound signal of a detection audio frame output by a tested device, inputting the sound signal into an oscilloscope or a computer, obtaining waveform data by the oscilloscope or the computer according to the sound signal, if the target video frame and the detection audio frame are output simultaneously, obtaining one waveform data, if the target video frame and the detection audio frame are not output simultaneously, obtaining two waveform data, thus determining whether the target video frame and the detection audio frame are output simultaneously according to the number of the waveform data, if yes, the tested device does not have audio-video delay, and if not, the tested device has audio-video delay.
Optionally, the audio/video delay time of the tested device can be calculated according to the waveform data, that is, the delay test method provided by the application specifically further comprises the following steps:
acquiring target waveform data of a target audio frame and detecting waveform data of a detected audio frame;
and calculating the audio/video delay time of the tested equipment according to the target waveform data and the detection waveform data.
For example, the method may specifically include collecting a sound signal of a target audio frame, obtaining corresponding target waveform data according to the sound signal, and collecting a sound signal of a detected audio frame, and obtaining corresponding detected waveform data according to the sound signal.
And calculating the time interval of the output of the target audio frame and the detection audio frame through the target waveform data and the detection waveform data, and taking the time interval as the audio/video delay time of the tested equipment, wherein for example, the target waveform data and the detection waveform data are both sine wave data, so that the time interval can be calculated according to the time corresponding to the peak value.
As can be seen from the above, in the embodiment of the present application, by detecting the test video played by the device under test, the test video includes periodic target video frames, and the target video frames correspond to the target audio frames in the test audio played by the device under test; if the tested equipment is detected to display the target video frame, outputting a detection audio frame; and determining the audio-video delay condition of the tested equipment according to the output states of the target audio frame and the detection audio frame in a preset period.
When the target video frame is detected, the scheme outputs the detection audio frame, and the delay test between the target video frame and the target audio frame is converted into the delay test between the detection audio frame and the target audio frame, namely, the delay test is converted into the test on the same type of data, so that the test difficulty is reduced, and the test accuracy is improved.
The present embodiment will be described from the viewpoint of a delay test apparatus which can be integrated in an electronic device in particular.
The meanings of the device to be tested, the test video, the target video frame and the target audio frame are the same as those of the above embodiment, and are not described herein, as shown in fig. 2, the specific flow of the delay test method is as follows:
201. and detecting the test audio played by the tested equipment, wherein the test audio comprises periodic target audio frames, and the target audio frames correspond to target video frames in the test video played by the tested equipment.
For example, the test audio played by the tested device may be detected by the sound sensor, or the test audio played by the tested device may be collected by the audio collecting device such as a microphone, the collected sound signal is input into an oscilloscope or a computer, and the test audio played by the tested device is detected by the oscilloscope or the computer based on the sound signal.
202. And if the tested equipment is detected to play the target audio frame, outputting an optical signal.
For example, the target audio frame may be an audio frame such as a burst sound that can be distinguished from other audio frames of the test audio, so the target audio frame may be detected by a sound sensor, an oscilloscope, or a computer.
When the target audio frame is detected, outputting an optical signal, wherein the optical signal can be that a video picture which is the same as the target video frame is displayed through a display device so as to output the optical signal, or the optical signal is emitted through a light emitting device such as an LED (light emitting diode) and the like, so that a tester can determine the audio/video delay condition of the tested device according to whether the display of the target video frame and the optical signal of the tested device are synchronous or not.
203. And determining the audio-video delay condition of the tested equipment according to the output states of the target video frame and the optical signal in a preset period.
For example, a tester can determine the audio/video delay condition of the tested device according to whether the display target video frame of the tested device and the generation of the optical signal are synchronous.
Optionally, if the target video frame is a video frame including an optical signal image, the target video frame and the optical signal may be detected by a photosensitive sensor, that is, the step of determining, according to output states of the target video frame and the optical signal in a preset period, an audio/video delay condition of the tested device may specifically include:
detecting a target video frame and an optical signal through a photosensitive sensor to obtain electric signal data;
calculating the play time difference of the target video frame and the detection video frame according to the electric signal data;
and determining the play time difference as the audio/video delay time of the tested equipment.
For example, when the tested device displays the target video frame, the brightness will change, when the test device generates the optical signal, the brightness will also change, the optical signal can be detected by the photosensitive sensor, when the photosensitive sensor detects the target video frame, the voltage (such as 5V or 3V) with the same duration (for example, 1 s) as the target video frame can be generated, and the electrical signal data can be obtained according to the voltage of the photosensitive resistor.
Taking a target video frame duration of 1s and a voltage generated by the photosensitive sensor of 5V as an example, the following description will be given: if the electric signal data only contains a 1s 5V voltage, the playing time difference between the target video frame and the detection video frame is 0, and the audio/video delay time of the test equipment is 0, namely, no audio/video delay occurs; if the two 1s 5V voltages are included, calculating a time interval between the two voltages, wherein the time interval is the play time difference between the target video frame and the detection video frame, namely the audio/video delay time of the test equipment; if the 5V voltage of 1 As (A > 1) is contained, A-1 is calculated to obtain the play time difference of the target video frame and the detection video frame, namely the audio/video delay time of the test equipment.
Optionally, whether the tested device passes the test can be further judged according to the audio/video delay time, that is, the delay test method provided by the embodiment of the application further includes:
if the audio delay time meets the preset condition, determining that the tested equipment passes the test;
if the audio delay time does not meet the preset condition, the tested equipment is determined to be failed in test.
The preset condition may be not more than B seconds, or less than C seconds, or the like.
For example, specifically, if the audio delay time meets the preset condition, the tested device passes the test; otherwise, the test does not pass.
As can be seen from the above, in the embodiment of the present application, by detecting the test audio played by the device under test, the test audio includes periodic target audio frames, and the target audio frames correspond to the target video frames in the test video played by the device under test; if the tested equipment is detected to play the target audio frame, outputting an optical signal; and determining the audio-video delay condition of the tested equipment according to the output states of the target video frame and the optical signal in a preset period.
When the target audio frame is detected, the scheme outputs the optical information, and the delay test between the target video frame and the target audio frame is converted into the delay test between the optical signal and the target video frame, namely, the delay test is converted into the test on the same type of data, so that the test difficulty is reduced, and the test accuracy is improved.
In order to facilitate better implementation of the delay test method provided by the embodiment of the application, in an embodiment, a delay test device is also provided. Where the meaning of the terms is the same as in the delay test method described above, specific implementation details may be referred to in the description of the method embodiments.
The delay test apparatus may be integrated in an electronic device, as shown in fig. 3, and may include: the first detection unit 301, the first output unit 302, and the first delay determination unit 303 are specifically as follows:
(1) The first detecting unit 301 is configured to detect a test video played by a device under test, where the test video includes a periodic target video frame, and the target video frame corresponds to a target audio frame in test audio played by the device under test.
In an embodiment, the target video frame comprises an optical signal image, and the first detection unit comprises a luminance detection subunit, in particular:
and the brightness detection subunit is used for detecting brightness change of the test video played by the tested equipment through the photosensitive sensor so as to detect the target video frame.
(2) The first output unit 302 is configured to output a detection audio frame if it is detected that the device under test displays the target video frame.
(3) A first delay determining unit 303, configured to determine an audio/video delay condition of the tested device according to the output states of the target audio frame and the detected audio frame in a preset period.
In an embodiment, the first delay determination unit 303 comprises a first acquisition subunit, a state determination subunit, and a delay condition determination subunit, in particular:
the first acquisition subunit is used for respectively acquiring waveform data corresponding to the target audio frame and the detection audio frame;
a state determination subunit for determining a target audio frame and detecting an audio frame output state according to the number of waveform data;
and the delay condition determining subunit is used for determining the audio/video delay condition of the tested equipment according to the output state.
In an embodiment, the first delay determination unit 303 comprises a second acquisition subunit and a first time calculation subunit, in particular:
a second acquisition subunit configured to acquire target waveform data of a target audio frame, and detect detected waveform data of the audio frame;
and the first time calculating subunit is used for calculating the audio/video delay time of the tested equipment according to the target waveform data and the detection waveform data.
As can be seen from the above, the delay test device according to the embodiment of the present application detects, through the first detection unit 301, the test video played by the tested device, where the test video includes periodic target video frames, and the target video frames correspond to target audio frames in the test audio played by the tested device; outputting, by the first output unit 302, the detected audio frame if it is detected that the device under test displays the target video frame; the audio/video delay condition of the tested device is determined by the first delay determining unit 303 according to the output states of the target audio frame and the detected audio frame in the preset period.
When the target video frame is detected, the scheme outputs the detection audio frame, and the delay test between the target video frame and the target audio frame is converted into the delay test between the detection audio frame and the target audio frame, namely, the delay test is converted into the test on the same type of data, so that the test difficulty is reduced, and the test accuracy is improved.
In order to facilitate better implementation of the delay test method provided by the embodiment of the application, another delay test device is also provided in an embodiment. Where the meaning of the terms is the same as in the delay test method described above, specific implementation details may be referred to in the description of the method embodiments.
The delay test apparatus may be integrated in an electronic device, as shown in fig. 4, and may include: the second detection unit 401, the second output unit 402, and the second delay determination unit 403 are specifically as follows:
(1) The second detecting unit 401 is configured to detect a test audio played by the device under test, where the test audio includes a periodic target audio frame, and the target audio frame corresponds to a target video frame in a test video played by the device under test.
(2) A second output unit 402, configured to output an optical signal if it is detected that the device under test plays the target audio frame
(3) A second delay determining unit 403, configured to determine an audio/video delay condition of the tested device according to the output states of the target video frame and the optical signal in the preset period.
In an embodiment, the second delay determination unit 403 comprises a signal detection subunit, a second time calculation subunit and a time determination subunit, in particular:
the signal detection subunit is used for detecting the target video frame and the optical signal through the photosensitive sensor to obtain electric signal data;
a second time calculating subunit, configured to calculate a play time difference between the target video frame and the detected video frame according to the electrical signal data;
and the time determining subunit is used for determining the playing time difference as the audio/video delay time of the tested equipment.
In an embodiment, the delay test apparatus further comprises a test pass unit and a test fail unit, in particular:
the test passing unit is used for determining that the tested equipment passes the test if the audio delay time meets the preset condition;
and the test failing unit is used for determining that the test of the tested equipment fails if the audio delay time does not meet the preset condition.
As can be seen from the above, the delay test device according to the embodiment of the present application detects, through the second detection unit 401, the test audio played by the device under test, where the test audio includes periodic target audio frames, and the target audio frames correspond to the target video frames in the test video played by the device under test; if the tested equipment is detected to play the target audio frame, outputting an optical signal by the second output unit 402; the second delay determining unit 403 determines the audio/video delay condition of the tested device according to the output states of the target video frame and the optical signal in the preset period.
When the target video frame is detected, the scheme outputs the detection audio frame, and the delay test between the target video frame and the target audio frame is converted into the delay test between the detection audio frame and the target audio frame, namely, the delay test is converted into the test on the same type of data, so that the test difficulty is reduced, and the test accuracy is improved.
The embodiment of the application also provides an electronic device, which may be a terminal, as shown in fig. 5, which shows a schematic structural diagram of the electronic device according to the embodiment of the application, specifically:
the electronic device may include one or more processing cores 'processors 1001, one or more computer-readable storage media's memory 1002, a power supply 1003, and an input unit 1004, among other components. It will be appreciated by those skilled in the art that the electronic device structure shown in fig. 5 is not limiting of the electronic device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. Wherein:
the processor 1001 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 1002 and calling data stored in the memory 1002, thereby performing overall monitoring of the electronic device. Optionally, the processor 1001 may include one or more processing cores; preferably, the processor 1001 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, a computer program, and the like, and the modem processor mainly processes wireless communication. It will be appreciated that the modem processor described above may not be integrated into the processor 1001.
The memory 1002 may be used to store software programs and modules, and the processor 1001 executes various functional applications and data processing by executing the software programs and modules stored in the memory 1002. The memory 1002 may mainly include a stored program area that may store an operating system, computer programs required for at least one function (such as a sound playing function, an image playing function, etc.), and a stored data area; the storage data area may store data created according to the use of the electronic device, etc. In addition, memory 1002 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 1002 may also include a memory controller to provide the processor 1001 with access to the memory 1002.
The electronic device further comprises a power supply 1003 for powering the various components, preferably the power supply 1003 is logically connected to the processor 1001 by a power management system, whereby charging, discharging, and power consumption management functions are performed by the power management system. The power supply 1003 may also include one or more of any of a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
The electronic device may also include an input unit 1004, which input unit 1004 may be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the electronic device may further include a display unit or the like, which is not described herein. In particular, in this embodiment, the processor 1001 in the electronic device loads executable files corresponding to the processes of one or more computer programs into the memory 1002 according to the following instructions, and the processor 1001 executes the computer programs stored in the memory 1002, so as to implement various functions, as follows:
detecting a test video played by the tested equipment, wherein the test video comprises a periodic target video frame, and the target video frame corresponds to a target audio frame in test audio played by the tested equipment;
if the tested equipment is detected to display the target video frame, outputting a detection audio frame;
and determining the audio-video delay condition of the tested equipment according to the output states of the target audio frame and the detection audio frame in a preset period.
A kind of electronic device with high-pressure air-conditioning system:
detecting test audio played by the tested equipment, wherein the test audio comprises periodic target audio frames, and the target audio frames correspond to target video frames in test video played by the tested equipment;
if the tested equipment is detected to play the target audio frame, outputting an optical signal;
and determining the audio-video delay condition of the tested equipment according to the output states of the target video frame and the optical signal in a preset period.
The specific implementation of each operation may be referred to the previous embodiments, and will not be described herein.
As can be seen from the above, the electronic device according to the embodiment of the present application detects the test video played by the tested device, where the test video includes periodic target video frames, and the target video frames correspond to target audio frames in the test audio played by the tested device; if the tested equipment is detected to display the target video frame, outputting a detection audio frame; and determining the audio-video delay condition of the tested equipment according to the output states of the target audio frame and the detection audio frame in a preset period.
Detecting test audio played by the tested equipment, wherein the test audio comprises periodic target audio frames, and the target audio frames correspond to target video frames in test video played by the tested equipment; if the tested equipment is detected to play the target audio frame, outputting an optical signal; and determining the audio-video delay condition of the tested equipment according to the output states of the target video frame and the optical signal in a preset period.
When the target video frame is detected, the scheme outputs a detection audio frame, converts the delay test between the target video frame and the target audio frame into the delay test between the detection audio frame and the target audio frame, or outputs optical information when the target audio frame is detected, converts the delay test between the target video frame and the target audio frame into the delay test between an optical signal and the target video frame, namely, converts the delay test between the optical signal and the target video frame into the test of the same type of data, and reduces the test difficulty, thereby improving the test accuracy.
According to one aspect of the present application, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions to cause the electronic device to perform the methods provided in the various alternative implementations of the embodiments described above.
It will be appreciated by those of ordinary skill in the art that all or part of the steps of the various methods of the above embodiments may be performed by a computer program, or by computer program control related hardware, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, an embodiment of the present application provides a computer readable storage medium having stored therein a computer program that can be loaded by a processor to perform any of the delay test methods provided by the embodiment of the present application.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Wherein the computer-readable storage medium may comprise: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
Because the computer program stored in the computer readable storage medium can execute any delay test method provided by the embodiment of the present application, the beneficial effects that any delay test method provided by the embodiment of the present application can achieve can be achieved, which are detailed in the previous embodiments and are not described herein.
The foregoing has described in detail the methods, apparatuses, electronic devices and computer readable storage medium for delay test provided by the embodiments of the present application, and specific examples have been applied to illustrate the principles and embodiments of the present application, and the above description of the embodiments is only for aiding in understanding the methods and core ideas of the present application; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present application, the present description should not be construed as limiting the present application.

Claims (11)

1. A delay test method, comprising:
detecting a test video played by a tested device, wherein the test video comprises a periodic target video frame, and the target video frame corresponds to a target audio frame in test audio played by the tested device;
outputting a detection audio frame if the tested device is detected to display the target video frame;
and determining the audio-video delay condition of the tested equipment according to the output states of the target audio frame and the detection audio frame in a preset period.
2. The method of claim 1, wherein the target video frame contains an optical signal image, and the detecting the test video played by the device under test comprises:
and detecting brightness change of the test video played by the tested equipment through the photosensitive sensor so as to detect the target video frame.
3. The method according to any one of claims 1-2, wherein determining the audio-video delay of the device under test based on the output states of the target audio frame and the detected audio frame within a preset period comprises:
waveform data corresponding to the target audio frame and the detection audio frame are respectively obtained;
determining the output states of the target audio frame and the detection audio frame according to the quantity of the waveform data;
and determining the audio and video delay condition of the tested equipment according to the output state.
4. The method according to any one of claims 1-2, wherein determining the audio-video delay of the device under test based on the output states of the target audio frame and the detected audio frame within a preset period comprises:
acquiring target waveform data of the target audio frame and detection waveform data of the detection audio frame;
and calculating the audio/video delay time of the tested equipment according to the target waveform data and the detection waveform data.
5. A delay test method, comprising:
detecting test audio played by the tested equipment, wherein the test audio comprises periodic target audio frames, and the target audio frames correspond to target video frames in test video played by the tested equipment;
if the tested equipment is detected to play the target audio frame, outputting an optical signal;
and determining the audio-video delay condition of the tested equipment according to the output states of the target video frame and the optical signal in a preset period.
6. The method of claim 5, wherein determining the audio-video delay of the device under test based on the output state of the optical signal and the target video frame within a preset period comprises:
detecting the target video frame and the optical signal through a photosensitive sensor to obtain electric signal data;
calculating the play time difference of the target video frame and the detection video frame according to the electric signal data;
and determining the play time difference as the audio/video delay time of the tested equipment.
7. The method of claim 6, wherein the method further comprises:
if the audio delay time meets the preset condition, determining that the tested equipment passes the test;
and if the audio delay time does not meet the preset condition, determining that the tested equipment does not pass the test.
8. A delay test apparatus, comprising:
the first detection unit is used for detecting a test video played by the tested equipment, wherein the test video comprises a periodic target video frame, and the target video frame corresponds to a target audio frame in test audio played by the tested equipment;
the first output unit is used for outputting a detection audio frame if the tested device is detected to display the target video frame;
and the first delay determining unit is used for determining the audio-video delay condition of the tested equipment according to the output states of the target audio frame and the detection audio frame in a preset period.
9. A delay test apparatus, comprising:
the second detection unit is used for detecting the test audio played by the tested equipment, wherein the test audio comprises periodic target audio frames, and the target audio frames correspond to target video frames in the test video played by the tested equipment;
the second output unit is used for outputting an optical signal if the tested equipment is detected to play the target audio frame;
and the second delay determining unit is used for determining the audio-video delay condition of the tested equipment according to the output states of the target video frame and the optical signal in a preset period.
10. An electronic device comprising a memory and a processor; the memory stores a computer program, and the processor is configured to execute the computer program in the memory to perform the delay test method of any one of claims 1 to 7.
11. A computer readable storage medium for storing a computer program, the computer program being loaded by a processor to perform the delay test method of any one of claims 1 to 7.
CN202210383071.9A 2022-04-12 2022-04-12 Delay test method, delay test device, electronic equipment and computer readable storage medium Pending CN116939192A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210383071.9A CN116939192A (en) 2022-04-12 2022-04-12 Delay test method, delay test device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210383071.9A CN116939192A (en) 2022-04-12 2022-04-12 Delay test method, delay test device, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN116939192A true CN116939192A (en) 2023-10-24

Family

ID=88386743

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210383071.9A Pending CN116939192A (en) 2022-04-12 2022-04-12 Delay test method, delay test device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN116939192A (en)

Similar Documents

Publication Publication Date Title
US8217639B2 (en) System for supplying and receiving power, power supply device and method thereof
CN108401217B (en) Signal output and TWS earphone testing method, terminal, device and storage medium
US11206393B2 (en) Display latency measurement system using available hardware
CN111107389B (en) Method, device and system for determining live broadcast watching time length
CN103313089A (en) Lip synchronization detection device and method
CN108241560B (en) Memory test method and device and electronic equipment
US20220308089A1 (en) Digital oscillosope and oscillogram generation system
CN111239617A (en) Control method and device for charge and discharge test, storage medium and system
CN111683329B (en) Microphone detection method, device, terminal and storage medium
CN111816139A (en) Screen refresh rate switching method and electronic equipment
CN113452991B (en) Lens focusing state determining method, device, equipment and storage medium
CN104714536A (en) Multi-functional computer fault diagnosis instrument
CN116939192A (en) Delay test method, delay test device, electronic equipment and computer readable storage medium
CN107343100A (en) Information cuing method, device, storage medium and electronic equipment
CN112052167A (en) Method and device for generating test script code
CN113849356B (en) Equipment testing method and device, electronic equipment and storage medium
CN114490228B (en) Bluetooth automatic test method and related device
CN114185782A (en) Interactive testing method and device for virtual object and electronic equipment
US20140028460A1 (en) Earthquake warning system and method for providing earthquake warning to be used in connection with earthquake warning system
CN112911394B (en) Dead halt judging method, device, equipment and medium of set top box
CN114245026B (en) Shooting method, shooting device, computer equipment and storage medium
CN113285500B (en) Mobile terminal and charging method thereof
CN111756103B (en) Mobile terminal and charging method thereof
CN117236931B (en) Equipment management method and computer equipment
CN213990826U (en) Video acquisition device based on android platform

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