Skip to content

dmongeau/FFMPEG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 

Repository files navigation

FFMPEG

Use FFMPEG from PHP

Okay so this is really just a beginning.

Examples

Verify if this is a valid file

$ffmpeg = new FFMPEG('/path/to/your/video.mp4');

echo $ffmpeg->isValid(); //true;

echo $ffmpeg->isVideo(); //true;

echo $ffmpeg->isAudio(); //false;

Get metadata

$ffmpeg = new FFMPEG('/path/to/your/video.mp4');

$metadata = $ffmpeg->getMetadata();

echo $metadata['duration']; // 30 seconds

echo $metadata['width']; // 1920

echo $metadata['height']; // 1080

Convert video to flv

$ffmpeg = new FFMPEG('/path/to/your/video.mp4');

$ffmpeg->convert('/path/for/the/new/flv/video.flv');

About

FFMPEG integration in php

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages