init
This commit is contained in:
6
php/extractvideopreviews.php
Executable file
6
php/extractvideopreviews.php
Executable 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
12
php/sqlinit.php
Executable 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
8
php/videoload.php
Executable file
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
$arr = scandir("../videos/prn/");
|
||||
echo(json_encode($arr));
|
||||
|
||||
if (isset($_POST['action'])) {
|
||||
|
||||
}
|
Reference in New Issue
Block a user