Add rubberband feature to ffmpeg port. (#49235)

This commit is contained in:
lemourin 2026-01-05 21:10:01 +01:00 committed by GitHub
parent 45c8fe90b3
commit 5087d22fd7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 36 additions and 2 deletions

View File

@ -599,6 +599,14 @@ else()
set(WITH_ZMQ OFF)
endif()
if("rubberband" IN_LIST FEATURES)
set(OPTIONS "${OPTIONS} --enable-librubberband")
set(WITH_RUBBERBAND ON)
else()
set(OPTIONS "${OPTIONS} --disable-librubberband")
set(WITH_RUBBERBAND OFF)
endif()
set(OPTIONS_CROSS "--enable-cross-compile")
# ffmpeg needs --cross-prefix option to use appropriate tools for cross-compiling.

View File

@ -313,6 +313,14 @@ if(@WITH_ZMQ@)
endif()
endif()
if(@WITH_RUBBERBAND@)
pkg_check_modules(rubberband IMPORTED_TARGET rubberband)
list(APPEND FFMPEG_LIBRARIES PkgConfig::rubberband)
if(vcpkg_no_avfilter_target AND TARGET FFmpeg::avfilter)
target_link_libraries(FFmpeg::avfilter INTERFACE PkgConfig::rubberband)
endif()
endif()
endif()
unset(z_vcpkg_using_vcpkg_find_ffmpeg)

View File

@ -1,7 +1,7 @@
{
"name": "ffmpeg",
"version": "7.1.2",
"port-version": 4,
"port-version": 5,
"description": [
"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."
@ -567,6 +567,19 @@
"mfx-dispatch"
]
},
"rubberband": {
"description": "Enable rubberband support",
"dependencies": [
{
"name": "ffmpeg",
"default-features": false,
"features": [
"gpl"
]
},
"rubberband"
]
},
"sdl2": {
"description": "Sdl2 support",
"dependencies": [

View File

@ -2918,7 +2918,7 @@
},
"ffmpeg": {
"baseline": "7.1.2",
"port-version": 4
"port-version": 5
},
"ffnvcodec": {
"baseline": "13.0.19.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "bf414f1e4f2a63ff7410444dc4eabb5b392f6d16",
"version": "7.1.2",
"port-version": 5
},
{
"git-tree": "4d296d54e7c2880504575318ca86ed35d6232eb6",
"version": "7.1.2",