phracker / sffmpeg

Full-featured static FFmpeg build helper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

$ ./build/bin/ffmpeg
ffmpeg version 2.8.3 Copyright (c) 2000-2015 the FFmpeg developers
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 60.100 / 56. 60.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 40.101 /  5. 40.101
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.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 and iffprobe binaries will be installed by the package in the /usr/bin directory.

$ sudo dpkg -i sffmpeg_2.8.3_amd64.deb
Selecting previously unselected package sffmpeg.
Unpacking sffmpeg (from sffmpeg_2.8.3_amd64.deb) ...
Setting up sffmpeg (2.8.3) ...

About

Full-featured static FFmpeg build helper


Languages

Language:CMake 92.0%Language:Shell 6.2%Language:Makefile 1.7%