From 08229541c376f9fb3f635d7a48930371664e96f6 Mon Sep 17 00:00:00 2001 From: Z User Date: Tue, 29 Sep 2026 06:47:43 +0000 Subject: [PATCH] fix: also look for FFmpeg next to the running python interpreter Dropping ffmpeg.exe into python_embeded (next to python.exe) is a common Windows support instruction; scan sys.executable's folder after the portable root and CWD candidates. --- utils/video.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/video.py b/utils/video.py index c5c78e8..1397a26 100644 --- a/utils/video.py +++ b/utils/video.py @@ -7,6 +7,7 @@ import math import os import shutil import subprocess +import sys import tempfile import urllib.request from .media import AUDIO_EXTENSIONS @@ -600,6 +601,7 @@ def get_ffmpeg_path(name: str = "ffmpeg") -> str | None: if base: roots.append(base) roots.append(os.path.dirname(os.path.abspath(base))) + roots.append(os.path.dirname(os.path.abspath(sys.executable))) roots.append(os.getcwd()) for root in roots: candidates.extend([