Merge pull request #343 from dynofifa/php8

add video fortmat into mediainfo extration
This commit is contained in:
xiaomlove
2025-07-06 23:23:43 +07:00
committed by GitHub
+6
View File
@@ -151,6 +151,11 @@ class TechnicalInformation
return $this->mediaInfoArr['Video']['HDR format'] ?? '';
}
public function getVideoFormat()
{
return $this->mediaInfoArr['Video']['Format'] ?? '';
}
public function getBitDepth()
{
return $this->mediaInfoArr['Video']['Bit depth'] ?? '';
@@ -213,6 +218,7 @@ class TechnicalInformation
'Bit depth' => $this->getBitDepth(),
'Frame rate' => $this->getFramerate(),
'Profile' => $this->getProfile(),
'Format' => $this->getVideoFormat(),
'Ref.Frames' => $this->getRefFrame(),
];
$videos = array_filter($videos) ?: null;