]> git.sesse.net Git - casparcg/blob - dependencies64/ffmpeg/ffmpeg-build-linux/README.md
[build] Added the modified build script based on an old version of https://github...
[casparcg] / dependencies64 / ffmpeg / ffmpeg-build-linux / README.md
1 FFmpeg static build
2 ===================
3
4 Three scripts to make a static build of ffmpeg with all the latest codecs (webm + h264).
5
6 Just follow the instructions below. Once you have the build dependencies,
7 just run ./build.sh, wait and you should get the ffmpeg binary in target/bin
8
9 Build dependencies
10 ------------------
11
12     # Debian & Ubuntu
13     $ apt-get install build-essential curl tar
14
15         # OS X
16         # install XCode, it can be found at http://developer.apple.com/
17         # (apple login needed)
18         # <FIXME???>
19
20 Build & "install"
21 -----------------
22
23     $ ./build.sh or build-ubuntu.sh
24     # ... wait ...
25     # binaries can be found in ./target/bin/
26
27 NOTE: If you're going to use the h264 presets, make sure to copy them along the binaries. For ease, you can put them in your home folder like this:
28
29     $ mkdir ~/.ffmpeg
30     $ cp ./target/share/ffmpeg/*.ffpreset ~/.ffmpeg
31
32 Debug
33 -----
34
35 On the top-level of the project, run:
36
37         $ . env.source
38         
39 You can then enter the source folders and make the compilation yourself
40
41         $ cd build/ffmpeg-*
42         $ ./configure --prefix=$TARGET_DIR #...
43         # ...
44
45 Remaining links
46 ---------------
47
48 I'm not sure it's a good idea to statically link those, but it probably
49 means the executable won't work across distributions or even across releases.
50
51     # On Ubuntu 10.04:
52     $ ldd ./target/bin/ffmpeg 
53         not a dynamic executable
54
55     # on OSX 10.6.4:
56     $ otool -L ffmpeg 
57         ffmpeg:
58                 /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.0)
59
60 TODO
61 ----
62
63  * Add some tests to check that video output is correctly generated
64    this would help upgrading the package without too much work
65  * OSX's xvidcore does not detect yasm correctly
66  * remove remaining libs
67