Video_Transcode

February 9, 2026 · View on GitHub

Automated batch video transcoding using FFmpeg — scans directories, analyzes streams, and transcodes to HEVC/H.265 with AI-powered subtitle and audio features.

Features

  • Batch processing — directory scanning with caching and parallel workers
  • Full FFmpeg wrapper — probe, transcode, remux, corruption detection
  • HEVC/H.265 encoding — configurable BPP, CRF, 10-bit, hardware acceleration
  • Smart file management — auto-renaming, size-guard logic (prevents oversized output)
  • Subtitle management — multi-language extraction, OCR via Tesseract, AI-generated subs
  • AI integration — optional LLM queries and Whisper-based audio transcription
  • Artifact generation — matrix thumbnails, speed previews, short clips
  • YAML configuration — all settings via config.yaml
  • Resume support — concise resume/report at exit

Quick Start

python Trans_code.py

Launches a folder picker (or uses config root) → scans for video files → processes through FFmpeg.

Files

FileDescription
Trans_code.pyMain orchestrator — scan, analyze, transcode
FFMpeg.pyFull FFmpeg wrapper (2100+ lines)
Subtitle_Manager.pyMulti-language subtitle extraction and management
Utils.pyShared utilities
config.yamlYAML configuration
config_loader.pyConfiguration loader
pip_spy_max.pyDependency analyzer

Dependencies

  • FFmpeg / FFprobe (system) — video processing
  • faster-whisper — AI audio transcription
  • psutil — system monitoring
  • rich — terminal output
  • torch, transformers — AI features
  • tqdm — progress bars
  • pytest — testing

License

MIT