* [Buildroot] [PATCH 1/1] package/tvheadend: add various options to disable optional components
@ 2021-04-03 9:49 Bernd Kuhls
2021-04-03 12:22 ` Yann E. MORIN
0 siblings, 1 reply; 5+ messages in thread
From: Bernd Kuhls @ 2021-04-03 9:49 UTC (permalink / raw)
To: buildroot
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.
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
package/tvheadend/Config.in | 27 ++++++++++++++++++++++++++-
package/tvheadend/tvheadend.mk | 27 +++++++++++++++++++++++++++
2 files changed, 53 insertions(+), 1 deletion(-)
diff --git a/package/tvheadend/Config.in b/package/tvheadend/Config.in
index 909d955c02..29a7f2d86e 100644
--- a/package/tvheadend/Config.in
+++ b/package/tvheadend/Config.in
@@ -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
+ 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
diff --git a/package/tvheadend/tvheadend.mk b/package/tvheadend/tvheadend.mk
index 114142bfa9..f9e748531e 100644
--- a/package/tvheadend/tvheadend.mk
+++ b/package/tvheadend/tvheadend.mk
@@ -63,6 +63,33 @@ 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
+TVHEADEND_DEPENDENCIES += ffmpeg
+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
--
2.29.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH 1/1] package/tvheadend: add various options to disable optional components
2021-04-03 9:49 [Buildroot] [PATCH 1/1] package/tvheadend: add various options to disable optional components Bernd Kuhls
@ 2021-04-03 12:22 ` Yann E. MORIN
2021-04-03 15:21 ` Bernd Kuhls
0 siblings, 1 reply; 5+ messages in thread
From: Yann E. MORIN @ 2021-04-03 12:22 UTC (permalink / raw)
To: buildroot
Bernd, All,
On 2021-04-03 11:49 +0200, Bernd Kuhls spake thusly:
> 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.
>
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
[--SNIP--]
> +config BR2_PACKAGE_TVHEADEND_IPTV
> + bool "IPTV support"
> + default y
> + select BR2_PACKAGE_FFMPEG_FFMPEG if BR2_PACKAGE_FFMPEG
Here, ffmpeg is not mandatory, but see below...
> diff --git a/package/tvheadend/tvheadend.mk b/package/tvheadend/tvheadend.mk
> index 114142bfa9..f9e748531e 100644
> --- a/package/tvheadend/tvheadend.mk
> +++ b/package/tvheadend/tvheadend.mk
> @@ -63,6 +63,33 @@ 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
When a series of options does not fit on a single line, then only put
one option per line, please.
> +else
> +TVHEADEND_CONF_OPTS += --disable-cardclient --disable-cwc \
> + --disable-cccam --disable-capmt --disable-constcw
Ditto, of course.
> +endif
> +
> +ifeq ($(BR2_PACKAGE_TVHEADEND_IPTV),y)
> +TVHEADEND_CONF_OPTS += --enable-iptv
> +TVHEADEND_DEPENDENCIES += ffmpeg
Here, you are making ffmpeg mandatory, but nothing ensures it is
enabled...
So, if ffmpeg is mandatory, then we should make that explicit in
Config.in, e.g.:
config BR2_PACKAGE_TVHEADEND_IPTV
bool "iptv"
depends on BR2_PACKAGE_FFMPEG_ARCH_SUPPORTS
select BR2_PACKAGE_FFMPEG
select BR2_PACKAGE_FFMPEG_FFMPEG # runtime
defaut y
Also, since you are selecting BR2_PACKAGE_FFMPEG_FFMPEG, it means this
is a runtime dependency, right? Then is BR2_PACKAGE_FFMPEG itself needed
at all at build time?
Regards,
Yann E. MORIN.
> +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
> --
> 2.29.2
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| 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. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 5+ messages in thread* [Buildroot] [PATCH 1/1] package/tvheadend: add various options to disable optional components
2021-04-03 12:22 ` Yann E. MORIN
@ 2021-04-03 15:21 ` Bernd Kuhls
2021-04-03 15:33 ` Yann E. MORIN
0 siblings, 1 reply; 5+ messages in thread
From: Bernd Kuhls @ 2021-04-03 15:21 UTC (permalink / raw)
To: buildroot
Hi Yann,
Am Sat, 03 Apr 2021 14:22:19 +0200 schrieb Yann E. MORIN:
>> +config BR2_PACKAGE_TVHEADEND_IPTV
>> + bool "IPTV support"
>> + default y
>> + select BR2_PACKAGE_FFMPEG_FFMPEG if BR2_PACKAGE_FFMPEG
>
> Here, ffmpeg is not mandatory, but see below...
Technically yes, the ffmpeg binary is not mandatory.
But practically it is needed because many lists of legal public streams
use /usr/bin/ffmpeg to pipe the stream to tvheadend, like
https://github.com/jnk22/kodinerds-iptv/tree/master/iptv/pipe
This patch makes sure that, when ffmpeg is enabled, it also provides
/usr/bin/ffmpeg, this will avoid problems like this:
https://github.com/LibreELEC/LibreELEC.tv/pull/3163#issuecomment-446242298
So I would like to keep the select ...
>> +TVHEADEND_DEPENDENCIES += ffmpeg
>
> Here, you are making ffmpeg mandatory, but nothing ensures it is
> enabled...
but will remove the dependency, which is obviously wrong here.
Thanks for noticing.
Regards, Bernd
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH 1/1] package/tvheadend: add various options to disable optional components
2021-04-03 15:21 ` Bernd Kuhls
@ 2021-04-03 15:33 ` Yann E. MORIN
2021-04-03 16:02 ` Bernd Kuhls
0 siblings, 1 reply; 5+ messages in thread
From: Yann E. MORIN @ 2021-04-03 15:33 UTC (permalink / raw)
To: buildroot
Bernd, All,
On 2021-04-03 17:21 +0200, Bernd Kuhls spake thusly:
> Am Sat, 03 Apr 2021 14:22:19 +0200 schrieb Yann E. MORIN:
> >> +config BR2_PACKAGE_TVHEADEND_IPTV
> >> + bool "IPTV support"
> >> + default y
> >> + select BR2_PACKAGE_FFMPEG_FFMPEG if BR2_PACKAGE_FFMPEG
> > Here, ffmpeg is not mandatory, but see below...
>
> Technically yes, the ffmpeg binary is not mandatory.
>
> But practically it is needed because many lists of legal public streams
> use /usr/bin/ffmpeg to pipe the stream to tvheadend, like
> https://github.com/jnk22/kodinerds-iptv/tree/master/iptv/pipe
>
> This patch makes sure that, when ffmpeg is enabled, it also provides
> /usr/bin/ffmpeg, this will avoid problems like this:
> https://github.com/LibreELEC/LibreELEC.tv/pull/3163#issuecomment-446242298
>
> So I would like to keep the select ...
OK, but then, does it make sense to not have ffmpeg at all. I.e. how
valid is it to have BR2_PACKAGE_TVHEADEND_IPTV without the ffmpeg
package?
I think forcing ffmpeg (the package) *and* ffmpeg (the program) is the
best solution, as I suggested previously.
Regards,
Yann E. MORIN.
> >> +TVHEADEND_DEPENDENCIES += ffmpeg
> >
> > Here, you are making ffmpeg mandatory, but nothing ensures it is
> > enabled...
>
> but will remove the dependency, which is obviously wrong here.
>
> Thanks for noticing.
>
> Regards, Bernd
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| 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. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH 1/1] package/tvheadend: add various options to disable optional components
2021-04-03 15:33 ` Yann E. MORIN
@ 2021-04-03 16:02 ` Bernd Kuhls
0 siblings, 0 replies; 5+ messages in thread
From: Bernd Kuhls @ 2021-04-03 16:02 UTC (permalink / raw)
To: buildroot
Am Sat, 03 Apr 2021 17:33:39 +0200 schrieb Yann E. MORIN:
>> This patch makes sure that, when ffmpeg is enabled, it also provides
>> /usr/bin/ffmpeg, this will avoid problems like this:
>> https://github.com/LibreELEC/LibreELEC.tv/pull/
3163#issuecomment-446242298
>
> OK, but then, does it make sense to not have ffmpeg at all. I.e. how
> valid is it to have BR2_PACKAGE_TVHEADEND_IPTV without the ffmpeg
> package?
Hi Yann,
other streamlists work without piping through ffmpeg, like
https://github.com/Free-IPTV/Countries
Most tvheadend users already have ffmpeg on their systems, mostly because
of transcoding, others because of other packages depending on ffmpeg.
In this case I want to make sure that /usr/bin/ffmpeg is present out-of-
the-box when users start to play around with iptv and hit streamlists
which use the pipe function, like I did last week ;) My system was indeed
missing /usr/bin/ffmpeg...
But I do not want to force building ffmpeg just for iptv support in
tvheadend when technically it is an optional runtime dependency.
Regards, Bernd
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-04-03 16:02 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-03 9:49 [Buildroot] [PATCH 1/1] package/tvheadend: add various options to disable optional components Bernd Kuhls
2021-04-03 12:22 ` Yann E. MORIN
2021-04-03 15:21 ` Bernd Kuhls
2021-04-03 15:33 ` Yann E. MORIN
2021-04-03 16:02 ` Bernd Kuhls
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox