Skip to content
ProjektGopher Dig better media
Back to tools

Tool · In Development

Ext FFmpeg

Media without shell-string misery.

At the inspection bench

Before he turns a handle, he looks inside the reel. Ext FFmpeg gives PHP direct access to FFmpeg’s libraries to inspect and process media through typed objects.

Visit Ext FFmpeg ↗
The gopher inspects a film reel with a magnifying glass at a brass workbench.

2 / 3 · Inside the machinery

Give each stream a job.

Choose the video and audio streams. Compose the filters. The work runs through the native extension inside the PHP process, calling FFmpeg’s libraries directly.

A little less wrestling with the machinery.

Meet the finished reel ↓
The gopher adjusts copper processing machinery with film passing through its rollers.

3 / 3 · At the output bench

A result you can work with.

Encode or remux the result for the next step in your application. If something fails along the way, typed exceptions carry the operation and FFmpeg error.

Even a stuck gear should tell you why.

The gopher winds a finished film reel beside a brass output box.

Before you head back up

Under the hood, in PHP.

Ext FFmpeg is in development. Its documentation covers current builds, supported environments, installation, and examples.

A native PHP extension in development that calls FFmpeg’s libraries directly. Inspect, filter, transcode, and remux media through typed objects and exceptions, without building shell commands.

Current details from Ext FFmpeg ↗

At the inspection bench

Look inside the media.

Open a file and inspect its container and streams. Duration, dimensions, codecs, and rates are available as typed properties, ready for your application to work with.

First, find out what you’ve got.

Inside the machinery

Build the work out of streams.

Compose filters, choose video and audio streams, and encode or remux the result. The extension calls FFmpeg in-process rather than assembling a shell command.

A little less wrestling with the machinery.

At the output bench

Know what went wrong.

Failures raise typed exceptions with the operation and FFmpeg error. This is a project in development; its documentation covers the current build, supported environments, examples, and installation.

Even a stuck gear should tell you why.

Always digging.

New ideas, experiments and useful tools are always underground.

Read the field notes