Project

General

Profile

DVB Tuner doesn't show up any more

Added by peter fisher over 12 years ago

Hey there,

I'm trying to get TVheadend (2.13~git20120305.0664329-ppa1~precise) running on Ubuntu 12.04 with XBMC 11 as a frontend.
My DVB device is a Sundtek MediaTV USB stick for DVB-C/T.

Initially the stick was detected, made a scan and now I have a bunch of channels in the Channel menu.
I created two users under the access control menu, one who is allowed to do everything, one only streaming.

So far so good. I didn't try actual streaming then, as I needed to reboot the system.

Now there's no device listed in the TV Adapters pull down menu any more. Which surprises me because when I do /opt/bin/mediaclient --lc in the terminal I get the following output:

  • List of Media Clients
    /dev/dvb/adapter0/frontend0:
    2251 ... tvheadend
    /dev/dvb/adapter0/dvr0:
    2251 ... tvheadend
    /dev/dvb/adapter0/demux0:
    No client connected
    /dev/mediainput0:
    No client connected

Also when I restart the service with tvheadend restart I get this output:

  • [INFO]:dvb: Found adapter /dev/dvb/adapter0 (Sundtek DVB-C (0/0)) via PCI
    [INFO]:dvr: Creating new configuration ''
    [WARNING]:dvr: Output directory for video recording is not yet configured for DVR configuration "". Defaulting to to "/home/tv/Videos". This can be changed from the web user interface.
    [INFO]:CSA: Using SSE2 128bit parallel descrambling
    [NOTICE]:START: HTS Tvheadend version 2.13~git20120305.0664329-ppa1~precise started, running as PID:3014 UID:1002 GID:1002, settings located in '/home/tv/.hts/tvheadend'
    [INFO]:AVAHI: Service 'Tvheadend' successfully established.

But still, no device is listed under webUIs TV adapters. I thought it might be a browser problem and so tried Firefox 12 on the computer running TVheadend, and Firefox 12, ie 9 and Chromium from a Windows PC in the network - all witht he same results, no adapter in the pull down menu.

If I click play on one of the channels in the channels menu a window pops up with the VLC logo in it, where I then have to manually select a station in the pull down menu. When I do the console gives the following output thrice:

  • subscription: No transponder available for subscription "HTTP" to channel "channelname"
    subscription: "HTTP" unsubscribing from "channelname"

And when I try to play a channel from xbmc (installed on the same computer as tvheadend) I get this message:

  • TVheadend HTSP cient no Service assigned to channel

I verified that the stick does work, using kaffeine. But I made sure that kaffeine isn't connected to the stick any more when I tried anything with tvheadend.

I really don't know what I'm doing wrong. I would really appreciate if someone could point me in the right direction.
-Peter


Replies (4)

RE: DVB Tuner doesn't show up any more - Added by peter fisher over 12 years ago

Actually, upon reboot /opt/bin/mediaclient --lc reports that no client is connected. Only if I type restart tvheadend it getslisted as being connected to the stick.
But I believe that tvheadend doesn't restart, much more starts a new instance.

When I stop tvheadend with:

  • /etc/init.d/tvheadend stop

and start it again with

  • /etc/init.d/tvheadend start

I actually see the device listed in the dropdown menu! It also works in XBMC! But it still doesn't workover the network. If I try to play a stream outof the webui the followoing gets logged:

  • "HTTP" subscribing on "3sat", weight: 150, adapter: "Sundtek DVB-C (0/0)", network: "Kabel Deutschland", mux: "Kabel Deutschland: 450,000 kHz", provider: "ZDFvision", service: "3sat", quality: 100
    subscription: "HTTP" unsubscribing from "3sat"

I can hear like a second of audio, but no video.

Radio streams on the other hand work fine over the network.

So Iguess tvheadend starts too early when the USB device isn't ready yet. Is there a way to postpone the start?

And is there something ican do to get streaming over the network running?

-peter

RE: DVB Tuner doesn't show up any more - Added by Bas K about 12 years ago

Yes there is. TVheadend is already finished loading while the Sundtek driver is still loading.
It indeed can be manually fixed by restarting the init.d script.

A proper fix:

sudo nano /usr/bin/tvheadend_restart.sh

#!/bin/bash
/etc/init.d/tvheadend restart

don't forget to chmod 777 /usr/bin/tvheadend_restart.sh

sudo nano /etc/sundtek.conf

device_attach=/usr/bin/tvheadend_restart.sh

RE: DVB Tuner doesn't show up any more - Added by Bas K about 12 years ago

Let me know if you still need help setting up TVheadend with the Sundtek MediaTV Tuner.

RE: DVB Tuner doesn't show up any more - Added by Helly 1206 over 9 years ago

Hello,

I've made an upstart script that blocks tvheadend until sundtek is up to prevent these synchronziation issues.

this seems a nicer solution than restarting tvheadend.

https://github.com/Helly1206/sundtek.upstart

    (1-4/4)