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)

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_()

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.0.tar.gz (50.4 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.0-py3-none-any.whl (56.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: video_annote-0.1.0.tar.gz
  • Upload date:
  • Size: 50.4 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.0.tar.gz
Algorithm Hash digest
SHA256 87a46ab0877d9c48b4a28e47e86e2e6e48d2d1e809622a183347c9872d218d46
MD5 a071d068ac8500175e590fd7eaafe7b8
BLAKE2b-256 57c2946fba93a726a15431d1a574f106be9fe9a7fb461939323ece8dba14d530

See more details on using hashes here.

File details

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

File metadata

  • Download URL: video_annote-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 56.2 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9e0091b0797a845de654706627e22e92aba1dd2bedf4101560652e676d666f6a
MD5 4aa17362f9ba7ee82c22898dd5d8fbfc
BLAKE2b-256 98f00a5bfe3d6e75d635588d7cd2ea2de0c9b761af534fe5fb89d8ce2ef5dd33

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