Answer the question
In order to leave comments, you need to log in
How to extend video formats from ffmpeg library?
There is a web application that converts video to gif animation using the ffmpeg library, but the functionality of this application is limited to only one format of the uploaded avi video file. I would like to know how to expand the video formats of this application?
There is an array with data:
static private $ext = array('avi', 'jpg', 'jpeg', 'png', 'gif', 'doc', 'docx', 'xls', 'xlsx', 'rar ', 'zip', 'pdf', 'txt', 'rtf');
If you add formats, it will download videos of a certain format, but no conversion will take place.
$log = shell_exec("C:/ffmpeg/bin/ffmpeg.exe -i $inPath $outPath 2>&1");
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question