G
G
gameeer222018-01-08 13:42:20
css
gameeer22, 2018-01-08 13:42:20

How to run ffmpeg converter from php?

How to properly run this ffmpeg converter from php
like:
exec("ffmpeg -i input.mkv");
system("ffmpeg -i input.mkv");
the joke is that it stupidly returns nothing and there are no errors either, but if everything is fine from the console, what function should be used for this case?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Artem Ivanov, 2019-10-27
@ns174ru

set the block width equal to the active slide or a little more, center alignment in height and width
display: flex;
overflow: hidden;

B
Boris Korobkov, 2018-01-08
@BorisKorobkov

It's better not to run console commands from PHP at all, because
1. unsafe
2. inefficient
3. can fail on timeout
4. exec/system can be disabled in php.ini
Pass data through any queue for their subsequent execution by a daemon, cron or something somehow.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question