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

Aws-sdk-php putobject with ffmpeg .m3u8 & .ts format

I can't send hls video. aws-sdk-php mp4 video working well but hls videos only send .m3u8 file all .ts file come in local storage Here my actual code. Submit-ffmpeg.php: $ffmpeg_b = $pt->config->ffmpeg_binary_file; $filepath = explode('.',…
0
votes
0 answers

How to create a thumbnail for video file

I have been working on php for a while and i stuck at the point where i need to create thumbnail for video file using ffmpeg. I looked up for same, but did not get any solution yet. I found so many solutions to create a thumbnail from video file,…
KMG
  • 114
  • 7
0
votes
1 answer

Installing php extension for ffmpg is not working in windows10 xampp3.2 php5.6

I have downloaded the php extension for ffmpeg and pasted it in ext folder and added the same in php.ini. Also added the files pthreadGC2.dll,avcodec.dll and avformat.dll on system32. But when I restart apache and look in to the phpinfo, the ffmpeg…
Varada
  • 16,026
  • 13
  • 48
  • 69
0
votes
1 answer

FFMPEG Streaming Youtube Live

I am streaming live video on youtube live using ffmpeg sdk av_interleaved_write_frame(m_pAvFmtCntx, pkt); av_interleaved_write_frame taking more than 60 millisecond to write packet . How to optimize time?
0
votes
1 answer

How to incoporate ffmpeg in my audio input upload form

this is not really a question but a request to point me to any starting direction. i have a simple audio upload form which stores the audio to a database or just any folder. I want to start by implementing ffmpeg so before this audio is stored in…
0
votes
0 answers

How to use FFMpeg::create(); In PHP

I want to create a web that can cut video now. If possible, try to use ffmpeg. However, FFMpeg has been successfully used as a module, but FFMpeg :: create has not been used. How do I use FFMpeg :: create?
0
votes
1 answer

Subtitle Encoding using ffmpeg

I want to read and write subtitle stream ffmpeg -i E:/Video/Waka.mp4 -vf subtitles=E:/Video/Waka.srt out.mp4 equivalent code in c or c++ and please provide how to add subtitle stream and encoding parameter, what is procedure to read subtitle…
0
votes
0 answers

ffmpeg command making 0 bytes file when attempting to compress mp4 video

Whenever I am running this script, it compresses my MP4 video but the output is 0 bytes. It works well for AVI & FLV format. Please help me understand what I am doing wrong? @session_start(); @include_once("start.php"); $command =…
Riyaz Khan
  • 23
  • 1
  • 9
0
votes
1 answer

Long conversion of ffmpeg 1080-240p

I'm trying to convert video files from 1080p format to smaller 240p, 360p, and 720p formats. My current code works fine, but it does take a long time. I was looking for help at ffmpeg.org, but I can not rewrite my current code to work faster. I…
urbmake
  • 7
  • 2
  • 7
0
votes
1 answer

Mix more then 1000 mp3's sounds bad / Can I use FFmpeg to merge 1000 mp3s?

I am working on a project where everybody has to activate a part of a song. I have about 7000 mp3's, each with the same length of the final mix but with only a small part of audio. So for example you can hear a drum hit at the 15th second and the…
maesbn
  • 207
  • 3
  • 6
0
votes
1 answer

how can stop stream after start stream with ffmpeg php?

I'm attempting to run the following command in PHP (on Ubuntu): it is start button start /dev/null 2>/dev/null&")) { echo "Success"; } else { echo "No good"; } so after start how i can…
0
votes
1 answer

PHP $_FILE Temp Location open_basedir Conflict PHP-FPM/Nginx

I have a script for uploading files to my site. It works great but now I'm wanting to extract meta data from video files using the ffmpeg/ffprobe library. My code: if (!empty($_FILES)) { $requestAr = requestCheck(['title',…
xendi
  • 2,332
  • 5
  • 40
  • 64
0
votes
1 answer

How to add overlay with diagonally up effect using ffmpeg?

I am trying to add overlay image with diagonally but no luck yet. I want to add overlay with diagonally up effect using ffmpeg like below video. https://www.screencast.com/t/bZfnHXsJhrPH can you please help me to creating this type of video using…
0
votes
1 answer

How to change the size of audio visualisers in ffmpeg?

I have this command in ffmpeg: echo shell_exec("$ffmpeg -i test.aiff -y -filter_complex '[0:a]showfreqs=s=1920x1080:mode=bar:ascale=log:fscale=lin:win_size=w1024:win_func=poisson:colors=blue,format=yuv420p[v]' -map '[v]' -map 0:a output2.mp4…
Meme Stream
  • 171
  • 2
  • 11
0
votes
0 answers

FFMPEG corruption concat

When I run ffmpeg -f concat -i resizedvideolist.txt -c copy concatenated_time.mp4 2>&1 it concatenates all the videos in the txt, but there is one video around halfway through that get glitched out. The audio just doesn't play for that video, but…
Please Help
  • 929
  • 1
  • 8
  • 11