OSMC RC Unable to install TVHEADEND

Still no better with IE or Firefox after power cycling both Pi & PC, even using “New Private Window” in the latter case.

What is it getting the samething?

I’m not able to install tvheadend via app store, too. As far as I read this thread, it should now at least be possible to install, right?
I keep having this error when trying to install via app store or apt-get

 dpkg: dependency problems prevent configuration of armv7-tvheadend-app-osmc:
 armv7-tvheadend-app-osmc depends on libavcodec56; however:
  Package libavcodec56:armhf is not configured yet.
 armv7-tvheadend-app-osmc depends on libavformat56; however:
  Package libavformat56:armhf is not configured yet.

dpkg: error processing package armv7-tvheadend-app-osmc (--configure):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.19-17) ...
Errors were encountered while processing:
 libva1:armhf
 libavcodec56:armhf
 libavformat56:armhf
 armv7-tvheadend-app-osmc
E: Sub-process /usr/bin/dpkg returned an error code (1)

Did I miss anything or is it just work in progress at the moment?
I’m using OSMC RC on a RPi 2

/edit: after setting up OSMC new from start (clean image), I managed to install tvheadend (before updating the rest)

After having no success with the AppStore Tvheadend and successfully setting up my RPI B+ with HarryL’s build instructions I decided to try with my newly received RPI 2.

I again tried the AppStore version of Tvheadend and was able to install it and was able to get to the configuration tab using Firefox, I am still unable to with Internet explorer. I manually loaded the muxes and same as with my RPI B+ the initial scan found no services. So it appears the AppStore version is still broken. I uninstalled it and built Tvheadend per HarryL’s instructions, I loaded the muxes and all services were found and I am up and running.

I do not know why then. I am building the Git tree just as @HarryL is.

I suggest we remove TVH from the App Store until we can work out what is wrong

S

I think that HarryL’s instructions rely on something that installing and uninstalling from the App Store sets up. I know that reliably works because I have done it a few times now. But just following HarryL’s instructions on a fresh install of RC, I ran into a problem (sorry I don’t recall what it was since it was about half a dozen tests ago).

@ ObvB - I think you are referring to the accesscontrol file - one can deduce how to make it from a post by DBMandrake, no 49 in this thread.

Hi All

I’ve been reading this thread while trying to get TVHeadend setup on my new Pi 2 B in a fresh install of OSMC RC.

I set up a network called “DVB-T Network”
I added a mux for SBS Brisbane
The parameters are correct as the Brisbane scanfile included with previous versions of tvheadend in raspbmc were wrong and I have always had to enter the mux settings manually (see the top image from the previous working version of TV Headend.)

From dmesg I see that my Realtek DVB-T USB tuner is working:-
[ 4.560106] usb 1-1.5: dvb_usb_v2: ‘MaxMedia HU394-T’ successfully initialized and connected

However, a later entry is showing a “frequency out of range error”:-
[7.171328] usb 1-1.5: DVB: adapter 0 frontend 0 frequency 184500 out of range (174000000…862000000)

I now notice that the that the frequency field in the previous version of TV Headend is expecting a value in Kilohertz (kHz)

However, the new version of TVHeadend is wanting a value in Hertz (Hz)
See the bottom image (I hope you can read it as had to make a composite image because new posters are allowed to upload only one image.)

I have tried to populate the frequency field with a value of 184500000.
It accepts it, but when I save it the setting does not stick and dmesg continues to show the out of range error.

So it looks like the program code has been changed to work with a Hertz value but someone has forgotten to increase the number of characters in the frequency input field to nine.

I also confirm that Internet Explorer will only display the EPG and Digital Video Recorder tabs in the Browser configuration page. All tabs display in Chrome and Firefox

[EDIT] Looking at the scanfiles again, values have always been in Hz.
Only the frequency input field was previously expressed as kHz and that’s where I suspect the problem might lie.

Cheers
DeePee

@DeePee:

Suggest you try following the instructions in [Obsolete] Instructions for Viewing Live TV. It would be helpful if you could confirm whetehr or not you had to add any firmware to get your USB tuner working (and if so, where to get it).so we can amend the document to help others.

EMJB

After trying many times using the app store and failing, this is how I did it in the end. Rpi 2+
Install tvheadend

Select unstable > beta > stable is your call I used unstable (3.9.1879).
Your /etc/apt/sources.list contains the repo’s you currently have setup. So simply add the required revision in the following format:

1.cd /etc/apt
2.sudo nano sources.list
3.deb Index of /unstable/ wheezy main

After adding ensure you have added the GPG signing key (below), and then carry out your normal update and install.

4.cd

5.curl http://apt.tvheadend.org/repo.gpg.key | sudo apt-key add -

6.sudo apt-get update
7.sudo apt-get install tvheadend

will ask for a new username and password I used osmc osmc

Now installed browse to localhost:9981 to see config page.

Copy your usb DVB-T driver in /home/osmc then move driver to lib/firmware---------------------------------------

8.sudo mv /home/osmc/dvb-usb-dib0700-1.20.fw /lib/firmware/dvb-usb-dib0700-1.20.fw

Enable TV adapter and add muxes , will scan and add services. Then you can map channels.


Below is just for mounting NAS to record TV programs and start tvheadend at startup.

This works to test manual mount of network harddrive. (use NAS user and password)

sudo mount -t cifs -o user=<yourusername>,password=<yourpassword>,sec=ntlmv2 //192.168.1.3/USB_Storage/recordedtv /home/osmc/recordedtv

To get to auto mount using etc/fstab  add following line --------------------------------------------------------------------
    sudo mkdir /home/osmc/recordedtv
10.cd /etc
11.sudo nano fstab

12.//192.168.1.3/USB_Storage/recordedtv /home/osmc/recordedtv cifs user=<yourusername>,password=<yourpassword>,sec=ntlmv2 0  0

To autostart tvheadend 
13.sudo nano rc.local
add this line to rc.local and save.
14.sudo tvheadend -u osmc

Add to etc/rc.local this waits for network (tried _netdev didn't work for me)
doing this the dirty way by waiting for network, looking for a better way to mount drive, but works.

15.sleep 20
16.sudo mount -a

Working great, streams to laptop, EPG over the air. :smile:

Thanks to the OSMC Team.

<img src="/uploads/default/778/149d56e02ef8337c.jpg" width="690" height="369">

Hi @petemnz , as far as i know that version is not compiled for raspberry pi 2 (armv7) and OSMC use debian jessi not wheezy so it’s compiled up against old libs and software ;-/… i would not recommend that version…

-H

that error message does not meen there is an error, just that the tuner does not support that freq range. i have that error sometimes when tvheadend scan for channels/updates… about you freq. input try to restart tvheadend ( killall tvheadend ) it’s an bug in tvheadend have been there for some time now.

btw i have a fully working tvheadend setup ;-)…

Hi Petemnz,
I tried your work around, but I do something wrong,…
I don’t understand the adding of the GPG signing key and the update

I add the line ‘deb Index of /unstable/
After I save it by ^O and quit it by ^X
How I add the GPG signing key, en carry out the update?

Thanks,
Olivjee

So when you say you were able to configure with FireFox, does that mean you installed FireFox from OSMC? I’m a little confused on exactly how to “setup/configure” Tvheadend once you 1) install from app store, 2) uninstall app store version 3) install/build from git (in that order i believe).

So, in the U.S., we use ATSC, not DVB… so do we need the dvb-hdhomerun wrapper? Or, do we need some other wrapper, perhaps atsc-hdhomerun?

I tried the following at the command prompt (didn’t really need the sleep commands… just copy pasted) from $HOME (as root so home is /root)

modprobe dvb_hdhomerun
sleep 4
/usr/local/bin/userhdhomerun -u osmc -g video -f &
sleep 4
/usr/src/tvheadend/build.linux/tvheadend -u osmc -g video -C &

and what i got was this:

2015-05-08 01:24:23.589 [ INFO] main: Log started
2015-05-08 01:24:23.677 [ INFO] config: backup: migrating config from unknown (running 3.9.2818~gf59c0bf)
2015-05-08 01:24:23.677 [ INFO] config: backup: running, output file /home/osmc/.hts/tvheadend/backup/unknown.tar.bz2
2015-05-08 01:24:23.682 [ ERROR] config: unable to change directory to ‘/root’
2015-05-08 01:24:23.683 [ INFO] spawn: Executing “/bin/tar”
2015-05-08 01:24:23.686 [ ERROR] config: backup: fatal error

and tvheadend exits. A subsequent call to jobs shows no active jobs from that shell. Any ideas? Do i need to submit a log file?

Gmoney,
I live in the US and use an HDHR dual ATSC tuner. I followed HarryL’s instructions to the letter and they worked fine for me, including the wrapper portion. But I had to start with a clean install of OSMC and I specifically DID NOT download the app store version. Just start with a new OSMC image and follow HarryL’s walkthrough. Hope that helps.

Also, if you are still confused about the configuration part with a web browser (like Firefox), the answer is no, you don’t have to install a browser and configure locally, you access your Pi2 using a web browser from another machine on your local network. Once osmc/tvheadend is set up, you type in your Pi2’s IP and the tvheadend port into your browser address bar. For instance, mine would be 192.168.1.7:9981. “9981” is the default port number that tvheadend uses, so it should be the same for you (but probably a different IP #, obv)

@kphammond9 , thank you very much for the response. As a matter of fact, i did the app store install of tvheadend followed by an uninstall. The uninstall process was “weird” to say the least (a lot of stuff loaded and it took multiple attempts). I will start over with a fresh install of OSMC and follow the instructions again precisely.

As a further point of clarification, are you connecting your Pi over wifi? If so, were you able to use the GUI configuration of the RC2 release? Did you do it during initial configuration or as a subsequent step after initial config?

Thanks,
Mike

No, I don’t think wifi is fast enough for hd streaming, except maybe under ideal conditions. At least, it’s always been problematic for me. Wired is the way to go, if it’s an option. I have not tried to connect to wifi with osmc.

Ok, so I have TVheadend up and running on my RPi 2 with OSMC RC2. Thanks to HarryL and kphammond9.

However, i’m running into problems attempting to configure. Here is what i have (in addition to the Pi info above):

  • HDHomeRun EXTEND dual-mode dual-tuner network tuner. The modes are ATSC (U.S. over-the-air antenna signal) and ClearQAM (most cable providers offer a handful of “local” channels on a “free” stream called ClearQAM (similar to the paid-for channels but without the encryption).
  • Cable company’s feed that has ClearQAM content (I have an HTPC with Win7 Media Center and an AverMedia A188 tuner running in ClearQAM mode picking up the signal, so nothing is wrong with the signal). I’ve also used Ply (another server similar to TVheadend) running on a Ubuntu laptop sending a stream to my Roku 3 box… it worked marginally, only it was a very cumbersome interface with no guide and marginal quality. So i know the HDHR EXTEND box works (at least marginally)

It seems that TVheadend is not capable of putting the HDHR EXTEND unit in ClearQAM mode… only in true ATSC mode. Can someone confirm or contest this assertion?

Edit: Ok, i hoped on SiliconDust’s website and looked up the user guide for the hdhomerun_config command line tool. You can run a channel scan and write the output to a log file. you can then search that log file for channels, find the modulation type and the frequency. So i now have one mux up and running and showing Scan Result as OK. Now i just need to figure out how to “watch” the mux from within OSMC.

Further edit: So i decided to add HarryL’s startup commands to the /etc/rc.local file and reboot. I got a message from OSMC saying that i had to enable at least one PVR client, so i enabled the TVheadend frontend. I navigated to “channels” where i found my two channels (services?) coming from the one mux that i created. It displayed at least one frame of the stream and then i promptly got a window (message box) from “TVheadend HTSP Client” that said “Disconnected from ‘HTS TVheadend’”… any ideas what’s going on? Do i need to submit a log file?