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.6.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

video_latency_test-0.0.6-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: video-latency-test-0.0.6.tar.gz
  • Upload date:
  • Size: 9.8 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.6.tar.gz
Algorithm Hash digest
SHA256 169c227b762a22d0b0483dc9eb5a447e4cfbaeabebfe3903a73d1ebfc6398560
MD5 3eb050a4ed09cb3ae7027a767a552731
BLAKE2b-256 8ffcfc87e0a63d42f53d4e4e57dc0945602242ffdc56918ffa19cb8c324528e0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: video_latency_test-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 13.8 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 5f70934adbbfaa9510f9de2747bbf9387de92ff2aa97007606da038d1f842aff
MD5 66049b3183e857afcafe94c4b234ccb2
BLAKE2b-256 8e2c57da86655f1bae49f2db18c748ee1aaf7a7374af493f257e28fcb53cb612

See more details on using hashes here.

Supported by

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