Questions tagged [ffmpeg-php]

Refers to a few similarly named PHP extensions that add functions for accessing and retrieving information about multimedia files. Questions about generally using ffmpeg cli tool through exec() or similar or other libraries should not use this tag!

ffmpeg-php refers to a few similarly named PHP extensions that add functions for accessing and retrieving information about multimedia files:

  • FFmpegPHP: a pure OO PHP port of the legacy ffmpeg-php writer in C.

  • PHP-FFMpeg An Object-Oriented library to convert video/audio files with FFmpeg.

  • ffmpeg-php: The classic, legacy version. This is a very old, long dead project that will not work with any ffmpeg versions officially supported by the FFmpeg project.

Note that these extensions are not part of the FFmpeg project.

You may not need a wrapper/extension/library if you simply want to invoke the ffmpeg binary from your PHP script. Refer to FFmpeg Wiki: PHP for more info.

276 questions
2
votes
1 answer

Error in configuring ffmpeg in Windows 8 , 5.3 PHP

I am trying to configure ffmpeg using this tutorial - http://myownhomeserver.com/2012/12/how-to-install-ffmpeg-php-php-5-4-on-windows-8-xampp-1-8-1/ but after I had done initial configuration, it is throwing error. I copied php_ffmpeg.dll in ext…
Hitesh
  • 4,098
  • 11
  • 44
  • 82
2
votes
1 answer

PHP FFMPEG - Convert .mov to .mp4 (H264)

I've recently installed the PHP-FFMpeg lib on a server and used the following tutorial: https://github.com/PHP-FFMpeg/PHP-FFMpeg I managed to convert a .mov video (uploaded through a mobile device) to webm and ogg but when encoding to mp4 I always…
Alex
  • 565
  • 2
  • 6
  • 17
2
votes
1 answer

Find absolute path to ffmpeg

I installed ffmpeg and ffmpeg-php to my dedicated server and with a small script i am trying to extract an image from specific second.
Irene T.
  • 1,393
  • 2
  • 20
  • 40
2
votes
0 answers

how to find ffmpeg-php dll for xampp 1.8.1 and php 5.4.7

have problems with installation of ffmpeg-php extension on xampp 1.8.1 and php 5.4.7 on windows. Does anyone have the compiled dll of ffmpeg-php for this versions, i know how to install the extension but i can't find the correct dlls for my php…
Side
  • 1,753
  • 9
  • 35
  • 64
1
vote
2 answers

Create Video Thumbnail of All Files in a Directory via FFmpeg and PHP

I have searched all over the Google and StackOverFlow, but still did not find a solution for this. I want to generate video thumbnail of all mp4 video files in a directory and name the thumbnails as "filename.mp4".jpg I have ffmpeg and ffmpeg-php…
Hashid Hameed
  • 878
  • 1
  • 8
  • 23
1
vote
1 answer

Grab frame without downloading whole file?

Is this possible using php + ffmpeg? ffmpeg-php has the ability to: Ability to grab frames from movie files and return them as images that can be manipulated using PHP's built-in image functions. This is great for automatically creating…
Writecoder
  • 613
  • 2
  • 8
  • 27
1
vote
1 answer

Laravel php-ffmpeg Encoding failed

In laravel using php-ffmpeg want to convert video and do some changes on it, like watermark, change size and etc... I ran a test: $format = new X264; $ffmpeg = FFMpeg::create(); $video = $ffmpeg->open(public_path()."/videos/file.mp4"); …
Jack The Baker
  • 1,781
  • 1
  • 20
  • 51
1
vote
0 answers

Why am I getting a Fatal Error when using PHP FFMPEG to merge two videos of different qualities?

PHP FFMPEG not working when combining videos of 2 different qualities in respect of quality, length. I am trying to merge 2 videos having different links and save the merged video link in a folder using php ffmpeg. The code is working when providing…
1
vote
0 answers

FFMPEG conversion (h.264) taking long time for short videos

I am trying to record the video and upload into the aws s3 server. Vuejs as front end and php Laravel as backend, I was not using any conversion before saving it to s3. Due to this if any recording recorded from android cannot be played in apple…
Sara
  • 189
  • 1
  • 13
1
vote
0 answers

Uploading recording file stream to aws s3 in PHP is very slow

In my application I can record video and save it to aws s3 bucket using vueJS as front end and Laravel php as backend. I am using ffmpeg to upload recording stream to s3 bucket. 1 min video taking 4 mins and 3 mins video taking 9 mins (Always not…
Sara
  • 189
  • 1
  • 13
1
vote
1 answer

How to install and use ffmpeg in Laravel 9 with laradock?

I have been spending hours figuring out why I always get an error "Unable to load FFProbe" after installing the FFmpeg package. 1/ I read that I need to add the following line in the .env file PHP_FPM_FFMPEG=true 2/ I restarted apache and run the…
Paul Godard
  • 1,055
  • 1
  • 14
  • 30
1
vote
0 answers

PHP FFmpeg Video Streaming - Playback in HTML5 video tag

Good morning, I am trying to figure out how to use the PHP FFmpeg Video streaming library (found here: https://video.aminyazdanpanah.com/start). So far I have the below in place from looking at the examples, and when I load this page directly it…
Phil
  • 4,029
  • 9
  • 62
  • 107
1
vote
0 answers

"Encoding failed" FFMPEG laravel ProtoneMedia\\LaravelFFMpeg\\Exporters\\EncodingException(code: 0):

tried to upload a video with ffmpeg, got an error (ProtoneMedia\\LaravelFFMpeg\\Exporters\\EncodingException(code: 0): Encoding failed at /app/vendor/pbmedia/laravel-ffmpeg/src/Exporters/EncodingException.php:12) the strange thing is that there are…
mthh
  • 103
  • 7
1
vote
0 answers

How to reduce compression time and maintain quality of video at same time, FFMPEG library android

i am using FFMPEG library to compress video and able to achieve a normal quality also. But if i try improving the resolution, compression time increases. The output should be such where a standard video output is achieved, along with very high…
Ankit Ostwal
  • 1,033
  • 3
  • 14
  • 32
1
vote
0 answers

I cannot figure out how to install a PHP package for MAMP

I am trying to install a PHP package called ffmpeg - I have installed it on my Mac using brew but not not able to get it working in MAMP Pro after adding it to the ini file like so extension=ffmpeg.so
Peter Ayello Wright
  • 127
  • 1
  • 3
  • 13