sipsorcery-org / SIPSorceryMedia.FFmpeg

GNU Lesser General Public License v2.1
31 stars 24 forks source link

FFmpeg path in docker container? #72

Open Gartarr opened 5 months ago

Gartarr commented 5 months ago

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

ha-ves commented 4 hours ago

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,