Skip to main content

video-annote is a lightweight multi-video annotation tool (PyQt5) for labeling time ranges (“labels”) while reviewing one or more videos.

Project description

video-annote

Minimum Python: >=3.10

video-annote is a lightweight multi-video annotation tool (PyQt5) for labeling time ranges (“labels”) while reviewing one or more videos.

You can:

  • Create/import sessions that contain multiple videos (local files or URLs)
  • Choose a Time Source (master timeline) and an Audio Source
  • Play/pause/restart and scrub safely
  • Mark start/end for labels and save annotations
  • Review and edit annotations via a timeline and a table
  • Autosave session state as you work

Screenshot

Video-Annote screenshot


Requirements

  • Python >= 3.10
  • PyQt5
  • ffmpeg + ffprobe

Why ffmpeg/ffprobe?

video-annote uses ffmpeg/ffprobe for:

  • importing URL-based videos (including .m3u8)
  • reading duration/FPS reliably

Install ffmpeg + ffprobe

Pick one method below.

Option A: Conda

If you plan to use Conda for Python, install ffmpeg into the same environment:

conda install -c conda-forge ffmpeg -y

Option B: macOS (Homebrew)

brew install ffmpeg

Option C: Ubuntu / Debian

sudo apt-get update
sudo apt-get install -y ffmpeg

Option D: Windows

  • Install ffmpeg (includes ffprobe) and add it to your PATH.

After installing, verify:

ffmpeg -version
ffprobe -version

Recommended: Conda environment setup

This is the most reproducible setup (and the easiest way to ensure ffmpeg/ffprobe are available).

1) Create and activate an environment

conda create -n video-annote python=3.10 -y
conda activate video-annote

2) Install ffmpeg (inside the env)

conda install -c conda-forge ffmpeg -y

From here on, run the remaining install/run steps inside this activated conda environment.


Install & run

Choose one of the following approaches.

A) Install from PyPI (pip)

pip install video-annote
python -m video_annote

B) Using uv (great for development)

git clone https://github.com/Surya-Rayala/Video-Annote.git
cd Video-Annote
uv sync
uv run python -m video_annote

Notes:

  • If you use uv, you can still use the system/conda-installed ffmpeg as long as it’s on PATH.
  • If you created a conda env, make sure it’s activated before running uv commands so the env’s ffmpeg is used.

How to use

1) Select a Data Root

Click Select Root and choose a folder where sessions will be stored.

2) Create or import a session

  • Create New Session
    • Enter a session label (example: session_001)
    • Add videos:
      • Local file…
      • URL… (downloadable URL or .m3u8 — requires ffmpeg)
  • Import Existing Session
    • Loads an already-saved session from the Data Root

3) Choose which videos are visible

Use Selected videos (multi-select) to choose which videos appear in the grid.

4) Pick Time Source and Audio Source

  • Time Source = master timeline used for the slider and annotation timestamps
  • Audio Source = which video provides sound

Other videos are kept aligned to the Time Source during playback when possible. If a video is shorter than the current Time Source position, its cell may show black.

5) Playback and scrubbing

  • Play / Pause / Restart
  • Drag the timeline slider to seek
  • Play is disabled at the end of the Time Source (use Restart)

Note on playback smoothness: On some machines (or when the system is under heavy load), video playback may feel choppy and/or audio may stutter. If that happens, click Restart or nudge the timeline slider slightly forward or backward to help playback re-sync and settle.


Creating annotations (label workflow)

1) Create Labels

On the right panel (Labels):

  • Add label number + name (example: 1: Label1, 2: Label2, …)
  • Each label is assigned a stable color

2) Start a label

  • Select a label
  • Click Start
  • Move the playhead to where the label begins
  • Click Confirm Start

3) End and save

  • Play forward (or scrub) to where the label ends
  • Click End
  • Adjust the end position if needed
  • Click Confirm End to save (confidence + notes)

This saves an annotation for that label.


Timeline & table (review + editing)

Timeline

The timeline shows all labels as colored blocks:

  • Click a block to view details
  • Edit to adjust start/end (drag handles)

Table

The table shows every annotation row:

  • Derived fields are locked for safety
  • Only key fields can be edited (start/end time, label number, confidence, notes)

Running from Python (advanced)

from PyQt5.QtWidgets import QApplication
from video_annote.main_window import MainWindow

app = QApplication([])
w = MainWindow()
w.show()
app.exec_()

Troubleshooting

Playback feels choppy or audio stutters

On some systems, playback smoothness depends on your computer’s performance and current load. If video or audio becomes unstable:

  • Click Restart, or
  • Move the timeline slider slightly forward or backward to let playback re-sync.

Playhead jumps back to the start near the end (known issue)

Sometimes, after reaching the end of the Time Source, playback may jump back to 00:00. This usually happens while labeling (after Confirm Start or after clicking End), Confirm End may not save because the end time becomes earlier than the start time.

Fix: drag the timeline slider to the desired label end time (away from the start time), then click Confirm End again.

License

This project is licensed under the MIT License. See LICENSE for details.


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_annote-0.1.2.tar.gz (51.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

video_annote-0.1.2-py3-none-any.whl (57.0 kB view details)

Uploaded Python 3

File details

Details for the file video_annote-0.1.2.tar.gz.

File metadata

  • Download URL: video_annote-0.1.2.tar.gz
  • Upload date:
  • Size: 51.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for video_annote-0.1.2.tar.gz
Algorithm Hash digest
SHA256 622dab78540910f6d60dc51389471de96290c16a8aefc28db88807c9e87f6651
MD5 e78bc4f512f23448c29e96c2058fa2a6
BLAKE2b-256 c6f393cf564200550e1a12af312ed19ec196118d4aeb7413fea56299dcb5af1d

See more details on using hashes here.

File details

Details for the file video_annote-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: video_annote-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 57.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for video_annote-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dfa5d2072346b4a0d87b353e725108f8e17f8d336a68e3884c04f3c2482adf11
MD5 6e91251da582fff39229c1eacf0de6ab
BLAKE2b-256 d6d2b2b8a22c6c94294ec58aa464d8946f7ab2ab3e1bceb469bc30c16fef9746

See more details on using hashes here.

Supported by

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