OpenMediaCenter/php/extractvideopreviews.php

7 lines
167 B
PHP
Raw Normal View History

2020-05-16 18:18:32 +00:00
<?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\"");
2020-05-16 18:18:32 +00:00
}