mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-19 16:40:46 -09:00
ffmpeg: add options for postproc/swscale
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
@@ -47,6 +47,17 @@ config BR2_PACKAGE_FFMPEG_FFSERVER
|
|||||||
help
|
help
|
||||||
FFserver is a streaming server for both audio and video.
|
FFserver is a streaming server for both audio and video.
|
||||||
|
|
||||||
|
config BR2_PACKAGE_FFMPEG_POSTPROC
|
||||||
|
bool "Build libpostproc"
|
||||||
|
depends on BR2_PACKAGE_FFMPEG_GPL
|
||||||
|
help
|
||||||
|
Postproc is a library of video postprocessing routines.
|
||||||
|
|
||||||
|
config BR2_PACKAGE_FFMPEG_SWSCALE
|
||||||
|
bool "Build libswscale"
|
||||||
|
help
|
||||||
|
Swscale is a library of video scaling routines.
|
||||||
|
|
||||||
config BR2_PACKAGE_FFMPEG_ENCODERS
|
config BR2_PACKAGE_FFMPEG_ENCODERS
|
||||||
string "Enabled encoders"
|
string "Enabled encoders"
|
||||||
default "all"
|
default "all"
|
||||||
|
|||||||
@@ -13,8 +13,6 @@ FFMPEG_CONF_OPT = \
|
|||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--enable-shared \
|
--enable-shared \
|
||||||
--disable-avfilter \
|
--disable-avfilter \
|
||||||
--disable-postproc \
|
|
||||||
--disable-swscale \
|
|
||||||
--disable-vhook \
|
--disable-vhook \
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_FFMPEG_GPL),y)
|
ifeq ($(BR2_PACKAGE_FFMPEG_GPL),y)
|
||||||
@@ -49,6 +47,18 @@ else
|
|||||||
FFMPEG_CONF_OPT += --disable-ffserver
|
FFMPEG_CONF_OPT += --disable-ffserver
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_FFMPEG_POSTPROC),y)
|
||||||
|
FFMPEG_CONF_OPT += --enable-postproc
|
||||||
|
else
|
||||||
|
FFMPEG_CONF_OPT += --disable-postproc
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_FFMPEG_SWSCALE),y)
|
||||||
|
FFMPEG_CONF_OPT += --enable-swscale
|
||||||
|
else
|
||||||
|
FFMPEG_CONF_OPT += --disable-swscale
|
||||||
|
endif
|
||||||
|
|
||||||
ifneq ($(call qstrip,$(BR2_PACKAGE_FFMPEG_ENCODERS)),all)
|
ifneq ($(call qstrip,$(BR2_PACKAGE_FFMPEG_ENCODERS)),all)
|
||||||
FFMPEG_CONF_OPT += --disable-encoders \
|
FFMPEG_CONF_OPT += --disable-encoders \
|
||||||
$(foreach x,$(call qstrip,$(BR2_PACKAGE_FFMPEG_ENCODERS)),--enable-encoder=$(x))
|
$(foreach x,$(call qstrip,$(BR2_PACKAGE_FFMPEG_ENCODERS)),--enable-encoder=$(x))
|
||||||
|
|||||||
Reference in New Issue
Block a user