1327 Commits
Author SHA1 Message Date
Vanilagy 394eede178 Bump patch v1.55.2 2026-08-21 20:14:58 +02:00
Vanilagy 6b5ae29252 Add Annex B in MP4 test 2026-08-21 20:12:50 +02:00
Vanilagy 656c7e70a8 Merge branch 'main' of https://github.com/Vanilagy/mediabunny 2026-08-21 20:06:29 +02:00
Vanilagy 3c4f4c27a3 Slightly restructure code 2026-08-21 20:06:28 +02:00
Vanilagy 166298df2c Make WebCodecs missing error message more helpful (fixes #466) 2026-08-20 23:22:28 +02:00
Jasmine Minter fdfab4660f Support missing or empty avcC chunk 2026-08-20 13:28:50 +10:00
Vanilagy 1c4d1c70a8 Prevent warning from being emitted in CI 2026-08-17 18:55:15 +02:00
Vanilagy 018c2ca67b Bump patch v1.55.1 2026-08-17 18:40:58 +02:00
Vanilagy 1d53e12f28 Bump minor v1.55.0 2026-08-17 18:22:16 +02:00
David P.andGitHub 972215e738 Merge pull request #462 from Vanilagy/dts
Full DTS read/write support + @mediabunny/dts extension package
2026-08-17 14:03:04 +02:00
Vanilagy 6d9a65a2aa Address transcode forced by trimming in docs (closes #464) 2026-08-17 11:25:52 +02:00
Vanilagy 77c78b6c02 Fix linting errors 2026-08-15 17:55:54 +02:00
Vanilagy e8162f483f Add @mediabunny/dts extension package 2026-08-15 17:50:47 +02:00
Vanilagy 914907b5db Define DTS codec, add muxing and demuxing support across ISOBMFF, Matroska, and MPEG-TS, add DTS encode/decode support to @mediabunny/server 2026-08-15 16:19:12 +02:00
Vanilagy ae66f01566 Clarify Conversion API codec field default 2026-08-14 11:54:43 +02: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
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
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
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
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
Vanilagy f177be15cf Write out compressor name as Pascal-style string, bump patch v1.52.1 2026-07-31 00:06:07 +02: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 4b5ef55cf1 Fix API docs some more 2026-07-24 14:53:49 +02:00
Vanilagy 2f5e2f0a3e Fix @internal fields on type aliases being printed to API docs 2026-07-24 14:13:39 +02:00
Vanilagy 7ff06c3f65 Re-enable lastUpdated, add lastUpdated logic to API doc generator 2026-07-22 20:25:37 +02: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