You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Breaking: spell everything in American English, including public names (issue #657). The repository mixed British and American spellings; it now uses American spellings throughout, and AGENTS.md gives the rule. This renames these public items, with no deprecated aliases for the old names:
zvidlib-core: ErrorKind::Cancelled is now ErrorKind::Canceled, CancellationToken::is_cancelled is now is_canceled, and Vp9CodecConfig::colour_primaries is now color_primaries. In JavaScript, the error code for a canceled operation is now "CANCELED" instead of "CANCELLED".
zvidlib-hevc-syntax: vui::ColourDescription is now ColorDescription (its colour_primaries field is now color_primaries), VideoSignalType::colour_description is now color_description, sei::MasteringDisplayColourVolume (the struct and the SeiPayload variant) is now MasteringDisplayColorVolume, SeqParameterSet::separate_colour_plane_flag is now separate_color_plane_flag, PpsSccExtension::residual_adaptive_colour_transform_enabled_flag is now residual_adaptive_color_transform_enabled_flag, and SliceSegmentHeader::colour_plane_id is now color_plane_id. These HEVC syntax elements keep their specification meaning; only the spelling changed.
zvidlib-hevc: engine::Neighbour is now Neighbor, engine::motion::NeighbourPu and SpatialMergeNeighbours are now NeighborPu and SpatialMergeNeighbors, SaoBoundaries::ctb_neighbourhood_unconstrained is now ctb_neighborhood_unconstrained, and the residual_adaptive_colour_transform_enabled_flag fields of SliceDataParams and TransformUnitParams are now residual_adaptive_color_transform_enabled_flag.
Error and log messages change spelling too (for example, codec operation canceled), and the wording of earlier entries in this changelog was updated to match.
Fix VP9 WebM files that zvidlib writes failing to play in Chrome when the stream is full range, as the browser's WebCodecs encoder produces from canvas frames (issue #655). WebmMuxer wrote no Color element, and Chrome takes a WebM VP9 track's color space from it rather than from the bitstream, so a <video> showed the first frame and then stopped with a decode error. A VP9 track now carries the range, primaries, transfer characteristics and matrix coefficients its vpcC declares, and WebmDemuxer reads them back into the track's vpcC. The project website's "Record a canvas" demo now plays its VP9 WebM recordings.
The website's scrub demo resumes playback and synchronized audio from the selected frame after a timeline drag when it was already playing (issue #661). Paused scrubs stay paused, keyboard seeks continue playback immediately, and the mute setting is preserved.
The project website's frame-exact scrubbing demo has a mute button that turns the clip's soundtrack down and back up without stopping or restarting playback (issue #659). When a clip has no audio track, or the browser has no Web Audio or cannot decode the track, the video still plays and the button is disabled with the reason. The README and the website now name audio alongside video in their headlines: decoding, encoding and muxing AAC, Opus and Vorbis, and exact sample-range reads.
Fix browser HEVC output failing with INTERNAL: browser video track produced no decoder configuration in browsers that can encode HEVC, such as Chrome on Windows (issue #653). The WebCodecs encoder bridge looked for the hvcC description in each chunk's EncodedVideoChunkMetadata with a checked cast, and a WebIDL dictionary has no constructor to check against, so the cast always failed and the description Chrome supplied was never read. A MediaOutput with videoCodec = "hevc" now finishes with that hvcC and reads back frame-exactly, and the project website's "Record a canvas" demo records HEVC to MP4.
Fix browser video reads stalling a dozen frames into a track when they decode through WebCodecs (issue #651). The browser decoder kept up to Limits::max_cached_frames (32) decoded VideoFrames open, and Chrome's VideoDecoder stops emitting frames once about ten to fourteen of its output buffers are held, so video.get(n) never resolved past frame 10 of an HEVC track or frame 14 of an AV1 one, whether read sequentially or by seeking. It now keeps at most four decoded frames open at or before the one asked for, never evicts the frame a get() is waiting for, and keeps the frames the decoder has already run ahead to (up to Limits::max_cached_frames) for the reads that follow, so sequential reads and seeks run through a whole track, and reads paced like playback continue one decode session instead of re-decoding from the key frame every other frame (issue #655).
A new project website at lsegal.github.io/zvidlib, with a live in-browser demo built on the WebAssembly package: frame-exact scrubbing of a sample clip with seek previews, and recording an animated canvas to MP4 or WebM and reading a frame back from the file (issue #651). The API documentation stays at /zvidlib/, and /api/ now leads there too. The README now opens with what zvidlib does, codec, container and platform support tables, Rust and JavaScript quick starts, and zvid as an application built on it; the per-backend detail it carried moved to an appendix of ARCHITECTURE.md.
A release no longer waits for its crates to reach crates.io before its GitHub release is created (issue #649). Finalize release uploaded the crates itself, before creating the GitHub release, so once crates.io's burst of five new crates was spent it waited ten minutes per new crate, and the release, its notes and its .crate and zvidlib-web-vX.Y.Z.tgz assets did not appear for hours. Crates are now published by a new Publish crates workflow, which Finalize release starts on the tag once cargo package has verified the crates and the GitHub release is created, and does not wait for. Dispatch Publish crates by hand with a vX.Y.Z tag to finish a publish that failed or timed out: it skips crates already on crates.io at that version, a second dispatch for the same tag waits for the first to finish rather than uploading alongside it, and without a CARGO_REGISTRY_TOKEN it logs that nothing was published and succeeds.