sffmpeg
is a simple cmake-based full-featured FFmpeg static build helper.
It currently works on Linux, OpenBSD, FreeBSD, and MacOSX. It has been tested the most heavily on Linux/x86_64 (Ubuntu 11.04). The helper will grab the latest versions of most FFmpeg dependencies, providing a way to effectively build, test and compare multiple static builds of FFmpeg on the same host.
sffmpeg
requires:
- a POSIX-compliant system (virtually any system today).
- a working C compiler (preferably gcc) and assembler (preferably yasm).
- a recent cmake version (2.8+).
- the pkg-config utility.
Just type the following commands at the shell prompt:
$ git clone [email protected]/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 static system-independent FFmpeg binary in the build/bin
directory.
$ ./build/bin/ffmpeg
ffmpeg version git-2011-09-16-7297e76, Copyright (c) 2000-2011 the FFmpeg developers
built on Sep 16 2011 11:42:20 with gcc 4.5.2
libavutil 51. 16. 0 / 51. 16. 0
libavcodec 53. 15. 0 / 53. 15. 0
libavformat 53. 12. 0 / 53. 12. 0
libavfilter 2. 40. 0 / 2. 40. 0
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 51. 2. 0 / 51. 2. 0
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
$ ldd ./build/bin/ffmpeg
not a dynamic executable
From there, you may use the binary immediately or build a Debian package for later deployment (see below).
You may optionally build a Debian package by typing the following command at the shell prompt:
$ make deb
All binaries and support files will be installed by the package in the /usr/local
directory.
$ sudo dpkg -i sffmpeg_1.0.0_amd64.deb
Selecting previously deselected package sffmpeg.
(Reading database ... 60348 files and directories currently installed.)
Unpacking sffmpeg (from sffmpeg_1.0.0_amd64.deb) ...
Setting up sffmpeg (1.0.0) ...