From f2033ad7f7a18f7c8f742c6ebf691154cf94fa03 Mon Sep 17 00:00:00 2001 From: Maxim Stewart Date: Wed, 23 Jan 2019 22:29:09 -0600 Subject: [PATCH] Added remuxing for mkv videos. Potential for future options too. --- resources/php/filesystemActions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/php/filesystemActions.php b/resources/php/filesystemActions.php index 39b7393..c1e91b4 100644 --- a/resources/php/filesystemActions.php +++ b/resources/php/filesystemActions.php @@ -142,7 +142,7 @@ function remuxVideo($FILE) { $EXTNSN = strtolower(pathinfo($FILE, PATHINFO_EXTENSION)); if (!file_exists($PTH . $HASHED_NAME)) { - if (preg_match('(mp4)', $EXTNSN) === 1) { + if (preg_match('(mkv)', $EXTNSN) === 1) { $COMMAND = 'ffmpeg -i "' . $FILE . '" -movflags +faststart -codec copy ' . $PTH . $HASHED_NAME; shell_exec($COMMAND . " > /dev/null &"); }