add video fortmat into mediainfo extration

新增mediainfo提取视频编码
This commit is contained in:
dynofifa
2025-06-30 19:29:47 +08:00
committed by GitHub
parent 19b8d657e7
commit dee1da394c
+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;