Skip to content

Commit

Permalink
add ffmpeg dependancy
Browse files Browse the repository at this point in the history
  • Loading branch information
mralext20 committed May 31, 2024
1 parent 05fc14f commit 3c52b58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion alexBot/cogs/video_dl.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def transcode_shrink(content: io.BytesIO, limit: float) -> io.BytesIO:
try:
with open("in.mp4", "wb") as f:
f.write(content.getvalue())
fprobe = subprocess.Popen(FFPROBE_CMD.split(' '), stdout=subprocess.PIPE)
fprobe = subprocess.Popen(FFPROB E_CMD.split(' '), stdout=subprocess.PIPE)
fprobe.wait()
video_length = math.ceil(float(fprobe.communicate()[0].decode("utf-8")))
content.seek(0) # reset data
Expand Down
2 changes: 1 addition & 1 deletion dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM python:3.12
WORKDIR /alexbot


RUN apt update && apt install -y libopus0 git && rm -rf /var/lib/apt/lists/*
RUN apt update && apt install -y libopus0 ffmpeg && rm -rf /var/lib/apt/lists/*

COPY requirements.txt /alexbot/requirements.txt

Expand Down

0 comments on commit 3c52b58

Please sign in to comment.