Skip to main content

Crate oximedia

Crate oximedia 

Source
Expand description

§OxiMedia — The Sovereign Media Framework

A patent-free, memory-safe multimedia processing library written in pure Rust. OxiMedia is the single crate that unifies the entire OxiMedia ecosystem — covering everything from raw codec primitives to broadcast-grade MAM workflows.

§Design Principles

  • Patent-Free: Only royalty-free codecs (AV1, VP9, VP8, Opus, Vorbis, FLAC, PCM)
  • Memory Safe: Pure Rust, #![forbid(unsafe_code)] throughout
  • Async-First: Built on Tokio for high-concurrency media pipelines
  • Zero-Copy: Efficient buffer management at every layer
  • Feature-Gated: Pay only for what you use — the default build is lean

§Quick Start

Add to Cargo.toml:

[dependencies]
oximedia = { version = "0.1", features = ["audio", "video"] }

Then in your code:

use oximedia::prelude::*;

// Probe a media file
let format = probe_format(&data)?;
println!("Container: {:?}", format);

§Feature Flags

FeatureCrates enabledPurpose
audiooximedia-audioOpus, Vorbis, FLAC, PCM codecs
videooximedia-codecAV1, VP9, VP8 video codecs
graphoximedia-graphFilter graph / processing pipeline
effectsoximedia-effectsProfessional audio effects suite
netoximedia-netHLS, DASH, SRT, RTMP, WebRTC
meteringoximedia-meteringEBU R128, ATSC A/85 loudness
normalizeoximedia-normalizeLoudness normalization
qualityoximedia-qualityPSNR, SSIM, VMAF, NIQE
metadata-extoximedia-metadataID3v2, XMP, EXIF, IPTC
timecodeoximedia-timecodeSMPTE LTC/VITC timecode
workflowoximedia-workflowDAG workflow orchestration
batchoximedia-batchBatch job processing engine
monitoroximedia-monitorSystem monitoring and alerting
lutoximedia-lut1D/3D LUT and HDR pipeline
colormgmtoximedia-colormgmtICC, ACES, HDR color management
transcodeoximedia-transcodeFull transcoding pipeline
subtitleoximedia-subtitleSRT, ASS, WebVTT rendering
captionsoximedia-captionsClosed caption formats
archiveoximedia-archiveArchive verification & preservation
dedupoximedia-dedupMedia deduplication
searchoximedia-searchMedia search and indexing
mamoximedia-mamMedia Asset Management system
sceneoximedia-sceneAI scene understanding
shotsoximedia-shotsShot detection & classification
scopesoximedia-scopesBroadcast video scopes
vfxoximedia-vfxVisual effects and compositing
image-extoximedia-imageAdvanced image processing (DPX, EXR, TIFF)
watermarkoximedia-watermarkAudio watermarking and forensic detection
miroximedia-mirMusic Information Retrieval
recommendoximedia-recommendContent recommendation engine
playlistoximedia-playlistBroadcast playlist management
playoutoximedia-playoutBroadcast playout server
rightsoximedia-rightsDigital rights management
reviewoximedia-reviewCollaborative media review
restoreoximedia-restoreAudio/video restoration
repairoximedia-repairMedia file repair and recovery
multicamoximedia-multicamMulti-camera sync and switching
stabilizeoximedia-stabilizeVideo stabilization
cloudoximedia-cloudCloud storage abstraction (S3, Azure, GCS)
edloximedia-edlEDL parsing and generation
ndioximedia-ndiNDI protocol support
imfoximedia-imfIMF package support (SMPTE ST 2067)
aafoximedia-aafAAF interchange (SMPTE ST 377-1)
timesyncoximedia-timesyncPTP/NTP time synchronization
forensicsoximedia-forensicsMedia forensics and tampering detection
acceloximedia-accelHardware acceleration (Vulkan GPU, CPU fallback)
simdoximedia-simdSIMD-optimised media kernels (DCT, SAD, blending)
switcheroximedia-switcherProfessional live video switcher
timelineoximedia-timelineMulti-track timeline editor
optimizeoximedia-optimizeCodec optimisation suite (RDO, psychovisual, AQ)
profileroximedia-profilerPerformance profiling tools
renderfarmoximedia-renderfarmDistributed render farm coordinator
storageoximedia-storageCloud-agnostic object storage (S3, Azure, GCS)
collaboximedia-collabReal-time CRDT collaborative editing
gamingoximedia-gamingGame streaming and screen capture
virtual-prodoximedia-virtualVirtual production and LED wall tools
accessoximedia-accessAccessibility (audio description, captions, WCAG)
conformoximedia-conformMedia conforming (EDL/XML/AAF matching)
convertoximedia-convertMedia format conversion utilities
automationoximedia-automationBroadcast automation and master control
clipsoximedia-clipsProfessional clip management and logging
proxyoximedia-proxyProxy and offline editing workflows
presetsoximedia-presetsEncoding preset library (200+ presets)
calibrateoximedia-calibrateColor calibration and camera profiling
denoiseoximedia-denoiseVideo denoising (spatial, temporal, hybrid)
alignoximedia-alignMulti-camera video alignment and registration
analysisoximedia-analysisComprehensive media analysis and QA
audiopostoximedia-audiopostAudio post-production (ADR, Foley, mixing)
qcoximedia-qcBroadcast-grade quality control and validation
jobsoximedia-jobsJob queue and worker management
autooximedia-autoAutomated video editing and highlight detection
editoximedia-editVideo timeline editor with effects
routingoximedia-routingSignal routing, NMOS IS-04/IS-05/IS-07
audio-analysisoximedia-audio-analysisSpectral, voice, music, forensics analysis
gpuoximedia-gpuWGPU GPU compute (Vulkan, Metal, DX12, WebGPU)
packageroximedia-packagerHLS/DASH adaptive streaming packaging
drmoximedia-drmCENC, Widevine, PlayReady, FairPlay DRM
archive-prooximedia-archive-proBagIt, OAIS, PREMIS digital preservation
distributedoximedia-distributedDistributed multi-node encoding
farmoximedia-farmRender farm coordinator
dolbyvisionoximedia-dolbyvisionDolby Vision RPU metadata
mixeroximedia-mixerProfessional digital audio mixer
scalingoximedia-scalingHigh-quality video scaling
graphicsoximedia-graphicsBroadcast graphics engine
videoipoximedia-videoipVideo-over-IP protocol
compat-ffmpegoximedia-compat-ffmpegFFmpeg CLI compatibility layer
pluginoximedia-pluginDynamic/static codec plugin system
serveroximedia-serverRESTful media server
hdroximedia-hdrHDR video processing (PQ/HLG, tone mapping, HDR10+)
spatialoximedia-spatialSpatial audio (Ambisonics, binaural, room simulation)
cacheoximedia-cacheHigh-performance media caching (LRU, tiered, warming)
streamoximedia-streamAdaptive streaming pipeline, segment management, QoE
video-procoximedia-videoScene detection, pulldown detection, temporal denoising, perceptual fingerprinting
cdnoximedia-cdnCDN edge management, cache invalidation, geographic routing, origin failover
neuraloximedia-neuralLightweight neural network inference for media (tensor ops, conv2d, scene classification)
vr360oximedia-360360° VR video: equirectangular/cubemap projections, fisheye, stereo 3D
analyticsoximedia-analyticsMedia engagement analytics: sessions, retention curves, A/B testing, scoring
caption-genoximedia-caption-genAdvanced caption generation: speech alignment, WCAG compliance, diarization
mjpegoximedia-codec (mjpeg)Motion JPEG intra-frame video codec
apvoximedia-codec (apv)APV (Advanced Professional Video) intra-frame codec (ISO/IEC 23009-13)
fullall of the aboveEverything enabled

Re-exports§

pub use oximedia_cv as cv;

Modules§

prelude
Convenient re-exports of the most commonly used OxiMedia types.

Structs§

BitReader
I/O primitives: byte readers and media source abstractions.
CodecParams
Container layer: probing, demuxing, packets, stream descriptors. Codec-specific parameters.
FileSource
A media source backed by a local file.
MemorySource
I/O primitives: byte readers and media source abstractions.
Metadata
Container layer: probing, demuxing, packets, stream descriptors. Stream and container metadata.
Packet
Container layer: probing, demuxing, packets, stream descriptors. A compressed media packet from a container.
PacketFlags
Container layer: probing, demuxing, packets, stream descriptors. Flags indicating packet properties.
ProbeResult
Container layer: probing, demuxing, packets, stream descriptors. Result of format probing.
Rational
Core OxiMedia types: errors, codecs, pixel/sample formats, timestamps. Rational number for precise time calculations.
StreamInfo
Container layer: probing, demuxing, packets, stream descriptors. Information about a stream in a container.
Timestamp
Core OxiMedia types: errors, codecs, pixel/sample formats, timestamps. Timestamp with timebase context.

Enums§

CodecId
Core OxiMedia types: errors, codecs, pixel/sample formats, timestamps. Codec identifier for supported codecs.
ContainerFormat
Container layer: probing, demuxing, packets, stream descriptors. Supported container formats (patent-free).
MediaType
Core OxiMedia types: errors, codecs, pixel/sample formats, timestamps. Media type for stream classification.
OxiError
Core OxiMedia types: errors, codecs, pixel/sample formats, timestamps. Error type for OxiMedia operations.
PixelFormat
Core OxiMedia types: errors, codecs, pixel/sample formats, timestamps. Pixel format for video frames.
SampleFormat
Core OxiMedia types: errors, codecs, pixel/sample formats, timestamps. Audio sample format.

Traits§

Demuxer
Container layer: probing, demuxing, packets, stream descriptors. Trait for container demuxers.
MediaSource
I/O primitives: byte readers and media source abstractions.

Functions§

probe_format
Container layer: probing, demuxing, packets, stream descriptors. Probe the container format from raw bytes.

Type Aliases§

OxiResult
Core OxiMedia types: errors, codecs, pixel/sample formats, timestamps. Result type alias for OxiMedia operations.