depends on FFMPEG_CUSTOM_PATENTED
select FFMPEG_CUSTOM_PARSER_aac
+config FFMPEG_CUSTOM_SELECT_adpcm
+ bool "ADPCM (multiple types)"
+
config FFMPEG_CUSTOM_DECODER_ac3
bool "AC3"
depends on FFMPEG_CUSTOM_PATENTED
select FFMPEG_CUSTOM_PARSER_ac3
+config FFMPEG_CUSTOM_DECODER_alac
+ bool "ALAC"
+
+config FFMPEG_CUSTOM_DECODER_amrnb
+ bool "AMR-NB"
+ select FFMPEG_CUSTOM_DEMUXER_amr
+
+config FFMPEG_CUSTOM_DECODER_amrwb
+ bool "AMR-WB"
+ select FFMPEG_CUSTOM_DEMUXER_amr
+
+config FFMPEG_CUSTOM_DECODER_ape
+ bool "APE"
+
config FFMPEG_CUSTOM_DECODER_atrac3
bool "ATRAC3"
depends on FFMPEG_CUSTOM_PATENTED
config FFMPEG_CUSTOM_DECODER_flac
bool "FLAC"
+ select FFMPEG_CUSTOM_PARSER_flac
config FFMPEG_CUSTOM_DECODER_gif
bool "GIF"
bool "MPEG-4"
depends on FFMPEG_CUSTOM_PATENTED
+config FFMPEG_CUSTOM_DECODER_mpc7
+ bool "Musepack 7"
+ select FFMPEG_CUSTOM_DEMUXER_mpc
+
+config FFMPEG_CUSTOM_DECODER_mpc8
+ bool "Musepack 8"
+ select FFMPEG_CUSTOM_DEMUXER_mpc8
+
config FFMPEG_CUSTOM_DECODER_pcm_s16be
bool "PCM signed 16-bit big-endian"
bool "PNG"
select FFMPEG_CUSTOM_DECODER_zlib
+config FFMPEG_CUSTOM_SELECT_speex
+ bool "Speex"
+
config FFMPEG_CUSTOM_DECODER_vorbis
bool "Vorbis"
+config FFMPEG_CUSTOM_DECODER_wavpack
+ bool "Wavpack"
+
config FFMPEG_CUSTOM_DECODER_wmav1
bool "WMAv1"
depends on FFMPEG_CUSTOM_PATENTED
config FFMPEG_CUSTOM_DEMUXER_ac3
bool "AC3"
+config FFMPEG_CUSTOM_DEMUXER_amr
+ bool "AMR"
+
+config FFMPEG_CUSTOM_DEMUXER_ape
+ bool "APE"
+
config FFMPEG_CUSTOM_DEMUXER_flac
bool "FLAC"
config FFMPEG_CUSTOM_DEMUXER_mpegts
bool "MPEG-2 (TS)"
+config FFMPEG_CUSTOM_DEMUXER_mpc
+ bool "Musepack"
+
+config FFMPEG_CUSTOM_DEMUXER_mpc8
+ bool "Musepack 8"
+
config FFMPEG_CUSTOM_DEMUXER_ogg
bool "Ogg"
bool "RTSP"
select FFMPEG_CUSTOM_DEMUXER_rm
select FFMPEG_CUSTOM_DEMUXER_sdp
+ select FFMPEG_CUSTOM_DEMUXER_rtp
config FFMPEG_CUSTOM_DEMUXER_sdp
bool "SDP"
select FFMPEG_CUSTOM_DEMUXER_mpegts
+config FFMPEG_CUSTOM_DEMUXER_rtp
+ bool "RTP"
+
+config FFMPEG_CUSTOM_DEMUXER_wav
+ bool "WAV"
+
+config FFMPEG_CUSTOM_DEMUXER_wv
+ bool "WV"
+
comment "Parsers ---"
config FFMPEG_CUSTOM_PARSER_aac
config FFMPEG_CUSTOM_PARSER_ac3
bool "AC3"
+config FFMPEG_CUSTOM_PARSER_flac
+ bool "FLAC"
+
config FFMPEG_CUSTOM_PARSER_h264
bool "H.264"
depends on FFMPEG_CUSTOM_PATENTED
#
-# Copyright (C) 2006-2013 OpenWrt.org
+# Copyright (C) 2006-2014 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
PKG_NAME:=ffmpeg
PKG_VERSION:=0.11.5
-PKG_RELEASE:=1
+PKG_RELEASE:=4
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=http://ffmpeg.org/releases/
PKG_MD5SUM:=ea25fc252c132141f12988ed5506bfe8
+PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
PKG_LICENSE:=LGPLv2.1+ GPLv2+ LGPLv3
PKG_LICENSE_FILES:=COPYING.GPLv2 COPYING.GPLv3 COPYING.LGPLv2.1 COPYING.LGPLv3
FFMPEG_CUSTOM_DECODERS:= \
aac \
ac3 \
+ alac \
+ amrnb \
+ amrwb \
+ ape \
atrac3 \
flac \
gif \
mpeg2video \
mpeg4 \
mpegvideo \
+ mpc7 \
+ mpc8 \
pcm_s16be \
pcm_s16le \
png \
vorbis \
+ wavpack \
wmav1 \
wmav2 \
zlib \
FFMPEG_CUSTOM_DEMUXERS:= \
aac \
ac3 \
+ amr \
+ ape \
avi \
flac \
ffm \
mpegps \
mpegts \
mpegvideo \
+ mpc \
+ mpc8 \
ogg \
rm \
rtsp \
+ rtp \
sdp \
v4l2 \
+ wav \
+ wv \
FFMPEG_CUSTOM_PARSERS:= \
aac \
+ flac \
ac3 \
h264 \
mpegaudio \
mp3 \
mpegts \
mpegvideo \
+ sdp \
rtsp \
FFMPEG_MINI_PARSERS:= \
FFMPEG_MINI_PROTOCOLS := \
file http rtp tcp udp \
+FFMPEG_AUDIO_DECODERS:= \
+ aac \
+ aac_latm \
+ ac3 \
+ adpcm_* \
+ alac \
+ amrnb \
+ amrwb \
+ ape \
+ atrac3 \
+ flac \
+ mp2 \
+ mp3* \
+ mpc7 \
+ mpc8 \
+ pcm_* \
+ vorbis \
+ wavpack \
+ wmav1 \
+ wmav2 \
+ wmalossless \
+ wmapro \
+ zlib \
+
+FFMPEG_AUDIO_DEMUXERS:= \
+ aac \
+ ac3 \
+ aiff \
+ amr \
+ ape \
+ avi \
+ flac \
+ ffm \
+ matroska \
+ mp3 \
+ mov \
+ mpc \
+ mpc8 \
+ mpegts \
+ ogg \
+ rm \
+ rtsp \
+ rtp \
+ sdp \
+ wav \
+ wv \
+
+FFMPEG_AUDIO_PARSERS:= \
+ aac \
+ aac_latm \
+ flac \
+ ac3 \
+ mpegaudio \
+
+FFMPEG_AUDIO_PROTOCOLS:= \
+ file http rtp tcp udp
+
+
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
PKG_CONFIG_DEPENDS:= \
define Package/libffmpeg-custom
$(call Package/libffmpeg/Default)
TITLE+= (mini)
- DEPENDS+= @DEVEL
+ DEPENDS+= @DEVEL +libspeex
VARIANT:=custom
MENU:=1
endef
endef
+define Package/libffmpeg-audio-dec
+$(call Package/libffmpeg/Default)
+ TITLE+= (audio)
+ DEPENDS+= @DEVEL +libspeex
+ VARIANT:=audio-dec
+endef
+
+define Package/libffmpeg-audio-dec/description
+$(call Package/ffmpeg/Default/description)
+ .
+ This package contains FFmpeg shared libraries for audio decoding
+endef
+
+
define Package/libffmpeg-full
$(call Package/libffmpeg/Default)
TITLE+= (full)
--disable-doc \
--disable-dxva2 \
--enable-pthreads \
+ --disable-optimizations \
--enable-small \
--disable-stripping \
--enable-zlib \
$(call FFMPEG_ENABLE,parser,$(FFMPEG_CUSTOM_PARSERS),CONFIG_FFMPEG_CUSTOM_PARSER) \
$(call FFMPEG_ENABLE,protocol,$(FFMPEG_CUSTOM_PROTOCOLS),CONFIG_FFMPEG_CUSTOM_PROTOCOL) \
+ifeq ($(CONFIG_FFMPEG_CUSTOM_SELECT_adpcm),y)
+ FFMPEG_CONFIGURE+= \
+ --enable-decoder=adpcm_ima_wav \
+ --enable-decoder=adpcm_ima_qt \
+ --enable-decoder=adpcm_ms \
+
+endif
+
+ifeq ($(CONFIG_FFMPEG_CUSTOM_SELECT_speex),y)
+ FFMPEG_CONFIGURE+= \
+ --enable-libspeex --enable-decoder=libspeex \
+
+endif
+
+endif
+
+ifeq ($(BUILD_VARIANT),audio-dec)
+
+ FFMPEG_ENABLE= \
+ $(foreach c, $(2), \
+ --enable-$(1)="$(c)" \
+ )
+
+ FFMPEG_CONFIGURE+= \
+ --disable-ffmpeg \
+ --disable-ffplay \
+ --disable-ffprobe \
+ --disable-ffserver \
+ --disable-avfilter \
+ --disable-postproc \
+ --disable-swresample \
+ --disable-swscale \
+ --disable-everything \
+ $(call FFMPEG_ENABLE,decoder,$(FFMPEG_AUDIO_DECODERS)) \
+ $(call FFMPEG_ENABLE,demuxer,$(FFMPEG_AUDIO_DEMUXERS)) \
+ $(call FFMPEG_ENABLE,parser,$(FFMPEG_AUDIO_PARSERS)) \
+ $(call FFMPEG_ENABLE,protocol,$(FFMPEG_AUDIO_PROTOCOLS)) \
+ --enable-libspeex --enable-decoder=libspeex \
+ --disable-decoder=pcm_bluray,pcm_dvd \
+
endif
ifeq ($(BUILD_VARIANT),mini)
endef
Build/InstallDev/mini = $(Build/InstallDev/custom)
+Build/InstallDev/audio-dec = $(Build/InstallDev/custom)
# XXX: attempt at installing "best" dev files available
ifeq ($(BUILD_VARIANT),custom)
Build/InstallDev = $(Build/InstallDev/custom)
endif
endif
+ifeq ($(BUILD_VARIANT),audio-dec)
+ # XXX: only install "audio-dec" dev files if -full & -mini are not selected
+ ifeq ($(CONFIG_PACKAGE_libffmpeg-full)$(CONFIG_PACKAGE_libffmpeg-mini),)
+ Build/InstallDev = $(Build/InstallDev/audio-dec)
+ endif
+endif
ifeq ($(BUILD_VARIANT),full)
# XXX: always install "full" dev files if -full is selected
Build/InstallDev = $(Build/InstallDev/full)
endef
Package/libffmpeg-mini/install = $(Package/libffmpeg-custom/install)
+Package/libffmpeg-audio-dec/install = $(Package/libffmpeg-custom/install)
$(eval $(call BuildPackage,ffmpeg))
$(eval $(call BuildPackage,ffprobe))
$(eval $(call BuildPackage,libffmpeg-custom))
$(eval $(call BuildPackage,libffmpeg-full))
$(eval $(call BuildPackage,libffmpeg-mini))
+$(eval $(call BuildPackage,libffmpeg-audio-dec))