Skip to content
/ sffmpeg Public
forked from pyke369/sffmpeg

Full-featured static FFmpeg build helper

Notifications You must be signed in to change notification settings

pdiaz/sffmpeg

 
 

Repository files navigation

Static FFmpeg Build

Build Status

sffmpeg is a simple cmake-based full-featured FFmpeg build helper.

It currently works on Linux, OpenBSD, FreeBSD, and MacOSX. It has been tested the most heavily on Linux/x86_64 (Ubuntu 14.04). The helper will grab the latest versions of most FFmpeg dependencies, providing a way to effectively build, test and compare multiple builds of FFmpeg on the same host.

Requirements

sffmpeg requires:

  • a POSIX-compliant system (virtually any system today).
  • a recent version of gcc.
  • a recent version of cmake (2.8.8+, with proper git and mercurial bindings).
  • the autoconf and libtool utilities.
  • the pkg-config utility.

Usage

Just type the following commands at the shell prompt:

$ git clone https://github.com/pyke369/sffmpeg
$ cd sffmpeg
$ make

Then go grab a coffee (or maybe two). The helper will download and compile all FFmpeg dependencies for you. Once done, you should get a FFmpeg binary in the build/bin directory (with all dependencies statically linked-in).

ffmpeg version 3.0 Copyright (c) 2000-2016 the FFmpeg developers
  libavutil      55. 17.103 / 55. 17.103
  libavcodec     57. 24.102 / 57. 24.102
  libavformat    57. 25.100 / 57. 25.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 31.100 /  6. 31.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'

From there, you may use the binary immediately or build a Debian package for later deployment (see below).

Packaging

(requires devscripts package)

You may optionally build a Debian package by typing the following command at the shell prompt:

$ make deb

The ffmpeg, ffprobe and frmxtract binaries will be installed by the package in the /usr/bin directory.

$ sudo dpkg -i sffmpeg_3.0.1_amd64.deb Selecting previously unselected package sffmpeg. Unpacking sffmpeg (from sffmpeg_3.0.1_amd64.deb) ... Setting up sffmpeg (3.0.1) ...

Dockerfile builder

This Docker image will build a static version of ffmpeg and ffprobe using github.com/pyke369/sffmpeg.

The binaries are Linux binaries and will be stored in /sffmpeg/build/bin.

You must mount this directory to be get the binaries.

Usage

The first step is to create a directory for the static binaries:

$ mkdir ffmpeg-bin

Then you can start the build process:

$ ./build.sh

When the container will exit, you should have your Linux binaries in the ffmpeg-bin directory.

About

Full-featured static FFmpeg build helper

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CMake 92.8%
  • Shell 5.2%
  • Makefile 2.0%