From owner-freebsd-multimedia@FreeBSD.ORG Wed Feb 26 08:44:58 2014 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 15C972EC for ; Wed, 26 Feb 2014 08:44:58 +0000 (UTC) Received: from mail-ob0-x236.google.com (mail-ob0-x236.google.com [IPv6:2607:f8b0:4003:c01::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C71181BB3 for ; Wed, 26 Feb 2014 08:44:57 +0000 (UTC) Received: by mail-ob0-f182.google.com with SMTP id uz6so468124obc.13 for ; Wed, 26 Feb 2014 00:44:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bluelife.at; s=google; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=mT9eNFlqDxnxzQNwrYEWsvBOKLp/ZYpaH02qfx/OJFU=; b=eqz1C17nEfcNcXQO2uOo5l6OU1B/dAcUkyYnGb5boMnvIxYJNSRgU7R9Av00Q6F1Vf JnQijfRN+4KBP7Fg2Iq/Z3vomZFajNo4o8lD5MximCIZr7Dhpspn4Yq49e95P/xzAgj9 SBYxuQDPtt1T56/AYum1l46XUrGR8lk0pCI4I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=mT9eNFlqDxnxzQNwrYEWsvBOKLp/ZYpaH02qfx/OJFU=; b=kij+tTuhx+5dBdLWZb8AhUt3OlPVnmSeJMWGE0lUT/321/e6/34gdppWeUGXINEUoq HtkJGv5ywIIr5O1FVjSri2T6CiXRbGgKrn7KDSjj+fsSHLV9+xA1Ib/35KhjME6iYbhS k30o+dVTT/uFsi5YZQu/SmfiFS9fWWTddSJcDXMXDr7H6LLBmAyG3kCO4GGtuqWSM4IL FAN7KS9vGiq0cWOXTu+D2pSBV0Z1ZavtJUT0+31ZUCys99QPXKi/+2tLtMvS1AD68k5O VJ2a4tgtiNTvQlOdmtQtpt/8d2GsgYTui9dXAo4UjhT0o8fVioi2gMfVFlCAZHB6gK7t GNSg== X-Gm-Message-State: ALoCoQmz/9sBvdhb+MoW0B2jYtfmYXUXsnbwXXM8aYLNHLqCVQXI39QgpwYlQn9qKd/CY1fJ6Hbq MIME-Version: 1.0 X-Received: by 10.182.113.195 with SMTP id ja3mr1851962obb.46.1393404297124; Wed, 26 Feb 2014 00:44:57 -0800 (PST) Sender: decke@bluelife.at Received: by 10.76.144.71 with HTTP; Wed, 26 Feb 2014 00:44:56 -0800 (PST) X-Originating-IP: [80.123.233.199] In-Reply-To: <20140225233034.13695942962a8408b3efe745@getmail.no> References: <20140215124235.4860b58f88221f63f18674b8@getmail.no> <20140225214909.ae5c7624cbe20b60031b78aa@getmail.no> <20140225233034.13695942962a8408b3efe745@getmail.no> Date: Wed, 26 Feb 2014 09:44:56 +0100 X-Google-Sender-Auth: pfFIiwGA3BvKZuKVConTaeM7VcI Message-ID: Subject: Re: tvheadend installed - now what? From: =?ISO-8859-1?Q?Bernhard_Fr=F6hlich?= To: Torfinn Ingolfsen Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-multimedia@freebsd.org X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Feb 2014 08:44:58 -0000 On Tue, Feb 25, 2014 at 11:30 PM, Torfinn Ingolfsen wrote: > On Tue, 25 Feb 2014 21:49:09 +0100 > Torfinn Ingolfsen wrote: > >> On Sat, 15 Feb 2014 12:42:35 +0100 >> Torfinn Ingolfsen wrote: >> >> > I have selected and enabled the device in tvheadend's web interface, I also tried "add DVB network by location", but >> > the only one that shows up for Norway is a DVB-T one, and I can't use that one (I tried anyway, but it didn't work). >> >> Are tvheadend using the files under /usr/local/share/tvheadend/dvb >> for the "add DVB network by location"? >> If so, how come that only this one shows up for Norway: >> /usr/local/share/tvheadend/dvb/dvb-t/no-Trondelag_Stjordal >> >> when I have all these? >> root@kg-f4# find /usr/local/share/tvheadend/dvb -name no* -print >> /usr/local/share/tvheadend/dvb/dvb-c/no-Oslo-CanalDigital >> /usr/local/share/tvheadend/dvb/dvb-c/no-Oslo-Get >> /usr/local/share/tvheadend/dvb/dvb-t/no-Trondelag_Stjordal >> permissions look ok: >> root@kg-f4# find /usr/local/share/tvheadend/dvb -name no* -exec ls -l {} \; >> -rw-r--r-- 1 root wheel 403 Jul 14 2013 /usr/local/share/tvheadend/dvb/dvb-c/no-Oslo-CanalDigital >> -rw-r--r-- 1 root wheel 694 Jul 14 2013 /usr/local/share/tvheadend/dvb/dvb-c/no-Oslo-Get >> -rw-r--r-- 1 root wheel 339 Jul 14 2013 /usr/local/share/tvheadend/dvb/dvb-t/no-Trondelag_Stjordal >> root@kg-f4# ls -l /usr/local/share/tvheadend/dvb >> total 84 >> -rw-r--r-- 1 root wheel 17987 Jul 14 2013 COPYING >> -rw-r--r-- 1 root wheel 26423 Jul 14 2013 COPYING.LGPL >> drwxr-xr-x 2 root wheel 512 Feb 15 10:40 atsc >> drwxr-xr-x 6 root wheel 512 Feb 15 10:40 channels-conf >> drwxr-xr-x 2 root wheel 1536 Feb 15 10:40 dvb-c >> drwxr-xr-x 2 root wheel 2560 Feb 15 10:40 dvb-s >> drwxr-xr-x 2 root wheel 17920 Feb 15 10:40 dvb-t > > Ok, I think I have figured that out - tvheadend thinks this is a DVB-T adapter: > root@kg-f4# more /usr/local/etc/tvheadend/dvbadapters/_dev_dvb_adapter0_Sony_CXD2820R > { > "enabled": 1, > "fe_path": "/dev/dvb/adapter0/frontend0", > "dmx_path": "/dev/dvb/adapter0/demux0", > "dvr_path": "/dev/dvb/adapter0/dvr0", > "type": "DVB-T", > "displayname": "Sony CXD2820R", > "autodiscovery": 1, > "idlescan": 1, > "idleclose": 0, > "skip_checksubscr": 0, > "sidtochan": 0, > "qmon": 0, > "poweroff": 0, > "nitoid": 0, > "diseqc_version": 0, > "diseqc_repeats": 0, > "extrapriority": 0, > "skip_initialscan": 0, > "disable_pmt_monitor": 0, > "full_mux_rx": -1, > "grace_period": 0 > } > > Even if w_scan doesn't have a problem scanning with a DVB-C frontend for the same adapter: > root@kg-f4# w_scan -fc -c NO -C ISO-8859-1 > w_scan version 20120415 (compiled for DVB API 5.5) > using settings for NORWAY > DVB cable > DVB-C > scan type CABLE, channellist 7 > output format vdr-1.6 > output charset 'ISO-8859-1' > Info: using DVB adapter auto detection. > /dev/dvb/adapter0/frontend0 -> CABLE "Sony CXD2820R": very good :-)) > > Using CABLE frontend (adapter /dev/dvb/adapter0/frontend0) > -_-_-_-_ Getting frontend capabilities-_-_-_-_ > Using DVB API 5.a > frontend 'Sony CXD2820R' supports > INVERSION_AUTO > QAM_AUTO > FEC_AUTO > FREQ (45.00MHz ... 864.00MHz) > > So the question is: how do I make tvheadend detect the DVB-C capability of this adapter? > There is only one frontend: > root@kg-f4# ls -l /dev/dvb/adapter0 > total 0 > crw-rw---- 1 webcamd webcamd 0x8c Feb 25 20:32 demux0 > crw-rw---- 1 webcamd webcamd 0x8d Feb 25 20:32 dvr0 > crw-rw---- 1 webcamd webcamd 0x9a Feb 25 20:32 frontend0 > > I tried stopping tvheadend changing "type" to "DVB-C" and starting tvhheadend again, but it just overwrites the file. > Any ideas? You don't seem to be the first one with that problem. The best "workaround" right now seems to "hack the code" with a small patch. Newer versions seem to be able to set the type explicitly via the webinterface. https://tvheadend.org/boards/5/topics/8535?r=10871 -- Bernhard Froehlich http://www.bluelife.at/