This commit is contained in:
2020-05-16 20:18:32 +02:00
commit 90e2f38c04
8 changed files with 152 additions and 0 deletions

6
php/extractvideopreviews.php Executable file
View File

@ -0,0 +1,6 @@
<?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\"");
}

12
php/sqlinit.php Executable file
View File

@ -0,0 +1,12 @@
<?php
$server = "172.17.0.2";
$user = "mwit";
$password = "3MnDApF3bu6XDGOE";
$database = "mwitdb";
$mysqli = new mysqli($server, $user, $password,$database);
if($mysqli->connect_errno)
{
echo "connecton failed... nr: ". $mysqli->connect_errno. " -- " . $mysqli->connect_error;
}

8
php/videoload.php Executable file
View File

@ -0,0 +1,8 @@
<?php
$arr = scandir("../videos/prn/");
echo(json_encode($arr));
if (isset($_POST['action'])) {
}