memo.xight.org

日々のメモ

ffmpeg-php - PHPで動画を扱うためのライブラリ

Summary

PHP 4.3.0+ , GD 2.0+, FFMPEG[2006-07-13-3] が必要.

Sample

<?php
$extension = "ffmpeg";
$extension_soname = $extension . "." . PHP_SHLIB_SUFFIX;
$extension_fullname = PHP_EXTENSION_DIR . "/" . $extension_soname;

// load extension
if(!extension_loaded($extension)) {
	dl($extension_soname) or die("Can't load extension $extension_fullname\n");
}
?>


Reference

ffmpeg-php
http://ffmpeg-php.sourceforge.net/

ffmpeg-php - API documentation
http://ffmpeg-php.sourceforge.net/apidoc.php

via

MOONGIFT - ffmpeg-php
http://oss.moongift.jp/intro/i-2267.html