Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ffmpeg] Update to 5.0 #23312

Merged
merged 58 commits into from
Jan 3, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
cfe6510
[ffmpeg] Update to 5.0
Sibras Feb 28, 2022
5918a85
update versions
Sibras Feb 28, 2022
99f71cc
Merge branch 'master' into master
Sibras Mar 11, 2022
672a85e
Fix after merge.
Sibras Apr 16, 2022
15bde9c
ffmpeg: Fix lzma debug lib naming.
Sibras Apr 17, 2022
b1a1756
Merge remote-tracking branch 'upstream/master'
Sibras May 7, 2022
d89a9b9
Update ffmpeg.json
Sibras May 7, 2022
5ce3526
Merge remote-tracking branch 'upstream/master'
Sibras Jun 18, 2022
09c07e3
Update ffmpeg.json
Sibras Jun 18, 2022
f2f67e3
Merge branch 'master' into master
Sibras Jul 10, 2022
9db94c0
Update ffmpeg.json
Sibras Jul 16, 2022
3dba068
Merge remote-tracking branch 'upstream/master'
Sibras Sep 2, 2022
78954eb
fixup versions.
Sibras Sep 2, 2022
b013ab4
fixup
Sibras Sep 2, 2022
f8a503a
version fixup
Sibras Sep 2, 2022
b100028
Merge remote-tracking branch 'upstream/master'
Sibras Oct 15, 2022
5918346
Update ffmpeg.json
Sibras Oct 15, 2022
62a6641
[ffmpeg] Disable autodetect.
Sibras Oct 15, 2022
56cbb73
Merge remote-tracking branch 'upstream/master'
Sibras Oct 23, 2022
350ba8f
[ffmpeg] Update version.
Sibras Oct 23, 2022
3f2fb58
[ffmpeg] fixup autodetect on linux/uwp.
Sibras Oct 23, 2022
91892b2
Merge remote-tracking branch 'upstream'
Sibras Nov 6, 2022
60802f6
Update ffmpeg.json
Sibras Nov 6, 2022
d209911
Merge remote-tracking branch 'upstream/master'
Sibras Dec 19, 2022
68128bc
[avcpp] Update to 2.1.0.
Sibras Dec 19, 2022
6bde8a9
[pangolin] Update to 0.8.
Sibras Dec 19, 2022
7b18683
Update versions.
Sibras Dec 19, 2022
50dd7fb
[pangolin] Fixup port file.
Sibras Dec 19, 2022
f40898a
Update pangolin.json
Sibras Dec 19, 2022
df4cf8f
[aubio] Update to latest git master.
Sibras Dec 19, 2022
1006925
Merge remote-tracking branch 'upstream'
Sibras Dec 20, 2022
8ace552
Update pangolin.json
Sibras Dec 20, 2022
0cde3a8
[avcpp] Add license field.
Sibras Dec 20, 2022
0aeaac1
[avcpp] Fix pkgconf detection of ffmpeg.
Sibras Dec 20, 2022
706af10
[ignition-cmake] Update to 2.16.0.
Sibras Dec 20, 2022
825d8f4
[ignition-math6] Update to 6.13.0.
Sibras Dec 20, 2022
5672811
[ignition-common3] Update to 3.14.1.
Sibras Dec 20, 2022
900d404
[avcpp] Reformat.
Sibras Dec 20, 2022
0e3b9fe
Update versions.
Sibras Dec 20, 2022
6e1ece0
[avcpp] Fix pkgconfig cross compile.
Sibras Dec 20, 2022
828c08b
[discordcoreapi] Disable on uwp.
Sibras Dec 20, 2022
2a8a487
Update versions
Sibras Dec 20, 2022
32f163d
[aubio] Fix deprecated portfile functions.
Sibras Dec 20, 2022
89a6b0e
Update versions.
Sibras Dec 20, 2022
15268c4
Merge remote-tracking branch 'upstream'
Sibras Dec 21, 2022
450b2d9
[ffmpeg] Fix amf/mfx feature.
Sibras Dec 21, 2022
615dcbd
[ignition-math6] Require python 3.10.
Sibras Dec 21, 2022
16cb139
Update versions.
Sibras Dec 21, 2022
e3326e1
fixup
Sibras Dec 21, 2022
c05ae03
[ignition-math6] Change version to last known good 6.9.2.
Sibras Dec 21, 2022
b1184ca
[discordcoreapi] Properly Fix.
Sibras Dec 21, 2022
8bd6346
Update versions.
Sibras Dec 21, 2022
56f8a9c
Merge branch 'master' into master
Sibras Dec 29, 2022
238a4af
Update versions.
Sibras Dec 29, 2022
14062bf
Merge branch 'master' into master
Sibras Dec 30, 2022
f2189fd
Update ffmpeg.json
Sibras Dec 30, 2022
59cd100
Merge branch 'master' into master
Sibras Dec 31, 2022
38f774d
Update ffmpeg.json
Sibras Dec 31, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions ports/ffmpeg/0004-fix-debug-build.patch
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ index bd2de34..fba948a 100755
*)
optname="${opt%%=*}"
optname="${optname#--}"
@@ -6152,7 +6153,11 @@
@@ -6464,8 +6464,13 @@

enabled zlib && { check_pkg_config zlib zlib "zlib.h" zlibVersion ||
check_lib zlib zlib.h zlibVersion -lz; }
Expand All @@ -24,7 +24,8 @@ index bd2de34..fba948a 100755
+fi
enabled lzma && check_lib lzma lzma.h lzma_version_number -llzma

# On some systems dynamic loading requires no extra linker flags
enabled zlib && test_exec $zlib_extralibs <<EOF && enable zlib_gzip
#include <zlib.h>
@@ -6350,7 +6350,11 @@ enabled librubberband && require_pkg_config librubberband "rubberband >= 1.8
enabled libshine && require_pkg_config libshine shine shine/layer3.h shine_encode_buffer
enabled libsmbclient && { check_pkg_config libsmbclient smbclient libsmbclient.h smbc_init ||
Expand Down
2 changes: 1 addition & 1 deletion ports/ffmpeg/0006-fix-StaticFeatures.patch
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ index 3bdcfc6..00b2f13 100644
+ require libmp3lame lame/lame.h lame_set_VBR_quality -llibmp3lame-static -llibmpghip-static $libm_extralibs; }
enabled libmysofa && { check_pkg_config libmysofa libmysofa mysofa.h mysofa_neighborhood_init_withstepdefine ||
require libmysofa mysofa.h mysofa_neighborhood_init_withstepdefine -lmysofa $zlib_extralibs; }
enabled libnpp && { check_lib libnpp npp.h nppGetLibVersion -lnppig -lnppicc -lnppc -lnppidei ||
enabled libnpp && { check_lib libnpp npp.h nppGetLibVersion -lnppig -lnppicc -lnppc -lnppidei -lnppif ||
@@ -6392,7 +6393,7 @@ if enabled debug_configure; then
else
enabled libsnappy && require libsnappy snappy-c.h snappy_compress -lsnappy -lstdc++
Expand Down
14 changes: 0 additions & 14 deletions ports/ffmpeg/0010-Fix-x264-detection.patch

This file was deleted.

7 changes: 4 additions & 3 deletions ports/ffmpeg/0012-Fix-ssl-110-detection.patch
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ diff --git a/configure b/configure
index 2be953f7e7..e075949ffc 100755
--- a/configure
+++ b/configure
@@ -6497,6 +6497,7 @@ enabled omx_rpi && { test_code cc OMX_Core.h OMX_IndexConfigBrcmVideoR
enabled omx && require_headers OMX_Core.h
enabled openssl && { check_pkg_config openssl openssl openssl/ssl.h OPENSSL_init_ssl ||
@@ -6497,6 +6497,7 @@ enabled openssl && { { check_pkg_config openssl "openssl >= 3.0.0
{ enabled gplv3 || ! enabled gpl || enabled nonfree || die "ERROR: OpenSSL >=3.0.0 requires --enable-version3"; }; } ||
{ enabled gpl && ! enabled nonfree && die "ERROR: OpenSSL <3.0.0 is incompatible with the gpl"; } ||
check_pkg_config openssl openssl openssl/ssl.h OPENSSL_init_ssl ||
check_pkg_config openssl openssl openssl/ssl.h SSL_library_init ||
+ check_lib openssl openssl/ssl.h OPENSSL_init_ssl -lssl -lcrypto $pthreads_extralibs -ldl ||
check_lib openssl openssl/ssl.h OPENSSL_init_ssl -lssl -lcrypto ||
Expand Down
23 changes: 0 additions & 23 deletions ports/ffmpeg/0014-avfilter-dependency-fix.patch

This file was deleted.

25 changes: 0 additions & 25 deletions ports/ffmpeg/0016-configure-dnn-needs-avformat.patch

This file was deleted.

This file was deleted.

26 changes: 0 additions & 26 deletions ports/ffmpeg/0018-libaom-Dont-use-aom_codec_av1_dx_algo.patch

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ index ede8f9777b..b35728aace 100755
enabled libwebp_encoder && require_pkg_config libwebp "libwebp >= 0.2.0" webp/encode.h WebPGetEncoderVersion
enabled libwebp_anim_encoder && check_pkg_config libwebp_anim_encoder "libwebpmux >= 0.4.0" webp/mux.h WebPAnimEncoderOptionsInit; }
-enabled libx264 && { check_pkg_config libx264 x264 "stdint.h x264.h" x264_encoder_encode ||
- { require libx264 "stdint.h x264.h" x264_encoder_encode "-lx264 $pthreads_extralibs $libm_extralibs -ldl" &&
- { require libx264 "stdint.h x264.h" x264_encoder_encode "-lx264 $pthreads_extralibs $libm_extralibs" &&
- warn "using libx264 without pkg-config"; } } &&
- require_cpp_condition libx264 x264.h "X264_BUILD >= 118" &&
- check_cpp_condition libx262 x264.h "X264_MPEG2"
Expand All @@ -31,8 +31,8 @@ index 21f434d06d..efbc9608c7 100644
--- a/libavcodec/libx264.c
+++ b/libavcodec/libx264.c
@@ -34,10 +34,6 @@
#include "packet_internal.h"
#include "atsc_a53.h"
#include "sei.h"

-#if defined(_MSC_VER)
-#define X264_API_IMPORTS 1
Expand Down
6 changes: 0 additions & 6 deletions ports/ffmpeg/FindFFMPEG.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,6 @@ endif()
if(@ENABLE_AVCODEC@)
FFMPEG_FIND(libavcodec avcodec avcodec.h)
endif()
if(@ENABLE_AVRESAMPLE@)
FFMPEG_FIND(libavresample avresample avresample.h)
endif()
if(@ENABLE_POSTPROC@)
FFMPEG_FIND(libpostproc postproc postprocess.h)
endif()
Expand Down Expand Up @@ -138,9 +135,6 @@ if (FFMPEG_libavutil_FOUND)
if(FFMPEG_libavresample_FOUND)
set(FFMPEG_libavresample_VERSION "@LIBAVRESAMPLE_VERSION@" CACHE STRING "")
endif()
if(FFMPEG_libswresample_FOUND)
Sibras marked this conversation as resolved.
Show resolved Hide resolved
set(FFMPEG_libswresample_VERSION "@LIBSWRESAMPLE_VERSION@" CACHE STRING "")
endif()
if(FFMPEG_libswscale_FOUND)
set(FFMPEG_libswscale_VERSION "@LIBSWSCALE_VERSION@" CACHE STRING "")
endif()
Expand Down
22 changes: 2 additions & 20 deletions ports/ffmpeg/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
if(VCPKG_TARGET_IS_WINDOWS)
set(PATCHES 0017-Patch-for-ticket-9019-CUDA-Compile-Broken-Using-MSVC.patch) # https://trac.ffmpeg.org/ticket/9019
endif()
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO ffmpeg/ffmpeg
REF n4.4.1
SHA512 a53e617937f9892c5cfddb00896be9ad8a3e398dc7cf3b6c893b52ff38aff6ff0cbc61a44cd5f93d9a28f775e71ae82996a5e2b699a769c1de8f882aab34c797
REF n5.0
SHA512 4b9f0b207031fb53fe8b03dfa7ad62a58ec60f68911d7200238249152937ba4393f28ada24361217ee6324900b92bf9abefc754cccbd673bd6780482bf62eba6
HEAD_REF master
PATCHES
0001-create-lib-libraries.patch
Expand All @@ -14,15 +11,10 @@ vcpkg_from_github(
0006-fix-StaticFeatures.patch
0007-fix-lib-naming.patch
0009-Fix-fdk-detection.patch
0010-Fix-x264-detection.patch
0011-Fix-x265-detection.patch
0012-Fix-ssl-110-detection.patch
0013-define-WINVER.patch
0014-avfilter-dependency-fix.patch # https://ffmpeg.org/pipermail/ffmpeg-devel/2021-February/275819.html
0015-Fix-xml2-detection.patch
0016-configure-dnn-needs-avformat.patch # https://ffmpeg.org/pipermail/ffmpeg-devel/2021-May/279926.html
${PATCHES}
0018-libaom-Dont-use-aom_codec_av1_dx_algo.patch
0019-libx264-Do-not-explicitly-set-X264_API_IMPORTS.patch
)

Expand Down Expand Up @@ -212,13 +204,6 @@ else()
set(ENABLE_SWSCALE OFF)
endif()

set(ENABLE_AVRESAMPLE OFF)
if("avresample" IN_LIST FEATURES)
set(OPTIONS "${OPTIONS} --enable-avresample")
set(ENABLE_AVRESAMPLE ON)
list(APPEND FFMPEG_PKGCONFIG_MODULES libavresample)
endif()
Comment on lines -216 to -221
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably better to print a message that the feature has been deprecated.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was actually deprecated several years ago, with the 5.0 release it has now been completely removed


set(STATIC_LINKAGE OFF)
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
set(STATIC_LINKAGE ON)
Expand Down Expand Up @@ -696,7 +681,6 @@ function(append_dependencies_from_libs out)
list(TRANSFORM contents REPLACE "^-Wl,-framework," "-l")
list(FILTER contents EXCLUDE REGEX "^-Wl,.+")
list(TRANSFORM contents REPLACE "^-l" "")
list(FILTER contents EXCLUDE REGEX "^avresample$")
list(FILTER contents EXCLUDE REGEX "^avutil$")
list(FILTER contents EXCLUDE REGEX "^avcodec$")
list(FILTER contents EXCLUDE REGEX "^avdevice$")
Expand Down Expand Up @@ -777,8 +761,6 @@ extract_version_from_component(LIBAVFILTER_VERSION
COMPONENT libavfilter)
extract_version_from_component( LIBAVFORMAT_VERSION
COMPONENT libavformat)
extract_version_from_component(LIBAVRESAMPLE_VERSION
COMPONENT libavresample)
extract_version_from_component(LIBSWRESAMPLE_VERSION
COMPONENT libswresample)
extract_version_from_component(LIBSWSCALE_VERSION
Expand Down
4 changes: 1 addition & 3 deletions ports/ffmpeg/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "ffmpeg",
"version": "4.4.1",
"port-version": 10,
"version": "5.0.0",
"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."
Expand Down Expand Up @@ -38,7 +37,6 @@
"avdevice",
"avfilter",
"avformat",
"avresample",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no change to the feature description ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

swresample has been the replacement for avresample and avresample itself was only an option for compatibility with the now defunct libav port. So no features have been lost just the old compatibility avresample has been removed

"bzip2",
"freetype",
"iconv",
Expand Down
4 changes: 2 additions & 2 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -2157,8 +2157,8 @@
"port-version": 5
},
"ffmpeg": {
"baseline": "4.4.1",
"port-version": 10
"baseline": "5.0.0",
"port-version": 0
},
"ffnvcodec": {
"baseline": "11.1.5.0",
Expand Down
5 changes: 5 additions & 0 deletions versions/f-/ffmpeg.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "89a620b10d38c235afa130f17d59503035bcb1d5",
"version": "5.0.0",
"port-version": 0
},
{
"git-tree": "d525f98e7146a1fd731febe7c472232142d62821",
"version": "4.4.1",
Expand Down