Skip to content

Video Converter

Automated H.264 to H.265 video conversion for macOS with Photos library integration.

Overview

Video Converter is a powerful command-line tool that automatically converts H.264 videos to H.265 (HEVC) format, leveraging Apple Silicon's hardware acceleration for blazing-fast performance. It integrates seamlessly with macOS Photos library.

Key Features

  • Hardware Acceleration: Uses Apple VideoToolbox for 20x+ realtime conversion on Apple Silicon
  • Photos Integration: Direct access to macOS Photos library with metadata preservation
  • GPS Preservation: Maintains location data through multiple format support
  • Quality Validation: VMAF-based quality checking ensures conversion fidelity
  • Automation: Schedule conversions via launchd for hands-free operation
  • GUI Application: Native macOS GUI for easy access (v0.3.0+)

Quick Start

# Install
pip install video-converter

# Convert a single file
video-converter convert input.mp4 output.mp4

# Convert all H.264 videos in Photos library
video-converter run --mode photos

# Scan without converting
video-converter scan --mode photos

Architecture

graph TB
    subgraph Presentation["Presentation Layer"]
        CLI["CLI Interface"]
        GUI["GUI Application"]
        NOTIF["macOS Notifications"]
    end

    subgraph Application["Application Layer"]
        ORCH["Orchestrator"]
        CONFIG["Configuration"]
    end

    subgraph Domain["Domain Layer"]
        EXT["Extractors"]
        CONV["Converters"]
        PROC["Processors"]
    end

    subgraph Infrastructure["Infrastructure Layer"]
        PHOTOS["Photos API"]
        FFMPEG["FFmpeg"]
        EXIF["ExifTool"]
    end

    CLI --> ORCH
    GUI --> ORCH
    ORCH --> EXT
    ORCH --> CONV
    ORCH --> PROC
    EXT --> PHOTOS
    CONV --> FFMPEG
    PROC --> EXIF

System Requirements

Requirement Minimum Recommended
macOS 12.0 (Monterey) 14.0+ (Sonoma)
CPU Apple M1 Apple M2 Pro+
RAM 8GB 16GB+
Python 3.10 3.12

Installation

pip install video-converter
git clone https://github.com/kcenon/video_converter.git
cd video_converter
pip install -e ".[dev]"

Documentation

License

MIT License - see LICENSE for details.