Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
5e6fd5a
fix(split): encode segments video-only and add source audio when stit…
SimpNick6703 Nov 21, 2026
6a10bab
feat(linux): explain missing VA-API runtime libraries before probing
SimpNick6703 Nov 21, 2026
fe965da
feat(windows): right-click menu installer and --custom size prompt
SimpNick6703 Nov 21, 2026
54dc86d
chore: ignore launch film and local benchmark reports; drop bench_vitals
SimpNick6703 Nov 21, 2026
8266b36
docs: update known issues, add roadmap, captions for the launch film
SimpNick6703 Nov 21, 2026
25f9b10
fix(split): state the first segment's length in the concat list
SimpNick6703 Nov 21, 2026
0aa2c41
fix(audio): detect the aac encoder with the FFmpeg 9 flag layout
SimpNick6703 Nov 21, 2026
7bb34bc
docs: drop the split stutter known issue now that it is fixed
SimpNick6703 Nov 21, 2026
5a2fa07
fix(ci): sanitize the installer version on manual runs from branches
SimpNick6703 Nov 21, 2026
9409a3c
fix(installer): register the menu per video extension
SimpNick6703 Nov 21, 2026
371f847
fix(installer): set file version and copyright in the setup exe
SimpNick6703 Nov 21, 2026
f9097be
docs: document the Windows installer and --custom; keep pre-release f…
SimpNick6703 Nov 21, 2026
33a6706
ci: build releases on publish so published drafts get their assets
SimpNick6703 Nov 21, 2026
eefe647
feat(hdr): keep HDR as 10-bit HEVC on GPUs, tone-map to SDR otherwise
SimpNick6703 Nov 21, 2026
704d05f
feat(hdr): keep HDR at the source's bit depth
SimpNick6703 Nov 21, 2026
85439f5
docs: mention AV1 input and the HDR filters build.py checks for
SimpNick6703 Nov 21, 2026
7a8b9ed
docs: use an existing release tag in the build.py example
SimpNick6703 Nov 21, 2026
4416846
fix(installer): register the menu only for the 8 supported file types
SimpNick6703 Nov 22, 2026
dca0a98
fix(build): package only videocompress so pip install works
SimpNick6703 Nov 22, 2026
97047a2
fix(audio): copy by default, re-encode lossless or over-budget audio
SimpNick6703 Nov 22, 2026
d66a506
docs: explain codecs, color depth and HDR in the Architecture Explorer
SimpNick6703 Nov 22, 2026
c574e22
fix(hdr): correct HLG colours and convert HDR without colour tags
SimpNick6703 Nov 22, 2026
97083ba
docs: describe the HLG and untagged HDR handling
SimpNick6703 Nov 22, 2026
a526b7a
fix(hdr): read colour tags from the first frame, not the stream entry
SimpNick6703 Nov 22, 2026
81de1c2
feat(ui): use rounded corners for tables and panels
SimpNick6703 Nov 22, 2026
49b48ff
docs: correct requirements, file names and known issues
SimpNick6703 Nov 22, 2026
5664795
docs: align the README and Architecture Explorer with measured behaviour
SimpNick6703 Nov 22, 2026
d994b44
chore: ignore the local deja directory
SimpNick6703 Nov 22, 2026
979e9ed
fix(cancel): exit 130 and remove the partial output on Ctrl+C
SimpNick6703 Nov 22, 2026
1849184
feat(installer): explain that H.264 converts HDR to SDR
SimpNick6703 Nov 22, 2026
2e35d0a
docs: add the Engine decision table and explanatory reading
SimpNick6703 Nov 22, 2026
7912754
fix(installer): make the HDR note's link reachable with Tab
SimpNick6703 Nov 22, 2026
0be688f
fix(cli): treat only names with a file extension as paths
SimpNick6703 Nov 22, 2026
9e8effd
fix(cli): exit 130 when Ctrl+C is pressed at the size prompt
SimpNick6703 Nov 23, 2026
d9455a5
fix(stitch): escape single quotes in the concat list
SimpNick6703 Nov 23, 2026
cbf0b79
perf: skip the audio and HDR probes when the input is already small e…
SimpNick6703 Nov 23, 2026
7039882
refactor(hdr): narrow the optional HDR source before tone mapping
SimpNick6703 Nov 23, 2026
ced878e
fix(installer): keep the chosen codec on upgrades
SimpNick6703 Nov 23, 2026
ac204d8
docs: list the cancel and argument tests in the README
SimpNick6703 Nov 23, 2026
cd5b0ec
docs: list new known issues and fix stale requirement and licence wor…
SimpNick6703 Nov 23, 2026
227fdd0
chore: add uv.lock to versioning
SimpNick6703 Nov 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: Build & Release

on:
release:
types: [created]
# published also fires when a draft is published; created does not.
types: [published]
workflow_dispatch:

# Critical: Grant write permission to upload assets to the Release
Expand Down Expand Up @@ -44,6 +45,22 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: python build.py

- name: Build Windows Installer
if: runner.os == 'Windows'
shell: pwsh
env:
BUILD_VERSION: ${{ github.ref_name }}
run: |
choco install innosetup -y --no-progress
$exe = Get-ChildItem dist -Filter "100mb-hevc-win64*.exe" | Select-Object -First 1
if (-not $exe) { throw "100mb-hevc Windows executable not found in dist" }
# Branch names on manual runs contain '/', which is not valid in the output file name.
$version = $env:BUILD_VERSION.TrimStart('v') -replace '[^\w.\-]', '-'
# File version resources take numbers only: v1.3.0-rc1 -> 1.3.0, branch builds -> 0.0.0.
$numeric = if ($version -match '^\d+(\.\d+){0,3}') { $Matches[0] } else { '0.0.0' }
& "${env:ProgramFiles(x86)}\Inno Setup 6\ISCC.exe" "/DAppVersion=$version" "/DNumericVersion=$numeric" "/DSourceExe=$($exe.FullName)" installer\windows.iss
if ($LASTEXITCODE -ne 0) { throw "ISCC failed with exit code $LASTEXITCODE" }

# --- Upload Section ---

- name: Upload Artifacts (to Actions Run)
Expand Down
18 changes: 14 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
dist/
build/
.agents/
*.spec
ffmpeg.exe
ffprobe.exe
ffmpeg
ffprobe
ffmpeg*
ffprobe*
__pycache__/
*.pyc
*.pyo
Expand All @@ -16,3 +15,14 @@ ffmpeg-minimal-builds/
.venv/
venv/
ffmpeg-licenses/
*.mp4
tests/benchmark_outputs/
tests/binaries/
tests/reports/

# Launch film / video generation (HyperFrames), kept local
launch-film/
*.mhtml

# deja session history, machine-local
.deja/
109 changes: 62 additions & 47 deletions README.md

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@

# Filters the hardware-resident pipelines rely on, per platform
REQUIRED_FILTERS = {
"linux": ("scale_cuda", "hwupload_cuda", "scale_vaapi", "hwupload", "fps"),
"win32": ("scale_cuda", "hwupload_cuda", "vpp_amf", "vpp_qsv", "hwmap", "hwupload", "fps"),
"darwin": ("scale_vt", "hwupload", "fps"),
"linux": ("scale_cuda", "hwupload_cuda", "scale_vaapi", "hwupload", "fps", "zscale", "tonemap"),
"win32": ("scale_cuda", "hwupload_cuda", "vpp_amf", "vpp_qsv", "hwmap", "hwupload", "fps", "zscale", "tonemap"),
"darwin": ("scale_vt", "hwupload", "fps", "zscale", "tonemap"),
}
FILTER_FLAGS_PATTERN = re.compile(r"[TSC.|]{2,3}")
FILTER_CHECK_TIMEOUT_S = 30
Expand Down
24 changes: 12 additions & 12 deletions docs/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ document.addEventListener('DOMContentLoaded', () => {

let candidates = [];
validHeights.forEach(h => {
const w = Math.round(h * aspectRatio);
const w = Math.floor(h * aspectRatio); // int() in the app
validFps.forEach(f => {
const pixelsPerSec = w * h * f;
const bpp = targetBits / (duration * pixelsPerSec);
Expand Down Expand Up @@ -157,17 +157,17 @@ document.addEventListener('DOMContentLoaded', () => {
win: {
title: "Windows Execution Priority", icon: "fa-windows", color: "text-blue-400",
chain: [
{ name: "Nvidia NVENC", desc: "H.265/H.264 via dedicated hardware. Supports parallel split single-pass.", icon: "fa-microchip" },
{ name: "Nvidia NVENC", desc: "H.265/H.264 via dedicated hardware. Needs driver 610.0 or newer, which GTX 900 and 10 series cards cannot install.", icon: "fa-microchip" },
{ name: "AMD AMF", desc: "H.265/H.264 via AMD's Media Framework.", icon: "fa-microchip" },
{ name: "Intel Quick Sync (QSV)", desc: "H.265/H.264 via Intel's integrated GPU.", icon: "fa-microchip" },
{ name: "CPU Fallback (libx265/libx264)", desc: "Software encoding. Most compatible, but slowest.", icon: "fa-server" }
],
note: "The script probes for encoders for the selected codec (H.265/HEVC or H.264). If dedicated GPU encoding fails or is unavailable, it defaults to CPU."
note: "The script probes for encoders for the selected codec (H.265/HEVC or H.264). An encoder that fails the probe, such as NVENC on a driver older than 610.0, is skipped for the next one, down to the CPU."
},
lin: {
title: "Linux Execution Priority", icon: "fa-linux", color: "text-yellow-400",
chain: [
{ name: "Nvidia NVENC", desc: "H.265/H.264 via dedicated hardware. Supports parallel split single-pass.", icon: "fa-microchip" },
{ name: "Nvidia NVENC", desc: "H.265/H.264 via dedicated hardware. Needs driver 610.0 or newer, which GTX 900 and 10 series cards cannot install.", icon: "fa-microchip" },
{ name: "VA-API", desc: "Unified API for AMD and Intel hardware acceleration.", icon: "fa-layer-group" },
{ name: "CPU Fallback (libx265/libx264)", desc: "Software encoding. Most compatible, but slowest.", icon: "fa-server" }
],
Expand Down Expand Up @@ -196,7 +196,7 @@ document.addEventListener('DOMContentLoaded', () => {
d.chain.forEach((e, i) => {
const el = document.createElement('div');
el.className = `flex items-center p-4 bg-slate-800/50 rounded-lg border border-slate-700 hover:border-slate-500 transition-all ${i===0?'ring-1 ring-cyan-500/30':''}`;
el.innerHTML = `<div class="w-8 h-8 rounded-full ${i===0?'bg-cyan-500 text-slate-900':'bg-slate-700 text-white'} flex items-center justify-center font-bold text-sm mr-4">${i+1}</div><div class="flex-grow"><div class="font-bold text-white font-mono text-sm">${e.name}</div><div class="text-xs text-slate-400">${e.desc}</div></div><i class="fa-solid ${e.icon} text-slate-600 text-xl ml-4"></i>`;
el.innerHTML = `<div class="w-8 h-8 shrink-0 rounded-full ${i===0?'bg-cyan-500 text-slate-900':'bg-slate-700 text-white'} flex items-center justify-center font-bold text-sm mr-4">${i+1}</div><div class="flex-grow"><div class="font-bold text-white font-mono text-sm">${e.name}</div><div class="text-xs text-slate-400">${e.desc}</div></div><i class="fa-solid ${e.icon} text-slate-600 text-xl ml-4"></i>`;
priorityChain.appendChild(el);
});
}
Expand Down Expand Up @@ -234,7 +234,7 @@ document.addEventListener('DOMContentLoaded', () => {
scaleStatus: "Bypassed (Native)",
h2dVol: "~457 MB (Stream)",
d2hVol: "~88.5 MB (Muxed)",
busStatus: "Minimal (~2 MB/s)",
busStatus: "Minimal (bitstream only)",
busStatusClass: "text-emerald-400",
nodes: { storage: true, host: true, pcie: true, gpu: true }
},
Expand All @@ -250,13 +250,13 @@ document.addEventListener('DOMContentLoaded', () => {
pixfmtSub: "Software Host Buffer",
scale: "CPU Software",
scaleSub: "Lanczos Filter (libswscale)",
cpu: "~30% - 40%",
cpu: "~52%",
cpuSub: "CPU Scaling Workload",
scaleLabel: "CPU Lanczos Scale",
scaleStatus: "Active (720p)",
h2dVol: "~19.65 GB (720p)",
d2hVol: "~44.22 GB (1080p)",
busStatus: "Heavy (~1.6 GB/s)",
busStatus: "Heavy (~2.7 GB/s)",
busStatusClass: "text-amber-400",
nodes: { storage: true, host: true, pcie: true, gpu: true }
},
Expand Down Expand Up @@ -287,20 +287,20 @@ document.addEventListener('DOMContentLoaded', () => {
badge: "Current Implementation",
badgeClass: "bg-emerald-900/40 text-emerald-400 border-emerald-500/40",
note: "Active current pipeline: decoded, scaled, and encoded entirely inside GPU VRAM without host RAM roundtrips.",
summary: "The active current hardware pipeline, shown here for NVIDIA with -hwaccel cuda -hwaccel_output_format cuda and scale_cuda=-2:H:interp_algo=lanczos. Other backends follow the same shape with their native scaler (scale_vaapi, vpp_amf, vpp_qsv, scale_vt) and fall back automatically to an upload tier or the legacy path when an input cannot be decoded in hardware. Frames remain in GPU memory (pix_fmt: cuda) throughout the entire lifetime. Decoded by NVDEC, resized by CUDA cores directly in VRAM, and encoded by NVENC. Completely eliminates the 64 GB PCIe roundtrip.",
summary: "The active current hardware pipeline, shown here for NVIDIA with -hwaccel cuda -hwaccel_output_format cuda and scale_cuda=-2:H:interp_algo=lanczos. Other backends follow the same shape with their native scaler (scale_vaapi, vpp_amf, vpp_qsv, scale_vt) and fall back automatically (except HDR to SDR) to an upload tier or the legacy path when an input cannot be decoded in hardware. Frames remain in GPU memory (pix_fmt: cuda) throughout the entire lifetime. Decoded by NVDEC, resized by CUDA cores directly in VRAM, and encoded by NVENC. Completely eliminates the 64 GB PCIe roundtrip.",
pcie: "~545 MB Total",
pcieSub: "True Zero-Copy Pipeline",
pixfmt: "pix_fmt: cuda",
pixfmtSub: "On-Chip VRAM Resident",
scale: "GPU CUDA Cores",
scaleSub: "Hardware scale_cuda",
cpu: "< 3% Load",
cpuSub: "Near-Zero CPU Footprint",
cpu: "~7% Load",
cpuSub: "Demux, Mux and Telemetry",
scaleLabel: "CUDA Core Resizer",
scaleStatus: "Active (in VRAM)",
h2dVol: "~457 MB (Stream)",
d2hVol: "~88.5 MB (Muxed)",
busStatus: "Minimal (~2 MB/s)",
busStatus: "Minimal (bitstream only)",
busStatusClass: "text-emerald-400",
nodes: { storage: true, host: true, pcie: true, gpu: true }
}
Expand Down
68 changes: 55 additions & 13 deletions docs/assets/captions.vtt
Original file line number Diff line number Diff line change
@@ -1,19 +1,61 @@
WEBVTT - Video-Compression Drag & Drop Demonstration
WEBVTT - Video-Compression Launch Film & Overview

00:00.000 --> 00:03.000
Dragging and dropping a high-bitrate video file onto the target preset executable.
00:00.000 --> 00:03.500
Dropping a 4K raw video into Discord triggers the 1.00 GB upload rejection modal.

00:03.000 --> 00:07.000
Automated video analysis initiates: probing duration, frame rate, resolution, and audio stream.
00:03.500 --> 00:07.500
Even with Nitro, clips hit hard ceilings across all Discord tiers: 20 MB, 50 MB, 100 MB, and 1 GB.

00:07.000 --> 00:12.000
Hardware encoder detection selects the fastest available GPU encoder with automatic fallback.
00:07.500 --> 00:11.000
Cloud compression tools fail with slow upload queues, daily conversion limits, and file size traps.

00:12.000 --> 00:18.000
Smart split point analysis divides workload into keyframe-aligned segments for parallel processing.
00:11.000 --> 00:15.000
Manual FFmpeg commands require guesswork. Video-Compression is 100% offline, local, and free.

00:18.000 --> 00:25.000
Dual-worker Rich TUI displays real-time progress, encoding FPS, bitrate, and time remaining.
00:15.000 --> 00:17.500
Introducing Video-Compression: automatic size budgeting with zero manual configuration.

00:25.000 --> 00:30.000
Lossless concatenation stitches segments with faststart progressive streaming flags.
00:17.500 --> 00:20.500
Target exact Discord presets (20MB, 50MB, 100MB, 1024MB) or any arbitrary custom file size.

00:20.500 --> 00:23.500
Zero-setup workflow: simply drag and drop your video onto the target standalone executable.

00:23.500 --> 00:26.500
Automated hardware detection selects the fastest GPU encoder with zero manual flags.

00:26.500 --> 00:29.000
Standard 120+ MB distributions with 40+ loose DLLs are eliminated.

00:29.000 --> 00:32.000
Self-contained 18 to 32 MB standalone executables bundle micro-FFmpeg with zero dependencies.

00:32.000 --> 00:35.000
Pure zero-copy GPU dataflow: decoding, scaling, and encoding execute entirely within VRAM.

00:35.000 --> 00:38.000
Zero host CPU memory transfers eliminate system bus bottlenecks.

00:38.000 --> 00:43.000
Smart split point analysis divides workloads across a dual-worker Rich TUI parallel pipeline.

00:43.000 --> 00:48.000
Verified benchmark: 603.9 FPS encoding throughput (10.07x real-time) with 88% less CPU overhead.

00:48.000 --> 00:55.000
Real-time moving slider comparison on fast-motion 1080p60 gameplay.

00:55.000 --> 01:03.000
Crystal-clear motion preserved at 33.70 dB PSNR: 479 MB compressed down to 97 MB (4.9:1 ratio).

01:03.000 --> 01:10.000
4K60 UHD fidelity comparison: massive 1.93 GB master reduced to 98.5 MB.

01:10.000 --> 01:18.000
19.7:1 compression ratio (-94.9% size reduction) with zero macroblocking on fine details.

01:18.000 --> 01:22.000
The compressed clip uploads instantly to Discord and plays inline. Drop. Compress. Share.

01:22.000 --> 01:26.500
Get standalone executables for Windows, Linux, and macOS on GitHub Releases. 100% free under GPL-3.0.
2 changes: 1 addition & 1 deletion docs/assets/path3.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/assets/workflow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading