Skip to content

Commit 710718d

Browse files
committed
Added recognition for AV1 related files
Added recognition for AV1 related files
1 parent fb7e492 commit 710718d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

FfmpegVideoCodecs.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ static function videoTypeByCodecAndFileName($codec, $filename) {
2121
return "mov";
2222
if (strpos(strtolower($filename), ".m4v") !== FALSE)
2323
return "m4v";
24+
if (strpos(strtolower($filename), ".mkv") !== FALSE)
25+
return "mkv";
26+
if (strpos(strtolower($filename), ".avi") !== FALSE)
27+
return "avi";
28+
if (strpos(strtolower($filename), ".mp4") !== FALSE && strpos($codec, "av1") !== FALSE)
29+
return "mp4-av1";
2430
if (strpos($codec, "flv") !== FALSE)
2531
return "flv";
2632
if (strpos($codec, "h264") !== FALSE)

0 commit comments

Comments
 (0)