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
1
vote
2 answers

FFmpeg - Calculating with Framerate?

I have to cut my video exactly. This video could have 25fps or 30fps (i dont know). is there a Variable in ffmpeg for the framerate so i could calculate on which frame i had to Cut? I only have the seconds of my video. something like this (for…
dazzafact
  • 2,570
  • 3
  • 30
  • 49
1
vote
1 answer

Composer pull from forked GitHub with Autoload

So I'm trying to use composer to install this php-ffmpeg extension here: https://github.com/sharapov-outsource/php-ffmpeg-extensions But it requires php-ffmpeg 0.6.1 and the newest version of php-ffmpeg is 0.9.3 So how can I use composer to install…
swg1cor14
  • 1,682
  • 6
  • 25
  • 46
1
vote
1 answer

How to concatenate videos until a certain video length is reached FFMPEG

I have some videos that I need to concatenate, but only until the video length has reached 10 minutes. How do I do this.
Please Help
  • 929
  • 1
  • 8
  • 11
1
vote
0 answers

FFMpeg: ffmpeg failed to execute command error

I am trying to transcode a video file of 1.2mb file uploaded to my website server via php/html upload, but I keep getting the error: PHP Fatal error: Uncaught exception 'Alchemy\BinaryDriver\Exception\ExecutionFailureException' with message 'ffmpeg…
user5125586
1
vote
0 answers

How to extract a fixed number of frames from videos of different duration using ffmpeg?

I want to get 8 frames from every video file which have variable duration. I am not going to get 8 frames from start i want to get from whole video starting to end of video. Is anyone know php-library for accomplished that ?
Shahzad Nasir
  • 168
  • 1
  • 2
  • 11
1
vote
1 answer

resize one video in 2 sizes in single command

When user uploads video then I make its 2 sizes. Earlier, I was doing this in two steps like following First Size: ffmpeg -i in.mp4 -filter:v "scale=iw*min(1170/iw\,300/ih):ih*min(1170/iw\,300/ih),…
Jass
  • 3,345
  • 3
  • 24
  • 41
1
vote
1 answer

Trying to open file with PHP-FFMpeg after it was encoded once

in the same PHP process I'm trying to open a file that was manipulated and saved, and then I'm trying to open it with as a new FFMpeg\Video. For example, in the same process: Open -> original.MOV Manipulate & save to -> new.mp4 Open ->…
Rami
  • 381
  • 2
  • 4
  • 15
1
vote
0 answers

FFMpeg-PHP, Digital Ocean, Centos 6 server installation and access

I am having problems getting FFMpegPHP up and running on a Digital Ocean, Centos 6 server. All I need to do is convert a sequence of images into a movie using PHP. I have FTP access to my server so I can install files if needed, I also have command…
1
vote
0 answers

PHP-FFMpeg Video Stabilization using VidStab

I'm using PHP-FFMpeg in a Laravel 5.2 application to stabilize videos with the help of VidStab. I have all the dependencies and everything installed correctly and I can follow the directions on the VidStab repo to stabilize my videos via the command…
JasonJensenDev
  • 2,377
  • 21
  • 30
1
vote
0 answers

Intsallation of ffmpeg-php on Amazon Ec2 Linux AMI

I am about two days into attempting to install FFMPEG-php with dependencies on an AWS EC2 instance running the Amazon Linux AMI. I've installed FFMPEG, and have read reportedly successful instructions on installing on Red Hat/Fedora. I have followed…
Tanny
  • 11
  • 2
1
vote
1 answer

i have installed composer and now need to install php_ffmpeg

hey all i have successfully downloaded and installed composer on my windows7 64bit wamp server and i need to install php_ffmpeg by composer. i don't have any idea i have already read their documentation but it is not so clear ? please let me know…
sonam Sharma
  • 548
  • 12
  • 30
1
vote
1 answer

MP4 to OGG conversion does not include sound

I found this question and I was able to successfully convert my video to OGG, but it does not include the sound. Here is the code: //SET FFMPEG PATH $ffmpegPath = 'ffmpeg'; //CREATE CLASS INSTANCE $ffmpegObj = new ffmpeg_movie($video); //GET AUDIO…
iamthestreets
  • 733
  • 1
  • 15
  • 38
1
vote
0 answers

FFMPEG latest version for Wamp or Xampp

I have seen the php ffmpeg project http://sourceforge.net/projects/ffmpeg-php/files/ the last version was 0.6 in 2008 but I need ffmpeg 1.8 to work on a video sharing script. SO I googled it but came with no results. Anyone know how can I get the…
Yush
  • 48
  • 10
1
vote
1 answer

Compress / Reduce file size of VIDEO

I currently have a system in place where the user can upload a MP4 file and the same is available for download on mobile devices. But sometimes, the videos are more than 5MB in size and back here in my country, majority of the population uses 2G. So…
Rishi Jasapara
  • 638
  • 9
  • 33
1
vote
3 answers

Extract frame from video - PHP-FFMpeg

I am using php ffmpeg in a laravel project, to do multiple things probe, extract frame and encode. I am having an issue when creating a frame from the uploaded video file. This is how the frame is created: $video =…
cch
  • 3,336
  • 8
  • 33
  • 61