Skip to content

FFmpeg Installation Doc

FFmpeg

⚠ DeFFcode APIs requires FFmpeg binaries to be installed for all of its core functionality.

You can following machine-specific instructions for its configuration/installation:

DeFFcode APIs will throw RuntimeError, if they failed to detect valid FFmpeg executables on your system.

Enable verbose (verbose=True) for debugging FFmpeg validation process.

Linux FFmpeg Installation

DeFFcode APIs supports Auto-Detection and Manual Configuration methods on a Linux OS machines:

A. Auto-Detection

This is a recommended approach on Linux Machines

If DeFFcode APIs do not receive any input from the user on custom_ffmpeg parameter, then they try to auto-detect the required FFmpeg installed binaries through a validation test that employs subprocess python module on the Linux OS systems.

You can install easily install official FFmpeg according to your Linux Distro by following this post ➶

B. Manual Configuration

  • Download: You can also manually download the latest Linux Static Binaries (based on your machine architecture) from the link below:

    Linux Static Binaries: http://johnvansickle.com/ffmpeg/

  • Assignment: Then, you can easily assign the custom path to the folder containing FFmpeg executables(for e.g 'ffmpeg/bin') or path of ffmpeg executable itself to the custom_ffmpeg parameter in the DeFFcode APIs.

    If binaries were not found at the manually specified path, DeFFcode APIs will throw RuntimeError!

 

 

Windows FFmpeg Installation

DeFFcode APIs supports Auto-Installation and Manual Configuration methods on Windows OS machines:

A. Auto-Installation

This is a recommended approach on Windows Machines

If DeFFcode APIs do not receive any input from the user on custom_ffmpeg parameter, then they try to auto-generate the required FFmpeg Static Binaries from our dedicated Github Server into the temporary directory(e.g. C:\Temp) of your machine on the Windows OS systems.

Active Internet connection is required while downloading required FFmpeg Static Binaries from our dedicated Github Server onto your Windows machine.

Important Information regarding Auto-Installation
  • The files downloaded to a temporary directory (e.g. C:\TEMP), may get erased if your machine shutdowns/restarts in some cases.

  • You can also provide a custom save path for auto-downloading FFmpeg Static Binaries through exclusive -ffmpeg_download_path attribute in Sourcer API.

    How to use -ffmpeg_download_path attribute in FFdecoder API?

    -ffmpeg_download_path is also available in FFdecoder API through the -custom_sourcer_params attribute of its ffparams dictionary parameter.

  • If binaries were found at the specified path, DeFFcode APIs automatically skips the Auto-Installation step.

  • If the required FFmpeg static binary fails to download, extract, or validate during Auto-Installation, then DeFFcode APIs will exit with RuntimeError!

B. Manual Configuration

  • Download: You can also manually download the latest Windows Static Binaries (based on your machine arch(x86/x64)) from the link below:

  • Assignment: Then, you can easily assign the custom path to the folder containing FFmpeg executables(for e.g 'C:/foo/Downloads/ffmpeg/bin') or path of ffmpeg.exe executable itself to the custom_ffmpeg parameter in the DeFFcode APIs.

    If binaries were not found at the manually specified path, DeFFcode APIs will throw RuntimeError!

 

 

MacOS FFmpeg Installation

DeFFcode APIs supports Auto-Detection and Manual Configuration methods on MacOS OS machines:

A. Auto-Detection

This is a recommended approach on MacOS Machines

If DeFFcode APIs do not receive any input from the user on custom_ffmpeg parameter, then they try to auto-detect the required FFmpeg installed binaries through a validation test that employs subprocess python module on the MacOS systems.

You can easily install FFmpeg on your MacOS machine by following this tutorial ➶

B. Manual Configuration

  • Download: You can also manually download the latest MacOS Static Binaries (only x64 Binaries) from the link below:

  • Assignment: Then, you can easily assign the custom path to the folder containing FFmpeg executables(for e.g 'ffmpeg/bin') or path of ffmpeg executable itself to the custom_ffmpeg parameter in the DeFFcode APIs.

    If binaries were not found at the manually specified path, DeFFcode APIs will throw RuntimeError!

 


Last update: August 10, 2022