aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenshin9977 <33557877+Kenshin9977@users.noreply.github.com>2025-02-23 09:50:43 +0100
committerGitHub <noreply@github.com>2025-02-23 08:50:43 +0000
commit9f77e04c76e36e1cbbf49bc9eb385fa6ef804b67 (patch)
treeea6b0c6ea3c8e01216c80b48724939cd795aff4a
parentc034d655487be668222ef9476a16f374584e49a7 (diff)
Fix external downloader availability when using `--ffmpeg-location` (#12318)
This fix is only applicable to the CLI option Authored by: Kenshin9977
-rw-r--r--yt_dlp/downloader/external.py2
-rw-r--r--yt_dlp/postprocessor/ffmpeg.py2
2 files changed, 1 insertions, 3 deletions
diff --git a/yt_dlp/downloader/external.py b/yt_dlp/downloader/external.py
index 7f6b5b45c..ee73ac043 100644
--- a/yt_dlp/downloader/external.py
+++ b/yt_dlp/downloader/external.py
@@ -457,8 +457,6 @@ class FFmpegFD(ExternalFD):
@classmethod
def available(cls, path=None):
- # TODO: Fix path for ffmpeg
- # Fixme: This may be wrong when --ffmpeg-location is used
return FFmpegPostProcessor().available
def on_process_started(self, proc, stdin):
diff --git a/yt_dlp/postprocessor/ffmpeg.py b/yt_dlp/postprocessor/ffmpeg.py
index 8965806ae..e59e9832b 100644
--- a/yt_dlp/postprocessor/ffmpeg.py
+++ b/yt_dlp/postprocessor/ffmpeg.py
@@ -202,7 +202,7 @@ class FFmpegPostProcessor(PostProcessor):
@property
def available(self):
- return self.basename is not None
+ return bool(self._ffmpeg_location.get()) or self.basename is not None
@property
def executable(self):