Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

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.

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 Release date
8.x-1.2 Stable Dec 22, 2023