Skip to content

Latest commit

 

History

History
56 lines (38 loc) · 2.16 KB

README.md

File metadata and controls

56 lines (38 loc) · 2.16 KB

ffmpeg

FFmpeg 8.1.2 as C++23 modules, preserving the C API.

English · 简体中文 · Upstream · Releases · mcpp · Index

C++23 License mcpp-community CI

Thin module interfaces over compat.ffmpeg; sources, frozen configuration and NASM support belong to that provider.

Modules

  • import mcpplibs.mwrap.ffmpeg;: Complete FFmpeg module aggregate
  • import mcpplibs.mwrap.ffmpeg.avcodec;: Audio/video codecs
  • import mcpplibs.mwrap.ffmpeg.avformat;: Containers and stream I/O
  • import mcpplibs.mwrap.ffmpeg.avutil;: Common media types and utilities
  • import mcpplibs.mwrap.ffmpeg.macros;: Common macro constant mappings

More Modules API -> Usage and API

Getting started

mcpp new media --template mcpplibs.mwrap.ffmpeg@8.1.2
cd media
mcpp run
[dependencies]
mcpplibs.mwrap.ffmpeg = "8.1.2"
import mcpplibs.mwrap.ffmpeg.av;
int main() { return avcodec_version() == 0; }

Examples

The default template encodes and decodes a generated frame without external files. Probe · Decode frames · Details

Build and runtime

Linux, macOS and Windows; use mcpp build and mcpp test. External hardware SDK APIs require separate headers/SDKs. The source profile does not enable GPL/nonfree components.

License

Wrapper: Apache-2.0. FFmpeg provider: LGPL-2.1-or-later; preserve selected source and license notices.

Wrapper: Apache-2.0, mcpp-community. Original upstream README and licenses. Upstream licenses remain unchanged.