aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-09-16 18:24:29 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-09-16 21:37:37 +0530
commit5736d79172c47ff84740d5720467370a560febad (patch)
tree558c838a3e752bbfc4cb811c8e508f06f2c39391
parentfc2ba496fd09ca68c7e6eeb2c11e7000d08ff099 (diff)
downloadhypervideo-pre-5736d79172c47ff84740d5720467370a560febad.tar.lz
hypervideo-pre-5736d79172c47ff84740d5720467370a560febad.tar.xz
hypervideo-pre-5736d79172c47ff84740d5720467370a560febad.zip
Support environment variables in `--ffmpeg-location`
Closes #4938
-rw-r--r--yt_dlp/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/yt_dlp/__init__.py b/yt_dlp/__init__.py
index 87d431c6e..cab2dd62f 100644
--- a/yt_dlp/__init__.py
+++ b/yt_dlp/__init__.py
@@ -920,6 +920,7 @@ def _real_main(argv=None):
# We may need ffmpeg_location without having access to the YoutubeDL instance
# See https://github.com/yt-dlp/yt-dlp/issues/2191
if opts.ffmpeg_location:
+ opts.ffmpeg_location = expand_path(opts.ffmpeg_location)
FFmpegPostProcessor._ffmpeg_location.set(opts.ffmpeg_location)
with YoutubeDL(ydl_opts) as ydl: