Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

FFmpegPHP is a pure OO PHP port of ffmpeg-php library that was written in C. It 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 creatin…

License

NotificationsYou must be signed in to change notification settings

char0n/ffmpeg-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CircleCI

FFmpegPHP

FFmpegPHP is a pure OOPSR-4 compatible PHP port offfmpeg-php library (written in C). It 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 manipulatedusing PHP image functions. This works well for automatically creating thumbnail images from movies.FFmpegPHP is also useful for reporting the duration and bitrate of audio files (mp3, wma...).FFmpegPHP can access many of the video formats supported by ffmpeg (mov, avi, mpg, wmv...)

Drop-in replacement for ffmpeg-php

FFmpegPHP can be used as a drop in replacement forffmpeg-php library.

Documentation

FFmpegPHP API documentation can be found herehttp://char0n.github.io/ffmpeg-php/.

Requirements

  • PHP >=7
  • PHP extensions: gd, mbstring, xml
  • ffmpeg or ffprobe

Installation

or to install via composer (http://getcomposer.org/) place the following in yourcomposer.json file: ::

 {"require": {"char0n/ffmpeg-php":"*"    } }

Using FFmpegPHP

Object Oriented interface

FFmpegPHP is build using PSR-4 standard and it's interface is purely Object Oriented. We're using standarOOP patterns to create our API.

useChar0n\FFMpegPHP\Movie;$movie =newMovie('/path/to/media.mpeg');$movie->getDuration();// => 24

Compatibility layer

On top of our OO interface, there is an additional one that provides full compatibility with originalffmpeg-php library.

useChar0n\FFMpegPHP\Adapters\FFMpegMovieasffmpeg_movie;$movie =newffmpeg_movie('/path/to/media.mpeg');$movie->getDuration();// => 24

Author

References

About

FFmpegPHP is a pure OO PHP port of ffmpeg-php library that was written in C. It 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 creatin…

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors16

Languages


[8]ページ先頭

©2009-2025 Movatter.jp