#avif #heif #av1 #bmff #mux

avif-serialize

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

6 releases

new 0.6.5 Jan 12, 2021
0.6.4 Aug 29, 2020

#2 in #av1

Download history 73/week @ 2020-09-27 807/week @ 2020-10-04 510/week @ 2020-10-11 568/week @ 2020-10-18 1051/week @ 2020-10-25 1388/week @ 2020-11-01 422/week @ 2020-11-08 354/week @ 2020-11-15 426/week @ 2020-11-22 221/week @ 2020-11-29 396/week @ 2020-12-06 268/week @ 2020-12-13 807/week @ 2020-12-20 353/week @ 2020-12-27 533/week @ 2021-01-03 598/week @ 2021-01-10

2,421 downloads per month
Used in 17 crates (via ravif)

BSD-3-Clause

30KB
734 lines

AVIF image serializer (muxer)

Minimal writer for AVIF header structure. This is a tiny 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 81a.

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

Requirements

  • Rust 1.45

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)

Dependencies

~63KB