Skip to main content

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

Metadata

Release files for video-latency-test 0.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for video-latency-test 0.0.7
File Size Uploaded Provenance
video-latency-test-0.0.7.tar.gz 10.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for video-latency-test 0.0.7
File Interpreter ABI Platform
video_latency_test-0.0.7-py3-none-any.whl Python 3 none any Details

Total release size: 24.4 kB

Release files / video-latency-test-0.0.7.tar.gz

Download URL video-latency-test-0.0.7.tar.gz
Size 10.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e21617327d85b4ff21c186dc6a8003435d3e6642d8ca81e87aa4e74fbb88c111
BLAKE2b-256 checksum
How to use checksums
e1f07cf40a1c2e8730cbc9786d2495d8556abe5f4b930ae354f35185ebd1ad2c
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / video_latency_test-0.0.7-py3-none-any.whl

Download URL video_latency_test-0.0.7-py3-none-any.whl
Size 13.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
48a1f138a1618f32396ea301ff90838091285c90abde69652a7992b8ccd7287c
BLAKE2b-256 checksum
How to use checksums
18ce48353a00c11346ab3b79f128108d5577fa9a729d93ac8918f3e37989b57d
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for video-latency-test 0.0.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page