From 6974c973ff3c99507cf2ef1a051a092ae4fc366d Mon Sep 17 00:00:00 2001 From: Meisterlala <6453306+Meisterlala@users.noreply.github.com> Date: Tue, 6 Jan 2026 20:55:41 +0100 Subject: [PATCH] Fix format --- main.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index a21c686..2f02f24 100644 --- a/main.py +++ b/main.py @@ -442,9 +442,6 @@ def run_ffmpeg_vaapi( ) filters.append(chain) maps.extend(["-map", f"[v_out{i}]"]) - else: - # No subtitles? Just pass the hardware stream through - maps.extend(["-map", "0:v"]) # Combine filters filter_complex: list[str] = ( @@ -452,6 +449,11 @@ def run_ffmpeg_vaapi( ) print("Filter complex:", filter_complex) + # Change format, even if no subtitles + if len(filter_complex) == 0: + filter_complex = ["-filter_complex", "[0:v]format=nv12,hwupload[v_out];"] + maps.extend(["-map", "[v_out]"]) + # Figure out compression_level def compression_level() -> int: # type: ignore vbaq = 16 -- knotmirror 0.0.1