Project

General

Profile

tvheadend with Hauppage HVR-1600

Added by Lance Gilbert about 9 years ago

I've recently installed an 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 ...). 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 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

Respectfully,
ljg


Replies (7)

RE: tvheadend with Hauppage HVR-1600 - Added by Mark Clarkstone about 9 years ago

Lance Gilbert wrote:

I've recently installed an 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 ...).

Create a file called superuser in your config path, in this case /home/tvheadend/config so /home/tvheadend/config/superuser) making sure it's owned by the same user and group that runs tvheadend) and enter.

{
"username": "username",
"password": "password" 
}

Restart Tvheadend & you should be able to login correctly without the -C argument now. You could also have added a new user using the wildcard * (asterisk) - If you do don't forget to add a password for the user (Configuration -> Users -> Passwords) enter * (asterisk) for both username and password.

I generally have this account limited to http streaming only.

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 neither
button is present.

Firstly create a new Network (Configuration -> DVB Inputs -> Networks) click the Add button and choose a type, on this dialogue you should see "Pre-defined Muxes:" select the list required.

Once you've done this go back to the adapters page and select the required adapter - Check enable then select your network from the dropdown next to "Networks" and hit save. Tvheadend should then start scanning for services after a short pause (5-10 mins). Click the chevron/down arrow in the bottom right to watch for output. Some will fail some will complete if your provider has NIT enabled Tvheadend will find more muxes and scan those.

Once scanning has completed [you can check the scan queue by looking at the Networks tab - The Scan Q column lists remaining muxes to scan it also lists number of services found. etc] go to the Services tab (Configuration -> DVB Inputs -> Services) this should list all found services. Click on Map All (or highlight the services you want [Ctrl+Click] and click Map selected).

You should then find those services now listed under Configuration -> Channels / EPG.

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

Respectfully,
ljg

Hope this helps!

RE: tvheadend with Hauppage HVR-1600 - Added by Lance Gilbert about 9 years ago

Thanks for the quick reply, Mark! I'll work on this and see how it goes!

Kind Regards,
ljg

RE: tvheadend with Hauppage HVR-1600 - Added by Lance Gilbert about 9 years ago

The superuser file does allow me to login, but the webadmin interface doesn't populate with the tuners, so not sure where to go from here ...

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 chown rights of superuser file to user hts and group video to be sure ...)

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

Thx again,
ljg

RE: tvheadend with Hauppage HVR-1600 - Added by Mark Clarkstone about 9 years ago

Lance Gilbert wrote:

The superuser file does allow me to login, but the webadmin interface doesn't populate with the tuners, so not sure where to go from here ...

Permissions issue? try adding "--trace +all --debug +all--logfile /path/to/somewhere/tvh.log" to the start-up script that should give you some clues as to why it's ignoring the adapters.

That the service runs as user/group "tvheadend" doesn't make sense, since neither that user nor group exists on the machine ...

Make sure that you change this to the correct user/group.

Although, user "hts" exists as member of video group... (I chown rights of superuser file to user hts and group video to be sure ...)

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

Thx again,
ljg

RE: tvheadend with Hauppage HVR-1600 - Added by Lance Gilbert about 9 years ago

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:

Code: {
"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": ""
}

I'm not sure where to add the trace/debug string to create logfile. (I tried adding it to /etc/sysconfig for the service but that failed ...)

thanks again,
ljg

RE: tvheadend with Hauppage HVR-1600 - Added by Lance Gilbert about 9 years ago

chown -R hts:video /home/tvheadend

Allowed for superuser login, this is a good step forward! Yet still I am unable to configure tuner to scan/add channels using "Map DVB services to channels" buttons (still missing from DVB Inputs tab). Perhaps this config option is in a different location in this version ... (4.0.7-1-1)

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]

RE: tvheadend with Hauppage HVR-1600 - Added by Lance Gilbert about 9 years ago

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 services/channels manually, I proceeded with a command line scan and created a channel.conf file. It did require stopping tvheadend service, to free up the tuner. With cat of channel.conf, I added muxes by frequency to populate services. Next step is to map services to channels! (which I see now is located on several config tab locations ...)

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

    (1-7/7)