Skip to content

cj-praveen/ffmpeg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

FFmpeg

This script is made to compile FFmpeg with common codecs on Linux and Mac OSX.

Result

This repository builds FFmpeg and FFprobe for Mac OSX and Linux using

  • build tools
  • video codecs
    • aom for AV1 de-/encoding
    • openh264 for H.264 de-/encoding
    • x264 for H.264 encoding
    • x265 for H.265/HEVC encoding
    • vpx for VP8/VP9 de-/encoding
  • audio codecs
    • LAME for MP3 encoding
    • opus for Opus de-/encoding

To get a full list of all formats and codecs that are supported just execute

./ffmpeg -formats
./ffmpeg -codecs

Requirements

There are just a few dependencies to other tools. Most of the software is compiled or downloaded during script execution. Also most of the tools should be already available on the system by default.

Required

  • c and c++ compiler like AppleClang (included in Xcode) or gcc (on Linux)
  • curl for downloading files
  • make

Optional

  • nproc (on linux) or sysctl (on Mac OSX) for multicore compilation

Execution

To run this script simply execute the build.sh script.

./build.sh

Folder Structure

All files that are downloaded and generated through this script are placed in the current working directory. The recommendation is to use an empty folder for this.

mkdir ffmpeg-compile
cd ffmpeg-compile

Now execute the script using:

../path/to/repository/build.sh

After the execution a new folder called "out" exists. It contains the compiled FFmpeg binary (in the bin sub-folder). The ffmpeg-success.zip contains also all binary files of FFmpeg.

Build failed?

Check the detailed logfiles in the working directory. Each build step has its own file starting with "build-*".

If the build of ffmpeg failes during the configuration phase (e.g. because it doesn't find one codec) check also the log file in ffmpeg/ffmpeg-*/ffbuild/config.log.

About

FFmpeg for macOS (Apple Silicon)

Topics

Resources

Stars

Watchers

Forks

Languages

  • Shell 100.0%