Commit 2a700d58 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI

remove openh264 and ffmpeg

parent 1ed9ce38
BSD 3-clause license
Copyright (c) 2015-2017, conda-forge
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#!/bin/bash
# unset the SUBDIR variable since it changes the behavior of make here
unset SUBDIR
# unset pkg_config variable which points to pkg_config version number
unset pkg_config
./configure \
--prefix="${PREFIX}" \
--cc=${CC} \
--disable-doc \
--enable-shared \
--enable-static \
--enable-zlib \
--enable-pic \
--enable-gpl \
--enable-version3 \
--disable-nonfree \
--enable-hardcoded-tables \
--enable-avresample \
--enable-libfreetype \
--disable-openssl \
--disable-gnutls \
--enable-libvpx \
--enable-pthreads \
--enable-libopus \
--enable-postproc \
--enable-libopenh264
make -j${CPU_COUNT} ${VERBOSE_AT}
make install -j${CPU_COUNT} ${VERBOSE_AT}
{% set version = "4.0" %}
package:
name: ffmpeg
version: {{ version }}
source:
url: https://ffmpeg.org/releases/ffmpeg-{{ version }}.tar.gz # [not win]
sha256: dc4b1c622baa34fc68d763cd2818e419d1af90271e0506604905f25a46ea8273 # [not win]
# 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:
number: 2
# The windows build is repacking binaries rather than building from source
skip: True # [win]
run_exports:
# seems to be minor version compatibility
# https://abi-laboratory.pro/tracker/timeline/ffmpeg/
- {{ pin_subpackage('ffmpeg', max_pin='x.x') }}
missing_dso_whitelist: # [osx]
- /System/Library/Frameworks/VideoToolbox.framework/Versions/A/VideoToolbox # [osx]
requirements:
build:
- {{ compiler('c') }}
- {{ compiler('cxx') }}
- pkg-config # [not win]
- libtool # [not win]
- yasm # [not win]
- make # [not win]
host:
- bzip2 # [not win]
- freetype # [not win]
- libiconv # [osx]
- zlib # [not win]
- freetype # [not win]
- libvpx # [not win]
- libopus # [not win]
- openh264
test:
commands:
- ffmpeg --help
- ffmpeg -codecs | grep "DEVI.S zlib" # [unix]
# macOS h264 support comes from the VideoToolbox Framework I guess?
- ffmpeg -codecs | grep "DEV.LS h264" # [unix]
# It is unclear to me why this is supported on macOS. Hmm.
- ffmpeg -protocols | grep "https" # [osx]
# Verify dynamic libraries on all systems
{% set ffmpeg_libs = [
"avcodec",
"avdevice",
"swresample",
"postproc",
"avfilter",
"swresample",
"avcodec",
"avformat",
"swscale",
"avresample"
] %}
{% 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 }}.so # [linux]
{% endfor %}
- conda inspect linkages -p $PREFIX ffmpeg # [not win]
- conda inspect objects -p $PREFIX ffmpeg # [osx]
about:
home: http://www.ffmpeg.org/
license: GPL 3
license_file: COPYING.GPLv3 # [unix]
summary: Cross-platform solution to record, convert and stream audio and video.
dev_url: https://ffmpeg.org/developer.html
doc_url: https://ffmpeg.org/documentation.html
extra:
recipe-maintainers:
- amohammadi
--- 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);
#!/bin/bash
make PREFIX=$PREFIX -j${CPU_COUNT}
make PREFIX=$PREFIX install
mkdir -p -m755 -v "$PREFIX"/bin
install -m755 -v h264dec "$PREFIX"/bin/h264dec
install -m755 -v h264enc "$PREFIX"/bin/h264enc
{% set name = "openh264" %}
{% set version = "1.7.0" %}
{% set hash_type = "sha256" %}
{% set hash_value = "9c07c38d7de00046c9c52b12c76a2af7648b70d05bd5460c8b67f6895738653f" %}
package:
name: {{ name }}
version: {{ version }}
source:
fn: {{ name }}-v{{ version }}.tar.gz
url: https://github.com/cisco/openh264/archive/v{{ version }}.tar.gz
'{{ hash_type }}': '{{ hash_value }}'
build:
number: 2
run_exports:
# https://abi-laboratory.pro/tracker/timeline/openh264
- {{ pin_subpackage(name, max_pin='x.x') }}
requirements:
build:
- {{ compiler('c') }}
- {{ compiler('cxx') }}
- pkg-config
- nasm
host:
- zlib
test:
commands:
- h264enc -h
- test -f $PREFIX/bin/h264dec
- test -f $PREFIX/lib/libopenh264.dylib # [osx]
- test -f $PREFIX/lib/libopenh264.so # [linux]
- conda inspect linkages -p $PREFIX {{ name }} # [not win]
- conda inspect objects -p $PREFIX {{ name }} # [osx]
about:
home: http://www.openh264.org/
license: BSD-2-Clause
license_family: BSD
license_file: LICENSE
summary: OpenH264 is a codec library which supports H.264 encoding and decoding
dev_url: https://github.com/cisco/openh264
doc_url: https://github.com/cisco/openh264
extra:
recipe-maintainers:
- amohammadi
conda/vlfeat
conda/libblitz
conda/libmatio
conda/openh264
conda/ffmpeg
conda/libsvm
conda/openfst
conda/sox
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment