mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
Merge pull request #343 from dynofifa/php8
add video fortmat into mediainfo extration
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user