[ffmpeg] Update to 7.0. (#38011)

This commit is contained in:
Matthew Oliver 2024-08-03 03:56:16 +10:00 committed by GitHub
parent 247ab7f09a
commit c66e3c2eea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
13 changed files with 91 additions and 37 deletions

15
ports/aubio/ffmpeg7.patch Normal file
View File

@ -0,0 +1,15 @@
diff --git a/src/io/source_avcodec.c b/src/io/source_avcodec.c
index 71ea8b5f..ad91f5eb 100644
--- a/src/io/source_avcodec.c
+++ b/src/io/source_avcodec.c
@@ -345,8 +345,8 @@ void aubio_source_avcodec_reset_resampler(aubio_source_avcodec_t * s)
av_channel_layout_default(&input_layout, s->input_channels);
av_channel_layout_default(&output_layout, s->input_channels);
- av_opt_set_chlayout(avr, "in_channel_layout", &input_layout, 0);
- av_opt_set_chlayout(avr, "out_channel_layout", &output_layout, 0);
+ av_opt_set_chlayout(avr, "in_chlayout", &input_layout, 0);
+ av_opt_set_chlayout(avr, "out_chlayout", &output_layout, 0);
#else
int64_t input_layout = av_get_default_channel_layout(s->input_channels);
int64_t output_layout = av_get_default_channel_layout(s->input_channels);

View File

@ -3,9 +3,11 @@ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github( vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH OUT_SOURCE_PATH SOURCE_PATH
REPO aubio/aubio REPO aubio/aubio
REF 8a05420e5dd8c7b8b2447f82dc919765876511b3 REF 152d6819b360c2e7b379ee3f373d444ab3df0895
SHA512 080775d7b972d31d88671b4a2917e926bc933b7bdc50fc56a4a8e3174b4544fd6fd416c06b064488cea777cbdd4eea63d0b35eca0025f53ab71da0ba8b64824f SHA512 923529eb27e460293bd2b8b8c53d5eb96553e3e1ece7071904808d8f20f86b7af70bde97d271da9a07ee1898d0840190f265e326e67f48c6f5cadefa034abf0f
HEAD_REF master HEAD_REF master
PATCHES
ffmpeg7.patch
) )
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}") file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")

View File

@ -1,7 +1,6 @@
{ {
"name": "aubio", "name": "aubio",
"version-date": "2022-01-26", "version-date": "2024-01-03",
"port-version": 1,
"description": "Aubio is a tool designed for the extraction of annotations from audio signals. Its features include segmenting a sound file before each of its attacks, performing pitch detection, tapping the beat and producing midi streams from live audio.", "description": "Aubio is a tool designed for the extraction of annotations from audio signals. Its features include segmenting a sound file before each of its attacks, performing pitch detection, tapping the beat and producing midi streams from live audio.",
"homepage": "https://github.com/aubio/aubio", "homepage": "https://github.com/aubio/aubio",
"license": "GPL-3.0-or-later", "license": "GPL-3.0-or-later",

View File

@ -21,10 +21,10 @@ index a8b74e0..c99f41c 100755
enabled libmysofa && { check_pkg_config libmysofa libmysofa mysofa.h mysofa_neighborhood_init_withstepdefine || enabled libmysofa && { check_pkg_config libmysofa libmysofa mysofa.h mysofa_neighborhood_init_withstepdefine ||
require libmysofa mysofa.h mysofa_neighborhood_init_withstepdefine -lmysofa $zlib_extralibs; } require libmysofa mysofa.h mysofa_neighborhood_init_withstepdefine -lmysofa $zlib_extralibs; }
enabled libnpp && { check_lib libnpp npp.h nppGetLibVersion -lnppig -lnppicc -lnppc -lnppidei -lnppif || enabled libnpp && { check_lib libnpp npp.h nppGetLibVersion -lnppig -lnppicc -lnppc -lnppidei -lnppif ||
@@ -6772,7 +6773,7 @@ enabled libopencv && { check_headers opencv2/core/core_c.h && @@ -6772,7 +6773,7 @@ require_pkg_config libopencv opencv opencv/cxcore.h cvCreateImageHeader; }
enabled libopenh264 && require_pkg_config libopenh264 openh264 wels/codec_api.h WelsGetCodecVersion enabled libopenh264 && require_pkg_config libopenh264 "openh264 >= 1.3.0" wels/codec_api.h WelsGetCodecVersion
enabled libopenjpeg && { check_pkg_config libopenjpeg "libopenjp2 >= 2.1.0" openjpeg.h opj_version || enabled libopenjpeg && { check_pkg_config libopenjpeg "libopenjp2 >= 2.1.0" openjpeg.h opj_version ||
{ require_pkg_config libopenjpeg "libopenjp2 >= 2.1.0" openjpeg.h opj_version -DOPJ_STATIC && add_cppflags -DOPJ_STATIC; } } { require_pkg_config libopenjpeg "libopenjp2 >= 2.1.0" openjpeg.h opj_version -DOPJ_STATIC && add_cppflags -DOPJ_STATIC; } }
-enabled libopenmpt && require_pkg_config libopenmpt "libopenmpt >= 0.2.6557" libopenmpt/libopenmpt.h openmpt_module_create -lstdc++ && append libopenmpt_extralibs "-lstdc++" -enabled libopenmpt && require_pkg_config libopenmpt "libopenmpt >= 0.2.6557" libopenmpt/libopenmpt.h openmpt_module_create -lstdc++ && append libopenmpt_extralibs "-lstdc++"
+enabled libopenmpt && require_pkg_config libopenmpt "libopenmpt >= 0.2.6557" libopenmpt/libopenmpt.h openmpt_module_create +enabled libopenmpt && require_pkg_config libopenmpt "libopenmpt >= 0.2.6557" libopenmpt/libopenmpt.h openmpt_module_create
enabled libopenvino && { { check_pkg_config libopenvino openvino openvino/c/openvino.h ov_core_create && enable openvino2; } || enabled libopenvino && { { check_pkg_config libopenvino openvino openvino/c/openvino.h ov_core_create && enable openvino2; } ||

View File

@ -53,3 +53,16 @@ diff --git a/libavfilter/x86/Makefile b/libavfilter/x86/Makefile
X86ASM-OBJS-$(CONFIG_OVERLAY_FILTER) += x86/vf_overlay.o X86ASM-OBJS-$(CONFIG_OVERLAY_FILTER) += x86/vf_overlay.o
X86ASM-OBJS-$(CONFIG_PP7_FILTER) += x86/vf_pp7.o X86ASM-OBJS-$(CONFIG_PP7_FILTER) += x86/vf_pp7.o
X86ASM-OBJS-$(CONFIG_PSNR_FILTER) += x86/vf_psnr.o X86ASM-OBJS-$(CONFIG_PSNR_FILTER) += x86/vf_psnr.o
diff --git a/libavcodec/x86/vvc/Makefile b/libavcodec/x86/vvc/Makefile
--- a/libavcodec/x86/vvc/Makefile
+++ b/libavcodec/x86/vvc/Makefile
@@ -3,5 +3,7 @@ clean::
OBJS-$(CONFIG_VVC_DECODER) += x86/vvc/vvcdsp_init.o \
x86/h26x/h2656dsp.o
-X86ASM-OBJS-$(CONFIG_VVC_DECODER) += x86/vvc/vvc_mc.o \
- x86/h26x/h2656_inter.o
+ifdef ARCH_X86_64
+X86ASM-OBJS-$(CONFIG_VVC_DECODER) += x86/vvc/vvc_mc.o
+endif
+X86ASM-OBJS-$(CONFIG_VVC_DECODER) += x86/h26x/h2656_inter.o

View File

@ -2,8 +2,8 @@ diff --git a/configure b/configure
index d6c4388..75b96c3 100644 index d6c4388..75b96c3 100644
--- a/configure --- a/configure
+++ b/configure +++ b/configure
@@ -4378,6 +4378,7 @@ msvc_common_flags(){ @@ -4781,6 +4781,7 @@ msvc_common_flags(){
-march=*) ;; -mfp16-format=*) ;;
-lz) echo zlib.lib ;; -lz) echo zlib.lib ;;
-lx264) echo libx264.lib ;; -lx264) echo libx264.lib ;;
+ -lmp3lame) echo libmp3lame.lib ;; + -lmp3lame) echo libmp3lame.lib ;;

View File

@ -0,0 +1,15 @@
diff --git a/configure b/configure
index 4f5353f84b..dd9147c677 100755
--- a/configure
+++ b/configure
@@ -5607,8 +5607,8 @@ check_cppflags -D_FILE_OFFSET_BITS=64
check_cppflags -D_LARGEFILE_SOURCE
add_host_cppflags -D_ISOC11_SOURCE
check_host_cflags_cc -std=$stdc ctype.h "__STDC_VERSION__ >= 201112L" ||
- check_host_cflags_cc -std=c11 ctype.h "__STDC_VERSION__ >= 201112L" || die "Host compiler lacks C11 support"
+ check_host_cflags_cc -std=c11 ctype.h "__STDC_VERSION__ >= 201112L"
check_host_cflags -Wall
check_host_cflags $host_cflags_speed

View File

@ -2,10 +2,10 @@ diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index cd7b0d941c..b4a6dce885 100644 index cd7b0d941c..b4a6dce885 100644
--- a/libavformat/avformat.h --- a/libavformat/avformat.h
+++ b/libavformat/avformat.h +++ b/libavformat/avformat.h
@@ -1010,7 +1010,11 @@ struct AVCodecParserContext *av_stream_get_parser(const AVStream *s); @@ -1169,7 +1169,11 @@ typedef struct AVStreamGroup {
attribute_deprecated } AVStreamGroup;
int64_t av_stream_get_end_pts(const AVStream *st);
#endif struct AVCodecParserContext *av_stream_get_parser(const AVStream *s);
+// Chromium: We use the internal field first_dts vvv +// Chromium: We use the internal field first_dts vvv
+int64_t av_stream_get_first_dts(const AVStream *st); +int64_t av_stream_get_first_dts(const AVStream *st);
@ -18,10 +18,10 @@ diff --git a/libavformat/mux_utils.c b/libavformat/mux_utils.c
index de7580c32d..0ef0fe530e 100644 index de7580c32d..0ef0fe530e 100644
--- a/libavformat/mux_utils.c --- a/libavformat/mux_utils.c
+++ b/libavformat/mux_utils.c +++ b/libavformat/mux_utils.c
@@ -33,7 +33,14 @@ int64_t av_stream_get_end_pts(const AVStream *st) @@ -29,7 +29,14 @@ #include "avformat.h"
return AV_NOPTS_VALUE; #include "avio.h"
} #include "internal.h"
#endif #include "mux.h"
+// Chromium: We use the internal field first_dts vvv +// Chromium: We use the internal field first_dts vvv
+int64_t av_stream_get_first_dts(const AVStream *st) +int64_t av_stream_get_first_dts(const AVStream *st)

View File

@ -2,18 +2,19 @@ vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH OUT_SOURCE_PATH SOURCE_PATH
REPO ffmpeg/ffmpeg REPO ffmpeg/ffmpeg
REF "n${VERSION}" REF "n${VERSION}"
SHA512 a84209fe36a2a0262ebc34b727e7600b12d4739991a95599d7b4df533791b12e2e43586ccc6ff26aab2f935a3049866204e322ec0c5e49e378fc175ded34e183 SHA512 ac147e52557b71cab0a38c0fee5f710a70d7e99107d1cb881e733c489a6b16f99d2c15e00e359ab48353bd710ead13399ee31840e6c5844a11d042eda71a0aa0
HEAD_REF master HEAD_REF master
PATCHES PATCHES
0001-create-lib-libraries.patch 0001-create-lib-libraries.patch
0002-fix-msvc-link.patch #upstreamed in future version 0002-fix-msvc-link.patch
0003-fix-windowsinclude.patch 0003-fix-windowsinclude.patch
0004-dependencies.patch 0004-dependencies.patch
0005-fix-nasm.patch #upstreamed in future version 0005-fix-nasm.patch
0007-fix-lib-naming.patch 0007-fix-lib-naming.patch
0012-Fix-ssl-110-detection.patch 0012-Fix-ssl-110-detection.patch
0013-define-WINVER.patch 0013-define-WINVER.patch
0020-fix-aarch64-libswscale.patch 0020-fix-aarch64-libswscale.patch
0024-fix-osx-host-c11.patch
0040-ffmpeg-add-av_stream_get_first_dts-for-chromium.patch # Do not remove this patch. It is required by chromium 0040-ffmpeg-add-av_stream_get_first_dts-for-chromium.patch # Do not remove this patch. It is required by chromium
0041-add-const-for-opengl-definition.patch 0041-add-const-for-opengl-definition.patch
0042-fix-arm64-linux.patch #https://github.com/FFmpeg/FFmpeg/commit/fcfd17dbb4a6cf270cdd82e91c21a5efdc878d12 0042-fix-arm64-linux.patch #https://github.com/FFmpeg/FFmpeg/commit/fcfd17dbb4a6cf270cdd82e91c21a5efdc878d12
@ -49,9 +50,9 @@ if(VCPKG_TARGET_IS_MINGW)
elseif(VCPKG_TARGET_IS_LINUX) elseif(VCPKG_TARGET_IS_LINUX)
string(APPEND OPTIONS " --target-os=linux --enable-pthreads") string(APPEND OPTIONS " --target-os=linux --enable-pthreads")
elseif(VCPKG_TARGET_IS_UWP) elseif(VCPKG_TARGET_IS_UWP)
string(APPEND OPTIONS " --target-os=win32 --enable-w32threads --enable-d3d11va --enable-mediafoundation") string(APPEND OPTIONS " --target-os=win32 --enable-w32threads --enable-d3d11va --enable-d3d12va --enable-mediafoundation")
elseif(VCPKG_TARGET_IS_WINDOWS) elseif(VCPKG_TARGET_IS_WINDOWS)
string(APPEND OPTIONS " --target-os=win32 --enable-w32threads --enable-d3d11va --enable-dxva2 --enable-mediafoundation") string(APPEND OPTIONS " --target-os=win32 --enable-w32threads --enable-d3d11va --enable-d3d12va --enable-dxva2 --enable-mediafoundation")
elseif(VCPKG_TARGET_IS_OSX) elseif(VCPKG_TARGET_IS_OSX)
string(APPEND OPTIONS " --target-os=darwin --enable-appkit --enable-avfoundation --enable-coreimage --enable-audiotoolbox --enable-videotoolbox") string(APPEND OPTIONS " --target-os=darwin --enable-appkit --enable-avfoundation --enable-coreimage --enable-audiotoolbox --enable-videotoolbox")
elseif(VCPKG_TARGET_IS_IOS) elseif(VCPKG_TARGET_IS_IOS)
@ -91,7 +92,7 @@ if(VCPKG_DETECTED_CMAKE_C_COMPILER)
get_filename_component(CC_filename "${VCPKG_DETECTED_CMAKE_C_COMPILER}" NAME) get_filename_component(CC_filename "${VCPKG_DETECTED_CMAKE_C_COMPILER}" NAME)
set(ENV{CC} "${CC_filename}") set(ENV{CC} "${CC_filename}")
string(APPEND OPTIONS " --cc=${CC_filename}") string(APPEND OPTIONS " --cc=${CC_filename}")
#string(APPEND OPTIONS " --host_cc=${CC_filename}") ffmpeg not yet setup for cross builds? string(APPEND OPTIONS " --host_cc=${CC_filename}")
list(APPEND prog_env "${CC_path}") list(APPEND prog_env "${CC_path}")
endif() endif()

View File

@ -1,7 +1,6 @@
{ {
"name": "ffmpeg", "name": "ffmpeg",
"version": "6.1.1", "version": "7.0",
"port-version": 11,
"description": [ "description": [
"a library to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created.", "a library to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created.",
"FFmpeg is the leading multimedia framework, able to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created. It supports the most obscure ancient formats up to the cutting edge. No matter if they were designed by some standards committee, the community or a corporation. It is also highly portable: FFmpeg compiles, runs, and passes our testing infrastructure FATE across Linux, Mac OS X, Microsoft Windows, the BSDs, Solaris, etc. under a wide variety of build environments, machine architectures, and configurations." "FFmpeg is the leading multimedia framework, able to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created. It supports the most obscure ancient formats up to the cutting edge. No matter if they were designed by some standards committee, the community or a corporation. It is also highly portable: FFmpeg compiles, runs, and passes our testing infrastructure FATE across Linux, Mac OS X, Microsoft Windows, the BSDs, Solaris, etc. under a wide variety of build environments, machine architectures, and configurations."
@ -108,14 +107,6 @@
], ],
"platform": "!uwp" "platform": "!uwp"
}, },
{
"name": "ffmpeg",
"default-features": false,
"features": [
"opencl"
],
"platform": "!uwp"
},
{ {
"name": "ffmpeg", "name": "ffmpeg",
"default-features": false, "default-features": false,
@ -156,6 +147,14 @@
], ],
"platform": "!osx & !uwp" "platform": "!osx & !uwp"
}, },
{
"name": "ffmpeg",
"default-features": false,
"features": [
"opencl"
],
"platform": "!uwp & !osx"
},
{ {
"name": "ffmpeg", "name": "ffmpeg",
"default-features": false, "default-features": false,

View File

@ -1,5 +1,10 @@
{ {
"versions": [ "versions": [
{
"git-tree": "31db883042c73ae81e74c010dca29c7fc4e273f9",
"version-date": "2024-01-03",
"port-version": 0
},
{ {
"git-tree": "e51e332257e4b788828390a39d86109000d5b960", "git-tree": "e51e332257e4b788828390a39d86109000d5b960",
"version-date": "2022-01-26", "version-date": "2022-01-26",

View File

@ -337,8 +337,8 @@
"port-version": 0 "port-version": 0
}, },
"aubio": { "aubio": {
"baseline": "2022-01-26", "baseline": "2024-01-03",
"port-version": 1 "port-version": 0
}, },
"audiofile": { "audiofile": {
"baseline": "1.1.1", "baseline": "1.1.1",
@ -2701,8 +2701,8 @@
"port-version": 7 "port-version": 7
}, },
"ffmpeg": { "ffmpeg": {
"baseline": "6.1.1", "baseline": "7.0",
"port-version": 11 "port-version": 0
}, },
"ffnvcodec": { "ffnvcodec": {
"baseline": "12.1.14.0", "baseline": "12.1.14.0",

View File

@ -1,5 +1,10 @@
{ {
"versions": [ "versions": [
{
"git-tree": "6c14224b4a8c90efabd3640a98f76eaee8607f98",
"version": "7.0",
"port-version": 0
},
{ {
"git-tree": "15b90b33b76e69c2d9b876b32c4c9b47c97846ed", "git-tree": "15b90b33b76e69c2d9b876b32c4c9b47c97846ed",
"version": "6.1.1", "version": "6.1.1",