mirror of https://github.com/openwrt/packages.git
ffmpeg: libffmpeg-audio-dec and -custom use integrated opus decoder
For libffmpeg-audio-dec: Remove @DEVEL flag from libffmpeg-audio-dec. Reasoning for this is that choosing this package does not rquire any further action by the builder in what codecs or formats should be built in. libffmpeg-custom, the other libffmpeg to require @DEVEL, does need further interaction. Add @BUILD_PATENTED as at least one of the audio codecs is likely patent protected. Add ffmpeg's native Opus decoder to libffmpeg-audio-dec Remove libopus dependency to libffmpeg-audio-dec as libopus provides decode and encode support for Opus audio. Since FFmpeg can decode Opus audio on its own, and libffmpeg-audio-dec is intended for audio decoding, libopus is no longer required for Opus audio support. For libffmpeg-custom: Add in options for ffmpeg's integrated Opus decoder Signed-off-by: Ian Leonard <antonlacon@gmail.com>pull/1280/head
parent
5fa4fc4884
commit
ae13b1441d
|
@ -60,11 +60,11 @@ config FFMPEG_CUSTOM_AUDIO_DEC_SUPPORT
|
|||
select FFMPEG_CUSTOM_DECODER_ape
|
||||
select FFMPEG_CUSTOM_DECODER_atrac3
|
||||
select FFMPEG_CUSTOM_DECODER_flac
|
||||
select FFMPEG_CUSTOM_SELECT_libopus
|
||||
select FFMPEG_CUSTOM_DECODER_mp2
|
||||
select FFMPEG_CUSTOM_DECODER_mp3
|
||||
select FFMPEG_CUSTOM_DECODER_mpc7
|
||||
select FFMPEG_CUSTOM_DECODER_mpc8
|
||||
select FFMPEG_CUSTOM_DECODER_opus
|
||||
select FFMPEG_CUSTOM_DECODER_pcm_s16be
|
||||
select FFMPEG_CUSTOM_DECODER_pcm_s16le
|
||||
select FFMPEG_CUSTOM_SELECT_speex
|
||||
|
@ -98,9 +98,10 @@ config FFMPEG_CUSTOM_AUDIO_DEC_SUPPORT
|
|||
select FFMPEG_CUSTOM_DEMUXER_wv
|
||||
select FFMPEG_CUSTOM_PARSER_aac
|
||||
select FFMPEG_CUSTOM_PARSER_aac_latm
|
||||
select FFMPEG_CUSTOM_PARSER_flac
|
||||
select FFMPEG_CUSTOM_PARSER_ac3
|
||||
select FFMPEG_CUSTOM_PARSER_flac
|
||||
select FFMPEG_CUSTOM_PARSER_mpegaudio
|
||||
select FFMPEG_CUSTOM_PARSER_opus
|
||||
select FFMPEG_CUSTOM_PROTOCOL_file
|
||||
select FFMPEG_CUSTOM_PROTOCOL_http
|
||||
select FFMPEG_CUSTOM_PROTOCOL_rtp
|
||||
|
@ -229,6 +230,9 @@ config FFMPEG_CUSTOM_DECODER_mpc8
|
|||
bool "Musepack 8"
|
||||
select FFMPEG_CUSTOM_DEMUXER_mpc8
|
||||
|
||||
config FFMPEG_CUSTOM_DECODER_opus
|
||||
bool "Opus"
|
||||
|
||||
config FFMPEG_CUSTOM_DECODER_pcm_s16be
|
||||
bool "PCM signed 16-bit big-endian"
|
||||
|
||||
|
@ -398,6 +402,9 @@ config FFMPEG_CUSTOM_PARSER_mpegvideo
|
|||
config FFMPEG_CUSTOM_PARSER_mpeg4video
|
||||
bool "MPEG-4 Video"
|
||||
|
||||
config FFMPEG_CUSTOM_PARSER_opus
|
||||
bool "Opus"
|
||||
|
||||
comment "Protocols ---"
|
||||
|
||||
config FFMPEG_CUSTOM_PROTOCOL_file
|
||||
|
|
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||
|
||||
PKG_NAME:=ffmpeg
|
||||
PKG_VERSION:=2.6.3
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||||
PKG_SOURCE_URL:=http://ffmpeg.org/releases/
|
||||
|
@ -162,6 +162,7 @@ FFMPEG_AUDIO_DECODERS:= \
|
|||
mp3* \
|
||||
mpc7 \
|
||||
mpc8 \
|
||||
opus \
|
||||
pcm_* \
|
||||
vorbis \
|
||||
wavpack \
|
||||
|
@ -197,9 +198,10 @@ FFMPEG_AUDIO_DEMUXERS:= \
|
|||
FFMPEG_AUDIO_PARSERS:= \
|
||||
aac \
|
||||
aac_latm \
|
||||
flac \
|
||||
ac3 \
|
||||
flac \
|
||||
mpegaudio \
|
||||
opus \
|
||||
|
||||
FFMPEG_AUDIO_PROTOCOLS:= \
|
||||
file http icecast rtp tcp udp
|
||||
|
@ -308,7 +310,7 @@ endef
|
|||
define Package/libffmpeg-audio-dec
|
||||
$(call Package/libffmpeg/Default)
|
||||
TITLE+= (audio)
|
||||
DEPENDS+= @DEVEL +libopus +libspeex
|
||||
DEPENDS+= @BUILD_PATENTED +libspeex
|
||||
VARIANT:=audio-dec
|
||||
endef
|
||||
|
||||
|
@ -462,7 +464,6 @@ ifeq ($(BUILD_VARIANT),audio-dec)
|
|||
$(call FFMPEG_ENABLE,demuxer,$(FFMPEG_AUDIO_DEMUXERS)) \
|
||||
$(call FFMPEG_ENABLE,parser,$(FFMPEG_AUDIO_PARSERS)) \
|
||||
$(call FFMPEG_ENABLE,protocol,$(FFMPEG_AUDIO_PROTOCOLS)) \
|
||||
--enable-libopus --enable-decoder=libopus \
|
||||
--enable-libspeex --enable-decoder=libspeex \
|
||||
--disable-decoder=pcm_bluray,pcm_dvd \
|
||||
|
||||
|
|
Loading…
Reference in New Issue