#avif #heif #av1 #mux #bmff

avif-serialize

Minimal writer for AVIF header structure (MPEG/HEIF/MIAF/ISO-BMFF)

13 releases

0.8.1 Dec 6, 2022
0.7.7 Nov 27, 2022
0.7.6 Apr 7, 2022
0.7.5 Sep 15, 2021
0.6.4 Aug 29, 2020

#3 in #heif

Download history 757/week @ 2022-11-30 996/week @ 2022-12-07 614/week @ 2022-12-14 540/week @ 2022-12-21 498/week @ 2022-12-28 869/week @ 2023-01-04 728/week @ 2023-01-11 798/week @ 2023-01-18 922/week @ 2023-01-25 675/week @ 2023-02-01 821/week @ 2023-02-08 1198/week @ 2023-02-15 1477/week @ 2023-02-22 1616/week @ 2023-03-01 1999/week @ 2023-03-08 1268/week @ 2023-03-15

6,727 downloads per month
Used in 4 crates (via ravif)

BSD-3-Clause

38KB
927 lines

AVIF image serializer (muxer)

Minimal writer for AVIF header structure. This is lean, safe-Rust alternative to libavif. It creates the jungle of MPEG/HEIF/MIAF/ISO-BMFF "boxes" as appropriate for AVIF files. Supports alpha channel embedding.

Compatible with decoders in Chrome 85+, libavif v0.8.1, and Firefox 92.

Together with rav1e it allows pure-Rust AVIF image encoding.

Requirements

Usage

  1. Compress pixels using an AV1 encoder, such as rav1e. libaom works too.

  2. Call avif_serialize::serialize_to_vec(av1_data, None, width, height, 8)

See cavif for example usage.


lib.rs:

AVIF image serializer (muxer)

Usage

  1. Compress pixels using an AV1 encoder, such as rav1e. libaom works too.

  2. Call avif_serialize::serialize_to_vec(av1_data, None, width, height, 8)

See cavif for a complete implementation.

Dependencies

~65KB