* Audio panel: Audio Levels show the value at the current time, keyframes and expressions included (#3227)
The level fields read the property's static base value. They now evaluate Audio Levels the way
the Timeline and Effect Controls do (EvalCtx at the current time: keyframes at layer time, the
expression host), and they are hot-text fields whose edits run the Timeline's prop.set, so a
keyframed property gets a key at the current time. The Timeline's Link Channels state applies
(#2485). New automation ids audio.levelLeft and audio.levelRight carry the shown value; the
fields are drawn only when the panel is wide enough for them.
Fixes#3227
* Audio panel: a Ctrl+Alt scrub of Audio Levels is proportional, as in the Timeline (#3227)
The Audio panel's prop.set now carries the proportional flag the Timeline sends for a Ctrl+Alt
(Cmd+Opt) scrub, so the change spreads over the selected layers by selection order.
* Audio panel: a scrub of expression-driven Audio Levels moves the keyframed value by the scrub (#3227)
prop.set takes a scrub's change from the keyframed value under the expression. The Audio panel
sent the shown (expression-evaluated) value moved by the scrub, so the expression's offset was
added to every selected layer on every frame of the scrub. A scrub now sends the keyframed value
moved by the shown change; a typed value is still set as it is.
* Audio panel: narrow panels keep the level fields; typing one channel keeps the other's value under the expression (#3227)
The level fields were left out below 110 px (the panel showed them down to 80 px before this
PR); 80-110 px now get a compact layout with L / R labels. Typing into one channel of an
expression-driven Audio Levels wrote the other channel's shown (expression-evaluated) value into
the value under the expression; that channel now keeps its own. Adds tests for a linked and an
Alt scrub and for typing into an expression-driven field.
* Audio panel: Audio Levels evaluate with the session's footage source (#3227)
The level fields built their expression context without the footage source, so an expression
sampling footage with sampleImage disagreed with the render. They now use the session's source.
Regression: nonzero sampled footage drives both channels.
* Audio panel: each level scrub is its own undo step (#3234 review)
Fixes#4095.
This is a hardening change for a FreeBSD CI flake; it may not fully fix the flake.
On the scheduled FreeBSD 15 x86_64 run, ui_preview_align::playback_prefetches_past_the_cached_frames_ahead failed during setup: after requesting frames 0..120 it asserted the cache equalled [0, 1, …, 119] and got only [0]. The wait was eight seconds and did not step the harness. The same test passed on the previous day's scheduled run.
This PR steps the harness while waiting, gives the workers up to 60 seconds, and reports how many frames actually landed. If workers never fill the cache under load, the test can still fail.
The FreeBSD aarch64 job only cross-compiles tests; it does not run them, so a green aarch64 leg is not a test pass.
* psd: share plane reading, RLE row counts, and ZIP framing via craft-psd (#786)
* psd: fix parity test imports and ImageResource::new arity
* psd: fix borrow conflict in parity test helper
* psd: use shared zip_decompress_up_to in opt reference decoder
* psd: remove shadowed imports in parity tests
* Use the shared cancellation flag in EffectCraft media reads
* chore: repin craft-libs media crates to main (ba25ccd2)
* deps: align the FilmCraft cancellation context
* chore: use origin/main craft-libs pin (587339c7)
* chore: repin craft-libs media crates to main (6a061a30)
* chore: align craft-media-source (ba25ccd2) and filmcraft (3d746514) to share one cancellation context
* deps: use the merged FilmCraft cancellation revision
* chore: align craft-media-source (6a061a30) and filmcraft (d6cc257f)
---------
Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
* media: use the shared GIF text control fix
* chore: repin craft-gif to storytold/craft-libs main (ba25ccd2)
---------
Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
* media: route MP4 and Matroska FLAC through craft-audio
* media: propagate errors when generating FLAC test fixtures
---------
Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
* Preserve the final picture duration in regular H.264 transport streams
* Test TS duration through the public H.264 encoder API
---------
Co-authored-by: Codex <codex@openai.com>
* Use the same indexed MXF picture window for duration and seek
* Apply hosted rustfmt to MXF window test
---------
Co-authored-by: Codex <codex@openai.com>
* fix(media): honor MOV audio edit lists on first read
* fix(media): preserve sign on ISO-BMFF edit-list position overflow
---------
Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
* media: route AVI, MPEG-TS, and MPEG-PS through craft-media
* media: add tick_to_rational_units and unwrap CodecParams dims
* media: deduplicate container source builder and add AVI/MPEG unit test
* media: import avi mux types from craft_media::avi root in test
* media: test estimate_mpeg_frame_rate via pts helper
* media: expand AVI and MPEG-TS unit test coverage
* media: write >=5 TS packets in MPEG-TS unit test for sniff
* media: expect MPEG-2 TS container name in unit test
* media: restore ContainerFile::Avi arm in target_sample
* media: route MXF video and PCM/AES3 sound through craft-media::mxf
* media: use SoundFormat::Aes3Element for MXF AES3 sound
* media: address MXF presentation window, timecode rate, reorder fallback, and unit coverage
* media: fix StartTimecode and MediaSource::audio calls in MXF unit test
* media: fix unnecessary cast and add MXF video/trim unit test
* media: use PictureCoding::Avc and smoke-test open_mxf video+sound
* media: pass raw_bytes Vec<u8> to open_bytes in MXF unit test
* media: disambiguate Arc<[u8]> type in MXF unit test
* media: remove duplicate AudioBackend enum after merge
* media: match AudioBackend::Decoder struct variant
* media: fix MXF sync_sample_before assertion in unit test
* media: route standalone WAV, AIFF, MP3, ADTS AAC, AC-3, and Ogg Opus through craft-audio
* media: fix slice indexing and exhaustive SampleFormat match
* media: gate standalone audio for wasm, handle rate 0, and read wav markers
* media: use ext_of(path) == "wav" for wav_markers in probe
* media: deduplicate native_audio_window and drain_audio_window
* media: preserve contiguous audio packet placement across rounding and gaps
Port @IppSec's contiguous_starts packet-placement logic from storytold/filmcraft#359 into CraftMediaSource so fixed-frame and Opus packets stay contiguous across 1ms Matroska timestamp rounding and laced blocks, while honoring real silence gaps, overlaps, and delayed first packets on both sequential playback and cold/backward seeks.
Refs: storytold/effectcraft#1546
Refs: storytold/filmcraft#359
Co-authored-by: ippsec <root@ippsec.rocks>
* media: fix opus_packet_samples helper and TrackDecoder borrow
* media: use Footage and re-exported matroska mux types in audio gap tests
---------
Co-authored-by: ippsec <root@ippsec.rocks>