Skip to main content

moq_video/encode/
mod.rs

1//! Encode captured video and publish it as a moq H.264 track.
2//!
3//! Entry points, high to low level:
4//! - [`publish_capture`] captures and publishes a webcam (turnkey).
5//! - [`Encoder`] H.264-encodes raw RGBA frames you supply, and [`Producer`]
6//!   publishes the resulting packets (bring your own frames).
7//! - [`Producer`] alone publishes H.264 you already encoded.
8//!
9//! [`Options`] / [`Kind`] / [`Config`] configure them. The decode/consume
10//! counterpart (mirror of `moq-audio`'s consumer) will land in a sibling
11//! `decode` module.
12
13mod encoder;
14mod producer;
15
16pub use encoder::{Config, Encoder, Kind};
17pub use producer::{Options, Producer, publish_capture};