|
<< Click to display table of contents >> LoadFFMpegLibraries Procedure |
[Re]Loads FFmpeg libraries from the specified Path.
Unit [VCL and LCL] MRVFFMpeg;
Unit [FMX] fmxMRVFFMpeg;
Syntax
procedure LoadFFMpegLibraries(Path : string);
By default, FFmpeg libraries are loaded from default locations (i.e. the current application directory and directories specified in PATH environment variable).
You can use this procedure for loading (or reloading) FFmpeg libraries located in a specific directory.
Note: by default, RVMedia loads avdevice library (that provides RVCamera.FFmpegProperty.VideoInputDevice functionality) for all FFmpeg version except for 6.x (due to known errors in this version). If you have problems with other version of FFmpeg, you can disable avdevice loading by assigning False to the global variable UseAVDevice.
You can download compiled Win64 version of FFmpeg here: https://www.ffmpeg.org/download.html#build-windows ("shared" versions are necessary).
You cannot install FFmpeg from the official website, because it does not provide "shared" builds.
You can use Homebrew package manager to install FFmpeg (type "brew install ffmpeg" in Terminal).
If you need Whisper (speech recognition) support
Most packaged versions of FFmpeg do not ship with Whisper enabled. You need to recompile FFmpeg with the Whisper option.
If you already have FFmpeg without options installed you may need to uninstall the current version and install a version with chosen options. See below on how to do this:
# check if you already have ffmpeg with whisper enabled
ffmpeg --help filter=whisper
# uninstall current ffmpeg, it will be replaced with a version with whisper
brew uninstall ffmpeg
# add a brew tap which provides options to install ffmpeg from source
brew tap homebrew-ffmpeg/ffmpeg
# this commands adds most common functionality and other default functions
brew install homebrew-ffmpeg/ffmpeg/ffmpeg \
--with-jpeg-xl \
--with-libgsm \
--with-libplacebo \
--with-librist \
--with-librsvg \
--with-libsoxr \
--with-libssh \
--with-libxml2 \
--with-openal-soft \
--with-openapv \
--with-openh264 \
--with-openjpeg \
--with-openssl \
--with-rav1e \
--with-rtmpdump \
--with-rubberband \
--with-speex \
--with-srt \
--with-webp \
--with-whisper-cpp
(source of this information, GPL options excluded)