Skip to content

Commit 3ac5fad

Browse files
committed
Add the additional libraries we want for Descript based off of change 6ceca48
1 parent e87b40c commit 3ac5fad

File tree

2 files changed

+146
-1
lines changed

2 files changed

+146
-1
lines changed

build-ffmpeg

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,6 +1050,101 @@ if [[ "$OSTYPE" == "linux-gnu" ]]; then
10501050
CONFIGURE_OPTIONS+=("--enable-amf")
10511051
fi
10521052

1053+
1054+
##
1055+
## Descript Additions
1056+
##
1057+
1058+
if $SHARED_LIBRARIES; then
1059+
if build "twolame" "0.4.0"; then
1060+
download "https://downloads.sourceforge.net/twolame/twolame-0.4.0.tar.gz"
1061+
execute ./configure --prefix="${WORKSPACE}" --enable-shared --disable-static
1062+
execute make -j $MJOBS
1063+
execute make install
1064+
1065+
build_done "twolame" "0.4.0"
1066+
fi
1067+
CONFIGURE_OPTIONS+=("--enable-libtwolame")
1068+
1069+
1070+
if build "shine" "3.1.1"; then
1071+
download "https://github.com/toots/shine/archive/3.1.1.tar.gz" "shine-3.1.1.tar.gz"
1072+
execute autoreconf -i
1073+
execute ./configure --prefix="${WORKSPACE}" --enable-shared --disable-static
1074+
execute make -j $MJOBS
1075+
execute make install
1076+
1077+
build_done "shine" "3.1.1"
1078+
fi
1079+
CONFIGURE_OPTIONS+=("--enable-libshine")
1080+
1081+
1082+
if build "soxr" "0.1.3"; then
1083+
download "http://ftp.debian.org/debian/pool/main/libs/libsoxr/libsoxr_0.1.3.orig.tar.xz" "soxr-0.1.3.tar.xz"
1084+
make_dir build
1085+
cd build || exit
1086+
execute cmake .. -DWITH_OPENMP:BOOL=OFF -Wno-dev -DCMAKE_INSTALL_PREFIX="${WORKSPACE}" -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS:BOOL=ON
1087+
execute make -j $MJOBS
1088+
execute make install
1089+
1090+
build_done "soxr" "0.1.3"
1091+
fi
1092+
CONFIGURE_OPTIONS+=("--enable-libsoxr")
1093+
1094+
1095+
if build "speex" "1.2.0"; then
1096+
download "http://downloads.us.xiph.org/releases/speex/speex-1.2.0.tar.gz"
1097+
execute ./configure --prefix="${WORKSPACE}" --enable-shared --disable-static
1098+
execute make -j $MJOBS
1099+
execute make install
1100+
1101+
build_done "speex" "1.2.0"
1102+
fi
1103+
CONFIGURE_OPTIONS+=("--enable-libspeex")
1104+
1105+
1106+
if build "openjpeg" "2.3.1"; then
1107+
download "https://github.com/uclouvain/openjpeg/archive/v2.3.1.tar.gz" "openjpeg-v2.3.1.tar.gz"
1108+
make_dir build
1109+
cd build || exit
1110+
execute cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="${WORKSPACE}" -DBUILD_SHARED_LIBS:bool=on
1111+
execute make -j $MJOBS
1112+
execute make install
1113+
1114+
build_done "openjpeg" "2.3.1"
1115+
fi
1116+
CONFIGURE_OPTIONS+=("--enable-libopenjpeg")
1117+
1118+
1119+
if build "snappy" "1.1.8"; then
1120+
download "https://github.com/google/snappy/archive/1.1.8.tar.gz"
1121+
make_dir build
1122+
cd build || exit
1123+
execute cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="${WORKSPACE}" -DBUILD_SHARED_LIBS:bool=on
1124+
execute make -j $MJOBS
1125+
1126+
#if [[ "$OSTYPE" == "darwin"* ]]; then
1127+
# execute install_name_tool -id "${WORKSPACE}/lib/libsnappy.1.dylib" libsnappy.1.dylib
1128+
#fi
1129+
1130+
execute make install
1131+
1132+
build_done "snappy" "1.1.8"
1133+
fi
1134+
CONFIGURE_OPTIONS+=("--enable-libsnappy")
1135+
1136+
1137+
if build "xz" "5.2.5"; then
1138+
download "https://tukaani.org/xz/xz-5.2.5.tar.gz"
1139+
execute ./configure --prefix="${WORKSPACE}" --enable-shared --disable-static
1140+
execute make -j $MJOBS
1141+
execute make install
1142+
1143+
build_done "xz" "5.2.5"
1144+
fi
1145+
1146+
fi
1147+
10531148
##
10541149
## FFmpeg
10551150
##

descript/README.md

Lines changed: 51 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,54 @@ Known issues:
4343

4444
## Clients
4545
- This build is consumed by Descript's Beamcoder fork
46-
- https://github.com/descriptinc/beamcoder
46+
- https://github.com/descriptinc/beamcoder
47+
48+
## Previous Documentation of targeted differences (prior to `arm64` port)
49+
- ❌ don't need
50+
- ✅ already in ffmpeg-build-script build
51+
- 🕒 need to add to ffmpeg-build-script
52+
53+
Target (`evermeet.cx` static build)
54+
- `--cc=/usr/bin/clang`
55+
- `--prefix=/opt/ffmpeg`
56+
- `--extra-version=tessus`
57+
-`--enable-avisynth` - non-linear editing
58+
-`--enable-fontconfig`
59+
-`--enable-gpl`
60+
-`--enable-libaom`
61+
-`--enable-libass`
62+
-`--enable-libbluray` - bluray playback
63+
- 🕒✅ `--enable-libdav1d`
64+
-`--enable-libfreetype` - text rendering
65+
-`--enable-libgsm` - GSM audio
66+
-`--enable-libmodplug` - midi/instrument support (https://github.com/Konstanty/libmodplug)
67+
-`--enable-libmp3lame`
68+
-`--enable-libmysofa` - spatial audio
69+
-`--enable-libopencore-amrnb`
70+
-`--enable-libopencore-amrwb`
71+
- 🕒✅ `--enable-libopenh264`
72+
- 🕒✅ `--enable-libopenjpeg`
73+
-`--enable-libopus`
74+
-`--enable-librubberband` - time stretching
75+
- 🕒✅ `--enable-libshine` - mp3 encoder
76+
- 🕒✅ `--enable-libsnappy` - compression/decompression
77+
- 🕒✅ `--enable-libsoxr` - resampling
78+
- 🕒✅ `--enable-libspeex` - speex audio file format
79+
-`--enable-libtheora`
80+
- 🕒✅ `--enable-libtwolame` - mpeg2
81+
-`--enable-libvidstab`
82+
-`--enable-libvmaf` - perceptual video quality metric
83+
-`--enable-libvo-amrwbenc` - VisualOn AMR-WB encoder library
84+
-`--enable-libvorbis`
85+
-`--enable-libvpx`
86+
-`--enable-libwebp`
87+
-`--enable-libx264`
88+
-`--enable-libx265`
89+
-`--enable-libxavs` - AV standard of China
90+
-`--enable-libxvid`
91+
- 🕒✅ `--enable-libzimg` - Scaling, colorspace conversion, and dithering library
92+
-`--enable-libzmq` - ZeroMQ Support To Let Multiple Clients Connect To A Single Instance (streaming)
93+
-`--enable-libzvbi` - capture and decode VBI (vertical blanking interval) data
94+
-`--enable-version3`
95+
- `--pkg-config-flags=--static`
96+
- `--disable-ffplay`

0 commit comments

Comments
 (0)