Skip to content

Commit d155197

Browse files
committed
🐧 INCREDIBELOUS linux compability for ffmpeg
1 parent 0cd3273 commit d155197

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cogs/general/gif.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
from utils import handle_errors, no_color, no_ping, edit_image, Emojis
1313

14+
ffmpeg_path = "/usr/bin/ffmpeg" if os.environ["PATH"].startswith("/") else "ffmpeg"
15+
1416
image_types = (
1517
"bmp", "dds", "gif", "ico", "im",
1618
"jpg", "jpeg", "msp", "pcx", "png",
@@ -123,7 +125,7 @@ async def video2webp(file: bytes, msg: discord.Message):
123125
output_temp.close()
124126

125127
cmd = [
126-
"ffmpeg",
128+
ffmpeg_path,
127129
"-y",
128130
"-i", input_path,
129131
"-probesize", "100M",

0 commit comments

Comments
 (0)