zenovdk 0.1.0

High-performance, runtime-agnostic Video Development Kit (VDK) for parsing RTSP stream inputs and muxing them into fragmented MP4 (fMP4/MSE) or MPEG-TS formats.
Documentation
use bytes::Bytes;
use std::time::Duration;

#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum CodecType {
    H264,
    H265,
    AAC,
    Opus,
    PcmMulaw,
    PcmAlaw,
}

pub trait CodecData {
    fn codec_type(&self) -> CodecType;
}

#[derive(Debug, Clone)]
pub struct Packet {
    pub idx: i8,
    pub is_key_frame: bool,
    pub time: Duration,
    pub composition_time: Duration,
    pub duration: Duration,
    pub data: Bytes, // Bytes is cheap to clone (zero-copy references)
}