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'] ?? ''; return $this->mediaInfoArr['Video']['HDR format'] ?? '';
} }
public function getVideoFormat()
{
return $this->mediaInfoArr['Video']['Format'] ?? '';
}
public function getBitDepth() public function getBitDepth()
{ {
return $this->mediaInfoArr['Video']['Bit depth'] ?? ''; return $this->mediaInfoArr['Video']['Bit depth'] ?? '';
@@ -213,6 +218,7 @@ class TechnicalInformation
'Bit depth' => $this->getBitDepth(), 'Bit depth' => $this->getBitDepth(),
'Frame rate' => $this->getFramerate(), 'Frame rate' => $this->getFramerate(),
'Profile' => $this->getProfile(), 'Profile' => $this->getProfile(),
'Format' => $this->getVideoFormat(),
'Ref.Frames' => $this->getRefFrame(), 'Ref.Frames' => $this->getRefFrame(),
]; ];
$videos = array_filter($videos) ?: null; $videos = array_filter($videos) ?: null;