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

FFmpeg in MacOS

Open mail2mhossain opened this issue 2 years ago • 7 comments

I have installed brew install ffmpeg and brew install mono-libgdiplus both.

But getting following error:

System.DllNotFoundException: Unable to load DLL avutil.56 - The specified module could not be found.

How to find following libraries for MacOS:

libavcodec libavformat libavutil libavfilter libavdevice libswresample libswscale

It will be very helpful if you provide these like Windows OS.

mail2mhossain avatar Aug 31 '22 10:08 mail2mhossain

I have set the path /opt/homebrew/Cellar/ffmpeg@4/4.4.2_3/lib where libavdevice.58.dylib and others are present. But still getting error: Unhandled Exception Occured. System.DllNotFoundException: Unable to load DLL 'avdevice.58 under /opt/homebrew/Cellar/ffmpeg@4/4.4.2_3/lib': The specified module could not be found.

I have renamed the file from "libavdevice.58.dylib" to "avdevice.58.dylib" OR "avdevice.58". BUT STILL GETTING SAME ERROR.

mail2mhossain avatar Sep 01 '22 06:09 mail2mhossain

Is this a version issue? If so, pls let me know which version to use OR your testing version.

mail2mhossain avatar Sep 01 '22 06:09 mail2mhossain

You have to install the developer version of ffmpeg. then using command line "ffmpeg -version" you should see the "libdir" parameter

See screenshot: image (9)

ChristopheI avatar Sep 02 '22 06:09 ChristopheI

So, for Linux and Mac in both case I have to install developer version 4.2.4 of ffmpeg, right?

Would you please provide the download link.

brew install ffmpeg@4 is not working too. How could I install dev version of ffmpeg (brew install ffmpeg@4 )

mail2mhossain avatar Sep 02 '22 07:09 mail2mhossain

Any help in this regards ( developer version of ffmpeg for MacOS)?

mail2mhossain avatar Sep 21 '22 07:09 mail2mhossain

Got a working solution for MacOS here.

  1. Download the ffmpeg@4 version
brew install ffmpeg@4
  1. Configure to use the lib directory under the ffmpeg4 installation location
FFmpegInit.Initialise(libPath: "/usr/local/Cellar/ffmpeg@4/4.4.3_4/lib");

Dylan-DutchAndBold avatar Mar 17 '23 15:03 Dylan-DutchAndBold

Thank you very much for your solution. I'll try with it.

BTW: have you use SIPSorceryMedia.Abstractions.RawImage in MAC?

mail2mhossain avatar Mar 17 '23 15:03 mail2mhossain