🐛 fix: don't attach vtag for dolby vision (#447)

This commit is contained in:
Nyakku Shigure 2025-02-19 01:02:23 +08:00 committed by GitHub
parent 88b9ef6aa4
commit ffc5e2127c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 2 deletions

View File

@ -201,8 +201,10 @@ def merge_video_and_audio(
# https://aaron.cc/ffmpeg-hevc-apple-devices/
# see also: https://github.com/yutto-dev/yutto/issues/85
vtag: str | None = None
if options["video_save_codec"] == "hevc" or (
options["video_save_codec"] == "copy" and video is not None and video["codec"] == "hevc"
if (
options["video_save_codec"] == "hevc"
or (options["video_save_codec"] == "copy" and video is not None and video["codec"] == "hevc")
and video["quality"] != 126 # skip for Dolby Vision
):
vtag = "hvc1"