jiaaro / pydub

Manipulate audio with a simple and easy high level interface
http://pydub.com
MIT License
8.82k stars 1.04k forks source link

How do you guys install ffmpeg or libav inside a python-image? #796

Closed opendeluxe closed 3 months ago

opendeluxe commented 3 months ago

Steps to reproduce

Dockerfile:

FROM python:3.11

RUN mkdir /app
WORKDIR /app

RUN apt-get update && apt-get install -y gettext lsb-release default-libmysqlclient-dev python3.11-dev
RUN apt-get install libav-tools libavcodec-extra  # or ffmpeg

Expected behavior

It should install libav (or ffmpeg)

Actual behavior

ERROR: failed to solve: process “/bin/sh -c apt-get install libav-tools libavcodec-extra” did not complete successfully: exit code: 100

Your System configuration

Is there an audio file you can include to help us reproduce?

doesn't apply

opendeluxe commented 3 months ago

I missed the -y flag. Then it works.