[DEV] Set ffmpeg/ffprobe paths via ENV variable
This commit is contained in:
parent
3fbdd26257
commit
84eeb862cf
1 changed files with 2 additions and 2 deletions
|
|
@ -23,8 +23,8 @@ if IS_WINDOWS:
|
||||||
MAX_FILE_NAME_BYTES = 255
|
MAX_FILE_NAME_BYTES = 255
|
||||||
else:
|
else:
|
||||||
DEFAULT_LOCK_DIRECTORY = "/tmp"
|
DEFAULT_LOCK_DIRECTORY = "/tmp"
|
||||||
DEFAULT_FFMPEG_PATH = _existing_path("/usr/bin/ffmpeg", "/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 = _existing_path("/usr/bin/ffprobe", "/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")
|
MAX_FILE_NAME_BYTES = os.pathconf("/", "PC_NAME_MAX")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue