SupportFFmpeg is a support class library with the FFmpeg for KVS. By checking the flag KVS_SUPPORT_FFMPEG
in the kvs.cong, FFmpeg supported classes are compiled and available.
To compile the SupportFFmpeg, the FFmpeg needs to be installed.
On Linux, the FFmpeg can be installed from a terminal as follows.
$ sudo apt-get install ffmpeg
In the case of Mac, the FFmpeg can be installed by using Homebrew on a terminal as follows.
$ brew install ffmpeg
In order to link the libraries, you may need to set:
export KVS_FFMPEG_DIR=/usr/local/opt/ffmpeg (intel mac)
export KVS_FFMPEG_DIR=/opt/homebrew/opt/ffmpeg (m1 mac)
For Windows, the FFMPEG binary can be downloaded from the following site.
- NOTE: Due to some limitations, a 32-bit binary is currently required; only the 64-bit binary can be downloaded from the FFMPEG home site, so please download the 32-bit binary from the above site.
Follow the steps below to install the FFMPEG.
-
Donwload the FFMPEG of version 5 (ffmpeg-n5.1-latest-win32-gpl-shared-5.1.zip) from the above site.
-
Create an install target folder (e.g. C:\ffmpeg) and set an environment variable
KVS_FFMPEG_DIR
to the target folder as follows:
Variable | Value |
---|---|
KVS_FFMPEG_DIR | C:\ffmpeg |
-
Copy the folders of include and lib included in the downloaded file to the target folder.
-
Copy all of DLL files (*.dll) in the bin folder to the following folder.
Files | Folder |
---|---|
avcodec-59.dll avdevice-59.dll avfilter-8.dll avformat-59.dll avutil-57.dll postproc-56.dll swresample-4.dll swscale-6.dll |
|