tvheadend with Hauppage HVR-1600

I’ve recently installed an Hauppage HVR-1600 on an openSUSE 13.1 system running TVHeadend 4.0.7 … and have encountered difficulty! Foremost, I have to run tvheadend with the -C option to be able to login/access the webadmin interface (despite adding a new user in access control …). Once logged in, I can see the adapters listed in the TV Tuners tab, but can’t get scanning/tuning to work at all. From what I’ve seen on screenshots of the configuration page, I should see “Add DVB network by location” and “Map DVB services to channels” buttons when selecting the tuner, but neither button is present.

I tinkered with mythtv prior to giving tvheadend a try, and know that the card is functional, scans, and tunes to OTA HDTV ATSC channels in Portland, OR…
Not sure what to do from here … I’ve listed output of the service config here:

tvheadend.service - Tvheadend - a TV streaming server and DVR
Loaded: loaded (/usr/lib/systemd/system/tvheadend.service; enabled)
Active: active (running) since Fri 2015-10-30 20:28:32 PDT; 53min ago
Process: 29431 ExecStart=/usr/bin/tvheadend -f -p /var/run/tvheadend.pid $OPTIONS (code=exited, status=0/SUCCESS)
Main PID: 29432 (tvheadend)
CGroup: /system.slice/tvheadend.service
└─29432 /usr/bin/tvheadend -f -p /var/run/tvheadend.pid -c /home/tvheadend/config -u tvheadend -g tvheadend -6 --http_port 9981 --htsp_port 9982

*Any help would be greatly appreciated! :slight_smile:
*
Respectfully,
ljg

Why 2 Posts?

https://forums.opensuse.org/showthread.php/510507-tvheadend-with-Hauppage-HVR-1600

One in hardware for the hvr-1600, one in applications for tvheadend … not sure if this is good practice, just wanted to be sure I posted in correct forum section …

Hi
Just one forum, will nuke the other one…

So is this self compiled tvheadend, or installed from an rpm?

Thanks for merging/nuking (won’t double post again!).

I installed tvheadend 4.0.7-1.1 using yast software management.

That the service runs as user/group “tvheadend” doesn’t make sense, since neither that user nor group exists on the machine …

Although, user “hts” exists as member of video group…

I noticed that one time when running tvheadend with -C, the browser autosaved a login of “tvheadend” with password “hts”.

At the advice of a tvheadend forum member, I created a file “superuser” in [FONT=arial]/home/tvheadend/config/ with content:
[/FONT]{
“username”: “username”,
“password”: “password”
}

This was to allow me to login with chosen username and password without using the -C argument, which is successful, but the webadmin interface doesn’t populate with the tuners, so that was of no use!

Hope this all helps, thanks. :slight_smile:

-ljg

Hi
OK, so the source service file differs from what the rpm adds as a user/group via sysconfig file… If you use YaST /etc/sysconfig editor and change the user to hts and group to video, does it come right?

Using YaST /etc/sysconfig to change tvheadend service to -u hts -g video does not allow login using credentials created in superuser file. I have listed the contents of the /home/tvheadend/config file here for reference as well:

{
    "version": 17,
    "fullversion": "4.0.7",
    "satip_rtsp": "0",
    "satip_descramble": 1,
    "satip_weight": 100,
    "satip_deviceid": 1,
    "satip_uuid": "011d890e-ef48-2af8-92fe-f1c142abf5a2",
    "muxconfpath": "",
    "language": "eng",
    "prefer_picon": "false",
    "chiconpath": "",
    "piconpath": ""
}

Hi
I did a recursive change of user (hts) and group (video) on the /home/tvheadend then I could login with the ‘superuser’ file. This was starting the service with systemctl.


 systemctl status -l tvheadend.service

tvheadend.service - Tvheadend - a TV streaming server and DVR
   Loaded: loaded (/usr/lib/systemd/system/tvheadend.service; disabled)
   Active: active (running) since Sun 2015-11-01 16:35:14 CST; 3min 12s ago
  Process: 2010 ExecStart=/usr/bin/tvheadend -f -p /var/run/tvheadend.pid $OPTIONS (code=exited, status=0/SUCCESS)
 Main PID: 2011 (tvheadend)
   CGroup: /system.slice/tvheadend.service
           └─2011 /usr/bin/tvheadend -f -p /var/run/tvheadend.pid -c /home/tvheadend/config -u hts -g video -6 --http_port 9981 --htsp_port 9982

A chown -R of /home/tvheadend worked for superuser login, this is a good step forward! Yet still I am unable to configure tuner to scan/add channels using “Add DVB network by location” and “Map DVB services to channels” buttons (still missing from DVB Inputs tab).

The debug output from webadmin page is:

Loglevel debug: enabled
2015-11-01 18:09:28.000 mpegts: 0MHz in Antenna HDTV - tuning on Samsung S5H1409 QAM/8VSB Frontend : ATSC #0
2015-11-01 18:09:28.000 linuxdvb: Samsung S5H1409 QAM/8VSB Frontend : ATSC #0 - failed to tune [e=Invalid argument]

Hi
You mean like the following screenshots?

http://thumbnails114.imagebam.com/44439/756170444389555.jpg](http://www.imagebam.com/image/756170444389555)

http://thumbnails114.imagebam.com/44439/7ec89e444389558.jpg](http://www.imagebam.com/image/7ec89e444389558)

Or am I looking in the wrong spot?

Yes, those images are what I can see also. So I should revise my comment – I can add a network, choosing a pre-defined mux, but I cannot Map DVB Services to Channels …)

Perhaps this is in a different tab location in this release version …

Hi
Ok, did you select the TV adapters and enable for you ‘HDTV’ network?

What you need to do is add the muxes frequencies [after station id] (if known), else do a command line scan like so (as your normal user);


dvbscan /usr/share/dvb/atsc/us-NTSC-center-frequencies-8VSB
....
....
dumping lists (9 services)
WHCQ-2:189000000:8VSB:201:202:2
WHCQ-1:189000000:8VSB:49:52:1
WHCQ-3:189000000:8VSB:301:302:3
WHCQ-4:189000000:8VSB:401:402:4
WXVT-HD??6QH?:479000000:8VSB:49:52:3
WMAO SD??6QH?:539000000:8VSB:65:68:4
WMAO HD??6QH?:539000000:8VSB:49:52:3
WMAO CR?x6QH?:539000000:8VSB:97:100:6
WMAO FMN:539000000:8VSB:0:84:5
Done. 

Change the locale as required after atsc/ you also need to shutdown the tvheadend service.

http://www.imagebam.com/gallery/ktiosvysi19yq7ke5gh6qt1map7pex9z

Hi,

Yes, I selected the adapter and enabled for “Antenna HDTV” network. Something I noticed when adding network by location, is that selecting the predefined mux “us-atsc…” and clicking save, that the selected predefined mux field does not persist (is not saved in config).

Thinking that I may need to add channels manually, I proceeded with a command line scan and have created a channel.conf file. This matches your advice, so I’m very happy with this! :slight_smile: It did require stopping tvheadend service, as you surmised.

Thank you for the screenshots, I will proceed with adding the muxes frequencies and see how far I get!

Much thanks,
ljg

Services have populated! Next step is to map services to channels! (which I see now is located on several config tab locations …) :slight_smile:

](http://www.imagebam.com/image/2ccf25444410342) http://thumbnails113.imagebam.com/44442/2ccf25444410342.jpg

I’ve confirmed that the stations/channels are tuned properly by downloading the streaming file (audio/x-mpegurl) and playing in totem and vlc players.

cheers,
ljg

Hello, sorry for replying into an old thread however i could not exactly follow the instructions on the first page. I
Using 42.1, i too can not log into the Web UI
I installed the tvheadend package from packman and started the tvheadend deamon in yast runlevel editor.

Now in etc/sysconfig editor i found Other - etc - sysconfig - tvheadend - OPTIONS

-c /home/tvheadend/config -u tvheadend -g tvheadend -6 --http_port 9981 --htsp_port 9982

At yast user and group managment there is a new user “hts” which only group is “video”

And there is a user folder “tvheadend” at /home directory. Only on folder named “config” is inside.

linux-b2gv:/home/tvheadend/config # ls
bouquet  config  dvr  epgdb.v2  input  .lock  profile

Now how should I change permissions and place a superuser file?

Thanks for helping
greeting Kump

Hi
I see;


systemctl status tvheadend

tvheadend.service - Tvheadend - a TV streaming server and DVR
   Loaded: loaded (/usr/lib/systemd/system/tvheadend.service; enabled)
   Active: active (running) since Thu 2016-01-21 19:13:03 CST; 4 days ago
  Process: 1192 ExecStart=/usr/bin/tvheadend -f -p /var/run/tvheadend.pid $OPTIONS (code=exited, status=0/SUCCESS)
 Main PID: 1318 (tvheadend)
   CGroup: /system.slice/tvheadend.service
           └─1318 /usr/bin/tvheadend -f -p /var/run/tvheadend.pid -c /home/tvheadend/config -u hts -g video -6 --http_port 9981 --htsp_port 9982

Configure the sysconfig options as follows;


 cat /etc/sysconfig/tvheadend

# Configuration file for the tvheadend service.

OPTIONS="-c /home/tvheadend/config -u hts -g video -6 --http_port 9981 --htsp_port 9982"

Hi,

Thanks for helping, here is what i did now:* changed /etc/sysconfig/tvheadend as suggested (replaced tvheadend & tvheadend with hts & video)

  • created a superuser file at “/home/tvheadend/config” with content
{
"username": "admin",
"password": "admin"
}
  • now i noticed the ownership and group of /home/hts was set to bin:bin, so i did the recursive ownership chamge with
inux-b2gv:/home # chown -R hts:video tv*
linux-b2gv:/home # ls -l
insgesamt 0
drwxr-xr-x 1 roland users 634 27. Jan 17:33 roland
drwx------ 1 hts    video  12 26. Jan 17:24 tvheadend

Now i can log into the Web UI with set username and password.
Will try it out with a device tomorrow, however i think i still need to change some permissions.

linux-b2gv:/home/tvheadend/config # ls -l
insgesamt 16
drwx------ 1 hts video 1088 26. Jan 17:24 bouquet
-rwx------ 1 hts video   44 26. Jan 17:24 config
drwx------ 1 hts video   12 26. Jan 17:24 dvr
-rwx------ 1 hts video  191 27. Jan 23:13 epgdb.v2
drwx------ 1 hts video   10 26. Jan 17:24 input
-rw-r--r-- 1 hts video   22 27. Jan 23:14 .lock
drwx------ 1 hts video  384 26. Jan 17:24 profile
-rw-r--r-- 1 hts video   44 27. Jan 23:11 superuser
linux-b2gv:/home/roland # systemctl status tvheadend
tvheadend.service - Tvheadend - a TV streaming server and DVR
   Loaded: loaded (/usr/lib/systemd/system/tvheadend.service; enabled)
   Active: active (running) since Mi 2016-01-27 23:14:30 CET; 14min ago
  Process: 1659 ExecStart=/usr/bin/tvheadend -f -p /var/run/tvheadend.pid $OPTIONS (code=exited, status=0/SUCCESS)
 Main PID: 1666 (tvheadend)
   CGroup: /system.slice/tvheadend.service
           └─1666 /usr/bin/tvheadend -f -p /var/run/tvheadend.pid -c /home/tvheadend/...


Thanks in advanced
greetings Kump