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
36
votes
2 answers

Im getting error "deprecated pixel format used, make sure you did set range correctly using ffmpeg".. can someone check my code below?

This is my code using ffmpeg I want to have video thumbnail but I'm not familiar in ffmpeg can someone know the error I got. [swscaler @ 0x7ff8da028c00] deprecated pixel format used, make sure you did set range correctly Output #0, mjpeg, to…
Mavs Mavs
  • 409
  • 1
  • 4
  • 10
11
votes
1 answer

Filter has an unconnected output

I am using FFMPEG to merch 2 videos together with a fade effect in between. The console output shows the following error: Filter setpts has an unconnected output I have looked up what could be wrong, but can't find anything related to my error that…
user4051844
7
votes
1 answer

Is there any way that I can speed up the ffmpeg processing time

I am facing a problem with the processing process. I use a real joint server in a digital hosting package of $ 10 and use cloud service from Amazon s3. The problem is when uploading a video, whatever the size of the video, whether its size is 1…
6
votes
5 answers

FFMpeg - Creating Thumbnail for Video file

I am new to php. I have installed ffmpeg in my local iis.. Is it possible to generate a thumbnail image for a flv file.? Please help..
user1006460
  • 104
  • 1
  • 1
  • 5
6
votes
1 answer

ffmpeg concatenation after using drawtext filter

I'm fairly new to ffmpeg, but after a few days of searching on this issue, I've completely hit a brick wall. Any help would be appreciated. My use case: Our client wants to upload videos for multiple regions. Each video will be the same format,…
Sven Hoskens
  • 135
  • 1
  • 5
6
votes
3 answers

Php-ffmpeg “Unknown encoder libfaac” on Windows

I am using laravel 4.2. I am working on a project in that user can upload a video and I need to transcode it that it can be played over all kind of devices. For transcoding I have added php-ffmpeg package from git hub in my project. According to…
Dev
  • 6,570
  • 10
  • 66
  • 112
5
votes
4 answers

PHP Fatal error: Maximum execution time of 60 seconds exceeded in C:\xampp\htdocs\vendor\symfony\process\Pipes\WindowsPipes.php on line 140

When I try to upload video that is larger than 15MB using Ajax and Laravel I get this error: PHP Fatal error: Maximum execution time of 60 seconds exceeded in C:\xampp\htdocs\vendor\symfony\process\Pipes\WindowsPipes.php on line 140 I use Ffmpeg…
Ghyath Darwish
  • 2,614
  • 4
  • 15
  • 31
5
votes
2 answers

Use FFMPEG to generate MPD files for MPEG-DASH adaptive streaming

So I am trying to setup adaptive streaming and I have what I think is 80-90% of the problem finished. Right now I ingest my source video, transcode it into 5 resolutions each with 3 bitrates (low, medium, high) and then I split all of those videos…
CMOS
  • 2,727
  • 8
  • 47
  • 83
5
votes
4 answers

php-ffmpeg get video duration

When I try to get the duration of a video using the php-ffmpeg wrapper and ffprobe, I get a huge object instead of just the duration. $ffprobe = FFMpeg\FFProbe::create(); $ffprobe->format($this->videoFile) ->get('duration');…
swg1cor14
  • 1,682
  • 6
  • 25
  • 46
5
votes
2 answers

Install ffmpeg-php on CentOS

I'm trying to install ffmpeg-php on server (CentOS) but after the "make" command I get an error: from /usr/local/src/ffmpeg-php-0.6.0/ffmpeg-php.c:40: /usr/include/bits/stat.h:91: error: field 'st_atim' has incomplete type …
Sergio
  • 1,207
  • 7
  • 28
  • 42
4
votes
2 answers

Ffmpeg split video into multiple chunk but in different duration length

I know how to split video into equal duration length, but here i want to split video into un-equal parts and number of parts and duration will be different for each time. For ex, video length is 50 sec, i want to split it in 4 parts. 1) 0 sec - 5…
4
votes
1 answer

FFMPEG: How to use S3 url in FFMPEG Php

I'm generating an image frame from a video in a particular time using FFMPEG Laravel SDK in Laravel 5.6. If I used the local path for video file it's working fine but When I'm using URL directly it's giving an error. I want to use the video which is…
Pranavan SP
  • 1,785
  • 1
  • 17
  • 33
4
votes
1 answer

Transcode video with php ffmpeg library

I need to upload video in 3 formate/resolution as 360p, 480p, 720p. After some research i got to know that some paid service are there like Amazone Elastic Transcoder . But i want to do with open source so i found FFMPEG. Also i want to upload…
dev
  • 67
  • 7
4
votes
1 answer

Unable to transcode video using ffmpeg transcoder

This question may be asked in different forums but still answer is not discovered yet. I am trying to play *.flv using Video Module and FFMPEG Converter. Whenever I upload any flv Video , I get the following message:- PHPVideoToolkit error: Execute…
simple user
  • 349
  • 3
  • 22
  • 44
3
votes
1 answer

FFmpeg-PHP XDebug errors

I have recently downloaded the FFmpeg-PHP extension (extracted from ffmpeg-php53-win32-vc9-all.zip) for PHP and I have been using it alongside FFmpeg-0.5.2.1 to extract information from a variety of videos. So far, I have tested it with AVI, FLV,…
siberiantiger
  • 305
  • 1
  • 3
  • 10
1
2 3
18 19