mirror of https://github.com/yutto-dev/yutto
🐛 fix: don't attach vtag for dolby vision (#447)
This commit is contained in:
parent
88b9ef6aa4
commit
ffc5e2127c
|
@ -201,8 +201,10 @@ def merge_video_and_audio(
|
||||||
# https://aaron.cc/ffmpeg-hevc-apple-devices/
|
# https://aaron.cc/ffmpeg-hevc-apple-devices/
|
||||||
# see also: https://github.com/yutto-dev/yutto/issues/85
|
# see also: https://github.com/yutto-dev/yutto/issues/85
|
||||||
vtag: str | None = None
|
vtag: str | None = None
|
||||||
if options["video_save_codec"] == "hevc" or (
|
if (
|
||||||
options["video_save_codec"] == "copy" and video is not None and video["codec"] == "hevc"
|
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"
|
vtag = "hvc1"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue