Skip to content

FFmpeg Installation

Abhishek Thakur edited this page Apr 25, 2020 · 39 revisions

VidGear Logo

Installing FFmpeg binaries for VidGear:

 

Table of content:

 

 

Linux FFmpeg Installation

The WriteGear API supports ffmpeg's Auto-Detection and Manual Configuration methods on a Linux machine.

A. Auto-Detection: (Recommended Approach)

  • If WriteGear API did not receive any input from the user on parameter custom_ffmpeg, then on Linux system, it tries to auto-detects the required FFmpeg Installed binaries through validation test that employs subprocess python module.

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

B. Manual Configuration:

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

  • Then, you can easily specify 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 of the WriteGear API.

  • Warning: ⚠️ If binaries were not found at the manually specified path, WriteGear will disable the Compression Mode!

 

 

Windows FFmpeg Installation

The WriteGear API supports ffmpeg's Auto-Installation and Manual Configuration methods on Windows systems only.

A. Auto-Installation: (Recommended Approach)

  • If WriteGear receives no input from the user on parameter custom_ffmpeg, then on Windows system, WriteGear auto-downloads & auto-installs the required FFmpeg Static Binaries according to your system requirements into the Temp directory(for e.g. C:\Temp) of your machine.

Important: ⚠️

  • The files downloaded to Temp directory (i.e. C:\TEMP), may get deleted if your machine shuts down or restarts.

  • You can also provide a custom save path for auto-downloading FFmpeg Static Binaries through -ffmpeg_download_path parameter.

  • If binaries were found at the specified path, WriteGear automatically skips the auto-installation step.

  • Warning::warning: If binaries fail to download or extract or validate the required FFmpeg binaries during auto-installation, WriteGear API will auto-disable the Compression Mode and switches to Non-Compression Mode!

B. Manual Configuration:

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

  • Then, you can easily provide 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 of the WriteGear API.

  • Warning: ⚠️ If binaries were not found at the manually specified path, WriteGear will disable the Compression Mode!

 

 

MacOS FFmpeg Installation

The WriteGear API supports ffmpeg's Auto-Detection and Manual Configuration methods on a macOS machine.

A. Auto-Detection: (Recommended Approach)

  • If WriteGear API did not receive any input from the user on parameter custom_ffmpeg, then on macOS system, it tries to auto-detects the required FFmpeg Installed binaries through validation test that employs subprocess python module.

  • Installation💡: You can easily install FFmpeg on your macOS machine by following this tutorial ➶

B. Manual Configuration:

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

  • Then, you can easily provide 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 of the WriteGear API.

  • Warning: ⚠️ If binaries were not found at the manually specified path, WriteGear will disable the Compression Mode!

 

Clone this wiki locally