@ -8,12 +8,12 @@
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := ffmpeg
PKG_VERSION := 2.7.6
PKG_VERSION := 2.8.7
PKG_RELEASE := 1
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.xz
PKG_SOURCE_URL := http://ffmpeg.org/releases/
PKG_MD5SUM := 578c88242872e58cf0db5f23faa4b2af
PKG_MD5SUM := 7e5b1c98eedfc3a364fa8c4095deeae5
PKG_MAINTAINER := Ted Hess <thess@kitschensync.net>
PKG_LICENSE := LGPL-2.1+ GPL-2+ LGPL-3
@ -277,13 +277,12 @@ $(call Package/ffmpeg/Default/description)
This package contains the FFmpeg streaming server.
e n d e f
d e f i n e P a c k a g e / l i b f f m p e g / D e f a u l t
$( call Package /ffmpeg /Default )
SECTION:= libs
CATEGORY:= Libraries
TITLE += libraries
DEPENDS += +libpthread +zlib +libbz2
DEPENDS += @BUILD_PATENTED +libpthread +zlib +libbz2
PROVIDES:= libffmpeg
e n d e f
@ -291,7 +290,8 @@ endef
d e f i n e P a c k a g e / l i b f f m p e g - c u s t o m
$( call Package /libffmpeg /Default )
TITLE += ( custom)
DEPENDS += @DEVEL @!ALL +libopus +libspeex
DEPENDS += +FFMPEG_CUSTOM_SELECT_libopus:libopus +FFMPEG_CUSTOM_SELECT_speex:libspeex \
+FFMPEG_CUSTOM_SELECT_x264:libx264 +FFMPEG_CUSTOM_SELECT_mp3lame:lame-lib
VARIANT:= custom
MENU:= 1
e n d e f
@ -310,7 +310,7 @@ endef
d e f i n e P a c k a g e / l i b f f m p e g - a u d i o - d e c
$( call Package /libffmpeg /Default )
TITLE += ( audio)
DEPENDS += @BUILD_PATENTED +libspeex
DEPENDS += +libspeex +libopus
VARIANT:= audio-dec
e n d e f
@ -324,7 +324,7 @@ endef
d e f i n e P a c k a g e / l i b f f m p e g - f u l l
$( call Package /libffmpeg /Default )
TITLE += ( full)
DEPENDS += @BUILD_PATENTED +alsa-lib
DEPENDS += +alsa-lib +libx264 +lame-lib +libopus +libspeex
VARIANT:= full
e n d e f
@ -338,7 +338,6 @@ endef
d e f i n e P a c k a g e / l i b f f m p e g - m i n i
$( call Package /libffmpeg /Default )
TITLE += ( mini)
DEPENDS += @BUILD_PATENTED
VARIANT:= mini
e n d e f
@ -387,10 +386,8 @@ FFMPEG_CONFIGURE:= \
--disable-fma3 \
--disable-fma4 \
--disable-avx2 \
--disable-vfp \
--disable-neon \
--disable-inline-asm \
--disable-yasm \
--disable-inline-asm \
--disable-mips32r2 \
--disable-mipsdspr1 \
--disable-mipsdspr2 \
@ -403,6 +400,33 @@ FFMPEG_CONFIGURE:= \
--disable-vdpau \
--disable-outdevs
#selectibly disable optimizations according to arch/cpu type
i f n e q ( $( findstring arm ,$ ( CONFIG_ARCH ) ) , )
ifeq ( ,$( findstring vfp,$( CONFIG_TARGET_OPTIMIZATION) ) )
FFMPEG_CONFIGURE += \
--disable-vfp
endif
ifeq ( ,$( findstring neon,$( CONFIG_TARGET_OPTIMIZATION) ) )
FFMPEG_CONFIGURE += \
--disable-neon
endif
e l s e i f n e q ( $( ARCH ) , a a r c h 6 4 )
FFMPEG_CONFIGURE += \
--disable-vfp \
--disable-neon
e n d i f
i f e q ( $( BUILD_VARIANT ) , f u l l )
FFMPEG_CONFIGURE += \
--enable-libopus --enable-decoder= libopus \
--enable-libspeex --enable-decoder= libspeex \
--enable-libx264 \
--enable-libmp3lame
e n d i f
i f e q ( $( BUILD_VARIANT ) , c u s t o m )
FFMPEG_ENABLE = \
@ -434,14 +458,22 @@ endif
i f e q ( $( CONFIG_FFMPEG_CUSTOM_SELECT_libopus ) , y )
FFMPEG_CONFIGURE += \
--enable-libopus --enable-decoder= libopus \
--enable-libopus --enable-decoder= libopus
e n d i f
i f e q ( $( CONFIG_FFMPEG_CUSTOM_SELECT_speex ) , y )
FFMPEG_CONFIGURE += \
--enable-libspeex --enable-decoder= libspeex \
--enable-libspeex --enable-decoder= libspeex
e n d i f
i f e q ( $( CONFIG_FFMPEG_CUSTOM_SELECT_x 264) , y )
FFMPEG_CONFIGURE += \
--enable-libx264 --enable-decoder= libx264
e n d i f
i f e q ( $( CONFIG_FFMPEG_CUSTOM_SELECT_mp 3lame ) , y )
FFMPEG_CONFIGURE += \
--enable-libmp3lame --enable-encoder= mp3
e n d i f
e n d i f
@ -593,7 +625,9 @@ Package/libffmpeg-audio-dec/install = $(Package/libffmpeg-custom/install)
$( eval $ ( call BuildPackage ,ffmpeg ) )
$( eval $ ( call BuildPackage ,ffprobe ) )
$( eval $ ( call BuildPackage ,ffserver ) )
$( eval $ ( call BuildPackage ,libffmpeg -custom ) )
$( eval $ ( call BuildPackage ,libffmpeg -audio -dec ) )
$( eval $ ( call BuildPackage ,libffmpeg -full ) )
$( eval $ ( call BuildPackage ,libffmpeg -mini ) )
$( eval $ ( call BuildPackage ,libffmpeg -audio -dec ) )
i f n e q ( $( CONFIG_ALL ) , y )
$( eval $( call BuildPackage,libffmpeg-custom) )
e n d i f