7 releases

new 0.3.4 Feb 4, 2026
0.3.3 Feb 4, 2026
0.3.0 Jan 25, 2026
0.2.1 Oct 19, 2025

#292 in Video

Download history 309/week @ 2025-10-15 425/week @ 2025-10-22 866/week @ 2025-10-29 203/week @ 2025-11-05 24/week @ 2025-11-12 63/week @ 2025-11-19 14/week @ 2025-12-03 14/week @ 2025-12-17 41/week @ 2025-12-24 11/week @ 2025-12-31 6/week @ 2026-01-07 223/week @ 2026-01-14 87/week @ 2026-01-21 78/week @ 2026-01-28

397 downloads per month
Used in 8 crates (3 directly)

AGPL-3.0

38KB
886 lines

Video and audio codec implementations

Implementation Status

The current codec implementations are stub/simulation implementations designed for:

  • Development and testing without external codec libraries
  • API design validation and interface stabilization
  • Performance testing of the transport layer

OpenH264 (Video)

  • Current: Simulation using compression (achieves ~25% size reduction for testing)
  • Production: Will integrate with real openh264 crate when h264 feature is enabled
  • Status: Safe for development/testing, not for production video calls

Opus (Audio)

  • Current: Simulation with frame size validation and format conversion
  • Production: Will integrate with real opus crate when opus feature is enabled
  • Status: Safe for development/testing, not for production audio calls

Migration Path

To use real codecs in production:

  1. Enable the respective features: features = ["h264", "opus"]
  2. Replace stub implementations in openh264.rs and opus.rs
  3. Run integration tests with actual codec libraries

The stub implementations maintain the same API surface, so migration is transparent to users.

Dependencies

~0.4–2.5MB
~49K SLoC