Skip to content

A comprehensive codec implementation package for WebRTC applications, providing audio/video encoding and decoding capabilities.

License

Notifications You must be signed in to change notification settings

PHP-WebRTC/codec

WebRTC Codec Package

PHP Version License

A comprehensive codec implementation package for WebRTC applications, providing audio/video encoding and decoding capabilities.

Features

🎧 Audio Codecs

  • Opus (encode/decode)
  • PCM A-law (encode/decode)
  • PCM μ-law (encode/decode)

📹 Video Codecs

  • VP8 (encode/decode)
  • H.264 (encode/decode)

🛠 Core Functionality

  • RTP payload packetization/depacketization(H.264 and VP8)
  • Dynamic bitrate control
  • Frame timestamp management
  • Hardware acceleration support
  • Thread-optimized encoding/decoding

Requirements

Requirements

  • PHP ≥ 8.4 with FFI extension enabled
  • Linux (Windows and macOS support planned for future releases)
  • FFmpeg/libav shared libraries (libavcodec, libavfilter, etc.)
    • Compatible with FFmpeg version 7.1.1
  • libopus development libraries
  • libvpx development libraries
    • Compatible with libvpx version 1.15.0

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 report it on our issues.

License

BSD 3-Clause License. See LICENSE for details.

About

A comprehensive codec implementation package for WebRTC applications, providing audio/video encoding and decoding capabilities.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Languages