mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-21 02:20:54 +08:00
add video fortmat into mediainfo extration
新增mediainfo提取视频编码
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user