Kodi Community Forum
[OLD] HOW-TO watch Live TV in XBMC for Linux with Tvheadend, the easy way! - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Tips, tricks, and step by step guides (https://forum.kodi.tv/forumdisplay.php?fid=110)
+--- Thread: [OLD] HOW-TO watch Live TV in XBMC for Linux with Tvheadend, the easy way! (/showthread.php?tid=51945)



- Canuckde - 2010-12-01

Hi All, I hope somebody can help me. I had TV Headend working wonderfully and then it suddenly stopped working a few days ago. I hadn't made any changes to the system.

The TV Backend is reachable from outside the XBMC box (over the network), yet when i try and connect to the previously working source it does not work. I have tried entering the following soure URLS:

htsp://user:[email protected]:9982
htsp://user:pass@localhost:9982
htsp://user:[email protected]:9982

I have also tried the URLs without any sort of password/Username. The error message remains the same: Network is not connected.

Does any have any ideas as to what the cause of this could be? Which logs should I post or how would I enable any debugging logging necessary.

Here is a pastebin of my xbmc.log from some sample tests: http://pastebin.com/UwE2Twr4


Thanks for any help that can be provided, googling and other searching hasn't gotten me any further.


repo - redstorm - 2010-12-01

I'm having problems with the repository,

Code:
xbmc@xbmc:~$ sudo apt-get update
Get:1 http://www.lonelycoder.com hts Release.gpg [197B]
Ign http://www.lonelycoder.com hts/main Translation-en_US
Hit http://security.ubuntu.com jaunty-security Release.gpg
Hit http://us.archive.ubuntu.com jaunty Release.gpg
Hit http://ppa.launchpad.net jaunty Release.gpg
Ign http://security.ubuntu.com jaunty-security/main Translation-en_US
Get:2 http://www.lonelycoder.com hts Release [1782B]
Ign http://www.lonelycoder.com hts Release
Ign http://security.ubuntu.com jaunty-security/restricted Translation-en_US
Ign http://ppa.launchpad.net jaunty/main Translation-en_US
Ign http://www.lonelycoder.com hts/main Packages
Ign http://us.archive.ubuntu.com jaunty/main Translation-en_US
Ign http://security.ubuntu.com jaunty-security/universe Translation-en_US
Hit http://ppa.launchpad.net jaunty Release.gpg
Get:3 http://www.lonelycoder.com hts/main Packages [693B]
99% [3 Packages gzip 0] [Waiting for headers] [Waiting for headers] [Waiting for headers]
gzip: stdin: not in gzip format
Err http://www.lonelycoder.com hts/main Packages
  Sub-process gzip returned an error code (1)

Code:
xbmc@xbmc:~$ ls /var/lib/apt/lists/partial/
www.lonelycoder.com_debian_dists_hts_Release  www.lonelycoder.com_debian_dists_hts_Release.gpg

I've tried deleting the partial files and re running apt-get update with the same result.

Is it the repository or is it me?

sources.list
Code:
#hts-tvheadend
deb http://www.lonelycoder.com/debian/ hts main

Checked out the SVN and compiled....


- Swifty - 2010-12-01

@hotlobster

If you find an easy way of reading the current channel list and epg for 'now' then please let us know.

I asked on IRC yesterday as I am hoping to make an Android client for tvheadend, but unfortunately not many of the guys were around to answer, and I couldn't hang around for too long..


- opdenkamp - 2010-12-02

@Canuckde:
please provide a full debug log, not just pieces of it.
what version/branch of xbmc are you using?

@redstorm:
andoma might be updating his packages because he labeled v2.12. try again later or use the packages from the ppa in my sig.

@Swifty:
it's documented on http://trac.lonelycoder.com/hts/wiki/htsp


- Schumi - 2010-12-02

@dushmaniac

Did you plan update your packages for tvheadend 2.12.


- Swifty - 2010-12-02

@dushmaniac

Thanks, I was hoping for some kind of web request to simply get the 'now' epg, since I don't think my skills are up to making htsp protocol for Android :p
As currently as long as the channel number is known, then actually launching it is simply a matter of passing the relevant url to the player, so EPG really is the only tricky bit.


- opdenkamp - 2010-12-02

@Schumi:
I'll publish them somewhere today, but there are no functional changes since the last package, just the code to get the CaID for a channel changed a tiny bit.


- Canuckde - 2010-12-02

dushmaniac Wrote:@Canuckde:
please provide a full debug log, not just pieces of it.
what version/branch of xbmc are you using?

I'll get a full log tonight, xbmc.log is the correct log file though?
I'm using XBMCfreak's liveCD 9.11 installed onto an SSD, I'll grab the exact version when I'm home tonight as well.


- opdenkamp - 2010-12-02

In that case, please use the official source or the one from my sig or I (or anyone else here) can't provide any support. I have no idea what they changed and packaged.

xbmc.log is the correct file (and enable debugging)


- Canuckde - 2010-12-02

In case you still like taking a quit look, here's the pastebin.

http://pastebin.com/278GhZnt

I'll go try and track down the xbmcfreak forums. I tried posting here because I found the install guide on the forums here as well.


- opdenkamp - 2010-12-02

Canuckde Wrote:http://pastebin.com/278GhZnt
Unknown paste ID, it may have expired or been deleted!


- Canuckde - 2010-12-02

Bizarre. http://pastebin.com/X7fLvgqY


- xoox - 2010-12-03

Swifty Wrote:If you find an easy way of reading the current channel list and epg for 'now' then please let us know.

Make a POST request to http://ip:9981/epg with "limit=30&start=$i" as parameter and you'll get the epg information as JSON string.

POST http://ip:9981/channeltags with "op=listTags" and you'll get the channeltags
POST http://ip:9981/channels with "op=list" and you'll get the channels

Works very easy...

@hotlobster: Looking forward to see your iPhone client...


- hotlobster - 2010-12-03

Damn easy, thanks Xoox!

This should be documented on tvheadend manual.

edit: ok tested, but it crashes tvheadend when receive the http query:

Code:
Dec  3 12:33:27 mediacenter tvheadend[4893]: CRASH: Signal: 11 in PRG: /usr/bin/tvheadend (2.12) [7e4eb3f2d5c93b097decc0a987d6332f097e174e] CWD: /
Dec  3 12:33:27 mediacenter tvheadend[4893]: CRASH: Fault address (nil) (Address not mapped)
Dec  3 12:33:27 mediacenter tvheadend[4893]: CRASH: Loaded libraries: /lib/i686/cmov/librt.so.1 /lib/i686/cmov/libdl.so.2 /lib/i686/cmov/libcrypt.so.1 /usr/lib/libavahi-common.so.3 /usr/lib/libavahi-client.so.3 /lib/i686/cmov/libpthread.so.0 /lib/i686/cmov/libm.so.6 /lib/i686/cmov/libc.so.6 /lib/ld-linux.so.2 /lib/libdbus-1.so.3 /lib/i686/cmov/libnss_compat.so.2 /lib/i686/cmov/libnsl.so.1 /lib/i686/cmov/libnss_nis.so.2 /lib/i686/cmov/libnss_files.so.2
Dec  3 12:33:27 mediacenter tvheadend[4893]: CRASH: Register dump [19]: 00000033 00000000 0000007b 0000007b 080976e7 00000000 b17fa858 b17fa3e0 00000000 00001339 00000005 00000000 0000000e 00000004 0807d47b 00000073 00010246 b17fa3e0 0000007b
Dec  3 12:33:27 mediacenter tvheadend[4893]: CRASH: STACKTRACE
Dec  3 12:33:27 mediacenter tvheadend[4893]: CRASH: /usr/bin/tvheadend 0x80683c9
Dec  3 12:33:27 mediacenter tvheadend[4893]: CRASH: __kernel_rt_sigreturn+0x0  ()
Dec  3 12:33:27 mediacenter tvheadend[4893]: CRASH: /usr/bin/tvheadend 0x804eaa9
Dec  3 12:33:27 mediacenter tvheadend[4893]: CRASH: /usr/bin/tvheadend 0x804eaf5
Dec  3 12:33:27 mediacenter tvheadend[4893]: CRASH: /usr/bin/tvheadend 0x804ecce
Dec  3 12:33:27 mediacenter tvheadend[4893]: CRASH: /usr/bin/tvheadend 0x804f129
Dec  3 12:33:27 mediacenter tvheadend[4893]: CRASH: /usr/bin/tvheadend 0x804f224
Dec  3 12:33:27 mediacenter tvheadend[4893]: CRASH: /usr/bin/tvheadend 0x804d7e3
Dec  3 12:33:27 mediacenter tvheadend[4893]: CRASH: /lib/i686/cmov/libpthread.so.0 0xb779f955
Dec  3 12:33:27 mediacenter tvheadend[4893]: CRASH: clone+0x5e  (/lib/i686/cmov/libc.so.6)
Dec  3 12:33:27 mediacenter kernel: [15256.197027] tvheadend[4921]: segfault at 0 ip 0807d47b sp b17fa3e0 error 4 in tvheadend[8048000+1a6000]

I'm uploading a coredump here: http://xmltv.free.fr/core.5095 ( will be finished in 15 mn )


- Swifty - 2010-12-03

Great, thanks for the info xoox - I won't clutter this thread with any more of this now Smile