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
0
votes
1 answer

Confused about generating thumbnails from video. Should I use ffmpeg php or canvas?

I wanted to know what is the best practice for generating thumbnail from a video. After exploring I have come across two ways: 1) Using ffmpeg php on the server side 2) Using canvas like this https://gist.github.com/adamjimenez/5917897 on the…
azero0
  • 2,220
  • 3
  • 20
  • 31
0
votes
1 answer

Widescreen Converter for mp4 Video files

i am looking for a possibility ( php / linux ) to convert any kind of mp4 video into a widescreen format... like a picture widescreen converter The left and right part of the image does not need to be blurred.. it could be black as well. I don't…
seking
  • 35
  • 8
0
votes
1 answer

FFMPEG replace video audio with filter_complex

I wants such a output video where audio of output is created using ffmpeg -filter_complex mechanism, /usr/local/Cellar/ffmpeg/3.2.2/bin/ffmpeg -i /uploads/videos/1487684390-lg9htt0RW2.mov -i /uploads/audios/1487664761-SCPbo6Tkac.mp3…
Chintan7027
  • 7,115
  • 8
  • 36
  • 50
0
votes
1 answer

How to execute the ffmpeg thumbnail extraction command using sub-process in django?

The following code we are using to extract the thumbnail images from video ffmpeg -i low.mkv -vf thumbnail=10,setpts=N/TB -r 1 -vframes 10 inputframes%03d.png This code is working absolutely fine on terminal, but it is giving an error when we are…
0
votes
0 answers

ffmpeg find duration of ogg file in PHP

From below command: ffmpeg -i /var/bigbluebutton/published/presentation/f593599f005cc1ed453c0e92c37236063e6144b0-1480310327986/audio/audio.ogg 2>&1 | grep Duration | cut -d ' ' -f 4 | sed s/,//" Output is: 00:07:10:00 When I Put this command in…
0
votes
1 answer

Defining moment of the audio attenuation through ffmpeg

There are audio tracks of different lengths in m4a format. And there's ffmpeg library for working with the media. Many of the tracks have the effect of "decay" in the end, and it is necessary to determine at what point it occurs (determined once and…
0
votes
1 answer

Convert images into video

I have some images in the folder. I want to convert all images into videos. But the problem is that when the resolution is different it shows the error. I don't want to stretch the images in the video. I just want to keep image size as it is. But it…
Disha Shukla
  • 133
  • 1
  • 11
0
votes
1 answer

AFTER PHP-FFMpeg not converting (error with ffmpeg)

I have installed ffmpeg server side with all the dependencies, updated it. And then installed PHP-FFMpeg with Composer. Tested that ffmpeg is instaled with a ssh conexion. root@host [/opt/ffmpeg]# ffmpeg ffmpeg version N-81322-ge8b355a Copyright…
0
votes
1 answer

Unable to load FFProbe in laravel app

i have a problem when i upload a video with a form in my server. In the moment of upload, the aplication, must to convert the format of the video to mp4. In my notebook, this convertion work fine but when i try to convert a video in the server, i…
Bullgod
  • 149
  • 1
  • 3
  • 15
0
votes
1 answer

Class 'FFMpeg\FFMpeg\Coordinate\Dimension' not found

I am trying to execute basic example of php-ffmpeg library in Laravel 5. I have already installed ffmeg on ubuntu and working fine from command line. I am getting following error while running the example. Error FatalErrorException in…
0
votes
0 answers

not able to install ffmpeg php

i have installed this ffmpeg in centos server using ffmpeg auto installer ffmpeg version N-80962-g70d418c after that i downloaded ffmpeg-php and tried to configure and i got error configure: error: ffmpeg headers not found. Make sure ffmpeg is…
Sat Sam
  • 31
  • 1
  • 6
0
votes
0 answers

Laravel php-FFMpeg x264 error

I installed FFMpeg for Ubuntu and php-FFMpeg for Laravel with composer. All worked great as long I take the format wmv or webm. If i take x264 to convert a video to mp4 i get two error messages. First this one: RuntimeException in Video.php line…
Kji
  • 3
  • 1
  • 4
0
votes
1 answer

Percentage transcoded never goes past 65% php-ffmpeg

Edit After some tests it would appear that this bug has something to do directly with the clipped video. If I take 100% of the video, then the percentage transcoded goes up to 100%. If I take only 30% of the video, then the percentage transcoded…
kemicofa ghost
  • 16,349
  • 8
  • 82
  • 131
0
votes
1 answer

Installing ffmpeg for php

I've been searching the internet for over 3 days now and cannot find anything that has a clear explanation of how to install ffmpeg for php. I currently have ffmpeg installed correctly on my Mac command line but as to how to use it in my php scripts…
Joe Scotto
  • 10,936
  • 14
  • 66
  • 136
0
votes
0 answers

php startup error: Unable to load dynamic library

I have just setup a new apache server and i am getting this error, due to which php is not working PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20100525/ffmpeg.so What should i do to get rid of this?…
charak
  • 187
  • 3
  • 15