Commit Graph
1334 Commits
Author SHA1 Message Date
github-actions[bot] 4e64e1ed5a Merge main into release for tag v1.54.0 2026-08-14 09:30:53 +00:00
Vanilagy 6a87647d67 Bump minor v1.54.0 2026-08-14 11:24:03 +02:00
Vanilagy d6fdf5748d Add sponsor 2026-08-14 11:23:43 +02:00
David P.andGitHub b293ea1e79 Merge pull request #461 from Vanilagy/frame-rate
Add computeFrameRateMetrics and heuristics to determine a video's true frame rate
2026-08-14 11:17:08 +02:00
Vanilagy 39f49de96d Add explanatory doc comment 2026-08-14 11:15:25 +02:00
github-actions[bot] d46e124945 Merge main into release for tag v1.53.1 2026-08-12 14:19:42 +00:00
Vanilagy 9acc97da7a Bump patch v1.53.1 2026-08-12 16:13:43 +02:00
Vanilagy dc068a0aa8 Add computeFrameRateMetrics and heuristics to determine a video's true frame rate 2026-08-12 16:10:28 +02:00
Vanilagy a08e262dfc Work around WebKit not respecting TypedArray offets for FileSystemWritableFileStream data (fixes #459) 2026-08-11 12:46:33 +02:00
github-actions[bot] a0f8a23ddb Merge main into release for tag v1.53.0 2026-08-08 15:23:28 +00:00
Vanilagy e9d7bc4e83 Bump minor, document single file mode special case v1.53.0 2026-08-08 17:10:33 +02:00
Vanilagy 5b22c8c17d Fix HLS writing an incomplete init segment for sparse segments, improve decoder config validation, fix getFirstTimestamp() for Inputs with zero-packet tracks, allow zero-track muxing for some formats that allow it, add new track metadata that allows you to specify the decoder config early (enables zero-packet tracks), fix trafIndices in sparse fragmented MP4s, fix assertion errors in MPEG-TS demuxer 2026-08-08 17:00:36 +02:00
Vanilagy 7ec538e175 Add special-cased HLS muxer behavior with single-file mode and fMP4 in order to create a standalone playable fMP4 file (closes #394) 2026-08-07 23:03:48 +02:00
Vanilagy eceb350806 Unflake FLAC test 2026-08-06 17:05:09 +02:00
Vanilagy f8f660b31a Flake? 2026-08-06 16:52:08 +02:00
Vanilagy b0a8802918 Fixed missing mipmapping in the VideoSample transform case, now guaranteed via a manual mipmap algo 2026-08-06 16:31:46 +02:00
Vanilagy c159798c29 Sure 2026-08-06 14:13:59 +02:00
Vanilagy 3023c5f7bd Adjust UrlSource behavior when reading non-range responses, it now honors the cache size and behaves like a ReadableStreamSource (fixes #457) 2026-08-06 14:02:28 +02:00
Vanilagy 9b155cc8f2 Fix macOS webdriver io cache location 2026-08-06 13:54:10 +02:00
Vanilagy 4e4e6eed0c Fix encodability checks throwing due to unsupported config feature set; now counts as not supported (fixes #456) 2026-08-06 11:07:15 +02:00
github-actions[bot] b4d259f80e Merge main into release for tag v1.52.3 2026-08-03 12:59:24 +00:00
Vanilagy ce10bb774a Bump patch v1.52.3 2026-08-03 14:54:19 +02:00
Vanilagy 445911edd0 Fix ISOBMFF muxer track alternate groups (fixes #454), fixed mutex race condition in Output 2026-08-03 14:50:36 +02:00
Vanilagy 7a871cec49 Update README to new Quality API 2026-07-31 17:53:46 +02:00
github-actions[bot] 402481174c Merge main into release for tag v1.52.2 2026-07-31 14:00:34 +00:00
Vanilagy 593cd6e2f5 Bump patch v1.52.2 2026-07-31 15:52:54 +02:00
Vanilagy a0e18ffde0 Use imageSmoothingQuality high when doing canvas-based resizes 2026-07-31 15:52:28 +02:00
github-actions[bot] 1f6a25064d Merge main into release for tag v1.52.1 2026-07-30 22:11:12 +00:00
Vanilagy f177be15cf Write out compressor name as Pascal-style string, bump patch v1.52.1 2026-07-31 00:06:07 +02:00
github-actions[bot] 85170cfbe9 Merge main into release for tag v1.52.0 2026-07-30 16:12:02 +00:00
Vanilagy 6be47af6aa Bump minor v1.52.0 2026-07-30 17:54:56 +02:00
Vanilagy d5362e20ad Fix incorrect video depth being written in ISOBMFF for video tracks with an alpha channel (fixes #450) 2026-07-30 17:45:33 +02:00
c3df2a24e5 Add custom quality factors and quantizer bitrate mode (#448)
* Add custom quality factors and quantizer bitrate mode (closes #327)

* Fix quantizer mode fallback and per-frame quantizer edge cases

* Clean up quantizer mode tests

* Quantizer implementation

* Add quality tests

* Improve conversion codec error message, make test more lenient

* Add quantizer support blog post

---------

Co-authored-by: Vanilagy <[email protected]>
2026-07-30 17:24:59 +02:00
Vanilagy 1a99b0371d Improve encoder-side error handling, always close samples/frames even in error conditions 2026-07-29 14:45:22 +02:00
Vanilagy 4e4603ed83 Up timeout 2026-07-29 11:49:37 +02:00
Vanilagy 90ec40166f Fix decoders not being closed in certain error scenarios, fixed unsettled promises in reading logic (fixes #446) 2026-07-29 11:42:14 +02:00
Vanilagy b4937d384c Merge branch 'main' into release 2026-07-24 14:54:00 +02:00
Vanilagy 4b5ef55cf1 Fix API docs some more 2026-07-24 14:53:49 +02:00
Vanilagy 3ef0ae0f31 Merge branch 'main' into release 2026-07-24 14:13:50 +02:00
Vanilagy 2f5e2f0a3e Fix @internal fields on type aliases being printed to API docs 2026-07-24 14:13:39 +02:00
Vanilagy 92d4836e53 Merge branch 'main' into release 2026-07-22 20:26:06 +02:00
Vanilagy 7ff06c3f65 Re-enable lastUpdated, add lastUpdated logic to API doc generator 2026-07-22 20:25:37 +02:00
github-actions[bot] 03281ba3e9 Merge main into release for tag v1.51.0 2026-07-22 13:40:11 +00:00
Vanilagy 634186fd5e Bump minor v1.51.0 2026-07-22 15:31:39 +02:00
Vanilagy ae5a5838d6 Add ability to pause conversions or step them deliberately 2026-07-22 15:30:37 +02:00
f41eef0937 Add composable conversions
* Add non-owning conversions via ConversionOptions.ownsOutput

A conversion with ownsOutput: false only adds tracks to the output and
drives their media data; starting, finalizing, and metadata tags remain
the caller's responsibility. This lets multiple conversions and
directly-added user tracks compose on a single Output (see upstream
issue #436).

- ownsOutput: false allows a pre-populated output (state must still be
  'pending') and seeds track-capacity accounting from existing tracks
- execute() requires the output to be started and never finalizes it
- cancel() closes only the conversion's own sources, releasing internal
  synchronizer waiters, and leaves the output usable
- tags cannot be combined with ownsOutput: false
- isValid requires at least one contributed track instead of the
  format's minimum track counts

Prototype for API discussion; default (owning) behavior is unchanged.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01AJdfnbY9AFh9i9dKgtrj6E

* Add external-audio example using a non-owning conversion

Demonstrates composing a user-owned audio track (synthesized voiceover
via OfflineAudioContext + AudioBufferSource) onto a picked video with
Conversion.init({ ownsOutput: false }), including progress reporting
and playback/download of the result.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01AJdfnbY9AFh9i9dKgtrj6E

* Release synchronizer waiters when canceling during output finalization

A non-owning conversion's cancel() previously no-oped entirely when the
output (owned by someone else) was already finalizing or finalized,
leaving pump loops parked in the track synchronizer and hanging
execute() forever. Now it still marks the conversion canceled and
releases parked waiters in that state, without force-closing sources
(finalization owns flushing them at that point).

Also adds coverage: non-owning onProgress monotonicity, canceling one
of two sibling conversions, capacity seeding across sequential inits,
exact metadata exclusivity, and cancel-before-execute.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01AJdfnbY9AFh9i9dKgtrj6E

* Document non-owning conversions on the converting-media-files guide page

Adds the doc section requested in #436: what ownsOutput: false does, the
required choreography (add tracks -> output.start() before execute() ->
run the conversion concurrently with your own sources -> finalize), the
cancellation split (conversion.cancel() leaves the output alive; cancel
both for a full abort and tear the output down on error paths), isValid
semantics in this mode, and the tags restriction with the
setMetadataTags() alternative. Also cross-links the fresh-output rule to
the new section. VitePress build passes with dead-link checking on.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

* Clean up conversion logic, add Output.tracks and .hasEnoughTracks(), move new conversion tests around, remove external audio example

* non-owning -> composable, and update docs

* Update

---------

Co-authored-by: Claude <[email protected]>
Co-authored-by: Vanilagy <[email protected]>
2026-07-22 08:42:19 +00:00
github-actions[bot] 041999738c Merge main into release for tag v1.50.9 2026-07-18 21:55:04 +00:00
Vanilagy 794b84884f Make sure that samples are always closed in the Conversion API, even on error cases v1.50.9 2026-07-18 22:54:24 +02:00
Vanilagy 45c34f9dcd Bump patch 2026-07-18 16:15:53 +02:00
Vanilagy 3ec4061e03 Clean up 2026-07-18 15:49:57 +02:00