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

Make errors when installing ffmpeg-php on RHEL 5.6

I've been trying to install ffmpeg-php v0.6.0 on RHEL (Redhat Enterprise Linux) 5.6 (Tikanga) environment. I'm running PHP Version 5.2.17 and have the following ffmpeg packages installed: ffmpeg-0.6.5-1.el5.rf…
rafiki_rafi
  • 1,177
  • 2
  • 11
  • 27
0
votes
2 answers

PHP get screenshot from YouTube video

I have a website that has a variety of embedded YouTube videos. When a user pauses a given video I want a screenshot to be taken of the playing video. Now, I've taken many approaches in tackling this problem such as copying the video frame to canvas…
drizzy
  • 139
  • 2
  • 15
0
votes
2 answers

ffmpeg-php installation shows error in centos

I am a newbie in Centos. I installed ffmpeg in my server using yum command. I want to install ffmpeg-php. I downloaded the source file from : http://ffmpeg-php.svn.sourceforge.net/viewvc/ffmpeg-php/trunk/ffmpeg-php/?view=tar After extraction I use…
mehedi
  • 3
  • 3
  • 6
0
votes
1 answer

FFMPEG PHP does not seem to work

I am trying to install FFMPEG-PHP for backend video conversion and to capture a thumbnail of the videos users of my website upload. However i am having problem and I am not sure what is it exactly. Environment: Ubuntu Server 12.04 PHP5 and Apache2…
Haja Mohaideen
  • 157
  • 3
  • 18
0
votes
3 answers

Install FFMPEG on WAMP

I've probably spent over 12 hours trying to install FFMPEG on WAMP. I'm aware that other people have had this question answered on this site, however it does not work for my setup. I have tried the below: Download ffmpeg_new Copy php_ffmpeg.dll…
nico55555
  • 65
  • 1
  • 8
0
votes
1 answer

sting up ffmpeg to work in XAMPP

I'm trying to figuring out how to install and use ffmpeg on windows 64 with XAMPP. I have flow this tutorial and install the ffmpeg-php librarys and I can see the expansion in the phpinfo(). Now I put my ffmpeg.exe in the site root folder and I run…
Daniel
  • 2,288
  • 1
  • 14
  • 22
0
votes
1 answer

how to find ffmpeg-php dll for xampp 1.7.7 and php 5.3.8

I have problems with installation of ffmpeg-php extension on xampp 1.7.7 and php 5.3.8 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…
matrixrp
  • 1
  • 1
-1
votes
1 answer

x264 [error]: baseline profile doesn't support 4:2:2 ,with ffmpeg php

Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height Conversion failed!
-1
votes
1 answer

How to merge two .mp4 videos of different resolutions

I need to embed videos on youtube via the API, and to make the process a little more practical I want to merge my vignette with the videos before posting on youtube. However, the videos have different resolutions and different characteristics, so…
-1
votes
1 answer

How can one use ffmpeg to position a video exactly at a specific pixel position in jpeg?

For example, there is a jpeg with dimensions 1900x1000 and it has a frame (a rectangle) with pixel coordinates 490x100 and 1400x500 a video with resolution 720p needs to be placed within this rectangle Could you pls share the ffmpeg command to…
Krishna Chebrolu
  • 145
  • 2
  • 13
-1
votes
1 answer

Executing a shell script that contains FFmpeg from a PHP script

I am trying to run a shell script in PHP through shell_exec(). The shell script merges two mp3 files using FFmpeg. I have tested the code in my terminal and it works just fine. However, I cannot get it to work with php. This is supposed to run when…
mette
  • 1
  • 1
-1
votes
1 answer

Why exec() is not working in foreach loop?

See, for testing purpose if I am trying to run PHP exec() statically with only one video file, then its compressing video perfectly(please see first line line). Later when I am compressing dynamically in the loop, then exec function is not working.…
Riyaz Khan
  • 23
  • 1
  • 9
-1
votes
3 answers

Install ffmpeg on centos server

while installing ffmpeg on my centos server.I get this error while running ./configure: checking for ffmpeg headers... configure: error: ffmpeg headers not found. Make sure ffmpeg is compiled as shared libraries using the --enable-shared option cd…
Sandeep Nambiar
  • 1,656
  • 3
  • 22
  • 38
-2
votes
0 answers

screen recorder/live screen recorder with ffmpeg

I need your help to run ffmpeg code that can be used for screen recording that zooms in, pans and zooms out.
-2
votes
1 answer

how to concatenate different audio files in different format into one mp3 file in ffpmeg or php?

I am allowing users to upload audio files with file extensions mp3, wav, flac. With the following command, I can concatenate audio files if it is in mp3 only. ffmpeg -i "concat:sample1.mp3|sample2.mp3" -c:a libmp3lame -write_xing 0 merged.mp3 How…
sonam
  • 3,720
  • 12
  • 45
  • 66
1 2 3
18
19