Answer the question
In order to leave comments, you need to log in
How to transfer the result of a function to a file?
I am converting
echo shell_exec("ffmpeg -i /1.mp4 -s hd480 -c:v libx264 -preset faster -crf 23 -c:a aac -strict -2 /1_480.mp4 2> /ffmpeg.log");
<?php
echo "Starting ffmpeg...\n\n";
echo shell_exec("ffmpeg -y -i input.avi output.avi </dev/null >/dev/null 2>/var/log/ffmpeg.log &");
echo "Done.\n";
?>
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