SIPSorceryMedia.FFmpeg icon indicating copy to clipboard operation
SIPSorceryMedia.FFmpeg copied to clipboard

FFmpeg path in docker container?

Open Gartarr opened this issue 1 year ago • 1 comments

How to install ffmpeg with needed libraries in docker?
Everytime I install it, it shows that the --shared are enabled using ffmpeg -version, but I cannot find the shared files, only ffmpeg executable exists in /usr/bin.
Setting the path in init function as null also does not help. I do these steps in docker:

RUN apt-get update \
    && apt-get install -y ffmpeg \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/*

How do I set up ffmpeg, preferably so that I can set the path to ffmpeg libraries:

FFmpegInit.Initialise(FfmpegLogLevelEnum.AV_LOG_FATAL, @"C:\ffmpeg_build\bin", null);

as null? The above is Windows version

Gartarr avatar Jan 30 '24 11:01 Gartarr

Libraries in linux (such as used by ffmpeg) are available in many different place depending on your distributor (linux distribution (distro)) and package repository.

For example,

  • Debian-based in /usr/lib/x86_64-linux-gnu/
  • Fedora-based in /usr/lib64/

ha-ves avatar Jul 08 '24 09:07 ha-ves