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
0 answers

cut video thumbnails in php

I have found a code that pull out a thumbnail from a video and its work! but when I trying to make the php file to print the image with the Content-Type its return an error, when i tried to save it to the server its work fine! the code:
1
vote
0 answers

FFmpeg-php installation error on CentOS 6 64x bit

I am trying to install ffmpeg and ffmpeg-php. FFMpeg installed perfectly.when i am trying to install ffmpeg-php. When i ran command for ./configure it configuare fine. when i ran command make its give me below error. I tried all the way at last i am…
Kishan Patel
  • 1,358
  • 10
  • 24
1
vote
0 answers

php-After installing ffmpeg-php extension,i am not able to see the ffmpeg in phpinfo?

I had Windows 7 Ultimate(64 bit) OS with wamp v2.2 (php 5.2.2 & php 5.3.13,apache v2.2.22, Mysql v5.5.24). I tried to install 32-bit ffmpeg -php from this link.on php v5.3.13 and i have followed the whole process of:unzipping,placing files as…
Rishabh007
  • 11
  • 2
1
vote
1 answer

php-ffmpeg too slow - generating thumbnails?

first time I am trying to create thumbnail preview from video file, uploaded 700mb .avi film with 209747 frames. Now I am trying to create 1 thumbnail, but it takes 4.7 seconds, because I've set frame 10000, if I set it just to 1000, it takes only…
Wiggler Jtag
  • 669
  • 8
  • 23
1
vote
1 answer

creation of thumbnail in php using ffmpeg is not working

This is my php code to generate thumbnail of a video frame. extension_loaded('ffmpeg') or die('Error in loading ffmpeg'); $vid = realpath('./Wildlife.wmv'); header("Content-type: image/jpeg"); $moviefile = $vid; $mov = new…
Arun
  • 685
  • 5
  • 20
1
vote
2 answers

Error when installing ffmpeg-php

I am trying to install ffmpeg and ffmpeg-php and am getting an error when I try to use make. I've tried to get to the bottom of it but it has me stumped. I tried finding which file has references to swscale.h but didn't have any luck. Has anyone…
user1461465
1
vote
1 answer

How to install php_ffmpeg.dll on wamp server 2.2 windows7 64bit?

I'm getting "PHP Startup: Unable to load dynamic library: c:/wamp/.../php5.3.10/php_ffmped.dll - %1 is not Win32 application" error when run php from cli, and same error in apache error log when running as apache2 module. I tried andswers for xampp…
Vadim Podlevsky
  • 181
  • 1
  • 9
0
votes
1 answer

How do I fix my makefile?

I have been trying to install ffmpeg and ffmpeg-php for weeks without success. The latest error I got on my new server is: [root]# make make: *** No targets specified and no makefile found. Stop. [root]# After searching the web and stackoverflow,…
tundoopani
  • 255
  • 9
  • 21
0
votes
2 answers

Conversion for WebM file format using FFMPEG

I am using followng command to convert video to webm format ffmpeg -i video/ds2.mp4 -acodec libvorbis -ac 2 -ab 96k -ar 44100 -b:a 345k -s 640x360 video/ds2.webm I am receiving following errors: 1) incompatible sample format 's16' for codec…
user974435
  • 377
  • 2
  • 13
  • 31
0
votes
1 answer

What filepath to use with ffmpeg_php?

I'm using ffmpeg-php to extract thumbnails from user uploaded videos for a site I'm building. Previously the videos were stored in a subdirectory of the directory containing the relevant php files and it worked fine. However I have now altered my…
MartinAnsty
  • 383
  • 2
  • 9
0
votes
2 answers

how to install ffmpeg-PHP for newbies to linux?

I'm trying to convert an .avi video file I have in my server folder to `.flv' format using ffmpeg-PHP. My attempt to "install" ffmpeg-PHP was to extract the contents of the "ffmpeg-php-0.6.0.tbz2" archive into a separate folder. The video conversion…
user701510
  • 5,563
  • 17
  • 61
  • 86
0
votes
1 answer

FFMPEG-PHP Code example to trim MP3 file

I've searched here and online,. and have not found clear PHP examples for taking a single MP3 file, and trimming it to a smaller file (removing both beginning and end portions and retaining only the content between a specified start time and end…
revive
  • 831
  • 2
  • 15
  • 31
0
votes
0 answers

Laravel : Twitter API video upload issue: Video GOP is too large. Largest number of frames allowed in one GOP: 512

i'm getting an issue while posting video through laravel. i have consider all the twitter video guideline but some particular video is not uploading and showing error like 'Video GOP is too large. Largest number of frames allowed in one GOP: 512' i…
0
votes
0 answers

FFMpeg PHP: Unable to load FFProbe

I am using the Lumen PHP framework which is the form of Laravel. On the server side I have Bitnami. I get the 500 error when the code that uses FFMpeg is being executed. My part of the code which leads to the problem: $ffmpeg = FFMpeg::create([ …
0
votes
0 answers

ffmpeg continue streaming to twitch use case

So I have a weird use case that I'm struggling with. Here's the situation: I have 2 video files, each 1 hour long. I want to stream the first file to twitch in a process, and when that file ends, the ffmpeg process will end and then I want to pickup…