N
N
Neo64922015-02-22 19:00:56
PHP
Neo6492, 2015-02-22 19:00:56

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

1 answer(s)
N
Nikita, 2015-02-22
@Panda_Tamara

First - how are you going to convert at least something other than avi to gif from those formats that you specified in the array ???
Second, ffmpeg itself is only limited by the codecs that are installed on the system.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question