Skip to content

tailor 0.2.0: GPU encoding, stream copy, job queue, new interface - #26

Merged
BBareth merged 1 commit into
mainfrom
tailor
Nov 29, 2026
Merged

BBareth merged 1 commit into
mainfrom
tailor

Conversation

@BBareth

@BBareth BBareth commented Nov 29, 2026

Copy link
Copy Markdown
Owner

The project becomes tailor (repo renamed from media_manager; the image moves to ghcr.io/bbareth/tailor).

What changes

  • Hardware encoding (VAAPI) for Intel and AMD GPUs. A five-frame test encode at startup decides; any job the GPU cannot handle falls back to x264. MEDIA_HWACCEL=off disables it. The image now ships the Intel (non-free, amd64) and Mesa VAAPI drivers (+70 MB).
  • Stream copy in Convert: streams that already fit the target container are copied (MKV → MP4 of H.264 in under a second). "Always re-encode" forces the old path.
  • Job queue: conversions and compressions take a slot (MEDIA_MAX_JOBS, default 1). Deleting a running job now aborts its task, which kills ffmpeg/yt-dlp and frees the slot.
  • One ffprobe call per source instead of up to three.
  • Image compression: binary search per scale with the lowest quality tried first (at most 4 encodes per scale instead of 7).
  • WebM: libvpx cpu-used 4.
  • New frontend: one job list, size presets, format chips, upload progress, encoder pill, light/dark from the system, tab in the URL hash.
  • GET /api/info.

Verified

  • cargo fmt, clippy -D warnings, 36 tests; tsc and Vite build.
  • Image built and run on the homelab Docker LXC (i7-8700K, UHD 630 passed through): GPU detected, 30 s 1440p60 compressed to ≤ 11 MB in 7.7 s on the GPU vs 17.8 s with MEDIA_HWACCEL=off; remux 0.4 s; deleting a running job started the queued one immediately.
  • CI's Docker smoke test now runs a real compression and a remux in the image.

🤖 Generated with Claude Code

…terface

- VAAPI hardware encoding for Intel and AMD GPUs, chosen by a test encode at
  startup, with x264 as the fallback per job (hw.rs)
- Conversions copy streams that already fit the target container
- Encodes queue behind MEDIA_MAX_JOBS; deleting a job stops it
- One ffprobe call per source (probe.rs)
- Image compression: binary search per scale, lowest quality first
- New frontend: unified job list, size presets, format chips, upload
  progress, encoder status, light and dark following the system
- Image, compose, CI and docs renamed to tailor; CI now runs a real
  compression and a remux in the image

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@BBareth
BBareth merged commit afd8c91 into main Nov 29, 2026
3 checks passed
@BBareth
BBareth deleted the tailor branch November 29, 2026 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant