Skip to content

Commit 7de1c1d

Browse files
AniLeoMegamouse
authored andcommitted
Bump to ffmpeg 8.1
1 parent 869377e commit 7de1c1d

95 files changed

Lines changed: 2644 additions & 4733 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
run: |
9393
(cd ${{ matrix.vcpkg-root }} && git fetch origin)
9494
(cd ${{ matrix.vcpkg-root }} && git reset --hard)
95-
(cd ${{ matrix.vcpkg-root }} && git checkout tags/2025.12.12)
95+
(cd ${{ matrix.vcpkg-root }} && git checkout tags/2026.04.27)
9696
(cd ${{ matrix.vcpkg-root }} && git apply --ignore-space-change --ignore-whitespace --3way ${{ github.workspace }}/ffmpeg.patch)
9797
9898
- name: Build ffmpeg

ffmpeg.patch

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,48 @@
11
diff --git a/ports/ffmpeg/portfile.cmake b/ports/ffmpeg/portfile.cmake
2-
index 519b343af0..7740bd7c5a 100644
2+
index 88598976fb..845f007c7d 100644
33
--- a/ports/ffmpeg/portfile.cmake
44
+++ b/ports/ffmpeg/portfile.cmake
5-
@@ -29,7 +29,20 @@ if (VCPKG_TARGET_ARCHITECTURE STREQUAL "x86" OR VCPKG_TARGET_ARCHITECTURE STREQU
6-
vcpkg_add_to_path("${NASM_EXE_PATH}")
7-
endif()
8-
9-
-set(OPTIONS "--enable-pic --disable-doc --enable-debug --enable-runtime-cpudetect --disable-autodetect")
10-
+set(OPTIONS "--enable-pic --disable-doc --enable-runtime-cpudetect --disable-autodetect")
11-
+
12-
+# Only enable what is used by Vita3K
13-
+string(APPEND OPTIONS " --disable-everything")
5+
@@ -32,6 +32,19 @@ endif()
6+
7+
set(OPTIONS "--enable-pic --disable-doc --enable-runtime-cpudetect --disable-autodetect")
8+
9+
+# Only enable what is used by RPCS3
10+
+string(APPEND OPTIONS " --disable-everything --disable-network")
1411
+string(APPEND OPTIONS " --enable-decoder=aac --enable-decoder=aac_latm --enable-decoder=atrac3 --enable-decoder=atrac3p --enable-decoder=atrac9 --enable-decoder=mp3 --enable-decoder=pcm_s16le --enable-decoder=pcm_s8")
1512
+string(APPEND OPTIONS " --enable-decoder=mov --enable-decoder=h264 --enable-decoder=mpeg4 --enable-decoder=mpeg2video --enable-decoder=mjpeg --enable-decoder=mjpegb")
16-
+string(APPEND OPTIONS " --enable-encoder=pcm_s16le")
17-
+string(APPEND OPTIONS " --enable-encoder=ffv1 --enable-encoder=mpeg4 --enable-encoder=mjpeg")
18-
+string(APPEND OPTIONS " --enable-muxer=avi")
13+
+string(APPEND OPTIONS " --enable-encoder=pcm_s16le --enable-encoder=mp3 --enable-encoder=ac3 --enable-encoder=aac")
14+
+string(APPEND OPTIONS " --enable-encoder=ffv1 --enable-encoder=mpeg4 --enable-encoder=mjpeg --enable-encoder=h264")
15+
+string(APPEND OPTIONS " --enable-muxer=avi --enable-muxer=h264 --enable-muxer=mjpeg --enable-muxer=mp4")
1916
+string(APPEND OPTIONS " --enable-demuxer=h264 --enable-demuxer=m4v --enable-demuxer=mp3 --enable-demuxer=mpegvideo --enable-demuxer=mpegps --enable-demuxer=mjpeg --enable-demuxer=mov --enable-demuxer=avi --enable-demuxer=aac --enable-demuxer=pmp --enable-demuxer=oma --enable-demuxer=pcm_s16le --enable-demuxer=pcm_s8 --enable-demuxer=wav")
2017
+string(APPEND OPTIONS " --enable-parser=h264 --enable-parser=mpeg4video --enable-parser=mpegaudio --enable-parser=mpegvideo --enable-parser=mjpeg --enable-parser=aac --enable-parser=aac_latm")
2118
+string(APPEND OPTIONS " --enable-protocol=file")
2219
+string(APPEND OPTIONS " --enable-bsf=mjpeg2jpeg")
2320
+string(APPEND OPTIONS " --enable-indev=dshow")
24-
21+
+
2522
if(VCPKG_TARGET_IS_MINGW)
2623
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
27-
@@ -61,7 +74,7 @@ endif()
28-
vcpkg_cmake_get_vars(cmake_vars_file)
29-
include("${cmake_vars_file}")
30-
if(VCPKG_DETECTED_MSVC)
31-
- string(APPEND OPTIONS " --disable-inline-asm") # clang-cl has inline assembly but this leads to undefined symbols.
32-
+ # string(APPEND OPTIONS " --disable-inline-asm") # clang-cl has inline assembly but this leads to undefined symbols.
33-
set(OPTIONS "--toolchain=msvc ${OPTIONS}")
34-
# This is required because ffmpeg depends upon optimizations to link correctly
35-
string(APPEND VCPKG_COMBINED_C_FLAGS_DEBUG " -O2")
36-
@@ -713,6 +726,11 @@ if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
24+
string(APPEND OPTIONS " --target-os=mingw32")
25+
@@ -425,11 +438,7 @@ if("openssl" IN_LIST FEATURES)
26+
set(OPTIONS "${OPTIONS} --enable-openssl")
27+
set(WITH_OPENSSL ON)
28+
else()
29+
- set(OPTIONS "${OPTIONS} --disable-openssl")
30+
- if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_UWP)
31+
- string(APPEND OPTIONS " --enable-schannel")
32+
- set(WITH_SCHANNEL ON)
33+
- endif()
34+
+ set(OPTIONS "${OPTIONS} --disable-openssl --disable-schannel")
35+
endif()
36+
37+
if("opus" IN_LIST FEATURES)
38+
@@ -748,6 +757,11 @@ if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
3739
# We use response files here as the only known way to handle spaces in paths
3840
set(crsp "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/cflags.rsp")
3941
string(REGEX REPLACE "-arch [A-Za-z0-9_]+" "" VCPKG_COMBINED_C_FLAGS_RELEASE_SANITIZED "${VCPKG_COMBINED_C_FLAGS_RELEASE}")
4042
+ if(VCPKG_TARGET_IS_OSX)
41-
+ # macosx-version-min version is set with current macOS version. So replace them to 11.0
43+
+ # macosx-version-min version is set with current macOS version. So replace them to 14.0
4244
+ string(REGEX REPLACE "-mmacosx-version-min=[0-9]+.[0-9]+" "" VCPKG_COMBINED_C_FLAGS_RELEASE_SANITIZED "${VCPKG_COMBINED_C_FLAGS_RELEASE_SANITIZED}")
43-
+ string(APPEND VCPKG_COMBINED_C_FLAGS_RELEASE_SANITIZED " -mmacosx-version-min=11.0")
45+
+ string(APPEND VCPKG_COMBINED_C_FLAGS_RELEASE_SANITIZED " -mmacosx-version-min=14.0")
4446
+ endif()
4547
file(WRITE "${crsp}" "${VCPKG_COMBINED_C_FLAGS_RELEASE_SANITIZED}")
4648
set(ldrsp "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/ldflags.rsp")

0 commit comments

Comments
 (0)