Containers, MP3 encoder and video decoders come from craft-libs
* Containers, MP3 encoder and video decoders come from craft-libs
The AVI, MPEG-TS/PS, MP3 encoder, H.264, HEVC, VP9, AV1, MPEG-2 and APV
crates are removed. craft-media (avi, mpegts), craft-audio (mp3-encode)
and craft-video (h264-decode, hevc-decode, vp9-decode, av1-decode, mpeg2,
apv), which were cut from them, replace them. Every craft-libs crate is
pinned at craft-libs 50f21899.
* MXF comes from craft-libs; craft-libs at df469bb2
crates/mxf is removed for craft_media::mxf. Both writer entry points name
FilmCraft (company, product, version) as the old writer did, so the bytes
and the product UID are unchanged; the export and AAF tests check it.
* docs: the VP9 and AV1 hostile_lengths WASI run points at craft-video
* #2553: a GPU that can't draw to the window falls back to the integrated one instead of panicking
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* #2553: a second panic saves the next mode instead of going back to the default
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* #2553: after a graphics panic, FilmCraft starts again in the next mode instead of retrying in-process
The event loop does not run again in a process it unwound out of: on the #2553 laptop the
in-process retry returned at once and no window opened until the next launch.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* #2553: a relaunch keeps the -- separator and the files after it
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: FredApps <FredApps@users.noreply.github.com>
Fixes#1868. Display labels only; effect ids (lumetri, ...), panel ids, automation ids, preference keys and project data are unchanged.
- Lumetri Color/Scopes/Presets -> Color Grading / Video Scopes / Color Grading Presets in the UI and all 16 catalogs; old names still resolve for panels, shortcuts, automation and Effects-panel search.
- FCP7 XML, FCPXML and EDL exports keep writing the previous Lumetri names, so interchange output is unchanged.
- Mercury Transmit -> External Video Output, shown disabled ("This preference is not available yet.") until it exists.
- Ultra Key, Warp Stabilizer and Morph Cut keep their names until RFC-0029 settles.
* #1221: H.264 High 10 and High 10 Intra export in the built-in encoder
Stage 1 of #1221 (plus the intra-only option of stage 5):
- h264enc is generic over the sample type (u8 at 8 bits, u16 at 9-10 bits):
QP' = QP + QpBdOffset for quantisation and lambdas (QPY down to -12 at
10 bits), mb_qp_delta range/wrap, chroma QP mapping, deblocking alpha/beta/tC0
scaled to the bit depth, clipping in prediction, interpolation and
reconstruction. SPS bit depths, profile_idc 110, constraint_set3 for High 10
Intra, avcC high-profile fields, High 10 cpbBrVclFactor for level choice.
New YuvFrame16 / Encoder::encode16, EncoderConfig::bit_depth / intra_only.
- 8-bit output is byte-identical to main's encoder (pinned_decisions passes;
streams compared across profiles, presets, rate modes, slices, B-frames,
threads, two-pass, odd sizes).
- Oracle tests: ffmpeg decodes 10- and 9-bit streams bit-identical to the
reconstruction (presets, B-frames, slices, odd sizes, QP 22-46, CRF -12,
CBR, intra, avcC); ffprobe reports High 10 / High 10 Intra, yuv420p10le.
- Export: H264Profile::High10 (10-bit SDR via rgba_to_yuv420_10, HDR from the
float frames), h264_intra_only, MP4 / MOV / MXF OP1a (10-bit descriptor,
intra coding label), hardware encoders decline both, export dialog profile
entry ("10-bit color" on hover) and an All Intra checkbox, the bit depth in
the export summary, two Broadcast presets, flat h264Profile / h264IntraOnly
command parameters.
Rebased on main: ported into the split slice/ modules, the u32 quantisers
(exactness tests now cover QP' up to 63), main's Encoder::install and
prepare_ahead (High 10 converts in encode), export_mode/settings.rs,
tests/it/high10_oracle.rs; the new strings in every complete catalog
(es, fr, id, it, ja, ko, pt-br, zh-cn, de, ru, cs, pl, sv, tr, bs).
Not yet: High 4:2:2, High 4:4:4 Predictive, lossless, and >8-bit precision
from SDR compositing (SDR frames still arrive as RGBA8).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013VECsf5SeZDHM5RDmcvRkM
* #1221: codec-parity header and revision history for High 10
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* export: describe High 10 Master as a 10-bit master; list all APV profiles in file.exportMedia
SDR exports are rendered at 8 bits before the 10-bit conversion, so the preset
cannot promise a master without banding. Catalog keys and translations updated
in all 15 locales. Also list 4444-10, 4444-12 and 400-10, which apv_profile
already accepts.
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: FredApps <FredApps@users.noreply.github.com>
Resolve conflict in crates/ui-egui/src/i18n/tests.rs using switch_and_check
helper and add 22 new catalog entries to tr.tsv matching upstream additions.
* #3396: preserve binary transparency in animated GIF exports
Enable Include Alpha Channel for GIF with an explicit 128/255 threshold. Cover transparent, opaque and partial-alpha pixels, frame disposal and the Export UI. Document the behavior and add the requested username-only contributor credit.
Co-Authored-By: Codex <noreply@openai.com>
* #3396: clarify when the GIF alpha threshold applies
Begin the export hint with "When enabled," and wrap the longer label so its explanation remains visible. Alpha behavior and threshold wording remain unchanged.
Co-Authored-By: Codex <noreply@openai.com>
* #3396: cover GIF transparency during palette quantization
Round-trip two frames with more than 256 post-conversion RGBA colors, a moving isolated transparent pixel, and opaque black and near-black neighbors. Require exact alpha and bounded RGB error. Document commands for the GIF and export test suites; leave the encoder unchanged.
Co-Authored-By: Codex <noreply@openai.com>
---------
Co-authored-by: Codex <noreply@openai.com>
In a selected transition's own timeline in Effect Controls, the cut line
over the transition can now be dragged. While it is dragged, the clips
and the transition are drawn where the rolling edit would put them, with
the same limits as `timeline.roll`. On release one rolling edit moves
the cut, so the clips' In and Out points change and the sequence keeps
its length. The ends of the transition still resize it, and the rest of
it still slides it.
A rolling edit now stops where the transition on its cut would leave
one of its two clips. When a ripple trim, a slide or a ripple speed
change moves a cut far enough that the transition on it would leave its
two clips, the transition is moved back within them, shortened when the
clips are now shorter than it, and its stored alignment is updated.
* Tests: one integration-test binary per crate
Each crate with several tests/*.rs files keeps them as modules of tests/it/,
so cargo links one test executable per crate instead of one per file. Files
that change process-wide state or time a workload stay binaries of their own.
* Profiles: line tables for workspace crates, no debug info for dependencies
* Windows ARM64: nightly and on release pushes instead of every push to main
* xtask ci: clippy and tests in the dev profile
The release profile's thin LTO and single codegen unit made linking the test
binaries take most of the gate. The codec and audio crates stay at opt-level 3
in the dev profile, so their tests run at release speed.
* xtask ci: nextest, doctests, no examples, one wasm check
Tests run with cargo nextest when it is installed (cargo test otherwise) and
build with --lib --bins --tests, so examples aren't linked; doctests run
separately. The wasm check keeps going past the first failing crate. VP8
fixture generation locks across processes, since nextest runs each test in
its own.
* VP9 synthetic fixtures: write aside and rename
A test in another process could read a fixture ffmpeg was still writing.
* Fuzz tests: a third of each sweep by default, all of it with FILMCRAFT_FUZZ_ITERS
Every seed, mutation kind and thread count still runs. Header bytes each get
one overwrite value and two bit flips in rotation, so every value and bit
index still occurs across the region. FILMCRAFT_FUZZ_ITERS=N runs the whole
sweep plus N random rounds per seed, as before.
* Platform fallback tests: one failure point per hybrid path
The failure-anywhere test injected a failure at four points around every
restart point; the hybrid's paths differ only in the first GOP, around the
second and last restart points, at the end and never. The replay test needs
the first two GOPs.
* Export tests: shorter ranges with the same checks
The bitrate test measures 0.5–1.5 s, where each preset reaches its own
target (on 0–3 s the simple demo left two presets at the same rate). The
every-preset test exports three frames per preset.
* Audio tests: effects in parallel, a table-driven FFT for the Opus quality metric
The extreme-settings test keeps both settings and the 40 s tail for every
effect, one thread each. The Opus quality metric's FFT builds its twiddles
once and allocates nothing per transform (same algorithm and summation order).
* CI: dev-profile gate with nextest
xtask ci no longer builds with --release, so the release-profile overrides
go; nextest is installed for the test step.
* CI: apt packages through the cached install-apt-packages action
* Review fixes: fuzz tests with a panic hook in their own binaries, loud fixture lock
The fuzz tests of av1, h264, hevc, mpeg2v, vp8 and vp9 count panics through
a process-wide hook, so a panic in another test of the same process would
fail them; they are binaries of their own again. The VP8 fixture lock fails
the test instead of skipping it silently, and the full-sweep doc comments say
how many truncation points the full run samples.
* Fuzz tests: rotate the default subset per run (FILMCRAFT_FUZZ_SEED replays one)
* platform tests: decode-switch tests in their own binaries, one NVENC lock
- ru.tsv: all 3,592 strings of the reference catalog (was 355), translated
from the English sources with ordinary, Premiere-style Russian vocabulary.
Fixes the known mistranslations (Sequence -> Последовательность, Bin ->
Корзина, Lumetri Scopes -> Осциллограммы Lumetri, Wipe -> Вытеснение,
Normalize Mix Track, «мастер-дорожка») and applies one glossary throughout.
- Tests: russian_covers_the_whole_interface requires every Spanish entry and
no dead ones; a font test covers the Cyrillic alphabet including «ё»;
System Language maps ru-* to Russian.
- Docs: localization-parity, roadmap, gaps, ROADMAP, the ui-egui README and
the catalog's attribution sidecar.
#630 shipped German for the menus. This adds the other 3,213 strings, so
de.tsv has every entry of the Spanish catalog (3,590): panels, dialogs,
effects and their parameters, transitions, presets, Settings, shortcut
commands, export presets, tooltips and status messages. Same style as the
menus (du, infinitives, placeholders, ellipses and escapes kept); the
glossary in the header is extended. The 377 menu entries are unchanged.
german_entries_cover_the_original_menu_catalog required every entry to be
a menu label. It becomes german_covers_the_menus_and_has_no_dead_entries,
like the French and Italian tests: every entry needs a Spanish counterpart,
the core menus and the native macOS app menu are required, later strings
may stay English. german_renders_with_bundled_fonts checks the umlauts,
ß and German quotation marks against the bundled fonts.
Docs: ROADMAP.md, docs/localization-parity.md, docs/gaps.md, ui-egui README.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KJhvSJ5odpWzFw9HhPzAix
Add crates/ui-egui/src/i18n/tr.tsv, clean-room Turkish translations matching every entry in the Spanish catalog plus the native macOS Settings menu (3,590 entries).
Language::Tr ("Türkçe") is persisted as `tr` in `general.interfaceLanguage`; it appears in Edit > Language (and native macOS menu), Settings > General, and System Language picks it for `tr-*` locales.
Tests cover the core menus, reject dead entries, verify bundled font rendering for Turkish characters (Ç, Ğ, İ, Ö, Ş, Ü, ç, ğ, ı, ö, ş, ü), switching/persistence across restarts, and locale matching. Attribution sidecar, ATTRIBUTION.md, ui-egui README, gaps.md, and localization-parity.md updated.
Portrait phone photos imported sideways: decode_raster decoded JPEG,
PNG, WebP and TIFF stills with image::load_from_memory, which never
applies the EXIF Orientation tag.
The orientation is now read from the headers alone (no pixels decoded,
the probe's copy of the file dropped before the real decode) and
applied with DynamicImage::apply_orientation before the RGBA
conversion, so MediaInfo, the frame, the auto anchor and Scale to
Frame Size all see the upright size, like rotated phone video. Pixels
still go through load_from_memory, keeping its allocation limit for
hostile headers. A missing, unknown or damaged tag means no transform,
never a failed import.
Tests build every orientation 1-8 in JPEG, PNG, WebP and TIFF and check
size and pixel placement against the EXIF definition, plus open_bytes,
image sequences (also with mixed orientations), invalid values and a
mutation fuzz under catch_unwind. Docs list what is left (YCbCr TIFF,
DNG, the export image overlay) and the effect on projects saved before.
A PC whose GPUs were installed from different driver packages of one vendor
(an ASUS G513QY: the integrated Radeon on the 2021 package, the RX 6800M on a
2026 one) gives the Vulkan loader two versions of that vendor's driver, and
the RX 6800M is listed once through each. wgpu's request_adapter takes the
first discrete entry, the 2021 driver's, and the window drawn through it dies
inside amdvlk64.dll (0xc0000005) before it paints: the main thread is in the
2021 driver, the fault on a thread of the 2026 one, no Rust frame anywhere.
Left to the #820 ladder, two crashed launches end in DirectX 12 only.
filmcraft_gpu::adapter::choose is wgpu's own rule (the adapters that can draw
to the surface, by device type for WGPU_POWER_PREF, then as enumerated) with
one addition: when the adapter that rule picks is listed again by the same
driver (same backend, device type, PCI vendor and device and driver name; the
same bus id when both report one), the entry exposing the most wgpu features
is used, i.e. the newer version (68 against 60 here, a strict superset).
Without such a duplicate the choice is wgpu's own, and entries of one GPU from
different drivers (RADV and AMDVLK, a vendor's driver and Dozen) are left
alone.
graphics::apply installs it as egui-wgpu's native_adapter_selector in the
default mode on Windows, as #609 was asked to be rebased onto the #827
start-up. DirectX 12 only, software mode and the other platforms keep their
adapter choice, and the ladder is untouched. The adapters and the choice go
to the log.
Tests: the laptop's listing (wgpu's rule picks the entry that crashed, choose
the other one), listings without two versions of one driver over every power
preference (choose equals wgpu's rule), surface, bus id and driver cases, and
one against the adapters of the machine running the tests (the rule is what
request_adapter returns there).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
E-AC-3 (#788, closes#647), AVI import (#650, closes#598), Russian (#610),
French (#804), Indonesian (#878), pt-BR (#866) and German menus (#630) are
merged; roadmap.md Alpha gate row, B3, M9 and L10N still listed them as open.
G14 heading and summary row now say 4 of the 12 key languages missing (hi, ar,
ko, vi); counts re-measured from crates/ui-egui/src/i18n/*.tsv (union 3,576).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Verified against upstream/main: AVI import (#598, crates/avi), FLAC in MP4
(#603, mp4_flac_audio test), multicam paging beyond 16 angles
(render/multicam.rs page_layout), image-sequence downloads in Chrome (#378,
#624), streamed interchange import (#461, #664), deselect on empty space
(#683) and Project-panel marquee (#578). German (#630) and Russian (#610)
menus are listed. The FLAC-in-MP4 "silent" claim is removed from
codec-parity.md and target-app-parity.md as well.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Problem: Premiere reads Radiance HDR (.hdr) pictures; FilmCraft listed
the extension nowhere and could not open them.
Fix: clean-room RGBE decoder in filmcraft-media from the public format
description: header with FORMAT, all eight axis orders, flat, old
run-length and new per-channel run-length scan lines. Frames are linear
float (Rec.709), like EXR. Allocations are bounded by the data present;
hostile headers and truncated data return errors. "hdr" joins the
importable still extensions; stills and image sequences share the decoder.
Output equals ffmpeg's decode exactly for flat and RLE files; EXPOSURE and
PRIMARIES lines are ignored and XYZE is refused.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>