Skip to main content

A simple test for detecting video latency

Project description

video-latency-test

This project provides software for a simple video latency test, utilizing the Linux framebuffer for video output and OpenCV for camera capture.

CircleCI codecov

Usage

Run video-latency-test from the commandline.

root@raspberrypi4-64:~# video-latency-test -h
usage: video-latency-test [-h] [--frames FRAMES] [--hue HUE] [--csv CSV]
                          output_fb cv2_cap

Run a video latency test

positional arguments:
  output_fb        The name of the framebuffer to use, e.g. fb0
  cv2_cap          Index of the cv2 capture device, e.g. 0

optional arguments:
  -h, --help       show this help message and exit
  --frames FRAMES  Number of frames to capture for the test
  --hue HUE        Hue threshold (uses hue values of 0-180)
  --csv CSV        Location to save a CSV log of captured data

Implementation

The video-latency-test executable accepts a VideoOutputInterface object, and a VideoCapture object, then measures the latency between setting a color on the VideoOutputInterface and detecting that color on the VideoCaptureInterface. The base implementation, using a Linux Framebuffer for the output and a USB camera for the input, is shown in the diagram below.

video-latency-test-workflow

Video Output

Interface

Framebuffer Implementation

Video Capture

Interface

Framebuffer Implementation

Frame Types

Frame types provide a method of generating frames written to the Video Output device, along with a method of validating those frames from the Video Capture device.

Interface

Solid Colors

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

video-latency-test-0.0.4.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

video_latency_test-0.0.4-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file video-latency-test-0.0.4.tar.gz.

File metadata

  • Download URL: video-latency-test-0.0.4.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1

File hashes

Hashes for video-latency-test-0.0.4.tar.gz
Algorithm Hash digest
SHA256 903cdf97e7083990c10536c356032a7d3116847d25eb270cf0e40a1108878b57
MD5 153d96ed44641634931f457d4b47cdef
BLAKE2b-256 77a4ed8002b2c3d7c4252e2b3651fd5fe44361bab6c308330c69f29a813d1ca2

See more details on using hashes here.

File details

Details for the file video_latency_test-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: video_latency_test-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 13.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1

File hashes

Hashes for video_latency_test-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f571e97dbd6b3c7ee8d33779e8d4f6dbb5edb41ca4e3614d9cd6c21e09b55862
MD5 4dc81e75e230cbfdd33619b8f7c77bfd
BLAKE2b-256 fffd40b8eec319f96c789b75c0de1a4309ec0afa35b4eeb76ac3d03dfc0ba2a4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page