MinimServer Forum
OMV 7 - How install ffmpeg - Printable Version

+- MinimServer Forum (https://forum.minimserver.com)
+-- Forum: MinimServer (/forumdisplay.php?fid=1)
+--- Forum: MinimStreamer (/forumdisplay.php?fid=11)
+--- Thread: OMV 7 - How install ffmpeg (/showthread.php?tid=7463)



OMV 7 - How install ffmpeg - Chrisds - 30-01-2025 14:09

Hi Everybody,
(I'm French. I hope my English is understandable)

I made myself a NAS with old equipment. I'm using openmediavault 7, portainer and ssh commands for the first time. I installed Minimserver not without difficulties but above all I cannot get minimstreamer to find ffmpeg.
I installed ffmpeg directly in the Container/ffmpeg/ folder. But in Portainer, I am unable to know the path to map the executable ffmpeg file with Minimserver. Unless I put it in the wrong place.
If you can enlighten me!
Thanks


RE: OMV 7 - How install ffmpeg - simoncn - 30-01-2025 15:06

The recommended location for the ffmpeg binary executable is in the minimserver/opt/bin directory, as described in the Stream converter program section.

When running MinimServer in a container, MinimServer is installed in the /opt/minimserver directory. This means you should put the ffmpeg executable in the /opt/minimserver/opt/bin directory.


RE: OMV 7 - How install ffmpeg - Chrisds - 31-01-2025 14:02

Thanks Simon !
The path you proposed is not recognized.
I tried the full path of my container:
/var/lib/docker/overlay2/e4f6d97b523f2440e9e1b44e1d0c767271b023d9bb2de6b78a23a8ed16ec500c/diff/opt/minimserver/minimserver-2.2/bin/ffmpeg

This doesn't work. Unable to install ffmpeg via ssh (no apt tools) ffmpeg, I pasted an ffmpeg file from my OS bin into this folder.

I tried a bind mounts to my container folder /var/lib/docker/overlay2/e4f....... No results.
I added bind mounts in the configuration of my Docker container which correspond to the locations of ffmpeg and its libraries on my nas OS.
Container: /usr/bin/ffmpeg Host: /usr/bin/ffmpeg
Container: /usr/lib/x86_64-linux-gnu Host: /usr/lib/x86_64-linux-gnu
Container: /lib/x86_64-linux-gnu Host: /lib/x86_64-linux-gnu

This was not enough and I added an environment variable
name: LD_LIBRARY_PATH Value: /usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH

With the addition of this variable, the Minimserver image container shuts down. The two versions of Glibc are different and seem to pose a problem:
My nas: ldd --version ldd (Debian GLIBC 2.36-9+deb12u9) 2.36
The Minimserver image: ldd version (GNU libc) 2.17

Am I on the right track?


RE: OMV 7 - How install ffmpeg - simoncn - 31-01-2025 17:08

This path:

/var/lib/docker/overlay2/e4f6d97b523f2440e9e1b44e1d0c767271b023d9bb2de6b78a23a8ed16ec500c/diff/opt/minimserver/minimserver-2.2/bin/ffmpeg

doesn't match what I posted. The path needs to be opt/bin/ffmpeg relative to the root directory of your MinimServer installation. Try this:

/var/lib/docker/overlay2/e4f6d97b523f2440e9e1b44e1d0c767271b023d9bb2de6b78a23a8ed16ec500c/diff/opt/minimserver/opt/bin/ffmpeg

or this:

/var/lib/docker/overlay2/e4f6d97b523f2440e9e1b44e1d0c767271b023d9bb2de6b78a23a8ed16ec500c/diff/opt/minimserver/minimserver-2.2/opt/bin/ffmpeg

You should not use bind mounts or LD_LIBRARY_PATH.


RE: OMV 7 - How install ffmpeg - Chrisds - 31-01-2025 17:33

Neither path works. I tried in a container without bind mount.


RE: OMV 7 - How install ffmpeg - simoncn - 31-01-2025 17:57

What is the full path to the data directory containing the minimserver.log file?

Are you sure ffmpeg is not being found? It might have been found but be unable to run for some reason. You could check this by setting the MinimServer logging level to Debug and looking at the messages in the minimserver.log file.


RE: OMV 7 - How install ffmpeg - Chrisds - 01-02-2025 14:34

Hi,
Thank you Simon for your time and help. I finally decided to reinstall my os and the Minimserver container. Since then, everything has been resolved! However, I chose to put ffmpeg in a shared folder on my nas volume and to bind mount to the executable file in the folder. I didn't dare re-enter the /var/ files...