Project

General

Profile

Tvheadend gets stuck with TBS5881

Added by Pepe Suriano over 8 years ago

Hi people, I am getting some trouble with my TBS5881 and tvheadend, I installed media_build drivers from ljalves which runs fine, but when I turn on my raspberry pi, tvheadend gets stucked and it never starts

Here are logs with and without tbs plugged for being more specifical:

with tbs plugged:

LibreELEC:~ # /storage/.kodi/addons/service.tvheadend42/bin/tvheadend -B -C -s -
-debug --trace -u root -g video -c /storage/.kodi/addons/service.tvheadend42/
2016-05-09 20:06:13.420 [   INFO] main: Log started
2016-05-09 20:06:13.447 [   INFO] http: Starting HTTP server 0.0.0.0:9981
2016-05-09 20:06:13.447 [   INFO] htsp: Starting HTSP server 0.0.0.0:9982
2016-05-09 20:06:13.477 [   INFO] config: loaded
2016-05-09 20:06:13.496 [   INFO] config: scanfile (re)initialization with path <none>
2016-05-09 20:06:13.507 [   INFO] bouquet: new bouquet 'Canal Digitaal SD'
2016-05-09 20:06:13.507 [   INFO] bouquet: new bouquet 'Canal Digitaal HD'
2016-05-09 20:06:13.508 [   INFO] bouquet: new bouquet 'TV Vlaanderen SD'
2016-05-09 20:06:13.508 [   INFO] bouquet: new bouquet 'TV Vlaanderen HD'
2016-05-09 20:06:13.508 [   INFO] bouquet: new bouquet 'TéléSAT SD'
2016-05-09 20:06:13.508 [   INFO] bouquet: new bouquet 'TéléSAT HD'
2016-05-09 20:06:13.508 [   INFO] bouquet: new bouquet 'AustriaSat Astra1'
2016-05-09 20:06:13.508 [   INFO] bouquet: new bouquet 'Canal Digitaal HD'
2016-05-09 20:06:13.508 [   INFO] bouquet: new bouquet 'TV Vlaanderen HD'
2016-05-09 20:06:13.508 [   INFO] bouquet: new bouquet 'TéléSAT HD'
2016-05-09 20:06:13.508 [   INFO] bouquet: new bouquet 'AustriaSat Astra3'
2016-05-09 20:06:13.509 [   INFO] bouquet: new bouquet 'Skylink: Czech Republic'
2016-05-09 20:06:13.509 [   INFO] bouquet: new bouquet 'Skylink: Slovak Republic'
2016-05-09 20:06:15.148 [   INFO] scanfile: DVB-S - loaded 1 regions with 113 networks
2016-05-09 20:06:15.148 [   INFO] scanfile: DVB-T - loaded 44 regions with 1105 networks
2016-05-09 20:06:15.148 [   INFO] scanfile: DVB-C - loaded 17 regions with 55 networks
2016-05-09 20:06:15.148 [   INFO] scanfile: ISDB-T - loaded 2 regions with 1000 networks

and here it is without tbs plugged:


LibreELEC:~ # /storage/.kodi/addons/service.tvheadend42/bin/tvheadend -B -C -s -
-debug --trace -u root -g video -c /storage/.kodi/addons/service.tvheadend42/
2016-05-09 20:08:30.646 [   INFO] main: Log started
2016-05-09 20:08:30.672 [   INFO] http: Starting HTTP server 0.0.0.0:9981
2016-05-09 20:08:30.672 [   INFO] htsp: Starting HTSP server 0.0.0.0:9982
2016-05-09 20:08:30.696 [   INFO] config: loaded
2016-05-09 20:08:30.714 [   INFO] config: scanfile (re)initialization with path <none>
2016-05-09 20:08:30.725 [   INFO] bouquet: new bouquet 'Canal Digitaal SD'
2016-05-09 20:08:30.725 [   INFO] bouquet: new bouquet 'Canal Digitaal HD'
2016-05-09 20:08:30.725 [   INFO] bouquet: new bouquet 'TV Vlaanderen SD'
2016-05-09 20:08:30.725 [   INFO] bouquet: new bouquet 'TV Vlaanderen HD'
2016-05-09 20:08:30.725 [   INFO] bouquet: new bouquet 'TéléSAT SD'
2016-05-09 20:08:30.725 [   INFO] bouquet: new bouquet 'TéléSAT HD'
2016-05-09 20:08:30.725 [   INFO] bouquet: new bouquet 'AustriaSat Astra1'
2016-05-09 20:08:30.725 [   INFO] bouquet: new bouquet 'Canal Digitaal HD'
2016-05-09 20:08:30.725 [   INFO] bouquet: new bouquet 'TV Vlaanderen HD'
2016-05-09 20:08:30.725 [   INFO] bouquet: new bouquet 'TéléSAT HD'
2016-05-09 20:08:30.725 [   INFO] bouquet: new bouquet 'AustriaSat Astra3'
2016-05-09 20:08:30.725 [   INFO] bouquet: new bouquet 'Skylink: Czech Republic'
2016-05-09 20:08:30.726 [   INFO] bouquet: new bouquet 'Skylink: Slovak Republic'
2016-05-09 20:08:30.736 [   INFO] dvr: Creating new configuration ''
2016-05-09 20:08:30.736 [WARNING] dvr: Output directory for video recording is not yet configured for DVR configuration "". Defaulting to to "/storage". This can be changed from the web user interface.
2016-05-09 20:08:30.737 [WARNING] access: Created default wide open access controle entry
2016-05-09 20:08:30.738 [   INFO] descrambler: adding CAID 0963 as quick ECM (Sky UK)
2016-05-09 20:08:30.738 [   INFO] descrambler: adding CAID 098C as quick ECM (Sky DE)
2016-05-09 20:08:30.738 [   INFO] descrambler: adding CAID 09C4 as quick ECM (Sky DE)
2016-05-09 20:08:30.739 [   INFO] descrambler: adding CAID 09CD as quick ECM (Sky IT)
2016-05-09 20:08:30.739 [   INFO] descrambler: adding CAID 2600 as constant crypto-word (BISS)
2016-05-09 20:08:30.739 [   INFO] epggrab: module eit created
2016-05-09 20:08:30.739 [   INFO] epggrab: module uk_freesat created
2016-05-09 20:08:30.739 [   INFO] epggrab: module uk_freeview created
2016-05-09 20:08:30.739 [   INFO] epggrab: module viasat_baltic created
2016-05-09 20:08:30.739 [   INFO] epggrab: module Bulsatcom_39E created
2016-05-09 20:08:30.739 [   INFO] epggrab: module psip created
2016-05-09 20:08:30.760 [   INFO] epggrab: module opentv-ausat created
2016-05-09 20:08:30.761 [   INFO] epggrab: module opentv-skyuk created
2016-05-09 20:08:30.762 [   INFO] epggrab: module opentv-skynz created
2016-05-09 20:08:30.762 [   INFO] epggrab: module opentv-skyit created
2016-05-09 20:08:30.767 [   INFO] epggrab: module pyepg created
2016-05-09 20:08:30.767 [   INFO] epggrab: module xmltv created
2016-05-09 20:08:30.772 [   INFO] spawn: Executing "/storage/.kodi/addons/service.tvheadend42/bin/tv_grab_file" 
2016-05-09 20:08:30.846 [ NOTICE] START: HTS Tvheadend version 4.1.1945 ~ LibreELEC Tvh-addon v7.0.102 started, running as PID:391 UID:0 GID:39, CWD:/storage CNF:/storage/.kodi/addons/service.tvheadend42
2016-05-09 20:08:32.371 [   INFO] scanfile: DVB-S - loaded 1 regions with 113 networks
2016-05-09 20:08:32.371 [   INFO] scanfile: DVB-T - loaded 44 regions with 1105 networks
2016-05-09 20:08:32.371 [   INFO] scanfile: DVB-C - loaded 17 regions with 55 networks
2016-05-09 20:08:32.373 [   INFO] scanfile: ISDB-T - loaded 2 regions with 1000 networks

same thing happens to me with libreelec, openelec, and ubuntu 14.04 on my RPI

what could be the problem? I tested several different versions of tvheadend, even 4.1-2000-09.05.2016, but i have no luck


Replies (4)

RE: Tvheadend gets stuck with TBS5881 - Added by Mark Clarkstone over 8 years ago

try running with --trace all --debug all :p

Are you able to install scan (dvb-apps) at all on your system? If you can try scanning using that, if that hangs too it suggests a driver problem..

RE: Tvheadend gets stuck with TBS5881 - Added by Pepe Suriano over 8 years ago

Mark Clarkstone wrote:

try running with --trace all --debug all :p

Are you able to install scan (dvb-apps) at all on your system? If you can try scanning using that, if that hangs too it suggests a driver problem..

Hi Mark, I have no plenty of experience scanning with dvb_apps, but I think that it could be a driver problem as you suggest, I ran this:


LibreELEC:~ # ls /dev/dvb/
adapter0
LibreELEC:~ # scan -C -a 0
scanning 0
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
Segmentation fault

Is it Ok that test?
If it is a driver problem, how could I debug it?

P.D.: Tried --trace all --debug all but it displays exactly the same:


LibreELEC:~ # /storage/.kodi/addons/service.tvheadend42/bin/tvheadend  --trace a
ll --debug all
2016-05-10 02:39:38.919 [   INFO] main: Log started
2016-05-10 02:39:38.934 [   INFO] http: Starting HTTP server 0.0.0.0:9981
2016-05-10 02:39:38.934 [   INFO] htsp: Starting HTSP server 0.0.0.0:9982
2016-05-10 02:39:38.970 [   INFO] config: loaded
2016-05-10 02:39:38.983 [   INFO] config: scanfile (re)initialization with path <none>
2016-05-10 02:39:38.994 [   INFO] bouquet: new bouquet 'Canal Digitaal SD'
2016-05-10 02:39:38.994 [   INFO] bouquet: new bouquet 'Canal Digitaal HD'
2016-05-10 02:39:38.994 [   INFO] bouquet: new bouquet 'TV Vlaanderen SD'
2016-05-10 02:39:38.994 [   INFO] bouquet: new bouquet 'TV Vlaanderen HD'
2016-05-10 02:39:38.994 [   INFO] bouquet: new bouquet 'TéléSAT SD'
2016-05-10 02:39:38.995 [   INFO] bouquet: new bouquet 'TéléSAT HD'
2016-05-10 02:39:38.995 [   INFO] bouquet: new bouquet 'AustriaSat Astra1'
2016-05-10 02:39:38.995 [   INFO] bouquet: new bouquet 'Canal Digitaal HD'
2016-05-10 02:39:38.995 [   INFO] bouquet: new bouquet 'TV Vlaanderen HD'
2016-05-10 02:39:38.995 [   INFO] bouquet: new bouquet 'TéléSAT HD'
2016-05-10 02:39:38.995 [   INFO] bouquet: new bouquet 'AustriaSat Astra3'
2016-05-10 02:39:38.995 [   INFO] bouquet: new bouquet 'Skylink: Czech Republic'
2016-05-10 02:39:38.995 [   INFO] bouquet: new bouquet 'Skylink: Slovak Republic'
2016-05-10 02:39:40.726 [   INFO] scanfile: DVB-S - loaded 1 regions with 113 networks
2016-05-10 02:39:40.726 [   INFO] scanfile: DVB-T - loaded 44 regions with 1105 networks
2016-05-10 02:39:40.726 [   INFO] scanfile: DVB-C - loaded 17 regions with 55 networks
2016-05-10 02:39:40.726 [   INFO] scanfile: ISDB-T - loaded 2 regions with 1000 networks

So now i dont know if it is tvheadend problem or driver problem

RE: Tvheadend gets stuck with TBS5881 - Added by Mark Clarkstone over 8 years ago

Pepe Suriano wrote:

Mark Clarkstone wrote:

try running with --trace all --debug all :p

Are you able to install scan (dvb-apps) at all on your system? If you can try scanning using that, if that hangs too it suggests a driver problem..

Hi Mark, I have no plenty of experience scanning with dvb_apps, but I think that it could be a driver problem as you suggest, I ran this:

[...]

Is it Ok that test?
If it is a driver problem, how could I debug it?

P.D.: Tried --trace all --debug all but it displays exactly the same:

[...]

So now i dont know if it is tvheadend problem or driver problem

You'd have to ask ljalves for help, you won't get any from TBS as you're using an unofficial driver. Even so without the hardware I don't think he'll be able to do much but it doesn't hurt to ask him..

I actually gave him access to my system so he could look into how the driver worked, and write his own for the TBS 5922 which the last time I tried it ran perfectly on an RPi (I know this doesn't help you much).

RE: Tvheadend gets stuck with TBS5881 - Added by Pepe Suriano over 8 years ago

In fact it was a driver problem, I tried [[https://bitbucket.org/CrazyCat/media_build.git]] (crazycat driver) and now tvheadend starts and shows the tuner OK! It shows both si2168 dvbt and dvbc

Now I have the problem that I am not able to scan, at debug window of tvheadend I get "2016-05-10 11:58:06.001 linuxdvb: Silicon Labs Si2168 : DVB-C #0 - failed to tune [e=Invalid argument]"

In my desktop PC I have tvheadend running OK with TBS drivers, and I use the following info to scan:

Delivery system: DVBC/ANNEX_B
Frecuency (Hz): 375000000
Symbol rate (sym/s): 5360000
constellation: qam256
fec: auto

but after scanning, tvheadend seems to modify some fields, and it finally sets with that info:

Delivery system: DVBC/ANNEX_A
Frecuency (Hz): 375000000
Symbol rate (sym/s): 5360000
constellation: qam256
fec: 3/5

I tried to scan with annex_b data (the first example, which works fine on my desktop pc) and I get the invalid argument error
And I also scanned with annex_a data (the second example, in which part of the info is edited by tvheadend comparing with the info that I put first) then I got:

2016-05-10 11:57:09.046 linuxdvb: Unable to provide BER value.

2016-05-10 11:57:09.046 linuxdvb: Unable to provide SNR value.

2016-05-10 11:57:09.046 linuxdvb: Unable to provide UNC value.

2016-05-10 11:57:10.000 mpegts: 375MHz in Newnetwork - scan no data, failed

what could be bad?

    (1-4/4)