Skip to content

Conversation

@mprib
Copy link
Owner

@mprib mprib commented Jan 11, 2026

Summary

  • Add PyAV (av>=16.0.0,<16.1.0) for faster video frame seeking
  • Include benchmark script validating performance gains

Benchmark Results

  • Keyframe seeking: 7.4x faster than OpenCV
  • Exact seeking: 2.2x faster than OpenCV

Files

  • pyproject.toml — add av dependency
  • scripts/benchmark_frame_seeking.py — validation script
  • .gitignore — exception for benchmark script

Closes #845

mprib added 2 commits January 10, 2026 19:16
Add PyAV (av>=16.0.0,<16.1.0) for faster video frame seeking.
Benchmark shows 7.4x speedup for random seeks vs OpenCV on Linux.

Refs #845
Benchmark now compares three strategies:
- OpenCV exact: 73 fps
- PyAV keyframe: 540 fps (7.4x faster)
- PyAV exact: 160 fps (2.2x faster)

Two-tier strategy validated: even exact seeking beats OpenCV.

Refs #845
@mprib mprib linked an issue Jan 11, 2026 that may be closed by this pull request
3 tasks
@mprib mprib merged commit 607e7a3 into main Jan 11, 2026
9 checks passed
@mprib mprib deleted the 845-add-pyav-as-dependency-for-video-handling branch January 11, 2026 02:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add PyAV as dependency for video handling

2 participants