FFmpeg is php extension used to manipulate videos files in PHP using the ffmpeg program. It provides classes for retrieving information from video and audio files like the duration, frame and sample rate, frame size. It can also extract individual frames from the videos and create GD image resources. It supports the all the video formats supported by ffmpeg like MOV, AVI, MPEG, WMV, and the audio formats MP3 and WMA.
The cPanel now includes a graphic interface where you can install PHP extensions directly.
Login to your cPanel account.
Scroll down the cPanel interface until you reach the Software and Service section
Click Select PHP Version
Find FFmpeg extension, check it and save.
1. Why doesn’t FFmpeg support feature [xyz]?
Because no one has taken on that task yet. FFmpeg development is driven by the tasks that are important to the individual developers. If there is a feature that is important to you, the best way to get it implemented is to undertake the task yourself or sponsor a developer.
2. FFmpeg does not support codec XXX. Can you include a Windows DLL loader to support it?
No. Windows DLLs are not portable, bloated and often slow. Moreover FFmpeg strives to support all codecs natively. A DLL loader is not conducive to that goal.
3. I cannot read this file although this format seems to be supported by ffmpeg.
Even if ffmpeg can read the container format, it may not support all its codecs. Please consult the supported codec list in the ffmpeg documentation.
4. Which codecs are supported by Windows?
Windows does not support standard formats like MPEG very well, unless you install some additional codecs.
The following list of video codecs should work on most Windows systems:
msmpeg4v2 .avi/.asf msmpeg4 .asf only wmv1 .asf only wmv2 .asf only mpeg4 Only if you have some MPEG-4 codec like ffdshow or Xvid installed. mpeg1video .mpg only
Note, ASF files often have .wmv or .wma extensions in Windows. It should also be mentioned that Microsoft claims a patent on the ASF format, and may sue or threaten users who create ASF files with non-Microsoft software. It is strongly advised to avoid ASF where possible.
The following list of audio codecs should work on most Windows systems:
adpcm_ima_wav adpcm_ms pcm_s16le always libmp3lame If some MP3 codec like LAME is installed.
admin
May 29, 2016
PHP, Tutorial
11 Comments