Skip to content

Commit d08a78a

Browse files
authored
Add libplacebo
1 parent 849c04c commit d08a78a

File tree

4 files changed

+41
-15
lines changed

4 files changed

+41
-15
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Fast cross-compile ffmpeg for Windows with MinGW on Linux and Cygwin to produce
33

44
**Enabled Features**
55

6-
amf aom ass/ssa avisynth bzip2 dav1d decklink fdk-aac fontconfig freetype frei0r fribidi harfbuzz lame mfx/qsv nvenc/nvdec ogg openssl opus png rav1e rubberband sdl sofalizer soxr srt svt-av1 theora vmaf vorbis vpl vpx vulkan webp x264 x265(8/10/12-bit) xml2 zlib
6+
amf aom ass/ssa avisynth bzip2 dav1d decklink fdk-aac fontconfig freetype frei0r fribidi harfbuzz lame mfx/qsv nvenc/nvdec ogg openssl opus placebo png rubberband sdl sofalizer soxr srt svt-av1 theora vmaf vorbis vpx webp x264 x265(8/10/12-bit) xml2 zlib
77

88
**Package Requirements**
99

ffmpeg-cxc-build-hints

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#-------------------------------------------------
2-
#ffmpeg-cxc-build-hints - 2025-05-08 working build
2+
#ffmpeg-cxc-build-hints - 2025-05-23 working build
33
#-------------------------------------------------
44

55
#place this file in the directory specified by the script's ROOT_PATH or
@@ -66,6 +66,7 @@ mfx disable
6666
#ogg url file://~/src/ogg
6767
#openssl url file://~/src/openssl
6868
#opus url file://~/src/opus
69+
#placebo url file://~/src/placebo
6970
#png url file://~/src/png
7071
#rav1e url file://~/src/rav1e
7172
#rubberband url file://~/src/rubberband
@@ -92,15 +93,15 @@ mfx disable
9293
#------------------------
9394
#source fetch_method revision_id
9495
amf git d7311e30a53b7d36fb401d2efa3b04fe5d942e28
95-
aom git 4c983381cd254becfb17435cdeecfdc56c982e37
96+
aom git eecb55e22a7dc6731cfb6273fbebe7426a10cb37
9697
ass git 695509365f152bd28720a0c0e036d46836ee9345
97-
avisynth git 7bbd0a6392115402cc57b437d27b64a497815f7e
98+
avisynth git c506611e5ed0fbe97b24ee898cabafa178b4687a
9899
bzip2 git fbc4b11da543753b3b803e5546f56e26ec90c2a7
99100
dav1d git 8d956180934f16244bdb58b39175824775125e55
100101
decklink git 23194d695a3ae4aca7bc6c2f16dd6e7325a41c27
101102
dlfcn git 8bfddb5aa345ce10ba98e925acbc7bfb53639679
102103
fdk-aac git 2ef9a141c40bf254bde7d22c197c615db5b265ed
103-
ffmpeg git 1b643e3f65d75a4e6a25986466254bdd4fc1a01a
104+
ffmpeg git f414038779217034b4d062d538df3e0d3ca48343
104105
fftw3 wget fftw-3.3.10.tar.gz
105106
fontconfig git 3454d29ef0761978897de5f28e388e5b0a3489f4
106107
freetype git f35bb7595462af6588c59a866b354a72e4f4be4b
@@ -121,6 +122,7 @@ ogg git fa80aae9d50096160f2b56ada35527d7aee3f746
121122
openssl git e04bd3433fd84e1861bf258ea37928d9845e6a86
122123
opus git 08bcc6e46227fca01aa3de3f3512f8b692d8d36b
123124
png git b4800bae3379f1abf82359703c28e727b5df4135
125+
placebo git 3188549fba13bbdf3a5a98de2a38c2e71f04e21e
124126
#commit below is for rav1e 0.8.x, head may not build/work as expected
125127
rav1e git cda12985b9bebd2f4d940ac5d32c945b78752e5b
126128
rubberband hg 6fca9f344e6d
@@ -141,7 +143,7 @@ vpx git e922e894bd44017f091e19b8f3bbe97e31e42657
141143
vulkan-headers git 9c77de5c3dd216f28e407eec65ed9c0a296c1f74
142144
webp git eb3ff781599e311cc27f1d34c6ba8953cf8d7e5b
143145
x264 git 32c3b801191522961102d4bea292cdb61068d0dd
144-
x265 git f8be4634f6db0b67d149552386559095a840ccf2
146+
x265 git 78e5ac35c13c5cbccc5933083edceb0d3eaeaa21
145147
xml2 git 38ea8fa9dea1ff4777c17581350795a3691ee88a
146148
zlib git 5a82f71ed1dfc0bec044d9702463dbdf84ea3b71
147149

ffmpeg-cxc-build-hints-slim

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#------------------------------------------------------
2-
#ffmpeg-cxc-build-hints-slim - 2025-05-08 working build
2+
#ffmpeg-cxc-build-hints-slim - 2025-05-23 working build
33
#------------------------------------------------------
44

55
#place this file in the directory specified by the script's ROOT_PATH or
@@ -57,7 +57,6 @@ svt-av1 disable
5757
theora disable
5858
vmaf disable
5959
vpx disable
60-
vulkan-headers disable
6160
webp disable
6261
xml2 disable
6362

@@ -71,10 +70,12 @@ ogg enable
7170
openssl enable
7271
openssl make 1
7372
opus enable
73+
placebo enable
7474
sdl enable
7575
soxr enable
7676
vorbis enable
7777
vpl enable
78+
vulkan-headers enable
7879
x264 enable
7980
x265 enable
8081
zlib enable
@@ -123,10 +124,12 @@ zlib enable
123124
#ogg url file://~/src/ogg
124125
#openssl url file://~/src/openssl
125126
#opus url file://~/src/opus
127+
#placebo url file://~/src/placebo
126128
#sdl url file://~/src/sdl
127129
#soxr url file://~/src/soxr
128130
#vorbis url file://~/src/vorbis
129131
#vpl url file://~/src/vpl
132+
#vulkan-headers url file://~/src/vulkan-headers
130133
#x264 url file://~/src/x264
131134
#x265 url file://~/src/x265
132135
#zlib url file://~/src/zlib
@@ -136,15 +139,15 @@ zlib enable
136139
#------------------------
137140
#source fetch_method revision_id
138141
amf git d7311e30a53b7d36fb401d2efa3b04fe5d942e28
139-
aom git 4c983381cd254becfb17435cdeecfdc56c982e37
142+
aom git eecb55e22a7dc6731cfb6273fbebe7426a10cb37
140143
ass git 695509365f152bd28720a0c0e036d46836ee9345
141-
avisynth git 7bbd0a6392115402cc57b437d27b64a497815f7e
144+
avisynth git c506611e5ed0fbe97b24ee898cabafa178b4687a
142145
bzip2 git fbc4b11da543753b3b803e5546f56e26ec90c2a7
143146
dav1d git 8d956180934f16244bdb58b39175824775125e55
144147
decklink git 23194d695a3ae4aca7bc6c2f16dd6e7325a41c27
145148
dlfcn git 8bfddb5aa345ce10ba98e925acbc7bfb53639679
146149
fdk-aac git 2ef9a141c40bf254bde7d22c197c615db5b265ed
147-
ffmpeg git 1b643e3f65d75a4e6a25986466254bdd4fc1a01a
150+
ffmpeg git f414038779217034b4d062d538df3e0d3ca48343
148151
fftw3 wget fftw-3.3.10.tar.gz
149152
fontconfig git 3454d29ef0761978897de5f28e388e5b0a3489f4
150153
freetype git f35bb7595462af6588c59a866b354a72e4f4be4b
@@ -165,6 +168,7 @@ ogg git fa80aae9d50096160f2b56ada35527d7aee3f746
165168
openssl git e04bd3433fd84e1861bf258ea37928d9845e6a86
166169
opus git 08bcc6e46227fca01aa3de3f3512f8b692d8d36b
167170
png git b4800bae3379f1abf82359703c28e727b5df4135
171+
placebo git 3188549fba13bbdf3a5a98de2a38c2e71f04e21e
168172
#commit below is for rav1e 0.8.x, head may not build/work as expected
169173
rav1e git cda12985b9bebd2f4d940ac5d32c945b78752e5b
170174
rubberband hg 6fca9f344e6d
@@ -185,7 +189,7 @@ vpx git e922e894bd44017f091e19b8f3bbe97e31e42657
185189
vulkan-headers git 9c77de5c3dd216f28e407eec65ed9c0a296c1f74
186190
webp git eb3ff781599e311cc27f1d34c6ba8953cf8d7e5b
187191
x264 git 32c3b801191522961102d4bea292cdb61068d0dd
188-
x265 git f8be4634f6db0b67d149552386559095a840ccf2
192+
x265 git 78e5ac35c13c5cbccc5933083edceb0d3eaeaa21
189193
xml2 git 38ea8fa9dea1ff4777c17581350795a3691ee88a
190194
zlib git 5a82f71ed1dfc0bec044d9702463dbdf84ea3b71
191195

ffmpeg-cxc-mingw64

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
SCRIPT_VERSION="1.9.2"
3+
SCRIPT_VERSION="1.9.3"
44
THIS="ffmpeg-cxc-mingw64"
55

66
#build paths
@@ -42,7 +42,7 @@ CXC_SOURCE_LIST=\
4242
( \
4343
"amf" "aom" "ass" "avisynth" "bzip2" "dav1d" "decklink" "dlfcn" "fdk-aac" "ffmpeg" \
4444
"fftw3" "fontconfig" "freetype" "frei0r" "fribidi" "harfbuzz" "ladspa" \
45-
"lame" "mfx" "nv-codec-headers" "ogg" "openssl" "opus" "png" "rav1e" \
45+
"lame" "mfx" "nv-codec-headers" "ogg" "openssl" "opus" "placebo" "png" "rav1e" \
4646
"rubberband" "samplerate" "sdl" "sofa" "soxr" "srt" "svt-av1" "theora" "vmaf" \
4747
"vorbis" "vpl" "vpx" "vulkan-headers" "webp" "xml2" "x264" "x265" "zlib" \
4848
)
@@ -143,7 +143,7 @@ fetch_source() {
143143
git)
144144
if [ "$scheme" != "file://" ]
145145
then
146-
git clone "$url" "$SRC_NAME"
146+
git clone --recursive "$url" "$SRC_NAME"
147147
status=$?
148148
fi
149149

@@ -446,6 +446,7 @@ then
446446
echo "c = 'x86_64-w64-mingw32-gcc'" >> $ROOT_PATH/$SRC_PATH/cross.meson
447447
echo "cpp = 'x86_64-w64-mingw32-g++'" >> $ROOT_PATH/$SRC_PATH/cross.meson
448448
echo "windres = 'x86_64-w64-mingw32-windres'" >> $ROOT_PATH/$SRC_PATH/cross.meson
449+
echo "dlltool = 'x86_64-w64-mingw32-dlltool'" >> $ROOT_PATH/$SRC_PATH/cross.meson
449450
echo "strip = 'x86_64-w64-mingw32-strip'" >> $ROOT_PATH/$SRC_PATH/cross.meson
450451
echo "pkgconfig = 'pkg-config'" >> $ROOT_PATH/$SRC_PATH/cross.meson
451452
echo "[built-in options]" >> $ROOT_PATH/$SRC_PATH/cross.meson
@@ -1087,6 +1088,25 @@ then
10871088
fi
10881089
fi
10891090

1091+
#placebo
1092+
set_source "placebo" "git" "https://code.videolan.org/videolan/libplacebo.git" "libplacebo"
1093+
if [ "${!SRC_ENABLE}" -ne 0 ]
1094+
then
1095+
fetch_source
1096+
if [ "$BUILD" -ne 0 ]
1097+
then
1098+
mkdir "${SRC_NAME}_build"
1099+
cd "${SRC_NAME}_build"
1100+
meson setup --prefix="$ROOT_PATH/$OUT_PATH" --libdir="lib" -Ddefault_library=static --buildtype=release --strip --cross-file="$ROOT_PATH/$SRC_PATH/cross.meson" "../$SRC_NAME"
1101+
[ $? -eq 0 ] || build_die "$THIS: configure stage failed -> $SRC_NAME"
1102+
build_meson $CXC_JOBS
1103+
if [[ "$CXC_FFMPEG_EXTRA_LIBS" != *"lstdc++"* ]]
1104+
then
1105+
CXC_FFMPEG_EXTRA_LIBS="$CXC_FFMPEG_EXTRA_LIBS -lstdc++"
1106+
fi
1107+
fi
1108+
fi
1109+
10901110
#vulkan
10911111
set_source "vulkan-headers" "git" "https://github.com/KhronosGroup/Vulkan-Headers.git" "vulkan"
10921112
if [ "${!SRC_ENABLE}" -ne 0 ]

0 commit comments

Comments
 (0)