n179911
n179911

Reputation: 20341

How can I install ffmpeg to my docker image

I have setup a docker image in my Windows 10 Machine. Can you please tell me how can I install ffmpeg to that docker image?

Upvotes: 16

Views: 50517

Answers (5)

sarawgeek
sarawgeek

Reputation: 679

if you are facing issue to get the dependency of the ffmpeg then this flag will help:

RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y ffmpeg

This worked for me.

Upvotes: -1

Pritam Sinha
Pritam Sinha

Reputation: 447

As of July 2022, this works for Dockerfile, well at least it worked for me.

RUN apt-get -y update && apt-get -y upgrade && apt-get install -y --no-install-recommends ffmpeg

Just to let the community know.

Upvotes: 15

Keiku
Keiku

Reputation: 8813

If you stop with select of geographic area on Ubuntu 18.04 or above, you can install it by specifying ENV DEBIAN_FRONTEND=noninteractive as shown below.

FROM ubuntu:18.04

ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update && apt-get install -y ffmpeg

Upvotes: 6

Rohan Sawant
Rohan Sawant

Reputation: 1016

apt-get install ffmpeg

As of 2019, this seems to work, just fine on Docker.

Dockerfile

RUN apt-get -y update
RUN apt-get -y upgrade
RUN apt-get install -y ffmpeg

Upvotes: 41

Anar Bayramov
Anar Bayramov

Reputation: 11594

In your dockerfile you can write this command to add required repo, update your repository and then install ffmpeg.

Though I am not sure if this library still exist I just modified this Link for Docker you can follow same rules to install another package.

RUN set -x \
    && add-apt-repository ppa:mc3man/trusty-media \
    && apt-get update \
    && apt-get dist-upgrade \
    && apt-get install -y --no-install-recommends \
        ffmpeg \ 

Upvotes: 12

Related Questions