package/tvheadend: add various options to disable optional components
PATCH v2 1/1 package/tvheadend: add various options to disable optional components
When enabled some IPTV streams are piped using /usr/bin/ffmpeg so make sure that the ffmpeg binary is present.
Transcoding support can already be disabled reducing /usr/bin/tvheadend by 1,03MB.
By disabling all new options provided by this patch the binary size can additionally be reduced by 2,08MB.
---
v2: removed build-dependency to ffmpeg for iptv support (Yann)
re-wrapped descrambler configure options (Yann)
package/tvheadend/Config.in | 27 ++++++++++++++++++++++++++- package/tvheadend/tvheadend.mk | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+), 1 deletion(-)
package/tvheadend/Config.in +26 -1
@@ -3,7 +3,7 @@ comment "tvheadend needs a toolchain w/ NPTL, headers >= 3.2, dynamic library" !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2 || BR2_STATIC_LIBS depends on BR2_TOOLCHAIN_HAS_SYNC_4 -config BR2_PACKAGE_TVHEADEND +menuconfig BR2_PACKAGE_TVHEADEND bool "tvheadend" depends on !BR2_STATIC_LIBS # dladdr() depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
@@ -28,6 +28,31 @@ config BR2_PACKAGE_TVHEADEND if BR2_PACKAGE_TVHEADEND +config BR2_PACKAGE_TVHEADEND_DESCRAMBLER + bool "descrambler support" + default y + help + Enable support for various descrambler modules. + +config BR2_PACKAGE_TVHEADEND_IPTV + bool "IPTV support" + default y + select BR2_PACKAGE_FFMPEG_FFMPEG if BR2_PACKAGE_FFMPEG # runtime + help + Enable IPTV support. + +config BR2_PACKAGE_TVHEADEND_SATIP + bool "SAT>IP support" + default y + help + Enable SAT>IP support. + +config BR2_PACKAGE_TVHEADEND_TIMESHIFT + bool "timeshift support" + default y + help + Enable timeshift support. + config BR2_PACKAGE_TVHEADEND_TRANSCODING bool "transcoding support" depends on BR2_PACKAGE_FFMPEG_ARCH_SUPPORTS
package/tvheadend/tvheadend.mk +34 -0
@@ -63,6 +63,40 @@ TVHEADEND_CONF_OPTS += \ --disable-libx265 endif +ifeq ($(BR2_PACKAGE_TVHEADEND_DESCRAMBLER),y) +TVHEADEND_CONF_OPTS += \ + --enable-cardclient \ + --enable-cwc \ + --enable-cccam \ + --enable-capmt \ + --enable-constcw +else +TVHEADEND_CONF_OPTS += \ + --disable-cardclient \ + --disable-cwc \ + --disable-cccam \ + --disable-capmt \ + --disable-constcw +endif + +ifeq ($(BR2_PACKAGE_TVHEADEND_IPTV),y) +TVHEADEND_CONF_OPTS += --enable-iptv +else +TVHEADEND_CONF_OPTS += --disable-iptv +endif + +ifeq ($(BR2_PACKAGE_TVHEADEND_SATIP),y) +TVHEADEND_CONF_OPTS += --enable-satip_client --enable-satip_server +else +TVHEADEND_CONF_OPTS += --disable-satip_client --disable-satip_server +endif + +ifeq ($(BR2_PACKAGE_TVHEADEND_TIMESHIFT),y) +TVHEADEND_CONF_OPTS += --enable-timeshift +else +TVHEADEND_CONF_OPTS += --disable-timeshift +endif + ifeq ($(BR2_PACKAGE_LIBDVBCSA),y) TVHEADEND_DEPENDENCIES += libdvbcsa TVHEADEND_CONF_OPTS += --enable-tvhcsa
Signature · 1 line
2.29.2
PATCH v2 1/1 package/tvheadend: add various options to disable optional components
Bernd, All,
On 2021-04-03 17:22 +0200, Bernd Kuhls spake thusly:
Quoted 11 lines
When enabled some IPTV streams are piped using
/usr/bin/ffmpegso make sure that the ffmpeg binary is present.Transcoding support can already be disabled reducing
/usr/bin/tvheadendby 1,03MB.By disabling all new options provided by this patch the binary size can additionally be reduced by 2,08MB.
Signed-off-by Bernd Kuhls <[email protected]>---
[--SNIP--]
package/tvheadend/Config.in config BR2_PACKAGE_TVHEADEND · line 40
Quoted 4 lines
package/tvheadend/Config.in +4
-0+config BR2_PACKAGE_TVHEADEND_IPTV + bool "IPTV support" + default y + select BR2_PACKAGE_FFMPEG_FFMPEG if BR2_PACKAGE_FFMPEG # runtime
As we discussed in the previous thread, IPTV really only works fully when ffmpeg (the program) is available, which wil not be the case if ffmpeg (the package) is not enabled.
As I suggested previously, we should ensure that ffmpeg is enabled:
config BR2_PACKAGE_TVHEADEND_IPTV
bool "IPTV support"
depends on BR2_PACKAGE_FFMPEG_ARCH_SUPPORTS select BR2_PACKAGE_FFMPEG # runtime select BR2_PACKAGE_FFMPEG_FFMPEG # runtime
If you agree, I can change that when applying...
Regards,
Yann E. MORIN.
Quoted 70 lines
package/tvheadend/Config.in +15
-0+ help + Enable IPTV support. + +config BR2_PACKAGE_TVHEADEND_SATIP + bool "SAT>IP support" + default y + help + Enable SAT>IP support. + +config BR2_PACKAGE_TVHEADEND_TIMESHIFT + bool "timeshift support" + default y + help + Enable timeshift support. + config BR2_PACKAGE_TVHEADEND_TRANSCODING bool "transcoding support" depends on BR2_PACKAGE_FFMPEG_ARCH_SUPPORTSpackage/tvheadend/tvheadend.mk +34
-0@@ -63,6 +63,40 @@ TVHEADEND_CONF_OPTS += \ --disable-libx265 endif +ifeq ($(BR2_PACKAGE_TVHEADEND_DESCRAMBLER),y) +TVHEADEND_CONF_OPTS += \ + --enable-cardclient \ + --enable-cwc \ + --enable-cccam \ + --enable-capmt \ + --enable-constcw +else +TVHEADEND_CONF_OPTS += \ + --disable-cardclient \ + --disable-cwc \ + --disable-cccam \ + --disable-capmt \ + --disable-constcw +endif + +ifeq ($(BR2_PACKAGE_TVHEADEND_IPTV),y) +TVHEADEND_CONF_OPTS += --enable-iptv +else +TVHEADEND_CONF_OPTS += --disable-iptv +endif + +ifeq ($(BR2_PACKAGE_TVHEADEND_SATIP),y) +TVHEADEND_CONF_OPTS += --enable-satip_client --enable-satip_server +else +TVHEADEND_CONF_OPTS += --disable-satip_client --disable-satip_server +endif + +ifeq ($(BR2_PACKAGE_TVHEADEND_TIMESHIFT),y) +TVHEADEND_CONF_OPTS += --enable-timeshift +else +TVHEADEND_CONF_OPTS += --disable-timeshift +endif + ifeq ($(BR2_PACKAGE_LIBDVBCSA),y) TVHEADEND_DEPENDENCIES += libdvbcsa TVHEADEND_CONF_OPTS += --enable-tvhcsaSignature · 6 lines
2.29.2 _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'
Yann E. MORIN
AppliedPATCH v2 1/1 package/tvheadend: add various options to disable optional components
In reply to Bernd KuhlsBernd, All,
On 2021-04-03 17:22 +0200, Bernd Kuhls spake thusly:
Quoted 10 lines
When enabled some IPTV streams are piped using
/usr/bin/ffmpegso make sure that the ffmpeg binary is present.Transcoding support can already be disabled reducing
/usr/bin/tvheadendby 1,03MB.By disabling all new options provided by this patch the binary size can additionally be reduced by 2,08MB.
Signed-off-by Bernd Kuhls <[email protected]>
I've split that into one commit per new option.
Also, I've dropped selecting ffmpeg's ffmpeg command line tool for the IPTV support, because as you said youreself, not all IPTV streams will require ffmpeg. Instead, I've added a note in the help text, to direct users to enable it if they need it.
Applied to master, thanks.
Regards,
Yann E. MORIN.
Quoted 105 lines
---
v2: removed build-dependency to ffmpeg for iptv support (Yann)
re-wrapped descrambler configure options (Yann)package/tvheadend/Config.in | 27 ++++++++++++++++++++++++++- package/tvheadend/tvheadend.mk | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+), 1 deletion(-)package/tvheadend/Config.in +26
-1@@ -3,7 +3,7 @@ comment "tvheadend needs a toolchain w/ NPTL, headers >= 3.2, dynamic library" !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2 || BR2_STATIC_LIBS depends on BR2_TOOLCHAIN_HAS_SYNC_4 -config BR2_PACKAGE_TVHEADEND +menuconfig BR2_PACKAGE_TVHEADEND bool "tvheadend" depends on !BR2_STATIC_LIBS # dladdr() depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL@@ -28,6 +28,31 @@ config BR2_PACKAGE_TVHEADEND if BR2_PACKAGE_TVHEADEND +config BR2_PACKAGE_TVHEADEND_DESCRAMBLER + bool "descrambler support" + default y + help + Enable support for various descrambler modules. + +config BR2_PACKAGE_TVHEADEND_IPTV + bool "IPTV support" + default y + select BR2_PACKAGE_FFMPEG_FFMPEG if BR2_PACKAGE_FFMPEG # runtime + help + Enable IPTV support. + +config BR2_PACKAGE_TVHEADEND_SATIP + bool "SAT>IP support" + default y + help + Enable SAT>IP support. + +config BR2_PACKAGE_TVHEADEND_TIMESHIFT + bool "timeshift support" + default y + help + Enable timeshift support. + config BR2_PACKAGE_TVHEADEND_TRANSCODING bool "transcoding support" depends on BR2_PACKAGE_FFMPEG_ARCH_SUPPORTSpackage/tvheadend/tvheadend.mk +34
-0@@ -63,6 +63,40 @@ TVHEADEND_CONF_OPTS += \ --disable-libx265 endif +ifeq ($(BR2_PACKAGE_TVHEADEND_DESCRAMBLER),y) +TVHEADEND_CONF_OPTS += \ + --enable-cardclient \ + --enable-cwc \ + --enable-cccam \ + --enable-capmt \ + --enable-constcw +else +TVHEADEND_CONF_OPTS += \ + --disable-cardclient \ + --disable-cwc \ + --disable-cccam \ + --disable-capmt \ + --disable-constcw +endif + +ifeq ($(BR2_PACKAGE_TVHEADEND_IPTV),y) +TVHEADEND_CONF_OPTS += --enable-iptv +else +TVHEADEND_CONF_OPTS += --disable-iptv +endif + +ifeq ($(BR2_PACKAGE_TVHEADEND_SATIP),y) +TVHEADEND_CONF_OPTS += --enable-satip_client --enable-satip_server +else +TVHEADEND_CONF_OPTS += --disable-satip_client --disable-satip_server +endif + +ifeq ($(BR2_PACKAGE_TVHEADEND_TIMESHIFT),y) +TVHEADEND_CONF_OPTS += --enable-timeshift +else +TVHEADEND_CONF_OPTS += --disable-timeshift +endif + ifeq ($(BR2_PACKAGE_LIBDVBCSA),y) TVHEADEND_DEPENDENCIES += libdvbcsa TVHEADEND_CONF_OPTS += --enable-tvhcsaSignature · 6 lines
2.29.2 _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'
PATCH v2 1/1 package/tvheadend: add various options to disable optional components
Am Sun, 04 Apr 2021 14:30:47 +0200 schrieb Yann E. MORIN:
Quoted 2 lines
Instead, I've added a note in the help text, to direct users to enable it if they need it.
Hi Yann,
ok.
Regards, Bernd