OpenMediaCenter/php/extractvideopreviews.php
2020-05-16 20:18:32 +02:00

7 lines
165 B
PHP
Executable File

<?php
$arr = scandir("../videos/prn/");
foreach ($arr as $elem) {
shell_exec("ffmpeg -ss 00:04:00 -i \"../videos/prn/$elem\" -vframes 1 -q:v 2 \"$elem.jpg\"");
}