High accuracy delay measurement system for a video apparatus
The latency measurement system addresses the limitations of existing methods by using a static solid block marker to accurately measure latency in complex video systems, enabling precise identification of system bottlenecks and adaptive adjustments.
Patent Information
- Application Number
- US19/458841
- Authority / Receiving Office
- US · United States
- Patent Type
- Patents(United States)
- Current Assignee / Owner
- Filing Date
- 2026-01-25
- Publication Date
- 2026-12-01
- Estimated Expiration
- 2046-01-25
AI Technical Summary
Existing latency measurement methods for real-time video systems are limited by the need for stable clock synchronization and fail to accurately capture instantaneous latency glitches in complex, bidirectional environments, particularly in systems with multiple transformation functions.
A latency measurement system that uses a static solid block marker inserted into video frames, which remains intact through transformations, allowing detection via frame size deviations, and timestamps at key stages to determine latency without relying on absolute clock synchronization.
Enables high-precision, microsecond-resolution latency measurement capable of capturing instantaneous changes, identifying system bottlenecks, and supporting adaptive bitrate control and synchronization across different video sources.
Smart Images

Figure US12820201-D00000_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Real-time video systems play a significant value in today's society, offering teleconference, remote control, distant learning, remote monitoring, and many other applications that facilitate the modern lifestyle. One key performance factor is latency, the time it takes to capture, deliver, and render the event to the remote location. The present disclosure provides an apparatus and / or a method for properly measuring the delay of a system, and the various components that contribute to the delay of the entire system, using a simple watermarking method that can be embedded into a device under test (DUT), in order to be able to compensate for the delay if necessary or desired.BACKGROUND
[0002] With the popularity of real-time interactive applications, low-latency video encoding and decoding have become key technologies in cutting-edge fields such as remote communication, cloud gaming, online education, industrial remote control, and autonomous driving. In these scenarios, end-to-end latency is the golden indicator for measuring system performance and user experience. A latency difference of tens of milliseconds may lead to response time delays, interaction stutters, command errors, or even safety accidents. With advent of artificial intelligence, analysis and response can now be achieved at the millisecond level. Therefore, accurate latency measurement and continuous optimization are core challenges in system design and operational maintenance. Furthermore, steps may be required or desired in order to minimize or compensate for the impacts of the latency, once it is properly measured.SUMMARY
[0003] Accordingly, a system for measuring a latency delay of a video source of a device under test is provided, comprising: a pattern generator configured to overwrite a portion of pixel data of the video source with a uniform chroma and luma value pixels to create a marker frame, wherein the uniform chroma and luma value pixels occupy bottom 400 lines of a frame of the video source; an apparatus configured to timestamp the marker frame when generated; and a logic module coupled to a decoder output of the device under test, wherein the decoder is configured to trigger a physical signal upon detecting a compressed frame size that deviates from a reference average frame size by a specific margin; a sensor configured to detect the physical signal; and wherein the apparatus is further configured to generate another timestamp in response to the sensor detecting the physical signal and compare the another timestamp against the generated timestamp to determine the latency delay of the video source.
[0004] Also, a method is provided for measuring an end-to-end latency in a video system according to the present embodiments. A solid color marker block is inserted into a predetermined region of a source video frame at a fixed periodic interval. The source video frame with the inserted solid color marker block is transmitted through a video encoding and transmission system. The solid color marker block is detected at a receiving end. A time difference is calculated between the insertion time and detection time to determine a latency time for the video system.BRIEF DESCRIPTION OF THE DRAWINGS
[0005] FIG. 1 illustrates a block diagram of an embodiment of a system with which aspects of the present embodiments may be implemented.
[0006] FIG. 2 illustrates an embodiment of a marker frame.
[0007] FIG. 3 illustrates another embodiment of a system with which aspects of the present embodiments may be implemented.
[0008] FIG. 4 illustrates exemplary different detected marker frame sizes inserted in intra and inter coded video frames.
[0009] FIG. 5 illustrates an embodiment of a method with which aspects of the present embodiments may be implemented.
[0010] FIG. 6 illustrates another embodiment of a method with which aspects of the present embodiments may be implemented.DETAILED DESCRIPTION
[0011] Present inventors recognized that traditional latency evaluation methods, such as frame counting based on timestamps or comparison using an external reference clock, often have significant limitations. For a complex video delivery system, in which a video source undergoes multiple levels of transformation, correlating the reference frame position to the final delivered system becomes challenging. Common transformation functions include:
[0012] Format conversion (480i, 720p, HD4k)
[0013] Frame rate conversion (50 fps, 59.94 fps, 60 fps)
[0014] Pixel dynamic range compression (4:4:4 choma, HDR)
[0015] Content compression (MPEG, H.26X)
[0016] Transmission (SDI, ATSC, MPTS)
[0017] Existing methods either rely on stable end-to-end clock synchronization (which is difficult to achieve), use complex watermarks, or can only measure latency of unidirectional, specific paths (e.g., decoder-only), failing to fully reflect the dynamic performance of bidirectional interactive links in real complex network environments (such as jitter, packet loss, and bandwidth fluctuations). In particular, it is difficult to capture instantaneous, sudden latency glitches, which are precisely the key factors affecting smooth experience and system stability.
[0018] To address these challenges, there is an urgent need for a novel real-time measurement method or system that does not rely on absolute clock synchronization. This scheme must be capable of accurately capturing and correlating analysis at any time of the link under the condition of established connections at both ends, and is simple so it can be embedded in the device under test (DUT). This capability will empower developers and operation and maintenance personnel to gain deep insights into system bottlenecks (such as encoding, network transmission, decoding, and rendering links), providing high-precision data support for optimization decisions such as adaptive bitrate control and dynamic adjustment of encoding parameters, thereby, constructing a more robust ultra-low-latency video system. This accurate latency measurement can then be used to compensate delay for two different video sources, or to synchronize between different audio or video sources and their paths.
[0019] To accurately determine the timing sequence of specific video processing flow within a device, present disclosure provides a latency measurement scheme by marking the video source content with static solid block. Being the fact that even through the various transformations, the solid inserted block remains intact, for the most part, therefore, a simple detector, that detects for a high percentage of the pixel values to be within a certain range, can identify the markers, even though all the transformations. Present inventors also solved one particular challenge in that a marker is able to be sent through a delivery system that goes through all the possible mediums multiple times and still survives.
[0020] FIG. 1 illustrates aspects of an embodiment of the present disclosure. A system 100 for latency measurement for a video source is provided. A pattern generator shown in 102 is configured to overwrite a portion of pixel data of a video source provided in 101 with a uniform value marker block to create a marker frame. An apparatus such as a latency analyzer 111 is configured to timestamp the generation of the marker frame at 102. Alogic module 121 is coupled to a decoder output 109 of the device under test and is configured to trigger a physical signal upon detecting a compressed frame size that deviates from a reference average frame size by a specific margin. A sensor 131 is configured to the detect a physical signal generated by an I / O pin of the DUT (309 in FIG. 3), and compare the triggered timing against the generated timestamp to determine a latency time of the system 100.
[0021] Additional and more detailed descriptions of the system 100 for analyzing a latency delay of a video source 101 will be provided hereafter. The system 100 illustrates how a device under test 140 with different processing stages 101 to 106 may be made to interface and interact with a tester / latency analyzer 111 for the testing system 100. At 101 of FIG. 1, an exemplary video source with a format of 1920 pixels×1080 lines at 60 fps (1080p60) is provided. At 102, a solid block marker is generated by a pattern generator and is provided. The solid block marker may be, for example, a block of pixels with the size of 1920 pixels×1080 lines, with same color and brightness (e.g., white color, CbCr=(255,255), brightness Y=250) for all of the pixels.
[0022] The marker may be presented, e.g., at a period of 1 second. This period determines the maximum delay the measuring system 100 can measure. This period can be adjusted according to the actual system latency to be expected for the device under test. The marker can be detected at various stages of the system 100. As to be further illustrated below, the first point may be just after a hardware capturing unit, which can re-construct a compressed stream as a Serial Digital Interface (SDI) signal to be analyzed by the tester for the marker. The 2nd stage may be, for example, an output of the format conversion, which can be a parallel 10 bit TTL signal following the SMPTE259 standard.
[0023] Continue on FIG. 1, at 103, the uncompressed video stream from 102 then goes into an MPEG video encoder / compressor shown at 103, which then forms a bit level stream. The marker, which is an overlay that must remain highly uncorrelated from the original video source, will result in a sudden change in the current frames compressed frame size. For the case when configured for intra encoding, the marker contains a very limited amount of information, which can be compressed significantly, resulting in a smaller frame than the others. This reduced size maker frame is illustrated, e.g., as frame 402 in FIG. 4.
[0024] On the other hand, encoders configured for progressive encoding without intra encoding blocks, the marker frame will introduce a larger compressed frame due to the lack of correlation with the previous frame, resulting in a poor prediction. Given this embodiment which holds a marker covering 400 / 1080=40% of the image, the compression bits used to represent the marker frames will have 40% more bits. This increased size maker frame is illustrated, e.g., as frame 403 in FIG. 4.
[0025] A size reduction can only be identified at the end of each frame. Thus, for embodiments that require analysis at the compressed domain level, the marker should reside within the tail end of the image. For MPEG compression, it is consistently compressed following a raster-scan format, encoding the top left pixels first, and the bottom right pixels last. So, for these embodiments, the marker will reside within the bottom 400 lines. (e.g., line 640 to line 1080), as illustrated in FIG. 2. Through this means, tester 111 can detect the frame timestamp in reference to the global time, as defined by the tester 111. The tester 111 will have a serial bit stream input, such as, e.g., but not limited, to RS232, RS485, ASI, and etc.
[0026] At 104 of FIG. 1, the compressed video stream is transmitted through a network or networks. This stage 104 focuses on network latency, measured by analyzing the real-time delivery of the marker via transmission networks such as Ethernet and Wi-Fi. This process can be implemented through two distinct schemes. The first approach follows the MPEG Transport Stream format defined by the MPEG2 committee, where tester 111 performs standard de-encapsulation-stripping User Datagram Protocol (UDP) to MPEG-2 Transport, then to Packetized Elementary Stream (PES), and finally to Elementary Stream (ES)-determining the frame size only when the last image block is detected. Alternatively, a second scheme leverages the identification performed prior to encoding, since the special marker frame is recognized before data compression, this identification result is embedded directly into the video stream, allowing the decoding end to simply verify this data upon receiving the complete frame to determine whether to trigger the signal output.
[0027] At 105 of FIG. 1, another stage of the latency detection system 100 is the compression decoder input of the device under test. For example, a device under test captures the compressed bit stream via its serial input ports. It then proceeds to de-capsulate the packets from UDP to RTP, then from RTP to MPTS, which is then decoded to PES, and ES streams. It is a good point to take another sample of the latency, which is the reconstruction of the elementary stream(ES) just before the MPEG decoder. The tester may be configured to receive the UDP stream and generate the ES, which is then used to identify the end of frame point, and to compare with the encoder timestamp.
[0028] Another stage of the latency system 100 is when the decoder just finished decoding the current frame, at the output of 105 of FIG. 1. Specifically, the decoder 105 has successfully decoded the marker frame. For this embodiment, it is assumed that the decoder will only receive full frames before decoding start, and, it will return on the decode function upon completion. This is generally the case when working with commercially off-to-shelf parts. The default method to identify the marker frame is through the size of the compressed byte size. The DUT will, with the support of a custom code, output a signal to a dedicated General Purpose I / O (GPIO) pin of the DUT, that signals the tester 111 to indicate the end of the marker time.
[0029] Another stage of the latency test illustrated in FIG. 1 focuses on the readout of the uncompressed image from the video decoder buffer to the video hardware rendering engine. In this embodiment, the readout is carried out via a Direct Memory Access (DMA) controller, such as a Peripheral Component Interconnect (PCI) controller, which is reading from a FIFO within the video decoder engine. Marker frame detection is by analyzing the pixels in real-time. This can be done in the DUT hardware, while reading the FIFO, or, through the tester 111, by receiving an uncompressed stream via a standard video interface (e.g., SDI, HDMI). For this case, it is required that the DUT makes available the FIFO read data in the acceptable standard interfaces.
[0030] FIG. 1 illustrates another stage of the latency test which tracks the uncompressed output of the DUT rendering engine, at 106 of FIG. 1. Common DUT rendering format includes SDI, HDMI, VGA, or composite. The tester will analyze the interface in real-time and flag the marker frame with a timestamp. That timestamp is then compared with the system input capture timestamp to give the overall system latency measurement.
[0031] Accordingly, the latency measurement system or method according to the present disclosure will have a latency resolution in the micro seconds, and it will not be frame period bounded. It can measure the latency at a rate equal the longest latency period of the system. And, it can capture instantaneous change in latency on every sample. It can detect worst- and best-case latency from an absolute timescale, not depending on any statistical average. Following this method, engineering development of codec systems can now support guaranteed latency performance.
[0032] Starting from the hardware video acquisition terminal, this disclosure performs periodic content solid block markings on the input video signal before entering the device under test (DUT): specifically, by overwriting the pixel data of the bottom-most 400 lines of the active video frame with a solid white block (Luma Y=200, Chroma Cb / Cr=255). This injection occurs at a frequency of 1 Hz (once every 60 frames for a 60 fps system). The remaining 680 lines of the active video frame retain the original moving video content to ensure the video encoder remains in an active, non-idle state.
[0033] FIG. 3 illustrates aspects of another embodiment of the present disclosure. As illustrated, exemplary system 300 in FIG. 3 comprises an apparatus such as a Central Latency Analyzer (the “Tester”) 301 and a Device Under Test (DUT) 302. The Tester 301 is configured to maintain a global microsecond-precision clock 312 for generating and keeping track of a Reference Time, T_ref. The Tester 301 is physically connected to the DUT 302 at multiple probe points 303-306 with a probe array 311 corresponding to the different stages of latency identified above, and further described below:1. Marker Generation and Initial Timestamping (Stage 1 & 2), Using Probe 303:
[0034] In an embodiment, the video source is a 1080p60 stream. The Tester 301 generates or controls a video generator (such as 102 shown in FIG. 1) to insert the “Marker Frame”. At Stage 1, Tester 301 monitors, at probe point 303, the raw SDI input entering the DUT 302, at SDI input port 307. A hardware comparator within the Tester 301 compares the incoming pixel stream against the pre-defined threshold (Y>190). When the comparator detects the solid white block spanning the defined 400 lines, it records the Source Timestamp (T_start) from the clock generator 312. At Stage 2, the signal is converted to a parallel interface (e.g., TTL). The Tester 301 probes the data bus and records a timestamp, generated by clock 312, upon detecting the specific 10-bit digital values corresponding to the solid block.2. Compression and Network Transmission (Stage 3), Using Probe 304:
[0035] This stage implements the adaptive detection logic described previously. As the video stream enters the MPEG / H.26X compressor, the Marker Frame acts as a statistical anomaly compared to the surrounding frames. The Tester 301, using probe 304, monitors the network interface (e.g., Ethernet port, 308) carrying the MPTS / bitstream and performs a real-time size analysis of the payload, as described in more detail below:
[0036] Let S_avg be the rolling average frame size of the preceding N frames.
[0037] Let S_curr be the size of the current frame.
[0038] Let Delta be the deviation threshold (e.g., 30%).
[0039] The Tester 301 identifies the Marker Frame when a significant size deviation is detected:|S_curr−S_avg|>(S_avg*Delta)
[0040] Case A (Intra-Coding / Low Entropy): If the encoder treats the solid block as a static image area, S_curr will be significantly smaller than S_avg due to high compression efficiency.
[0041] Case B (Inter-Coding / Prediction Error): If the encoder uses predictive coding (P-frames / B-frames) referring to a previous frame with different content, the sudden appearance of the solid block breaks the temporal correlation. This forces the encoder to write a large amount of residual data to describe the change, causing S_curr to be significantly larger than S_avg.
[0042] Because the Marker is placed at the bottom of the frame (lines 640-1080), the completion of this distinctive frame size (whether large or small) coincides with the transmission of the last packet of the frame. The Tester records T_network at this point.
[0043] This is also illustrated in FIG. 4.3. Decoding and Internal Processing (Stage 4, 5 & 6), Using Probe 305:At Stage 4, the DUT 302 receives the stream. The Tester 301 records the arrival time of the packet sequence identified as the anomaly in Stage 3. At Stage 5, the DUT firmware is modified to trigger a hardware signal upon decode completion, for example, by using a signal outputted by a physical General Purpose Input / Output (GPIO) pin 309 of the DUT 302. The decoder also reports the size of the just-decoded frame. The firmware logic mirrors the detection logic of Stage 3:
[0045] IF (ABS (Decoded_Size-Running_Average)>Threshold) THEN SET GPIO PIN 309 HIGH
[0046] The Tester 301 detects the rising edge of GPIO_PIN 309 to record T_decode. This captures the exact moment the decoder finishes processing the marker frame.
[0047] At Stage 6, for internal buffer readout (PCIe / FIFO), the system 300 optionally utilizes a bus analyzer, embedded within the internal buffer readout, to detect the transfer of the uncompressed solid block data.4. Rendering and Final Output (Stage 7), Using Probe 306:
[0048] Finally, the DUT 302 outputs the video signal via a standard interface (HDMI / SDI) 310. The Tester connects to this output and uses a hardware pixel comparator. To account for color space conversion drifts (e.g., YUV to RGB) and compression distortions, the detection logic uses a tolerance range (e.g., RGB values >240). Upon detecting the block of pixels meeting this criterium in the bottom 40% of the active video, the Tester 301 records the Final Timestamp (T_end).Calculations
[0049] The System Latency (L_total) is calculated as L_total=T_end-T start.
[0050] Intermediate latencies (Encoding, Network, Decoding, Rendering) are derived by calculating the difference between the timestamps of adjacent stages.
[0051] FIG. 5 illustrates an exemplary method 500 for measuring end-to-end latency in a video system according to the present embodiments. At 510, a solid color marker block is inserted into a predetermined region of a source video frame at a fixed periodic interval. At 520, the source video frame with the inserted solid color marker block is transmitted through a video encoding and transmission system. At 530, the solid color marker block is detected at a receiving end. At 540, a time difference is calculated between the insertion time and the detection time to determine a latency time for the video system. Further aspects of an exemplary method may comprise a marker block occupies a specific spatial portion of the frame such that the encoded bit size of the frame containing the marker exhibits a statistically significant deviation compared to the encoded bit size of adjacent frames containing standard video content.
[0052] FIG. 6 illustrates another exemplary method 600 for measuring end-to-end latency in a video system according to the present embodiments. At 610, the method 600 generates and inserts, by a video pattern generator, uniform chroma and luma value pixels of pixel data into a frame of the video source to create a marker frame, wherein the uniform chroma and luma value pixels occupy bottom 400 lines of the frame of the video source. At 620, the method 600 generates, by a clock generator, a timestamp when the marker frame is generated. At 630, the method 600 triggers, by the device under test, a physical signal from an output of a decoder of the device under test upon detecting a compressed video frame size that deviates from a reference average video frame size by a specific margin. At 640, the method 600 detects, by a sensor, the generated physical signal. At 650, the method 600 generates, by the clock generator, another timestamp in response to the sensor detecting the physical signal. At 660, the method 600 compares, by a processor, the another timestamp against the generated timestamp to determine the latency delay of the video source.
[0053] Addition aspects of an exemplary method may be that the marker block is positioned at the bottom-most lines of the active video frame to ensure that the unique bit-size characteristic of the marker frame is finalized only upon the completion of the frame's raster-scan encoding or decoding process. The marker block may comprise a uniform pixel value across its entire area, specifically defined by a high Luma (Y) value and constant Chroma (Cb / Cr) values, to creating a high-contrast overlay against the original video content. The fixed periodic interval may be set to a low frequency, such as 1 Hz, relative to the video frame rate, allowing for the measurement of maximum latency values without aliasing effects and preventing encoder adaptation to the marker.
[0054] Furthermore, an intermediate detection step may occur at a network interface, wherein the marker is identified within a Transport Stream (TS) by analyzing real-time payload sizes of packets to detect size anomalies without performing full video decompression. A detection of the marker block at the receiving end may comprise monitoring a physical General Purpose Input / Output (GPIO) signal triggered by a hardware decoder unit immediately upon determining that a decoded frame size satisfies a specific deviation criterion relative to previous frames. The detection of the marker block at a video rendering output may comprise comparing uncompressed pixel data against a target color value within a verifiable tolerance range to account for color space conversion drifts introduced by a rendering engine. The calculation generates an instantaneous latency value for each detected marker frame, enabling the identification of sudden latency glitches independent of statistical averaging.
[0055] The foregoing descriptions are merely exemplary embodiments of this disclosure and do not limit its scope. Any equivalent modifications or variations based on the teachings herein remain within the coverage of this disclosure. Those skilled in the art will readily conceive of other implementations after considering the specification and practical applications.
[0056] This application is intended to cover any adaptations or variations of the disclosure that adhere to its general principles, including common knowledge or conventional techniques in the field not explicitly documented herein. The specification and examples are to be regarded as illustrative, with the scope and spirit of the disclosure defined by the claims.
[0057] Furthermore, when a figure is presented as a flow diagram, it should be understood that it also provides a block diagram of a corresponding apparatus. Similarly, when a figure is presented as a block diagram, it should be understood that it also provides a flow diagram of a corresponding method / process.
[0058] The implementations and aspects described herein can be implemented in, for example, a method or a process, an apparatus, a software computer program, a data stream, or a signal. Even if only discussed in the context of a single form of implementation (for example, discussed only as a method), the implementation of features discussed can also be implemented in other forms (for example, an apparatus or a computer program executable by one or more processor). An apparatus, a device, a module, a component, and etc. can be implemented in, for example, appropriate hardware, software, and firmware, such as, e.g., a processor or the like. The methods can be implemented in, for example, a processor which refers to processing devices in general, including, for example, a computer, a microprocessor, an integrated circuit, or a programmable logic device. Processors also include communication devices, such as, for example, computers, cell phones, portable / personal digital assistants (“PDAs”) or watches, and other devices that facilitate communication of information between end-users.
[0059] Reference to “one embodiment” or “an embodiment” or “one implementation” or “an implementation”, as well as other variations thereof, means that a particular feature, structure, characteristic, and so forth described in connection with the embodiment is included in at least one embodiment. Thus, the appearances of the phrase “in one embodiment” or “in an embodiment” or “in one implementation” or “in an implementation”, as well any other variations, appearing in various places throughout this application are not necessarily all referring to the same embodiment.
[0060] Additionally, this application may refer to “determining” various pieces of information. Determining the information can include one or more of, for example, estimating the information, calculating the information, predicting the information, or retrieving the information from memory.
Claims
1. A system for measuring a latency delay of a video source of a device under test, comprising:a pattern generator configured to overwrite a portion of pixel data of the video source with a uniform chroma and luma value pixels to create a marker frame, wherein the uniform chroma and luma value pixels occupy bottom 400 lines of a frame of the video source;an apparatus configured to timestamp the marker frame when generated; anda logic module coupled to a decoder output of the device under test, wherein the decoder is configured to trigger a physical signal upon detecting a compressed video frame size that deviates from a reference average video frame size by a specific margin;a sensor configured to detect the physical signal; andwherein the apparatus is further configured to generate another timestamp in response to the sensor detecting the physical signal and compare the another timestamp against the generated timestamp to determine the latency delay of the video source.
2. The system of claim 1 wherein the apparatus further comprising a prob array having probes connected to: 1) an input of an encoder of the device under test, 2) an output of the encoder of the device under test, 3) an I / O pin of the device under test, and 4) a display output of the device under test, for determining a total latency delay of the video source through the device under test.
Citation Information
Patent Citations
Data communications system
US20010009547A1
Marker-Based Inter-Destination Media Synchronization
US20150052571A1
Audio video playback synchronization for encoded media
US20150062353A1
TCP connections resiliency system for testing networks in unstable environments
US20170237638A1
Video Switching System
US20200280749A1
