Skip to content

Commit a375673

Browse files
committed
Disable ffmpeg by default
Signed-off-by: Eli Uriegas <[email protected]>
1 parent 6387d23 commit a375673

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,9 @@ def get_extensions():
330330
))
331331

332332
ffmpeg_exe = distutils.spawn.find_executable('ffmpeg')
333-
has_ffmpeg = ffmpeg_exe is not None
333+
# Disable ffmpeg by default
334+
no_ffmpeg = os.environ.get("NO_FFMPEG", True)
335+
has_ffmpeg = ffmpeg_exe is not None and not no_ffmpeg
334336
print("FFmpeg found: {}".format(has_ffmpeg))
335337

336338
if has_ffmpeg:

0 commit comments

Comments
 (0)