MinimServer Forum
FFmpeg not seen from Minimstreamer in Apple Silicon - Printable Version

+- MinimServer Forum (https://forum.minimserver.com)
+-- Forum: MinimServer (/forumdisplay.php?fid=1)
+--- Forum: MinimStreamer (/forumdisplay.php?fid=11)
+--- Thread: FFmpeg not seen from Minimstreamer in Apple Silicon (/showthread.php?tid=7411)



FFmpeg not seen from Minimstreamer in Apple Silicon - Andy - 24-12-2024 21:11

I use Minimserver and minimstreamer on a new Macmini M4.
I have installed ffmpeg in the terminal with --> brew install ffmpeg

in the field stream.converter ffmpeg does not appear..

On an old Macintel everything was ok...
I can't solve the puzzle

Thank you


RE: FFmpeg not seen from Minimstreamer in Apple Silicon - simoncn - 25-12-2024 13:53

In a Terminal window, type ffmpeg. Does this show version and configuration information?


RE: FFmpeg not seen from Minimstreamer in Apple Silicon - Andy - 25-12-2024 19:02

andrea@Mac-mini ~ % ffmpeg
ffmpeg version 7.1 Copyright © 2000-2024 the FFmpeg developers
built with Apple clang version 16.0.0 (clang-1600.0.26.4)
configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/7.1_3 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags='-Wl,-ld_classic' --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libharfbuzz --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox --enable-audiotoolbox --enable-neon
libavutil 59. 39.100 / 59. 39.100
libavcodec 61. 19.100 / 61. 19.100
libavformat 61. 7.100 / 61. 7.100
libavdevice 61. 3.100 / 61. 3.100
libavfilter 10. 4.100 / 10. 4.100
libswscale 8. 3.100 / 8. 3.100
libswresample 5. 3.100 / 5. 3.100
libpostproc 58. 3.100 / 58. 3.100
Universal media converter
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'


RE: FFmpeg not seen from Minimstreamer in Apple Silicon - Andy - 25-12-2024 20:50

The script installs Homebrew to its default, supported, best prefix (/opt/homebrew for Apple Silicon, /usr/local for macOS Intel and /home/linuxbrew/.linuxbrew for Linux)

Maybe the problem is here? I see ffmpeg and ffmpeg@7 under /opt/homebrew/opt... and minimstreamer doesn't recognize the path to the package?


RE: FFmpeg not seen from Minimstreamer in Apple Silicon - simoncn - 25-12-2024 21:33

This output from the ffmpeg command shows that the ffmpeg executable is in a directory on your PATH. To see the list of directories on your PATH, type "echo $PATH" in a Terminal window.

MinimStreamer looks for an ffmpeg executable on its PATH. It could be that MinimStreamer was started before you installed FFmpeg and the PATH when MinimStreamer was started did not include the directory that now contains the ffmpeg executable. Exiting and relaunching MinimServer will cause MinimStreamer to use the current PATH and this should enable MinimStreamer to find the ffmpeg executable.


RE: FFmpeg not seen from Minimstreamer in Apple Silicon - Andy - 25-12-2024 21:44

andrea@Mac-mini ~ % echo $PATH
/usr/local/opt/python@3.8/bin:/usr/local/opt/python@3.8/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/VMware Fusion.app/Contents/Public

I quit Minimserver,then echo $PATH in the terminal,and i restarted Minimserver...but stream.converter is still blank.
(This Macmini M4 it was installed and restored with Time Machine from the old intel macmini)


RE: FFmpeg not seen from Minimstreamer in Apple Silicon - simoncn - 25-12-2024 22:30

To find where the ffmpeg executable has been installed, type "which ffmpeg" in the terminal. This will show the full path to the ffmpeg executable and you can copy this path into the stream.converter property.


RE: FFmpeg not seen from Minimstreamer in Apple Silicon - Andy - 25-12-2024 22:36

Thank you Simon!!
It works! (/opt/homebrew/bin/ffmpeg)


RE: FFmpeg not seen from Minimstreamer in Apple Silicon - simoncn - 25-12-2024 23:07

Thanks for confirming this. For some reason the /opt/homebrew/bin directory is on the PATH for terminal windows but is not on the PATH for applications launched by Finder such as MinimServer.


RE: FFmpeg not seen from Minimstreamer in Apple Silicon - simoncn - 31-12-2024 18:22

On further investigation, application packages on the Mac need to specify their own PATH. The PATH specified by the MinimServer package doesn't include /opt/homebrew/bin.

As it is simple for the user to specify the full path in the stream.converter property, I don't think this needs to be changed. I will add something to the Stream converter program section of the MinimStreamer user guide to explain this.