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

how to use multiple videos with background in it with color correction

Hey i am try to create a batch input output file with that so i can easliy add my video in to a frame with top header and footer GIF for youtube subscribe and credit in the right side my logo and card should be display and the left the actual video…
0
votes
0 answers

php and ffmpeg: how to set parameter '-c:v' 'copy' in php?

I am using phpffmpeg library with Laravel $ffmpeg = FFMpeg::fromDisk($disk) ->open($videoPathDisk) ->getFrameFromSeconds(1) ->export() ->toDisk($disk); $ffmpeg->save($path.$videoPoster); The…
yarek
  • 11,278
  • 30
  • 120
  • 219
0
votes
1 answer

ffmpeg fade filter installed but not working?

I have php 5.1.6 running on my CentOS 5 server running Apache 2.2.3 I installed ffmpeg library and my aim is to covert a set of images into a slideshow with the fadein/fade out effect per image swap. Command ffmpeg says: `FFmpeg version SVN-r26402,…
Astha
  • 1,728
  • 5
  • 17
  • 36
0
votes
0 answers

FFMpeg\Format\video\X264 not found

Can anyone tell me why I get Error: Class "FFMpeg\Format\video\X264" not found in" even with the dependency installed and binary installed. Below is my implementation. I have the dependency in vendor and the binary in the container…
0
votes
0 answers

How to upload ffmpeg thumbnails directly to S3?

I'm trying to generate thumbnails from video uploads and upload them directly to S3 without re-opening the file after it's uploaded. I'm not sure how to really do this since php-ffmpeg documentation isn't good. Here's the code I'm trying but not…
kryz
  • 79
  • 11
0
votes
2 answers

Concatenate two audios with different duration time

I need to concatenate two audios, but I need to keep the size of the video with the size of the audio "backgroud.wav". I'm doing like this: $code1 = "ffmpeg -y -i voz.wav -i backround.wav -filter_complex amerge -c:a libmp3lame -q:a 4…
0
votes
1 answer

Duration filter is ignored using FFMPEG Laravel

This commands works perfectly: ffmpeg -loop 1 -i flyer.jpg -c:v libx264 -t 15 -pix_fmt yuv420p -vf scale=1080:720 out.mp4 Trying to do the same with Laravel FFMPEG FFMpeg::fromDisk('images') ->open('flyer.jpg') ->export() …
John Smith
  • 1,848
  • 3
  • 13
  • 24
0
votes
1 answer

Compress videos with ffmpeg in PHP

I want to reduce the size of a MP4 video. I call ffmpeg command via PHP with this command: ffmpeg -i $convertUrl -c:v libx264 -crf 28 $convertUrlTmp 2>&1 But it does not reduce enough the video dimension (31 mb --> 23 mb). How can I compress more?
enfix
  • 6,680
  • 12
  • 55
  • 80
0
votes
1 answer

laravelffmpeg color filter effects

How can I apply a color filter effect in my video using laravel-ffmpeg package and what is the proper way to do it? The package have a custom filters but i dont know how to translate the ffmpeg command for color filter to laravel-ffmpeg. From FFMPEG…
kyurie
  • 15
  • 6
0
votes
0 answers

FFMpeg adding automatic Beep sound at specific seconds

merging two audio files using ffmpeg but it's adding slight beep voice on specific duration everytime. Can we remove this? ffmpeg -y -i 1.wav -stream_loop 23 -i Wav_868kb.wav \ -filter_complex "[0:0]volume=2.5[a];[1:0]volume=0.5[b];\ …
Abd
  • 9
  • 2
0
votes
1 answer

How to do multiple operations in FFMPEG .BAT file

BAT File. cd c:/ffmpeg/bin ffmpeg.exe -i "https://av.livestreamlive.xyz/hls/krt.m3u8" -c:v copy -c:a copy -preset veryslow -pix_fmt yuv420p -f flv rtmp://127.0.0.1/live/azad ffmpeg.exe -i "https://av.livestreamlive.xyz/hls/krt.m3u8" -c:v copy -c:a…
HD TV
  • 1
  • 3
0
votes
1 answer

Laravel FFMPEG video conversion without waiting for queue

I'm building an application in Laravel (v9) where users upload videos, and these get converted to MP4 (showing progress percentage), thumbnail gets created… etc Once the video is uploaded, I dispatch a new job in the background that runs all my…
ignaciodev
  • 48
  • 5
0
votes
1 answer

java ffmpeg wrapper Unknown decoder 'copy'

Hi I want to run ffmpeg -f concat -i test.txt -c copy output.mp4 in java. My FFmpegBuilder : FFmpeg ffmpeg = new FFmpeg("C:\\ffmpeg\\bin\\ffmpeg.exe"); FFprobe ffprobe = new FFprobe("C:\\ffmpeg\\bin\\ffprobe.exe"); …
CampingCow
  • 120
  • 10
0
votes
0 answers

FFmpeg stops converting when I start it with PHP

I am currently trying to convert various video files using FFmpeg with the help of my server (Windows Server 2016). PHP is supposed to initiate the process. Whenever I start FFmpeg via CMD, everything works fine and the video file converts…
0
votes
1 answer

FFMPEG: merging mkv and mka into mp4 slows down the mp4 output

I'm using FFmpeg to merge an MKA and MKV files to generate an MP4 file. The command shown below is working good sometimes: 1st pair of mkv/mka : gives a successful MP4 with no problems in audio/video. 2nd pair of mkv/mka : the audio of output.mp4…
habib
  • 1,454
  • 17
  • 31