Skip to content

Commit d14110d

Browse files
committed
Add buildconf outputs. Rework README
1 parent 4838cb0 commit d14110d

File tree

3 files changed

+163
-67
lines changed

3 files changed

+163
-67
lines changed

5.1.1_buildconf.md

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
## Build settings and library versions (5.1.1) (FreeBSD 13.1 AMD64) (EXPERIMENTAL Please test)
2+
3+
| library | version |
4+
| --- | --- |
5+
| libavutil | 57. 28.100 / 57. 28.100 |
6+
| libavcodec | 59. 37.100 / 59. 37.100
7+
| libavformat | 59. 27.100 / 59. 27.100
8+
| libavdevice | 59.7.100 / 59.7.100
9+
| libavfilter | 8. 44.100 / 8. 44.100
10+
| libswscale | 6. 7.100 / 6. 7.100
11+
| libswresample | 4. 7.100 / 4. 7.100
12+
| libpostproc | 56. 6.100 / 56. 6.100
13+
14+
configuration:
15+
--enable-gpl
16+
--enable-libdav1d
17+
--enable-libsvtav1
18+
--enable-librav1e
19+
--enable-libx264
20+
--enable-libx265
21+
--enable-libxvid
22+
--enable-libvidstab
23+
--enable-libaom
24+
--enable-libzimg
25+
--enable-libopencore_amrnb
26+
--enable-libopencore_amrwb
27+
--enable-libmp3lame
28+
--enable-libopus
29+
--enable-libvorbis
30+
--enable-lv2
31+
--enable-libtheora
32+
--enable-libwebp
33+
--enable-libsrt
34+
--cc=cc
35+
--cxx=cpp
36+
--disable-debug
37+
--disable-doc
38+
--disable-shared
39+
--enable-pthreads
40+
--enable-static
41+
--enable-small
42+
--enable-version3
43+
--extra-cflags='-static -I/root/ffmpeg-build-script/workspace/include -I/root/ffmpeg-build-script/workspace/include/lilv-0'
44+
--extra-ldexeflags=-static
45+
--extra-ldflags=-L/root/ffmpeg-build-script/workspace/lib
46+
--extra-libs='-static -ldl -lpthread -lm -lmd -lz'
47+
--pkgconfigdir=/root/ffmpeg-build-script/workspace/lib/pkgconfig
48+
--pkg-config-flags=--static
49+
--prefix=/root/ffmpeg-build-script/workspace
50+
--extra-version=5.1.1
51+
52+
Test failures (if any):
53+
```
54+
--- ./tests/ref/fate/source 2022-08-31 10:10:03.000000000 -0600
55+
+++ tests/data/fate/source 2022-09-13 21:29:26.489491438 -0600
56+
@@ -1,26 +1,4 @@
57+
Files without standard license headers:
58+
-libavcodec/file_open.c
59+
-libavcodec/ilbcdata.h
60+
-libavcodec/ilbcdec.c
61+
-libavcodec/interplayacm.c
62+
-libavcodec/log2_tab.c
63+
-libavcodec/reverse.c
64+
-libavdevice/file_open.c
65+
-libavdevice/reverse.c
66+
-libavfilter/af_arnndn.c
67+
-libavfilter/file_open.c
68+
-libavfilter/log2_tab.c
69+
-libavformat/file_open.c
70+
-libavformat/golomb_tab.c
71+
-libavformat/log2_tab.c
72+
-libswresample/log2_tab.c
73+
-libswscale/log2_tab.c
74+
-tools/uncoded_frame.c
75+
-tools/yuvcmp.c
76+
Headers without standard inclusion guards:
77+
-compat/djgpp/math.h
78+
-compat/float/float.h
79+
-compat/float/limits.h
80+
-tools/decode_simple.h
81+
Use of av_clip() where av_clip_uintp2() could be used:
82+
Use of av_clip() where av_clip_intp2() could be used:
83+
Test source failed. Look at tests/data/fate/source.err for details.
84+
```

5.1_buildconf.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
## Build settings and library versions (5.1) (FreeBSD 12.2 AMD64)
2+
3+
| library | version |
4+
| --- | --- |
5+
| libavutil | 57. 28.100 / 57. 28.100 |
6+
| libavcodec | 59. 37.100 / 59. 37.100
7+
| libavformat | 59. 27.100 / 59. 27.100
8+
| libavdevice | 59.7.100 / 59.7.100
9+
| libavfilter | 8. 44.100 / 8. 44.100
10+
| libswscale | 6. 7.100 / 6. 7.100
11+
| libswresample | 4. 7.100 / 4. 7.100
12+
| libpostproc | 56. 6.100 / 56. 6.100
13+
14+
configuration:
15+
--enable-static
16+
--disable-shared
17+
--pkg-config-flags=--static
18+
--extra-libs='-static -L/usr/lib -L/root/outputs/lib'
19+
--extra-cflags='--static -I/root/outputs/include'
20+
--cc=/usr/bin/clang
21+
--cxx=/usr/bin/clang-cpp
22+
--prefix=/usr/local
23+
--extra-ldflags='-L/usr/local/lib -L/root/outputs/lib -L/usr/local/lib/gcc9/ -I/usr/local/include -I/root/outputs/include -lpthread -lm -lstdc++ -lmd -lintl -lz'
24+
--disable-ffplay
25+
--enable-gpl
26+
--enable-libfreetype
27+
--enable-libx264
28+
--enable-libx265
29+
--enable-libass
30+
--enable-libmp3lame
31+
--enable-libopus
32+
--enable-libvpx
33+
--enable-libsoxr
34+
--enable-libvidstab
35+
--enable-libopenjpeg
36+
--enable-libzimg
37+
--enable-libwebp
38+
--enable-libvorbis
39+
--enable-libspeex
40+
--enable-libxvid
41+
--enable-libvmaf
42+
--enable-libzmq
43+
--enable-libaom
44+
--enable-libzvbi
45+
--enable-libdav1d
46+
--enable-libsnappy
47+
--enable-libmodplug
48+
--enable-libtheora
49+
--enable-libtwolame
50+
--enable-libmysofa
51+
--enable-libbluray
52+
--enable-libgme
53+
--enable-libgsm
54+
--enable-librubberband
55+
--enable-fontconfig
56+
--enable-runtime-cpudetect
57+
--enable-version3
58+
--enable-libopencore-amrnb
59+
--enable-libopencore-amrwb
60+
--enable-libopenh264
61+
--arch=x86_64
62+
63+
Test failures (if any):

README.md

Lines changed: 16 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,81 +1,30 @@
1-
# Statically Linked FFMPEG for FreeBSD
1+
## Statically Linked FFmpeg for FreeBSD
22

33
Patches are made from [these](https://www.freshports.org/multimedia/ffmpeg/)
44

55
Build hints from [here](https://github.com/zimbatm/ffmpeg-static) and [here](https://github.com/markus-perl/ffmpeg-build-script)
66

7-
# WHY?! Statically Linking is generally a Bad Idea(tm)!
8-
Yes, but node packages *REALLY* like statically linked FFMPEG and FreeBSD is pretty decent with symbol versioning so we can have this.
7+
## Why? Statically Linking is generally a Bad Idea(tm)!
8+
Yes, but node packages *really* like statically linked FFmpeg and FreeBSD is pretty decent with symbol versioning so we can have this.
9+
There is no FFmpeg 5+ on FreeBSD ports right now either
910

10-
## Build settings and library versions (5.1) (FreeBSD 12.2 AMD64)
11-
--enable-static --disable-shared --disable-ffplay --enable-gpl --enable-libfreetype --enable-libx264 --enable-libx265 --enable-libass --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libsoxr --enable-libvidstab --enable-libopenjpeg --enable-libzimg --enable-libwebp --enable-libvorbis --enable-libspeex --enable-libxvid --enable-libvmaf --enable-libzmq --enable-libaom --enable-libzvbi --enable-libdav1d --enable-libsnappy --enable-libmodplug --enable-libtheora --enable-libtwolame --enable-libmysofa --enable-libbluray --enable-libgme --enable-libgsm --enable-librubberband --enable-fontconfig --enable-runtime-cpudetect --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264
11+
## Updates
1212

13-
other libraries:
13+
This binary requires a large number of patches and rebuilds of components to function so it will lag behind any other FFmpeg-static binaries by quite a bit.
14+
If you want updates please **OPEN A TICKET** but keep in mind this is a rather low priority to me.
1415

15-
| library | version |
16-
| --- | --- |
17-
| libavutil | 57. 28.100 / 57. 28.100 |
18-
| libavcodec | 59. 37.100 / 59. 37.100
19-
| libavformat | 59. 27.100 / 59. 27.100
20-
| libavdevice | 59.7.100 / 59.7.100
21-
| libavfilter | 8. 44.100 / 8. 44.100
22-
| libswscale | 6. 7.100 / 6. 7.100
23-
| libswresample | 4. 7.100 / 4. 7.100
24-
| libpostproc | 56. 6.100 / 56. 6.100
25-
26-
not used:
27-
--enable-libvo-amrwbenc (very old, opencore likely better)
28-
29-
## Build settings and library versions (5.1.1) (FreeBSD 13.1 AMD64) (EXPERIMENTAL Please test)
30-
--enable-gpl --enable-libdav1d --enable-libsvtav1 --enable-librav1e --enable-libx264 --enable-libx265 --enable-libxvid --enable-libvidstab --enable-libaom --enable-libzimg --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-lv2 --enable-libtheora --enable-libwebp --enable-libsrt --cc=cc --cxx=cpp --disable-debug --disable-doc --disable-shared --enable-pthreads --enable-static --enable-small --enable-version3 --extra-cflags='-static -I/root/ffmpeg-build-script/workspace/include -I/root/ffmpeg-build-script/workspace/include/lilv-0' --extra-ldexeflags=-static --extra-ldflags=-L/root/ffmpeg-build-script/workspace/lib --extra-libs='-static -ldl -lpthread -lm -lmd -lz' --pkgconfigdir=/root/ffmpeg-build-script/workspace/lib/pkgconfig --pkg-config-flags=--static --prefix=/root/ffmpeg-build-script/workspace --extra-version=5.1.1
31-
32-
This has TEST FAILURES!
33-
```
34-
--- ./tests/ref/fate/source 2022-08-31 10:10:03.000000000 -0600
35-
+++ tests/data/fate/source 2022-09-13 21:29:26.489491438 -0600
36-
@@ -1,26 +1,4 @@
37-
Files without standard license headers:
38-
-libavcodec/file_open.c
39-
-libavcodec/ilbcdata.h
40-
-libavcodec/ilbcdec.c
41-
-libavcodec/interplayacm.c
42-
-libavcodec/log2_tab.c
43-
-libavcodec/reverse.c
44-
-libavdevice/file_open.c
45-
-libavdevice/reverse.c
46-
-libavfilter/af_arnndn.c
47-
-libavfilter/file_open.c
48-
-libavfilter/log2_tab.c
49-
-libavformat/file_open.c
50-
-libavformat/golomb_tab.c
51-
-libavformat/log2_tab.c
52-
-libswresample/log2_tab.c
53-
-libswscale/log2_tab.c
54-
-tools/uncoded_frame.c
55-
-tools/yuvcmp.c
56-
Headers without standard inclusion guards:
57-
-compat/djgpp/math.h
58-
-compat/float/float.h
59-
-compat/float/limits.h
60-
-tools/decode_simple.h
61-
Use of av_clip() where av_clip_uintp2() could be used:
62-
Use of av_clip() where av_clip_intp2() could be used:
63-
Test source failed. Look at tests/data/fate/source.err for details.
64-
```
65-
66-
# Updates
67-
68-
This binary requires a large number of patches and rebuilds of components to function so it will lag behind any other FFMPEG-static binaries by quite a bit. If you want updates please **OPEN A TICKET** but keep in mind this is a rather low priority to me.
69-
70-
# TODO
16+
## TODO
7117

7218
- Make this less painful to build if possible
19+
- Add support for HW accel
7320

74-
# Bugs
75-
76-
- It passes FATE but that does not mean it actually works
21+
## Bugs
7722

78-
# License(s)
23+
- 5.1 passes FATE
24+
- 5.1.1 has test failures
25+
- Please see X.X.X_buildconf.md for more details
7926

80-
- FFMPEG and components fall under GPLv3 AFAIK
27+
## License(s)
8128

29+
- FFmpeg and components fall under LGPL 2.1 and/or GPL2/GPL3
30+
- This is the final authority however https://www.ffmpeg.org/legal.html

0 commit comments

Comments
 (0)