Skip to content
Snippets Groups Projects
Commit d5ebabfa authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

Merge branch 'ffmpeg' into 'master'

[ffmpeg] Bump to version 4

See merge request bob/bob.conda!381
parents 1ccf2db0 c97b639a
No related branches found
No related tags found
1 merge request!381[ffmpeg] Bump to version 4
Pipeline #24448 failed
...@@ -5,22 +5,25 @@ unset SUBDIR ...@@ -5,22 +5,25 @@ unset SUBDIR
./configure \ ./configure \
--prefix="${PREFIX}" \ --prefix="${PREFIX}" \
--cc=${CC} \
--disable-doc \ --disable-doc \
--enable-shared \ --enable-shared \
--extra-cflags="-fPIC `pkg-config --cflags zlib`" \ --enable-static \
--extra-cxxflags=="-fPIC" \ --enable-zlib \
--extra-libs="`pkg-config --libs zlib`" \
--enable-pic \ --enable-pic \
--disable-static \ --enable-gpl \
--disable-gpl \ --enable-version3 \
--disable-nonfree \ --disable-nonfree \
--enable-hardcoded-tables \
--enable-avresample \
--enable-libfreetype \
--disable-openssl \ --disable-openssl \
--disable-gnutls \
--enable-libvpx \ --enable-libvpx \
--enable-libopenh264 \ --enable-libopenh264 \
--pkg-config=${BUILD_PREFIX}/bin/pkg-config \ --enable-libopus \
--cc=${CC} \ --enable-pthreads \
--cxx=${CXX} \ --enable-postproc
--enable-libopus
make -j${CPU_COUNT} make -j${CPU_COUNT} ${VERBOSE_AT}
make install make install -j${CPU_COUNT} ${VERBOSE_AT}
{% set version = "3.4" %} {% set version = "4.0" %}
package: package:
name: ffmpeg name: ffmpeg
...@@ -6,16 +6,31 @@ package: ...@@ -6,16 +6,31 @@ package:
source: source:
url: https://ffmpeg.org/releases/ffmpeg-{{ version }}.tar.gz url: https://ffmpeg.org/releases/ffmpeg-{{ version }}.tar.gz
sha256: 6ed03b00404a3923e3c2f560248a9c9ad79fbaaee26d723f74aae6b31fe2bae6 sha256: dc4b1c622baa34fc68d763cd2818e419d1af90271e0506604905f25a46ea8273
# This patch is required to fix https://trac.macports.org/ticket/55746
# with Xcode < 7.0, where _Nullable attribues are not supported.
# Can probably be removed once the compiler infrastructure is updated.
patches: # [osx]
- patch-libavcodec-videotoolboxenc.c-drop-Nullable.patch # [osx]
fn: ffmpeg-{{ version }}-win32-shared.zip # [win32]
url: https://ffmpeg.zeranoe.com/builds/win32/shared/ffmpeg-{{ version }}-win32-shared.zip # [win32]
sha256: 530c92df0ca14c35901b4b681847d62da3c50a0cc9b7ced37b04968f6b5c243d # [win32]
fn: ffmpeg-{{ version }}-win64-shared.zip # [win64]
url: https://ffmpeg.zeranoe.com/builds/win64/shared/ffmpeg-{{ version }}-win64-shared.zip # [win64]
sha256: 8fe2d344463dbefc2db4239a4203a55ed0324faceaae57276a40c4fabda84c37 # [win64]
build: build:
number: 1 number: 0
# The windows build is repacking binaries rather than building from source # The windows build is repacking binaries rather than building from source
skip: True # [win] skip: True # [win]
run_exports: run_exports:
# seems to be minor version compatibility # seems to be minor version compatibility
# https://abi-laboratory.pro/tracker/timeline/ffmpeg/ # https://abi-laboratory.pro/tracker/timeline/ffmpeg/
- {{ pin_subpackage('ffmpeg', max_pin='x.x') }} - {{ pin_subpackage('ffmpeg', max_pin='x.x') }}
missing_dso_whitelist: # [osx]
- /System/Library/Frameworks/VideoToolbox.framework/Versions/A/VideoToolbox # [osx]
requirements: requirements:
build: build:
...@@ -24,10 +39,13 @@ requirements: ...@@ -24,10 +39,13 @@ requirements:
- pkg-config - pkg-config
- libtool - libtool
- yasm - yasm
- make
host: host:
- bzip2 - bzip2
- zlib - zlib
- libiconv # [osx] - libiconv # [osx]
- freetype
- libvpx - libvpx
- libopus - libopus
- openh264 - openh264
...@@ -36,16 +54,22 @@ test: ...@@ -36,16 +54,22 @@ test:
commands: commands:
- ffmpeg --help - ffmpeg --help
- ffmpeg -codecs | grep "DEVI.S zlib" # [unix] - ffmpeg -codecs | grep "DEVI.S zlib" # [unix]
# macOS h264 support comes from the VideoToolbox Framework I guess?
- ffmpeg -codecs | grep "DEV.LS h264" # [osx]
# It is unclear to me why this is supported on macOS. Hmm.
- ffmpeg -protocols | grep "https" # [osx]
# Verify dynamic libraries on all systems # Verify dynamic libraries on all systems
{% set ffmpeg_libs = [ {% set ffmpeg_libs = [
"avcodec", "avcodec",
"avdevice", "avdevice",
"swresample", "swresample",
"postproc",
"avfilter", "avfilter",
"swresample", "swresample",
"avcodec", "avcodec",
"avformat", "avformat",
"swscale", "swscale",
"avresample"
] %} ] %}
{% for each_ffmpeg_lib in ffmpeg_libs %} {% for each_ffmpeg_lib in ffmpeg_libs %}
- test -f $PREFIX/lib/lib{{ each_ffmpeg_lib }}.dylib # [osx] - test -f $PREFIX/lib/lib{{ each_ffmpeg_lib }}.dylib # [osx]
...@@ -56,10 +80,9 @@ test: ...@@ -56,10 +80,9 @@ test:
about: about:
home: http://www.ffmpeg.org/ home: http://www.ffmpeg.org/
license: LGPL 2.1 license: GPL 3
license_family: LGPL license_file: COPYING.GPLv3 # [unix]
license_file: COPYING.LGPLv2.1 summary: Cross-platform solution to record, convert and stream audio and video.
summary: Solution to record, convert and stream audio and video
dev_url: https://ffmpeg.org/developer.html dev_url: https://ffmpeg.org/developer.html
doc_url: https://ffmpeg.org/documentation.html doc_url: https://ffmpeg.org/documentation.html
......
--- libavcodec/videotoolboxenc.c.old 2018-01-18 17:00:25.000000000 +0100
+++ libavcodec/videotoolboxenc.c 2018-01-24 18:51:02.000000000 +0100
@@ -41,7 +41,7 @@ enum { kCMVideoCodecType_HEVC = 'hvc1' }
typedef OSStatus (*getParameterSetAtIndex)(CMFormatDescriptionRef videoDesc,
size_t parameterSetIndex,
- const uint8_t * _Nullable *parameterSetPointerOut,
+ const uint8_t **parameterSetPointerOut,
size_t *parameterSetSizeOut,
size_t *parameterSetCountOut,
int *NALUnitHeaderLengthOut);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment