Added remuxing for mkv videos. Potential for future options too.

This commit is contained in:
Maxim Stewart 2019-01-23 22:29:09 -06:00
parent c4ba8ab715
commit f2033ad7f7
1 changed files with 1 additions and 1 deletions

View File

@ -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 &");
}