Browse Source

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>
lilik-openwrt-22.03
Ian Leonard 10 years ago
parent
commit
ae13b1441d
2 changed files with 14 additions and 6 deletions
  1. +9
    -2
      multimedia/ffmpeg/Config.in
  2. +5
    -4
      multimedia/ffmpeg/Makefile

+ 9
- 2
multimedia/ffmpeg/Config.in View File

@ -60,11 +60,11 @@ config FFMPEG_CUSTOM_AUDIO_DEC_SUPPORT
select FFMPEG_CUSTOM_DECODER_ape select FFMPEG_CUSTOM_DECODER_ape
select FFMPEG_CUSTOM_DECODER_atrac3 select FFMPEG_CUSTOM_DECODER_atrac3
select FFMPEG_CUSTOM_DECODER_flac select FFMPEG_CUSTOM_DECODER_flac
select FFMPEG_CUSTOM_SELECT_libopus
select FFMPEG_CUSTOM_DECODER_mp2 select FFMPEG_CUSTOM_DECODER_mp2
select FFMPEG_CUSTOM_DECODER_mp3 select FFMPEG_CUSTOM_DECODER_mp3
select FFMPEG_CUSTOM_DECODER_mpc7 select FFMPEG_CUSTOM_DECODER_mpc7
select FFMPEG_CUSTOM_DECODER_mpc8 select FFMPEG_CUSTOM_DECODER_mpc8
select FFMPEG_CUSTOM_DECODER_opus
select FFMPEG_CUSTOM_DECODER_pcm_s16be select FFMPEG_CUSTOM_DECODER_pcm_s16be
select FFMPEG_CUSTOM_DECODER_pcm_s16le select FFMPEG_CUSTOM_DECODER_pcm_s16le
select FFMPEG_CUSTOM_SELECT_speex select FFMPEG_CUSTOM_SELECT_speex
@ -98,9 +98,10 @@ config FFMPEG_CUSTOM_AUDIO_DEC_SUPPORT
select FFMPEG_CUSTOM_DEMUXER_wv select FFMPEG_CUSTOM_DEMUXER_wv
select FFMPEG_CUSTOM_PARSER_aac select FFMPEG_CUSTOM_PARSER_aac
select FFMPEG_CUSTOM_PARSER_aac_latm select FFMPEG_CUSTOM_PARSER_aac_latm
select FFMPEG_CUSTOM_PARSER_flac
select FFMPEG_CUSTOM_PARSER_ac3 select FFMPEG_CUSTOM_PARSER_ac3
select FFMPEG_CUSTOM_PARSER_flac
select FFMPEG_CUSTOM_PARSER_mpegaudio select FFMPEG_CUSTOM_PARSER_mpegaudio
select FFMPEG_CUSTOM_PARSER_opus
select FFMPEG_CUSTOM_PROTOCOL_file select FFMPEG_CUSTOM_PROTOCOL_file
select FFMPEG_CUSTOM_PROTOCOL_http select FFMPEG_CUSTOM_PROTOCOL_http
select FFMPEG_CUSTOM_PROTOCOL_rtp select FFMPEG_CUSTOM_PROTOCOL_rtp
@ -229,6 +230,9 @@ config FFMPEG_CUSTOM_DECODER_mpc8
bool "Musepack 8" bool "Musepack 8"
select FFMPEG_CUSTOM_DEMUXER_mpc8 select FFMPEG_CUSTOM_DEMUXER_mpc8
config FFMPEG_CUSTOM_DECODER_opus
bool "Opus"
config FFMPEG_CUSTOM_DECODER_pcm_s16be config FFMPEG_CUSTOM_DECODER_pcm_s16be
bool "PCM signed 16-bit big-endian" bool "PCM signed 16-bit big-endian"
@ -398,6 +402,9 @@ config FFMPEG_CUSTOM_PARSER_mpegvideo
config FFMPEG_CUSTOM_PARSER_mpeg4video config FFMPEG_CUSTOM_PARSER_mpeg4video
bool "MPEG-4 Video" bool "MPEG-4 Video"
config FFMPEG_CUSTOM_PARSER_opus
bool "Opus"
comment "Protocols ---" comment "Protocols ---"
config FFMPEG_CUSTOM_PROTOCOL_file config FFMPEG_CUSTOM_PROTOCOL_file


+ 5
- 4
multimedia/ffmpeg/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=ffmpeg PKG_NAME:=ffmpeg
PKG_VERSION:=2.6.3 PKG_VERSION:=2.6.3
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=http://ffmpeg.org/releases/ PKG_SOURCE_URL:=http://ffmpeg.org/releases/
@ -162,6 +162,7 @@ FFMPEG_AUDIO_DECODERS:= \
mp3* \ mp3* \
mpc7 \ mpc7 \
mpc8 \ mpc8 \
opus \
pcm_* \ pcm_* \
vorbis \ vorbis \
wavpack \ wavpack \
@ -197,9 +198,10 @@ FFMPEG_AUDIO_DEMUXERS:= \
FFMPEG_AUDIO_PARSERS:= \ FFMPEG_AUDIO_PARSERS:= \
aac \ aac \
aac_latm \ aac_latm \
flac \
ac3 \ ac3 \
flac \
mpegaudio \ mpegaudio \
opus \
FFMPEG_AUDIO_PROTOCOLS:= \ FFMPEG_AUDIO_PROTOCOLS:= \
file http icecast rtp tcp udp file http icecast rtp tcp udp
@ -308,7 +310,7 @@ endef
define Package/libffmpeg-audio-dec define Package/libffmpeg-audio-dec
$(call Package/libffmpeg/Default) $(call Package/libffmpeg/Default)
TITLE+= (audio) TITLE+= (audio)
DEPENDS+= @DEVEL +libopus +libspeex
DEPENDS+= @BUILD_PATENTED +libspeex
VARIANT:=audio-dec VARIANT:=audio-dec
endef endef
@ -462,7 +464,6 @@ ifeq ($(BUILD_VARIANT),audio-dec)
$(call FFMPEG_ENABLE,demuxer,$(FFMPEG_AUDIO_DEMUXERS)) \ $(call FFMPEG_ENABLE,demuxer,$(FFMPEG_AUDIO_DEMUXERS)) \
$(call FFMPEG_ENABLE,parser,$(FFMPEG_AUDIO_PARSERS)) \ $(call FFMPEG_ENABLE,parser,$(FFMPEG_AUDIO_PARSERS)) \
$(call FFMPEG_ENABLE,protocol,$(FFMPEG_AUDIO_PROTOCOLS)) \ $(call FFMPEG_ENABLE,protocol,$(FFMPEG_AUDIO_PROTOCOLS)) \
--enable-libopus --enable-decoder=libopus \
--enable-libspeex --enable-decoder=libspeex \ --enable-libspeex --enable-decoder=libspeex \
--disable-decoder=pcm_bluray,pcm_dvd \ --disable-decoder=pcm_bluray,pcm_dvd \


Loading…
Cancel
Save