Skip to content

Latest commit

 

History

History

SupportFFmpeg

SupportFFmpeg

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.

Prerequisite

To compile the SupportFFmpeg, the FFmpeg needs to be installed.

Linux

On Linux, the FFmpeg can be installed from a terminal as follows.

$ sudo apt-get install ffmpeg

Mac

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)

Windows

For Windows, the FFMPEG binary can be downloaded from the following site.

FFMPEG - FFmpeg-Builds-Win32

  • 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.

  1. Donwload the FFMPEG of version 5 (ffmpeg-n5.1-latest-win32-gpl-shared-5.1.zip) from the above site.

  2. 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
  1. Copy the folders of include and lib included in the downloaded file to the target folder.

  2. 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
  • Windows 32bit
    C:\Windows\System32
  • Windows 64bit
    C:\Windows\SysWOW64