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

ffmpeg install error on centos 6

Getting this error: [root@web1 ffmpegphp]# make install Installing shared extensions: /usr/lib64/php/modules/ cp: cannot stat `modules/*': No such file or directory make: *** [install-modules] Error 1 It is some what same as: ffmpeg cannot…
koolwithk
  • 685
  • 8
  • 14
0
votes
0 answers

How to use portable ffmpeg in php

I write a php script that create video in window OS from static images and audio through FFMPEG. But my concern is, in order to use that script FFMPEG must be installed in your window machine. Is it possible to use portable FFMPEG which is also…
Rahul Seth
  • 415
  • 1
  • 5
  • 14
0
votes
1 answer

ffmpeg-php exec not work on server

I use FFmpeg in my local xamp and it works fine. But on my server (FFmpeg installed) exec does not work and FFmpeg does not create output file. This is my code:
bnnoor
  • 656
  • 2
  • 13
  • 31
0
votes
1 answer

Do i need to install ffmpeg-php to use ffmpeg?

I am looking at coding a site to upload, convert and play videos. I can code php. I want to use ffmpeg on my server. My question is, do i need to install and use ffmpeg-php when using ffmpeg? Thanks.
0
votes
1 answer

Symfony2 PHP FFMpeg service install "There is no extension able to load the configuration for 'dubture_f_fmpeg'"

I'm running Ubuntu 14.04. FFMpeg is installed and both ffmpeg and ffprobe are under /usr/bin/ and work when called from command line. I have added the requirement to the composer.json file of my symfony project "require": { "pulse00/ffmpeg-bundle":…
user3903555
  • 106
  • 1
  • 3
0
votes
1 answer

scaling and cutting a portion of video using ffmpeg

I am trying to upload a video that is 640 x 480. Using FFmpeg I am trying to resize to a square but I am having much difficulty. if i use s=320x320 in my command or scale 320x320 ->setVideoScale(320, 320) the image is distored. If i change…
Dnaso
  • 1,335
  • 4
  • 22
  • 48
0
votes
1 answer

How to tell if video has audio?

I'm using FFmpeg-php to convert videos. When I want to convert a video that has no audio, it gives me an error on these lines: $srcAB = $ffmpegObj->getAudioBitRate(); $srcAR = $ffmpegObj->getAudioSampleRate(); Is there a way within ffmpeg-php to…
Rob Avery IV
  • 3,562
  • 10
  • 48
  • 72
0
votes
0 answers

FFMPEG Video Thumbnail images Php

I need to get middle of video frame depend on video duration. I set the $frame = $mov->getFrame(480); it's get only when the 480 frame. I need to set middle of the frame image. Here is code:
rdxhere
  • 11
  • 3
0
votes
1 answer

How do I know ffmpeg-php is installed?

I just followed the instructions from this link on how to install ffmpeg-php on my dedicated server: http://www.ndchost.com/wiki/server-administration/install-ffmpeg At the bottom, it says to run the command php -i|grep ffmpeg and if it outputs the…
Rob Avery IV
  • 3,562
  • 10
  • 48
  • 72
0
votes
1 answer

make: *** [ffmpeg_movie.lo] Error 1 when compiling ffmpeg-php

I've basically exhausted myself searching Google and trying to address an error I get when compiling ffmpeg-php on a CentOS / 6.4-64 with PHP 5.4.20 and Apache v2.2.25 (cgi-fcgi). I end up getting the following when trying to compile. Does anyone…
Rob
  • 33
  • 3
  • 8
0
votes
1 answer

Install FFMPEG-PHP in cpanel

I am developing web application in which number of still images can create video. In that case I am using ffmpeg-php library. But I have shown that we have to add this library, it do not present in php extensions by default. So I am using reseller…
user2226181
  • 175
  • 5
  • 17
0
votes
2 answers

FFmpeg package for php

Does simple ffmpeg package also work fine when we execute its command from PHP via exec? Or we have some different ffmpeg package for that purpose? Please help me solving it.
Ali faizan
  • 93
  • 2
  • 2
  • 6
0
votes
1 answer

Loading ffmpeg-php module fails

I've been trying this for a couple of days now. I am trying to install ffmpeg-php on my CentOS server. OS : CentOS 6 PHP : 5.5 ffmpeg : 1.2.1 ffmpeg-php : 0.6.0 The ffmpeg installation went on without a hitch and I am able to convert…
rahuL
  • 3,330
  • 11
  • 54
  • 79
0
votes
1 answer

How to convert a web form uploaded wav file to mp3 file

I've read this question How to convert a web form uploaded mp3 to wav using PHP and ffmpeg? that is the reverse process I need. I think it's necessary to use ffmpeg-php. How can I install it to my linux server (I think there's Debian, certainly…
chattago2002
  • 45
  • 2
  • 15
0
votes
1 answer

Calling ffmpeg from php

I need to run ffmpeg from a php script. The ffmpeg wiki page on the same topic (http://ffmpeg.org/trac/ffmpeg/wiki/Using%20FFmpeg%20from%20PHP%20scripts) suggests using shell_exec over ffmpeg-php. Some other pages suggests using ffmpeg-php. Which…
avmohan
  • 1,820
  • 3
  • 20
  • 39