Skip to content
zipelPublic

About

A macOS command line Python app that samples frames from MP4 videos, generates descriptive captions, extracts candidate keywords, verifies them visually, ranks and normalizes them, and outputs 50 comma‑separated stock tags. The app is designed to handle large MP4s (≥1 GB), 10–60 second clips, and run from VS Code on a Mac terminal.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

Repository files navigation

TagStream

TagStream is a macOS command line tool that generates stock-style keyword tags from MP4 videos by sampling frames, captioning, extracting keywords, and ranking them.

Quick start

Prerequisites:

  • Python 3.10+
  • ffmpeg (brew install ffmpeg)
  • Optional: Apple Silicon PyTorch with MPS support or CUDA GPU

Create and activate a venv:

python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

Usage:

python cli.py --input examples/sample_video.mp4 --sample-rate 0.5 --top 50 --out examples/tags.csv

Requirements:

  • Python 3.10+
  • ffmpeg installed and available on PATH (brew install ffmpeg)
  • torch, transformers, sentence-transformers, and other packages from requirements.txt

Notes:

  • The default sampling rate is 0.5 fps, which means one frame every 2 seconds.
  • For a 30 fps video, this is appropriate for 10–60 second clips and avoids scanning every frame.
  • Output is written as a comma-separated list of tags to tags.csv by default.

About

A macOS command line Python app that samples frames from MP4 videos, generates descriptive captions, extracts candidate keywords, verifies them visually, ranks and normalizes them, and outputs 50 comma‑separated stock tags. The app is designed to handle large MP4s (≥1 GB), 10–60 second clips, and run from VS Code on a Mac terminal.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages