Search by

danog / php-rtc-av

danog

FFmpeg/libav FFI bindings for PHP media processing. MadelineProto's PHP 8.2+ fork uses lazy, optional FFI, strict ABI checks, and the modular danog/php-rtc stack.

Package info

github.com/danog/php-rtc-av

pkg:composer/danog/php-rtc-av

Fund package maintenance!

php-webrtc

Statistics

Installs: 928

Dependents: 2

Suggesters: 0

Stars: 0

Open Issues: 0

1.1.4 2026-09-05 23:16 UTC

This package is auto-updated.

Last update: 2026-09-05 23:17:34 UTC


README

PHP Version License

PHP AV Libraries provides FFI bindings to AV libraries (including AVCodec and AVFilter) for encoding, transcoding, and manipulating audio/video streams.

About this fork

This is the danog/php-rtc-av fork used by MadelineProto. It targets PHP 8.2+, loads FFI only when transcoding is requested, and rejects FFmpeg libraries whose ABI does not match the bundled FFmpeg 9 headers. Already-encoded media can be packetized without FFI.

All internal Composer dependencies use their danog/php-rtc-* package names directly, so installing a component selects the maintained danog packages throughout the dependency graph.

Requirements

  • PHP ≥ 8.2
  • FFI and matching FFmpeg 9 shared libraries only when encoding, decoding, or transcoding media
  • Linux (Windows and macOS support planned for future releases)
  • FFmpeg/libav shared libraries (libavcodec, libavfilter, etc.)
    • Compatible with FFmpeg version 9.x

Documentation

This package is part of the PHP WebRTC library. For complete documentation, examples, and API reference, visit:

PHP WebRTC Documentation

Credits

Authors

Reporting Issues

Found a bug? Please open an issue on our GitHub repository.

License

BSD 3-Clause License. See LICENSE for full details.