I installed raspbian but the cam module didn't work there either. So either it is Raspberry-hardware-related (shieldings and stuff) or it is related to the newer tvheadend version. idk... Maybe I'll try to get a small-form-factor low-power x64 machine to do that. Any suggestions?
Posts by estefan
-
-
So I added include and link paths and disabled the compilation check (seems like adjusted paths were not forwarded)... and it compiled with en50221. My hacked patch is well hidden at the end of this posting.
I also have a ca0 module as before.
But only some channels are watchable. Seems like it is limited to SD content.
others show this:
Code
Display MoreMay 26 00:41:09 wohnzimmer tvheadend[473]: TS: dvbt2-network/514MHz/ORF III HD: H264 @ #3050 Continuity counter error (total 1) May 26 00:41:19 wohnzimmer tvheadend[473]: TS: dvbt2-network/514MHz/ORF III HD: H264 @ #3050 Continuity counter error (total 25) May 26 00:41:29 wohnzimmer tvheadend[473]: TS: dvbt2-network/514MHz/ORF III HD: H264 @ #3050 Continuity counter error (total 39) May 26 00:41:40 wohnzimmer tvheadend[473]: TS: dvbt2-network/514MHz/ORF III HD: H264 @ #3050 Continuity counter error (total 65) May 26 00:41:51 wohnzimmer tvheadend[473]: TS: dvbt2-network/514MHz/ORF III HD: H264 @ #3050 Continuity counter error (total 84) May 26 00:42:01 wohnzimmer tvheadend[473]: TS: dvbt2-network/514MHz/ORF III HD: H264 @ #3050 Continuity counter error (total 104) May 26 00:42:11 wohnzimmer tvheadend[473]: TS: dvbt2-network/514MHz/ORF III HD: H264 @ #3050 Continuity counter error (total 115) May 26 00:42:22 wohnzimmer tvheadend[473]: TS: dvbt2-network/514MHz/ORF III HD: H264 @ #3050 Continuity counter error (total 134) May 26 00:42:32 wohnzimmer tvheadend[473]: TS: dvbt2-network/514MHz/ORF III HD: H264 @ #3050 Continuity counter error (total 156) May 26 00:42:39 wohnzimmer tvheadend[473]: subscription: 0021: "192.168.0.235 [ | Kodi Media Center ]" unsubscribing from "ORF III HD", hostname="192.168.0.235", username="192.168.0.235", client="Kodi Media Center" May 26 00:42:39 wohnzimmer tvheadend[473]: en50221: failed to decode PMT
The same tuner with the same antenna works fine for all channels on my ubuntu 18.04 tvheadend setup.
terrible hack that let me compile en50221. Additionally to reverting 63924bab4bda731fee30f95e5eac96ea96340221
Diff
Display Morediff --git a/packages/addons/service/tvheadend42/package.mk b/packages/addons/service/tvheadend42/package.mk index 186f68e40f..c68537d585 100644 --- a/packages/addons/service/tvheadend42/package.mk +++ b/packages/addons/service/tvheadend42/package.mk @@ -5,7 +5,7 @@ PKG_NAME="tvheadend42" PKG_VERSION="5bdcfd8ac97b3337e1c7911ae24127df76fa693a" PKG_SHA256="b562a26248cdc02dc94cc62038deea172668fa4c079b2ea4e1b4220f3b1d34f5" PKG_VERSION_NUMBER="4.2.8-36" -PKG_REV="123" +PKG_REV="124" PKG_ARCH="any" PKG_LICENSE="GPL" PKG_SITE="http://www.tvheadend.org" @@ -92,6 +92,12 @@ pre_configure_target() { # pass libhdhomerun to build CFLAGS+=" -I$(get_build_dir libhdhomerun)" +# pass libdvben50221 and dependencies to build + CFLAGS+=" -I$(get_build_dir dvb-apps)/lib" + LDFLAGS="$LDFLAGS -L$(get_build_dir dvb-apps)/lib/libdvbapi" + LDFLAGS="$LDFLAGS -L$(get_build_dir dvb-apps)/lib/libdvben50221" + LDFLAGS="$LDFLAGS -L$(get_build_dir dvb-apps)/lib/libucsi" + export CROSS_COMPILE="$TARGET_PREFIX" export CFLAGS+=" -I$SYSROOT_PREFIX/usr/include/iconv -L$SYSROOT_PREFIX/usr/lib/iconv" } diff --git a/packages/addons/service/tvheadend42/patches/tvheadend42-04-skipcheck-en50221.patch b/packages/addons/service/tvheadend42/patches/tvheadend42-04-skipcheck-en50221.patch new file mode 100644 index 0000000000..7d733b4ec5 --- /dev/null +++ b/packages/addons/service/tvheadend42/patches/tvheadend42-04-skipcheck-en50221.patch @@ -0,0 +1,22 @@ +skip 50221 compile check + +--- a/configure ++++ b/configure +@@ -309,14 +309,14 @@ + + if enabled_or_auto dvben50221; then + check_cc_snippet libdvben50221 ' +- #include <libdvben50221/en50221_session.h> ++ //#include <libdvben50221/en50221_session.h> + #define TEST test + int test(void) + { +- struct en50221_transport_layer *tl = en50221_tl_create(5, 32); ++ //struct en50221_transport_layer *tl = en50221_tl_create(5, 32); + return 0; + } +- ' '-ldvben50221 -ldvbapi -lucsi' ++ ' '' #'-ldvben50221 -ldvbapi -lucsi' + if enabled libdvben50221; then + enable dvben50221 + else
-
-
Thank you very much for your quick reply.
I reverted the commit and built the addon. (wow, that LibreELEC built system is sophisticated!) Yet dvben50221 has not been enabled.
running strings on the binary now shows this:Codeen50221 en50221 --host=armv7ve-libreelec-linux-gnueabi --build=x86_64-linux-gnu --prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --libdir=/usr/lib --libexecdir=/usr/lib --localstatedir=/var --disable-static --enable-shared --prefix=/usr --arch=arm --cpu=cortex-a7 --cc=/home/docker/build.LibreELEC-RPi2.arm-9.2-devel/toolchain/bin/armv7ve-libreelec-linux-gnueabi-gcc --disable-ffmpeg_static --disable-libfdkaac_static --disable-libopus_static --disable-libtheora --disable-libtheora_static --disable-libvorbis_static --disable-libvpx_static --disable-libx264_static --disable-libx265_static --enable-libav --enable-libfdkaac --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --disable-libvpx --disable-libx265 --enable-avahi --enable-bundle --disable-dbus_1 --enable-dvbcsa --enable-dvben50221 --disable-dvbscan --enable-hdhomerun_client --disable-hdhomerun_static --enable-epoll --enable-inotify --enable-pngquant --disable-libmfx_static --disable-nvenc --disable-uriparser --enable-tvhcsa --enable-trace --nowerror --disable-bintray_cache --python=/home/docker/build.LibreELEC-RPi2.arm-9.2-devel/toolchain/bin/python dvben50221 no CP50221
So I do have a --enable-dvben50221 yet in the summary of Options I see
dvben50221 noAny ideas?
here the complete Options section:
Code
Display MoreOptions: pie yes ccdebug no cwc yes capmt yes constcw yes linuxdvb yes satip_server yes satip_client yes hdhomerun_client yes hdhomerun_static no iptv yes tsfile yes dvbscan no timeshift yes trace yes imagecache yes avahi yes zlib yes libav yes ffmpeg_static no libx264 yes libx264_static no libx265 no libx265_static no libvpx no libvpx_static no libtheora no libtheora_static no libvorbis yes libvorbis_static no libfdkaac yes libfdkaac_static no nvenc no qsv no libmfx_static no inotify yes epoll yes uriparser no ccache yes tvhcsa yes bundle yes pngquant yes dvbcsa yes dvben50221 no kqueue no dbus_1 no android no tsdebug no gtimer_check no slow_memoryinfo no libsystemd_daemon no pcloud_cache yes execinfo yes W_unused_result yes fdatasync yes getloadavg yes atomic32 yes atomic64 yes atomic_time_t yes bitops64 yes lockowner yes qsort_r yes stime yes gmtoff yes recvmmsg yes sendmmsg yes libiconv yes ifnames yes py_gzip yes bin_pkg_config yes bin_xgettext yes bin_msgmerge yes bin_gzip yes bin_bzip2 yes ssl yes linuxdvbapi yes libhdhomerun yes upnp yes inotify_h yes inotify_init1 yes epoll_create1 yes mpegts yes mpegts_dvb yes
-
Hello dear libreelec community
I have a working tvheadend setup on ubuntu 18.04 using a "CT2-4650 CI" with decryption card.
Now I wanted to move the tvheadend setup to my raspberry pi running libreelec 9.2.6. So I copied the config folder and plugged the "CT2-4650 CI" into the raspberry.
But the ca-module is now missing under DVB-Inputs->TV adapters. It used to be there on my ubuntu machine. The "CAs" section is empty on both setups./dev/dvb/adapter0/ca0 exists and I get the following via journalctl:
This is probably related to
ThreadAfter Upgrade LE 9.0.0 CI-Slot disapered
Since the Update to LE 9.0.0 my TV-Card TBS with integrated CI Slot doesn't work like before.
Before the upgrade TVHeadend Server 4.2 showed me a ca0 in DVB-Input.
I've tried different drivers but no solution.
Perhaps somebody could help me.
Regards majgusmajgusFebruary 4, 2019 at 5:11 PM but as nightly builds fixed the problem in 2019 I assumed this fix made it into main until now.
I tried all available versions (I think 4) of the tvheadend service. To no avail.
I assume due to the missing CA module decryptions fails and when trying to watch live tv this shows up un journalctl:
CodeMay 24 11:47:29 wohnzimmer tvheadend[477]: mpegts: 514MHz in dvbt2-network - tuning on Silicon Labs Si2168 #0 : DVB-T #0 May 24 11:47:29 wohnzimmer tvheadend[477]: subscription: 0004: "192.168.0.235 [ | Kodi Media Center ]" subscribing on channel "ORF1 HD", waight: 150, adapter: "Silicon Labs Si2168 #0 : DVB-T #0", network: "dvbt2-network", mux: "514MHz", provider: "ORF", service: "ORF1 HD", profile="htsp", hostname="192.168.0.235", username="192.168.0.235", client="Kodi Media Center" May 24 11:47:31 wohnzimmer tvheadend[477]: linuxdvb: Silicon Labs Si2168 #0 : DVB-T #0 - poll TIMEOUT May 24 11:47:35 wohnzimmer tvheadend[477]: subscription: 0004: service instance is bad, reason: No input detected May 24 11:47:37 wohnzimmer tvheadend[477]: subscription: 0004: No input source available for subscription "192.168.0.235 [ | Kodi Media Center ]" to channel "ORF1 HD" May 24 11:47:39 wohnzimmer tvheadend[477]: subscription: 0004: No input source available for subscription "192.168.0.235 [ | Kodi Media Center ]" to channel "ORF1 HD" May 24 11:47:40 wohnzimmer tvheadend[477]: subscription: 0004: "192.168.0.235 [ | Kodi Media Center ]" unsubscribing from "ORF1 HD", hostname="192.168.0.235", username="192.168.0.235", client="Kodi Media Center"