-
Notifications
You must be signed in to change notification settings - Fork 7.4k
[ffmpeg] Add feature support for zlib, iconv, fdk-aac, mp3lame, opus, soxr, theora. #11277
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
Merged
Merged
Changes from all commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
5213bc8
[zlib] Fix unistd.h being required
Sibras 8f5de7d
[ffmpeg] Fix zlib.
Sibras fbc0237
[ffmpeg] Add iconv, fdk-aac, mp3lame, opus, soxr, theora support.
Sibras 32220e0
[ffmpeg] Add x265 support.
Sibras 2f884e9
[ffmpeg] Fix zlib detection on linux
Sibras a8accec
[libogg] Enable creation of pkg-config file
Sibras fdc43ff
[ffmpeg] Add vorbis feature
Sibras 1709122
[speex] Enable creation of pkg-config file
Sibras 06f0736
[ffmpeg] Add speex feature
Sibras 97cf69a
[ffmpeg] Add snappy feature
Sibras 5919201
[ffmpeg] Add wavpack feature
Sibras a4a6df7
[ffmpeg] Fix linking to static dependencies using pkg-config
Sibras 28c664f
[ffmpeg] Fix opencl detection on linux
Sibras f2416cb
[ffmpeg] Fix soxr linking on linux
Sibras 4992c67
[ffmpeg] Fix FindFFmpeg.cmake
Sibras d9c1675
[ffmpeg] Add optional dependencies to FindFFmpeg.cmake
Sibras 4e1ac0c
[fdkaac] Correct header installation directory
Sibras fb36501
[sdl2] Enable creation of pkg-config file on windows
Sibras 9c63f83
[ffmpeg] Add sdl2 feature
Sibras 56b9d8f
[ffmpeg] Fix detection of static mp3lame
Sibras 3cce5c3
[ffmpeg] Fix detection of static iconv
Sibras d602039
[ffmpeg] Use newer libvpx package detection.
Sibras fddb5e3
[ffmpeg] Use newer zlib pkg-config detection.
Sibras 6b889d5
[ffmpeg] Fix detection of 'prefix' in pkgconfig
Sibras 688e905
[ffnvcodec] Use vcpkg_fixup_pkgconfig.
Sibras 31e5654
[libogg] Use vcpkg_fixup_pkgconfig.
Sibras 5e35577
[sdl2] Correct pkgconfig debug suffix.
Sibras f69cf7b
[speex] Use vcpkg_fixup_pkgconfig.
Sibras db76315
[x265] Fix pkgconfig windows static lib naming.
Sibras 549d6b1
[wavpack] Fix pkgconfig windows dll naming.
Sibras 2efd01e
[ffnvcodec] Install pkgconfig file in debug.
Sibras 390d613
[libvorbis] Fixup pkgconfig file.
Sibras e570891
[opus] Use vcpkg_fixup_pkgconfig.
Sibras d93c795
[ffmpeg] Correctly set debug lib folder with pkgconfig.
Sibras 9184e8a
[vcpkg/scripts/pkgconfig] Add additional common definitions
Sibras 04b7b1c
Merge branch 'master' into master
Sibras d25e73c
[sdl2] Fix pkgconfig on osx.
Sibras 7f4c4f6
[ffmpeg] Correctly detect fdkac on linux.
Sibras 6cca774
[vcpkg/scripts/pkgconfig] Add iconv as system lib on osx.
Sibras 4fbaba4
[ffmpeg] Fix fdk detection on linux.
Sibras c0cf19e
[ffmpeg] Fix x264 detection on linux.
Sibras a721fdc
[ffmpeg] Fix x265 detection on linux.
Sibras 289a0c4
[ffmpeg] Fix detection of OpenSSL 1.1.0+ on linux.
Sibras 87c7bf6
[ffmpeg] Remove nvcodec dependency on cuda.
Sibras 84f4c65
[ffmpeg] Use WavPack instead of Wavpack in cmake.
Sibras dc4e432
[ffmpeg] Remove libnpp feature from nvcodec.
Sibras b225fbe
Merge branch 'master' into master
Sibras a280e11
[ffmpeg] Add comment about cuda options not requiring the cuda port a…
Sibras 8f71651
Merge remote-tracking branch 'upstream/master' into master
Sibras 5f3e768
[ffmpeg] Fix static linking of wavpack on linux.
Sibras f3f8d1e
[ffmpeg] Fix x265 detection when using numa on linux.
Sibras b199992
Merge branch 'master' into master
Sibras File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| Source: fdk-aac | ||
| Version: 2018-07-08-1 | ||
| Version: 2018-07-08-2 | ||
| Homepage: https://github.com/mstorsjo/fdk-aac | ||
| Description: A standalone library of the Fraunhofer FDK AAC code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| diff --git a/configure b/configure | ||
| index d6c4388..75b96c3 100644 | ||
| --- a/configure | ||
| +++ b/configure | ||
| @@ -4378,6 +4378,10 @@ msvc_common_flags(){ | ||
| -march=*) ;; | ||
| -lz) echo zlib.lib ;; | ||
| -lx264) echo libx264.lib ;; | ||
| + -lx265) echo libx265.lib ;; | ||
| + -lmp3lame) echo libmp3lame.lib ;; | ||
| + -liconv) echo libiconv.lib ;; | ||
| + -lm) ;; | ||
| -lstdc++) ;; | ||
| -l*) echo ${flag#-l}.lib ;; | ||
| -LARGEADDRESSAWARE) echo $flag ;; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| diff --git a/configure b/configure | ||
| index e7162dbc56..0f04af2a81 100755 | ||
| --- a/configure | ||
| +++ b/configure | ||
| @@ -6391,7 +6391,7 @@ enabled libvpx && { | ||
| fi | ||
| } | ||
|
|
||
| -enabled libwavpack && require libwavpack wavpack/wavpack.h WavpackOpenFileOutput -lwavpack | ||
| +enabled libwavpack && { check_pkg_config libwavpack wavpack wavpack.h WavpackOpenFileOutput || check_lib libwavpack wavpack.h WavpackOpenFileOutput -lwavpack || check_lib libwavpack wavpack.h WavpackOpenFileOutput -llibwavpack || require libwavpack wavpack.h WavpackOpenFileOutput -lwavpackdll; } | ||
| enabled libwebp && { | ||
| 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; } | ||
| diff --git a/libavcodec/libwavpackenc.c b/libavcodec/libwavpackenc.c | ||
| index e84b074893..9adf39861b 100644 | ||
| --- a/libavcodec/libwavpackenc.c | ||
| +++ b/libavcodec/libwavpackenc.c | ||
| @@ -16,7 +16,7 @@ | ||
| * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
| */ | ||
|
|
||
| -#include <wavpack/wavpack.h> | ||
| +#include <wavpack.h> | ||
| #include <string.h> | ||
|
|
||
| #include "libavutil/attributes.h" | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| diff --git a/configure b/configure | ||
| index b137669dd3..34c92230f4 100755 | ||
| --- a/configure | ||
| +++ b/configure | ||
| @@ -6331,7 +6331,7 @@ enabled libdavs2 && require_pkg_config libdavs2 "davs2 >= 1.6.0" davs2. | ||
| enabled libdc1394 && require_pkg_config libdc1394 libdc1394-2 dc1394/dc1394.h dc1394_new | ||
| enabled libdrm && require_pkg_config libdrm libdrm xf86drm.h drmGetVersion | ||
| enabled libfdk_aac && { check_pkg_config libfdk_aac fdk-aac "fdk-aac/aacenc_lib.h" aacEncOpen || | ||
| - { require libfdk_aac fdk-aac/aacenc_lib.h aacEncOpen -lfdk-aac && | ||
| + { require libfdk_aac fdk-aac/aacenc_lib.h aacEncOpen -lfdk-aac -lm -lstdc++ && | ||
| warn "using libfdk without pkg-config"; } } | ||
| flite_extralibs="-lflite_cmu_time_awb -lflite_cmu_us_awb -lflite_cmu_us_kal -lflite_cmu_us_kal16 -lflite_cmu_us_rms -lflite_cmu_us_slt -lflite_usenglish -lflite_cmulex -lflite" | ||
| enabled libflite && require libflite "flite/flite.h" flite_init $flite_extralibs | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| diff --git a/configure b/configure | ||
| index b137669dd3..34a2e644c4 100755 | ||
| --- a/configure | ||
| +++ b/configure | ||
| @@ -6443,7 +6443,7 @@ enabled libwebp && { | ||
| 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" && | ||
| + { require libx264 "stdint.h x264.h" x264_encoder_encode "-lx264 $pthreads_extralibs $libm_extralibs -ldl" && | ||
| warn "using libx264 without pkg-config"; } } && | ||
| require_cpp_condition libx264 x264.h "X264_BUILD >= 118" && | ||
| check_cpp_condition libx262 x264.h "X264_MPEG2" | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| diff --git a/configure b/configure | ||
| index 34a2e644c4..0ea64bd306 100755 | ||
| --- a/configure | ||
| +++ b/configure | ||
| @@ -6447,7 +6447,9 @@ enabled libx264 && { check_pkg_config libx264 x264 "stdint.h x264.h" x | ||
| warn "using libx264 without pkg-config"; } } && | ||
| require_cpp_condition libx264 x264.h "X264_BUILD >= 118" && | ||
| check_cpp_condition libx262 x264.h "X264_MPEG2" | ||
| -enabled libx265 && require_pkg_config libx265 x265 x265.h x265_api_get && | ||
| +enabled libx265 && { check_pkg_config libx265 x265 x265.h x265_api_get || | ||
| + { require libx265 x265.h x265_api_get "-lx265 $pthreads_extralibs $libm_extralibs -ldl -lstdc++ -lgcc_s -lgcc -lrt -lnuma" && | ||
| + warn "using libx265 without pkg-config"; } } && | ||
| require_cpp_condition libx265 x265.h "X265_BUILD >= 68" | ||
| enabled libxavs && require libxavs "stdint.h xavs.h" xavs_encoder_encode "-lxavs $pthreads_extralibs $libm_extralibs" | ||
| enabled libxavs2 && require_pkg_config libxavs2 "xavs2 >= 1.3.0" "stdint.h xavs2.h" xavs2_api_get | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| 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 | ||
| die "ERROR: OpenMAX IL headers not found"; } && enable omx | ||
| enabled openssl && { 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 SSL_library_init -lssl -lcrypto || | ||
| check_lib openssl openssl/ssl.h SSL_library_init -lssl32 -leay32 || | ||
| check_lib openssl openssl/ssl.h SSL_library_init -lssl -lcrypto -lws2_32 -lgdi32 || | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.