Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

PHP FFmpeg

Security covered Maintenance fixes only 213 sites

Part of the PHP ecosystem · 7 projects

This module provides an API to integrate with the PHP FFmpeg library, allowing other projects to leverage FFmpeg's capabilities within Drupal. It offers an administrative UI for configuration and services to access FFmpeg and ffprobe functionalities for media processing.

This project is an API module that integrate with the PHP FFmpeg library. This module doesn't do anything by itself and is usually extended by other projects that do something useful with FFmpeg.

Installation

Follow the standard module installation guide (for Drupal 7 or Drupal 8) to install the PHP FFmpeg module. This module has a composer dependency (php-ffmpeg/php-ffmpeg). The Drupal 7 version depends on the Composer Manager module, so follow the instructions on its project page to install the third-party libraries that this module requires. See https://www.drupal.org/node/2404989 for for more information when using Drupal 8.

Usage

The module provides an administrative UI for the various configuration options exposed by the PHP FFmpeg library. To instantiate the PHP FFmpeg classes populated with the configuration options, call $ffmpeg = Drupal::service('php_ffmpeg'); or $ffprobe = Drupal::service('php_ffmpeg_probe'); (or $ffmpeg = php_ffmpeg(); and $ffprobe = php_ffmpeg_probe(); in Drupal 7) in your module. Refer to the PHP FFmpeg library's documentation for details on how to use the library.

The PHP FFMpeg library uses ffmpeg and ffprobe CLI executables, all its method accepting file paths expect paths usable are arguments for these executables. When using the library to process Drupal managed files, developer have to ensure
usage of local files paths or URL supported by ffmpeg and ffprobe as sources, and local file paths as destinations.

In Drupal 7, adapters are provided so the PHP FFmpeg library will use Drupal's logging and caching mechanisms. The Monolog module is also supported as an alternative logging solution.

Notes

The dependency alchemy/binary-driver is currently not actively maintained and may have PHP deprecation issues, check #3340962: Deprecated Function Alchemy Error Appears in Multiple locations. for more information but that needs to be fixed in that project.

Ask your assistant about PHP FFmpeg

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Dec 2023
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core PHP Release date
8.x-1.2 Stable Dec 22, 2023