From dee1da394cc8bc360ef5074ddd6f58e5858bf249 Mon Sep 17 00:00:00 2001 From: dynofifa Date: Mon, 30 Jun 2025 19:29:47 +0800 Subject: [PATCH] add video fortmat into mediainfo extration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 新增mediainfo提取视频编码 --- nexus/Torrent/TechnicalInformation.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nexus/Torrent/TechnicalInformation.php b/nexus/Torrent/TechnicalInformation.php index 2b454e1e..12cfe360 100644 --- a/nexus/Torrent/TechnicalInformation.php +++ b/nexus/Torrent/TechnicalInformation.php @@ -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;