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

lideen/sffmpeg

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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 static system-independent FFmpeg binary in the build/bin directory.

$ ./build/bin/ffmpeg
ffmpeg version 2.4 Copyright (c) 2000-2014 the FFmpeg developers
  built on Sep 16 2014 10:15:41 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
  libavutil      54.  7.100 / 54.  7.100
  libavcodec     56.  1.100 / 56.  1.100
  libavformat    56.  4.101 / 56.  4.101
  libavdevice    56.  0.100 / 56.  0.100
  libavfilter     5.  1.100 /  5.  1.100
  libswscale      3.  0.100 /  3.  0.100
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  0.100 / 53.  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'

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

Packaging

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

$ make deb

The ffmpeg and iffprobe static binaries will be installed by the package in the /usr/bin directory.

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

About

Full-featured static FFmpeg build helper

Resources

Stars

Watchers

Forks

Packages

No packages published