php操作视频音频类-ffmpeg-php
2010-10-05 14:43:56 阿炯

ffmpeg-php提供一组易于使用,面向对象的API来访问和读取视频和音频文件中的信息。它包含能够从电影文件中获取画面来作为图片的方法,这个功能非常适合于从电影文件自动创建缩略图。ffmpeg-php对于读取音频文件(mp3,wma...) 的播放时间和速度等信息也非常好用的。

ffmpeg-php支持很多种视频格式包括:mov,avi,mpg,wmv等等,功能很强大包括:视频抓图、视频信息、视频转换、在线视频录制,而且是免费的。所有一般的视频网站都会采用他,引入了ffprobe功能。


ffmpeg-php is an extension for PHP that adds an easy to use, object-oriented API for accessing and retrieving information from video and audio files. It has methods for returning frames from movie files as images that can be manipulated using PHP's image functions. This works well for automatically creating thumbnail images from movies. ffmpeg-php is also useful for reporting the duration and bitrate of audio files (mp3, wma...). ffmpeg-php can access many of the video formats supported by ffmpeg (mov, avi, mpg, wmv...)

最新版本:2.6
该版本移除了 PHP 结束标签,支持最新版的 ffmpeg 以及其他小问题的修复和改进。

项目主页:http://ffmpeg-php.sourceforge.net/

该文章最后由 阿炯 于 2014-10-07 10:55:09 更新,目前是第 3 版。