Skip to content

Commit b9c6635

Browse files
committed
add additional options to ffmpeg path selector
1 parent 85ed3a8 commit b9c6635

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/onthespot/otsconfig.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,8 @@ def __init__(self, cfg_path=None):
247247
ffmpeg_path = os.environ['FFMPEG_PATH']
248248
elif os.name != 'nt' and os.path.exists('/usr/bin/ffmpeg'):
249249
ffmpeg_path = '/usr/bin/ffmpeg'
250+
elif os.path.exists(shutil.which('ffmpeg')):
251+
ffmpeg_path = shutil.which('ffmpeg')
250252
elif os.path.isfile(os.path.join(self.app_root, 'bin', 'ffmpeg', 'ffmpeg' + self.ext_)):
251253
print('Failed to find system ffmpeg binary, falling back to bundled binary !')
252254
ffmpeg_path = os.path.abspath(os.path.join(self.app_root, 'bin', 'ffmpeg', 'ffmpeg' + self.ext_))

0 commit comments

Comments
 (0)