[DEV] Set ffmpeg/ffprobe paths via ENV variable (#1060)
This commit is contained in:
parent
3fbdd26257
commit
a37d9ed10e
1 changed files with 6 additions and 2 deletions
|
|
@ -23,8 +23,12 @@ if IS_WINDOWS:
|
|||
MAX_FILE_NAME_BYTES = 255
|
||||
else:
|
||||
DEFAULT_LOCK_DIRECTORY = "/tmp"
|
||||
DEFAULT_FFMPEG_PATH = _existing_path("/usr/bin/ffmpeg", "/usr/local/bin/ffmpeg")
|
||||
DEFAULT_FFPROBE_PATH = _existing_path("/usr/bin/ffprobe", "/usr/local/bin/ffmpeg")
|
||||
DEFAULT_FFMPEG_PATH = os.getenv(
|
||||
"YTDL_SUB_FFMPEG_PATH", _existing_path("/usr/bin/ffmpeg", "/usr/local/bin/ffmpeg")
|
||||
)
|
||||
DEFAULT_FFPROBE_PATH = os.getenv(
|
||||
"YTDL_SUB_FFPROBE_PATH", _existing_path("/usr/bin/ffprobe", "/usr/local/bin/ffmpeg")
|
||||
)
|
||||
|
||||
MAX_FILE_NAME_BYTES = os.pathconf("/", "PC_NAME_MAX")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue