#media #media-video

media-base

Defines media types, such as Media Frame

4 releases

0.2.1 Aug 6, 2025
0.2.0 Jul 17, 2025
0.1.1 Dec 25, 2024
0.1.0 Dec 20, 2024

#792 in Video

Download history 7/week @ 2025-09-15 8/week @ 2025-09-29 2/week @ 2025-10-06 2/week @ 2025-10-13 1/week @ 2025-10-20

290 downloads per month

MIT/Apache

130KB
3K SLoC

media-rs

Version Documentation License License

A pure Rust media framework for handling multimedia tasks such as encoding, decoding, capture, playback, processing.

Features

Core

  • Media Types - Define common media types
  • Media Frame - Represent audio and video frame data, including hardware abstraction
  • Video Pixel Format Conversion - Convert between RGB, YUV, and other pixel formats
  • Video Scaling - Scale video resolution
  • Audio Sample Format Conversion - Convert between different audio sample formats
  • Audio Resampling - Resample audio sample rates

Device

  • Camera
    • AVFoundation (macOS/iOS)
    • Media Foundation (Windows)
    • V4L2 (Linux)
  • Speaker/Microphone
    • Core Audio (macOS/iOS)
    • WASAPI (Windows)
    • ALSA (Linux)
    • PulseAudio (Linux)

Codec

  • Video Encoders
    • H.264/AVC
    • VP8/VP9
    • AV1
  • Video Decoders
    • H.264/AVC
    • VP8/VP9
    • AV1
  • Audio Encoders
    • AAC
    • Opus
  • Audio Decoders
    • AAC
    • Opus

Filter

  • Video Filters - Process video and apply effects
  • Audio Filters - Process audio and apply effects

Dependencies

~7MB
~141K SLoC