Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
8b76ff8
Add the localization infrastructure: Fluent messages, ICU4X numbers, …
geeooff Nov 23, 2026
d50f413
Extract engine-side user-facing texts into Fluent messages
geeooff Nov 23, 2026
58fb0ab
Extract the settings panel, profiles window and preview texts into Fl…
geeooff Nov 23, 2026
7e2263b
Extract the main window, queue panel and help window texts into Fluen…
geeooff Nov 23, 2026
09cd504
Merge the engine-side text extraction
geeooff Nov 23, 2026
201a563
Merge the settings and preview text extraction
geeooff Nov 23, 2026
836072d
Merge the main window, queue and help text extraction
geeooff Nov 23, 2026
6d3a9d7
Keep the volume visible with longer languages, split a dual-role message
geeooff Nov 23, 2026
99c0086
Force a language in debug builds with QVT_LANGUAGE, for screenshots
geeooff Nov 23, 2026
799a1fe
Translate the application into French, and British English differences
geeooff Nov 23, 2026
13bbeee
Review the French translation; align two English messages
geeooff Nov 23, 2026
3614f13
Add the Canadian French variant, document the regional decisions
geeooff Nov 23, 2026
90ac681
Add project skills for the repeated procedures
geeooff Nov 23, 2026
9f16d4a
Merge pull request #14 from geeooff/chore/skills
geeooff Nov 23, 2026
0949ba4
Merge main (the parallel-encodes fix) into feat/i18n
geeooff Nov 23, 2026
cf1b692
Add the updater: check, download and verify, swap at exit, verdict at…
geeooff Nov 23, 2026
cf50157
Merge feat/i18n (with main) into feat/updater
geeooff Nov 23, 2026
1575292
Document the updater; join wrapped release-note lines; accept webpki-…
geeooff Nov 23, 2026
3f6dc8a
Merge pull request #15 from geeooff/feat/updater
geeooff 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
46 changes: 46 additions & 0 deletions .claude/skills/install-locally/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
name: install-locally
description: Update the maintainer's installed copy of Quick Video Transcoder (the folder their Send to shortcut points at) from a published release with its GitHub attestation verified, or from a build of main. Use when the maintainer asks to update, reinstall or refresh the installed or "release" copy, or to test a published release locally.
---

# Updating the installed copy

The install folder and the shortcut are machine-specific: read them from `CLAUDE.local.md` (never write them
in a tracked file). The folder holds **only** `quick-video-transcoder.exe`; its *Send to* shortcut points at
that exe, so replacing the file in place keeps it working.

## Rules

- Never overwrite while the application runs: `Get-Process quick-video-transcoder`. If one runs, ask the
maintainer to close it — never kill their window. Check the *path* of a running process: a test build of
yours may be the one running.
- A windowed exe: PowerShell does not wait for it when capturing output. Ask it for its version with
`Start-Process <exe> -ArgumentList '--version' -RedirectStandardOutput <file> -NoNewWindow -Wait`.
- Any script with a backslash goes through a file written with the Write tool. Assert every path before
writing or deleting, and compare hashes after copying.
- Deleting anything else in the install folder needs the maintainer's yes.

## From a published release (preferred)

1. `gh release download vX.Y.Z --repo geeooff/quick-video-transcoder --dir <new scratch folder>`.
2. The SHA-256 of the exe equals the line in `SHA256SUMS.txt`.
3. `gh attestation verify <exe> --repo geeooff/quick-video-transcoder --signer-workflow geeooff/quick-video-transcoder/.github/workflows/release.yml --source-ref refs/tags/vX.Y.Z`
— restricted to that workflow and tag; `--format json` shows the commit. Any failure: do not install.
4. `--version` prints `X.Y.Z` and the tag's commit.
5. Copy over the installed exe, re-check the hash, show the folder and the file's version block.

## From main (between releases, to try what is merged)

`git worktree add --detach <scratch>/main-tree origin/main`, `.\scripts\build.ps1 release` there (the
published profile), install `dist\quick-video-transcoder.exe` as above (hash, `--version` naming that
commit), then remove the worktree (`Remove-Item -LiteralPath ('\\?\' + <path>)` for long paths, then
`git worktree prune`). Say plainly that it is not a release (About shows the last version number).

## Windows details

- *Open with* / *Send to* names come from the exe's `FileDescription`, cached per path in
`HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\MuiCache`
(`<path>.FriendlyAppName`, `.ApplicationCompany`). A stale name (an exe once run without a version block)
is fixed by deleting those two values for that path — with the maintainer's yes.
- A shell started by the Claude desktop app may see `%APPDATA%` through the package's private copy: check
the shortcut where Explorer reads it before concluding it is missing.
52 changes: 52 additions & 0 deletions .claude/skills/localize/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
---
name: localize
description: Translate Quick Video Transcoder — new or changed English messages into French and its regional variants, or a whole new language — with persona-briefed subagents (translator, cold reviewer, regional localizers), screenshots and the project's Fluent rules. Use when messages were added or changed, when the maintainer asks for a new language or variant, or to review a translation.
---

# Localizing

Rules live in `docs/localization.md` (conventions, typography, glossary, regional decisions) and the doc
comment of `src/i18n.rs`. Read both first. The maintainer has no native reviewers: quality comes from the
briefs, context and a cold review — never from literal translation.

## When code adds or changes texts

- Every user-facing text is `crate::tr!("area-element", var = value)` with the English message in its source
area of `i18n/en/quick_video_transcoder.ftl`, a `#` comment when the meaning is not obvious (where it
shows, what each variable holds). Numbers through `{ NUM($x, decimals: N) }`, plurals as multi-line
selectors, data (names, codecs, time codes) as string variables, logs stay English.
- `french_is_complete` fails until French has the new ids: translate them in the same change. When a French
message changes, update the same message in regional files (`fr-CA`…).
- Check the layout in the longest languages: debug build, then
`QVT_LANGUAGE=fr-FR` or `QVT_PSEUDO=1` with `QVT_SCREENSHOT=<file.ppm>` on a synthetic clip in a scratch
folder (one app instance at a time: a second launch hands its files to the first).

## Translating with subagents

A few messages: do it inline with the same rules. Many, or a new language — orchestrate:

1. **Brief** (one file in scratch, read by every agent): the app and its users (gamers sharing clips in
size-limited chats), `README.md`, `docs/localization.md`, the English file with comments, a screenshot of
the window in English, the Fluent rules (keep ids/variables/selectors, literal U+00A0/U+202F, CLDR plural
categories), the checks (`cargo test --locked --lib i18n`, a screenshot in their language), "edit only your
file, never commit". Only one agent at a time takes screenshots.
2. **Translator** with a strong native persona (a seasoned localizer of games and consumer software from a
precise city, who uses the platform's own terms and hates translated-sounding text). Writes the complete
base file.
3. **Cold reviewer**, another persona (UX writer) who did not write it: contresens against the code,
calques, register, consistency, typography, length on the screenshot. Edits the file, reports
before → after.
4. **Regional localizers**, one persona per variant, in parallel: keep only real differences (vocabulary,
typography conventions applied to every message concerned, keyboard names). An empty result is valid —
then no file; record the decision in `docs/localization.md`.
5. **Orchestrator** (you): read every report, fix what they found in the English source or the code, check
the screenshots yourself, run `.\scripts\build.ps1`, commit per step.

Use the strongest model for the base translator and the reviewer; a lighter one is fine for variants with
few expected differences. Agents hit by a usage limit are resumed with SendMessage, not restarted.

## A new language

`LANGUAGES` in `src/i18n.rs` (variants named in their own language), a complete base file, regional files,
a completeness test if the project commits to it, egui font coverage (Latin, Greek, Cyrillic built in; CJK
via the system font fallback; no right-to-left layout in egui), and a row in the regional decisions table.
51 changes: 51 additions & 0 deletions .claude/skills/release/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
name: release
description: Prepare and publish a Quick Video Transcoder release (vX.Y.Z), from the release commit to the published, attested executable and the maintainer's installed copy. Use when the maintainer asks to prepare, cut, tag or publish a release.
---

# Releasing Quick Video Transcoder

A release is one file, `quick-video-transcoder.exe`, built by `release.yml` from a tag. Pushing the release
branch and the tag need the maintainer's go-ahead (a pull request merges by itself once CI is green: that
approval stands).

## 1. Ready?

- `main` holds everything meant for the release; open PRs are merged or deliberately left out.
- `CHANGELOG.md` `[Unreleased]` lists what the user sees, under *Added*, *Changed*, *Fixed*, *Removed*. For a
first release of a feature, fixes made before it shipped are not *Fixed*: fold them into the *Added* line.
- The docs describe this version: the release links them at its commit forever (`AGENTS.md`).
- Version (semver): patch for fixes only, minor for a feature, major for a breaking change of what the user
relies on (profiles file, behaviour). Propose it; the maintainer decides.

## 2. The release commit

On `release/vX.Y.Z` from an up-to-date `main`:

1. `version = "X.Y.Z"` in `Cargo.toml`, then `cargo update -p quick-video-transcoder --offline` for the lock.
2. `CHANGELOG.md`: a new empty `## [Unreleased]`, then `## [X.Y.Z] - YYYY-MM-DD` (today) with what was under
it; at the bottom, `[Unreleased]: …/compare/vX.Y.Z...HEAD` and `[X.Y.Z]: …/releases/tag/vX.Y.Z` (and fix
the previous version's link to compare with its predecessor).
3. Commit `Release X.Y.Z` (body: what it brings, why this bump).
4. `.\scripts\build.ps1 release` from that clean commit: the published fat LTO profile, never `-Fast`.
Read the whole output: `notes.md from the changelog`, the notices, `release OK`.

## 3. Publish

1. Push the branch, open the PR (`Release X.Y.Z`), `gh pr merge <n> --auto --merge`.
2. Once merged: `git switch main && git pull --ff-only`, check `version` and the dated section, then tag the
**merge commit** and push the tag alone:
`git tag -a vX.Y.Z <merge sha> -m "Quick Video Transcoder X.Y.Z"`, `git push origin vX.Y.Z`.
3. Follow the run: `gh run list --workflow release.yml -L 1`, then
`gh run watch <id> --exit-status` in the background. On failure read `gh run view <id> --log-failed`,
fix on a branch, and re-tag only with the maintainer (a pushed tag is not moved silently).
4. Check the page: `gh release view vX.Y.Z` — `quick-video-transcoder.exe`, `SHA256SUMS.txt`, notes from the
changelog, not a draft.

## 4. After

- From 1.2.0 on, update this machine **as a user would**: *Help → Check for updates* in the installed
previous version, *Download and install*, *Restart now*; then the new version must show *Updated to X.Y.Z*
and `--version` the tag's commit (docs/updating.md, "Measured"). Record the timings there. Otherwise, or
if it fails, install with the **install-locally** skill (from the release, attestation verified).
- Report to the maintainer: the release URL, what it contains, what was not verified (other GPUs, Linux).
45 changes: 45 additions & 0 deletions .claude/skills/upgrade-dependencies/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
name: upgrade-dependencies
description: Upgrade Quick Video Transcoder's dependencies across breaking versions — crate 0.x minors and majors (eframe/egui, wgpu, cpal, rfd, ICU4X, i18n-embed…), GitHub Actions majors, a new stable toolchain — following each upgrade guide, without workarounds, and explain a Dependabot PR that did not merge by itself. Use when the maintainer asks to update dependencies or why a Dependabot PR is waiting or failing.
---

# Upgrading the dependencies

Dependabot merges by itself what Cargo calls compatible (patches, minors of crates ≥ 1.0) once the `build`
check passes. A 0.x minor (`rfd` 0.17 → 0.18), a major, or an action major waits — by design of
`dependabot-automerge.yml`. With CI green, such a PR may be merged (standing approval); otherwise the work is
done here.

## Why a Dependabot PR is waiting or red

- Waiting with CI green: a 0.x minor or a major — the workflow skipped its merge step on purpose. Say so,
then merge it if the maintainer's standing approval applies.
- Red: read `gh pr checks <n>` and `gh run view <id> --log-failed`; usually an API break (follow §2) or a new
`rust-version` requirement.

## What is behind

`cargo info <crate>` for each direct dependency (`latest` shows the newest), each `uses:` against
`gh api repos/<owner>/<repo>/releases/latest --jq .tag_name`, `gh pr list --author app/dependabot`. Show the
list (locked, latest, kind of change) and agree on what to take.

## One dependency (or family) at a time

On `deps/<name>-<version>` from `main`:

1. **Read the upgrade path**: changelog / migration guide of every version between, from the publisher. Note
each break this code meets.
2. Raise `Cargo.toml`, `cargo update -p <crate>`. A newer required Rust raises `rust-version` (comment why).
3. Fix each break **the way the guide says**. Never: a silenced lint, a `[patch]` or fork, a held-back
version, a feature turned off to dodge a change.
4. Families that move together, in one commit and one Dependabot group (`.github/dependabot.yml`):
- `eframe` + `egui`: egui is a direct dependency only for `monochrome_emoji_fonts`; a lone eframe bump
builds two eguis and silently drops it. `app::tests::symbols_are_in_the_embedded_fonts` catches it.
- The ICU4X crates (`icu_decimal`, `icu_locale_core`, `icu_provider`, `fixed_decimal`) on one 2.x line;
`i18n-embed` + `i18n-embed-fl`. Check `i18n::tests` and a French screenshot (`25,0 Mo`).
5. egui upgrades: check the window — `QVT_SCREENSHOT` on a synthetic clip, and the pseudo-locale
(`QVT_PSEUDO=1`) for layout regressions. Glyphs can change between versions.
6. `.\scripts\build.ps1` (and `build` for anything that changes the exe), read the whole output.
7. Changelog only for what a user notices. Push, PR, auto-merge (push needs the maintainer's go-ahead).

An upgrade that cannot be done properly (upstream bug, no replacement) is not forced: stop, write why, ask.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@
*.ts
*.m2ts
*.qvt-partial

# Worktrees of Claude Code subagents.
/.claude/worktrees/
10 changes: 10 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,29 @@ tests/pipeline.rs end to end on synthetic clips examples/transcode.rs
- Spawn FFmpeg with `ffmpeg::tool()` or `background_tool()` (no console window); collect stderr with
`StderrTail::finish()` after exit; stop with `kill_tree` (Chocolatey and Scoop shims).
- Never hard-code an encoder: go through `Capabilities::encoder`. H.265 stays the default codec.
- The network is used only when the user clicks *Check for updates* (docs/updating.md): never a
background check. Updater tests never call GitHub (scripted feed, local listener).
- Every text a user reads is a Fluent message: `crate::tr!("id")`, numbers through `NUM` in the message
(docs/localization.md). Logs and technical details stay in English.
- Qualities are H.265 QPs everywhere; `EncoderSpec::qp` converts for AV1 scales.
- Module doc comments carry the rules a module is shaped by: read them first, update them with the rule.
- The cpal callback is real time: short locks, no I/O, never wait on a decoder.
- egui: `lost_focus()` lasts two frames, apply a text field only if the user typed in it (`time_edit`);
sliders use `SliderClamping::Edits`. Some symbols are missing from egui's fonts (arrows, most emoji): check
a screenshot after adding one.
- `QVT_PSEUDO=1` and `QVT_LANGUAGE=fr-CA` (debug builds) pseudo-localize or force a language for
screenshots (docs/localization.md).
- `QVT_PRETEND_NO_FFMPEG=1` (debug builds) shows the *FFmpeg is needed* window without uninstalling
FFmpeg. Never click *Install FFmpeg for me* while testing: it really runs winget.
- Checking the UI without driving it: `QVT_SCREENSHOT=<file.ppm>` saves the window once the queue is
estimated and the preview shows a frame, then quits. Run it on synthetic clips in a scratch folder.

## Workflow

Project skills in `.claude/skills/`: **release**, **install-locally**, **upgrade-dependencies**, **localize** —
the procedures this repository repeats, with their pitfalls. Use them; update them when a procedure changes.


```powershell
.\scripts\build.ps1 # fmt, clippy -D warnings, rustdoc -D warnings, tests, doc links, no video / personal path
.\scripts\build.ps1 build # + optimized build, release-fast profile (thin LTO, ~20 s)
Expand Down
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@ refuses a tag without one.

## [Unreleased]

### Added

- The application speaks French: *View → Language* offers Automatic (the system's language), English
(United States, United Kingdom) and French (France, Canada, Belgium, Switzerland). It switches at once,
without restarting.
- Numbers follow the chosen language and region: `25,0 Mo` in French, the Canadian and Swiss groupings,
`25.0 MB` in English. The size limit box accepts a comma or a point.
- *Help → Check for updates*: shows the latest version and what changed, downloads it, checks it against
the published checksums, and restarts on it — the previous version comes back if anything fails. The
application connects only when you click.

### Fixed

- *Encodes at once* is measured from 1 to 4 encodes and takes the fewest that reach the best speed: the
Expand Down
Loading