#amf0 #codec #rtmp #flash #flv

scuffle-amf0

A pure-rust implementation of AMF0 encoder and decoder

1 unstable release

new 0.1.0 Feb 10, 2025
0.0.2 Feb 9, 2025
0.0.1 Feb 9, 2025

#409 in Video

Download history 90/week @ 2025-02-04

90 downloads per month
Used in 3 crates

MIT/Apache

55KB
1K SLoC

scuffle-amf0

[!WARNING]
This crate is under active development and may not be stable.

crates.io docs.rs


A pure-rust implementation of AMF0 encoder and decoder.

License

This project is licensed under the MIT or Apache-2.0 license. You can choose between one of them if you use this work.

SPDX-License-Identifier: MIT OR Apache-2.0


lib.rs:

A pure-rust implementation of AMF0 encoder and decoder.

This crate provides a simple interface for encoding and decoding AMF0 data.

Examples

use scuffle_amf0::Amf0Decoder;
use scuffle_amf0::Amf0Encoder;

// Create a new decoder
let mut reader = Amf0Decoder::new(bytes);
let value = reader.decode()?;

// .. do something with the value

// Encode a value into a writer
Amf0Encoder::encode(&mut writer, &value)?;

Dependencies

~0.6–1.2MB
~24K SLoC