Edit
by Adit - 9 years ago (2016-03-05)
Extract audio from video file
| I want convert an uploaded video file to audio using ffmpeg in PHP. |
Ask clarification
1 Recommendation
PHP Video Toolkit: Manipulate and convert videos with ffmpeg program
This class is a wrapper around the FFmpeg, FLVTools2 and Mencoder programs to allow PHP developers to manipulate and convert video files.
It also provides FFmpeg-PHP emulation in pure PHP so you do not need to compile and install the module.
It performs several types of manipulation operations that include video format conversion, extract video frames into separate image files, assemble a video stream from a set of separate video images, extract audio from video, watermark videos and extracted frames.
Several parameters can also be configured like the output video file format, which can be Flash video or any other supported by ffmpeg, video and audio bit rate and sample rate, video dimensions and aspect ratio.
It can also retrieve information about the media file, such as duration, bit rate, frame rate, format, dimensions, display aspect ratio, pixel aspect ratio, audio stereo, audio frequency and audio format, without any other additional library.
| by Manuel Lemos 26695 - 9 years ago (2016-03-05) Comment
This class can convert videos in formats supported by ffmpeg and convert them to MP3. There is an example snippet in the README file that demonstrates that. |