Kodi Community Forum
Linux 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: Linux HOW-TO watch Live TV in XBMC for Linux with Tvheadend, the easy way! (/showthread.php?tid=91716)



- XanDaph - 2011-03-23

XanDaph Wrote:Hi Dushmaniac,

I've been using your new builds of tvheadend and xbmc-pvr for a few days now and I must say: Well Done!! Works like a charm, zapping speed has been improved a lot!

Another very NICE thing: My epg on tvheadend is much more stable (DVB-S) with the new build. The "old" one did not show all the listings, always trouble, not stable, sometimes completly empty. Now it works like a charme.

Keep up the good work!! Big GrinBig GrinBig GrinSmile


Buffer Issue Fixed? - akr884 - 2011-03-23

Hey Dushmaniac,

I saw that you had something about buffering up dvdplayer on you github commit history. Does that mean that the stuttering problem might be fixed?


- opdenkamp - 2011-03-23

XanDaph:
tvheadend is sending some wrong epg entries, which resulted in incomplete or incorrect epg tables in the old pvr-testing2 branch. I'm correcting those values in xbmc now, but someone should fix this in tvheadend, because it's still problematic in some situations. e.g., when you schedule a timer from the epg now, tvheadend uses it's own , possibly incorrect, start and end times (if it can find the epg entry id).

@akr884:
partially yes. if both the audio and video buffers are empty, it'll buffer up now.


- mikenike - 2011-03-23

Hello, Thank you for your help, now it is working, but i have no timeshift (live tv pause) feature :-(

how can i activate this?


- Ruud - 2011-03-23

mikenike Wrote:Hello, Thank you for your help, now it is working, but i have no timeshift (live tv pause) feature :-(

how can i activate this?

Not (yet) implemented.
What I occasionally do is to start a recording and then via Video play the resulting file. Here you have the possibility of pausing and skipping (although skipping is *very* slow on a network drive)
regards,
Ruud.


- mikenike - 2011-03-23

Oh thats not so good :-(

Is there a Possibility to use Timeshift in XBMC? Maybe with MythTV client? or isnt it possible at all with xbmc?


- opdenkamp - 2011-03-23

I think I heard it's implemented in the mediaportal addon atm. not sure though


- janumix - 2011-03-25

@dushmaniac

Thank for update.
It seems there are still epg issues.
Please take a look on that shot:

http://img684.imageshack.us/i/20110324221748.jpg/

The time was 22:16 but timeline started from 00:00.
Start/stop dates look also strange ....

BR
Janusz


- Ruud - 2011-03-26

Hi,
updated to latest XBMC and noticed that this error is still present.

also noticed that in the screen 'system info - PVR info' no information is shown (all values are: unknown)

Thanks for your hard work!
regards,
Ruud.


- opdenkamp - 2011-03-26

@janumix:
it's probably an issue with a timezone conversion that I'm going to remove from the add-on interface soon. if all epg event are showing the wrong start times, you can go to the add-on settings, change the timezone correction value and reset the database. that should solve the problem for now.

@ruud:
just tested it and it works fine here. do you see a new crashlog appearing after you hit the power button? because if xbmc crashes on shutdown, it'll restart instead of shut down. if you see a new crashlog that was creating while shutting down xbmc, please pastebin it.

the "unknown" values are because of a little bug.


fixed - Ruud - 2011-03-26

dushmaniac Wrote:@ruud:
just tested it and it works fine here. do you see a new crashlog appearing after you hit the power button? because if xbmc crashes on shutdown, it'll restart instead of shut down. if you see a new crashlog that was creating while shutting down xbmc, please pastebin it.

Hi, thanks for your responce, just realised that I had this issue 'in the early days'. Apparently my previous 'fix' was 'erased' by an update.
here is what I did to fix it:
Code:
apt-get install policikit
polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.suspend
polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.hibernate
polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.reboot
polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.shutdown
polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.reboot-multiple-sessions
polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.shutdown-multiple-sessions

and then in the file: /etc/PolicyKit/PolicyKit.conf added the following:
Code:
<match user="xbmc">
     <return result="yes"/>
</match>

Thanks,
Ruud.


- odoll - 2011-03-26

Quote:I've been using your new builds of tvheadend and xbmc-pvr for a few days now ...

did an apt-get upgrade today and the system tells me, that I have the version "XBMC PRE-11.0 Git:Unknown (Compiled: Mar 24 2011)", now.

Everything looks fine, though there's one odd issue (not sure, if I'll be finding the right words here, but I try):

Though all my so far added "sources" are just one level below the function Music and Pictures, the ones for "Videos" moved "down" one further level, namely into a folder? named "Files". Is this by intend?


- janumix - 2011-03-26

Ruud Wrote:Hi, thanks for your responce, just realised that I had this issue 'in the early days'. Apparently my previous 'fix' was 'erased' by an update.

Thanks,
Ruud.

Unfortunately this is not my case. Since last version - suspend do not work. XBMC even not restart, please take a look on xbmc.log:

Code:
21:26:58 T:5777216 M:844021760   DEBUG: LIRC: Update - NEW at 1385996:000000008001000b 00 KEY_POWER TTS35AI (KEY_POWER)
21:26:58 T:5777216 M:844021760   DEBUG: OnKey: 196 (c4) pressed, action is XBMC.ShutDown()
21:26:58 T:5777216 M:844021760   DEBUG: DBus: Creating message to org.freedesktop.DeviceKit.Power on /org/freedesktop/DeviceKit/Power with interface org.freedesktop.DeviceKit.Power and method Suspend
21:26:58 T:5777216 M:844021760   DEBUG: CAnnouncementManager - Announcement: Su
spend from xbmc
21:26:59 T:5777216 M:844029952   DEBUG: CAnnouncementManager - Announcement: Sleep from xbmc
21:26:59 T:5777216 M:844029952  NOTICE: OnSleep: Running sleep jobs
21:26:59 T:5777216 M:844029952  NOTICE: OnSleep: Stopping lirc
21:26:59 T:5777216 M:844029952    INFO: LIRC setUsed: disabled
21:26:59 T:5777216 M:844029952  NOTICE: OnWake: Running resume jobs
21:26:59 T:5777216 M:844029952   ERROR: GLX: Same window as before, refreshing context
21:26:59 T:5777216 M:844029952    INFO: GL: Maximum texture width: 8192
21:26:59 T:5777216 M:845045760   ERROR: GLX: Same window as before, refreshing context
21:26:59 T:5777216 M:845045760    INFO: GL: Maximum texture width: 8192
21:26:59 T:5777216 M:841744384  NOTICE: OnWake: Restarting lirc
21:26:59 T:5777216 M:841744384    INFO: LIRC Initialize: using: /dev/lircd
21:26:59 T:5777216 M:841744384    INFO: LIRC Initialize: sucessfully started
21:26:59 T:5777216 M:841744384  NOTICE: OnWake: Restarting lcd
21:26:59 T:5777216 M:841744384   DEBUG: XLCDproc::Connect - LCDproc data: Columns 24 - Rows 2.
21:26:59 T:5777216 M:841744384   DEBUG: CAnnouncementManager - Announcement: Wake from xbmc
21:26:59 T:159247216 M:841625600    INFO: WEATHER: Downloading weather
21:26:59 T:159247216 M:841625600   DEBUG: SECTION:LoadDLL(libcurl-gnutls.so.4)
21:26:59 T:159247216 M:841625600   DEBUG: Loading: libcurl-gnutls.so.4
21:26:59 T:159247216 M:841625600   DEBUG: FileCurl::Open(0x97dd128) http://xoap.weather.com/weather/local/PLXX0012?cc=*&unit=m&dayf=4&prod=xoap&link=xoap&par=1004124588&key=079f24145f208494
21:26:59 T:159247216 M:841625600    INFO: easy_aquire - Created session to http://xoap.weather.com
21:27:00 T:159247216 M:841625600   DEBUG: FileCurl::Close(0x97dd128) http://xoap.weather.com/weather/local/PLXX0012?cc=*&unit=m&dayf=4&prod=xoap&link=xoap&par=1004124588&key=079f24145f208494
21:27:00 T:159247216 M:841625600    INFO: WEATHER: Weather download successful
21:27:22 T:5777216 M:841224192   DEBUG: SECTION:UnloadDelayed(DLL: libmad.so.0)
21:27:22 T:5777216 M:841224192   DEBUG: Unloading: libmad.so.0
21:27:23 T:5777216 M:841277440   DEBUG: SECTION:UnloadDelayed(DLL: special://xbmcbin/system/players/dvdplayer/avcore-0-i486-linux.so)
21:27:23 T:5777216 M:841277440   DEBUG: Unloading: avcore-0-i486-linux.so
21:27:23 T:5777216 M:841277440   DEBUG: SECTION:UnloadDelayed(DLL: special://xbmcbin/system/players/dvdplayer/avcodec-52-i486-linux.so)
21:27:23 T:5777216 M:841277440   DEBUG: Unloading: avcodec-52-i486-linux.so
21:27:30 T:159247216 M:844959744   DEBUG: Thread 159247216 terminating (autodelete)
21:27:30 T:5777216 M:844959744   DEBUG: SECTION:UnloadDelayed(DLL: special://xbmcbin/system/ImageLib-i486-linux.so)
21:27:30 T:5777216 M:844959744   DEBUG: Unloading: ImageLib-i486-linux.so
21:27:30 T:5777216 M:845086720    INFO: CheckIdle - Closing session to http://xoap.weather.com (easy=0xaa1ee20, multi=0xaa52fc8)

I haven't touch polkit ...
What to chceck ?

@dushmaniac
timezone correction seens to be working ...

Regards
Janusz


[SOLVED] ugh - well this is embarrassing - enabling tvheadend - Teepee - 2011-03-26

Hi Dushmaniac - really hoping you can help me out! Just switched from Windows *spits* to Ubuntu 10.10 - had been using Margro's brilliant build before but switched across to the larsopendkamp one and really impressed.

The backend is set up and all looks well but I just can't get it talking to xbmc. My settings are definitely right and I've trawled various threads (including all 29 pages of this one!) to find a solution but coming up empty handed.

In the xbmc Addon settings tvheadend is configured and enabled.
TV Settings are enabled (and stay enabled - something i couldn't get working with myth) (but from the "Live TV" menu all my options are blank
When i switch on Channel Manager and EPG, exit that menu and then enter it again they're de-selected.

The other slightly strange thing is that in tvheadend if i try to 'watch tv' from the web interface I get a http --- 401 error and instead of live tv i get a black box. Don't know if the two are linked but really hoping for some advice. I've tested the cards with mplayer and the cards work really well! I know (/hope!) i'm *really* close!

I've taken a look at the xbmc log and I am seeing this

Code:
21:09:49 T:8282848 M:2786422784   ERROR: CZeroconfAvahi::addService(): failed to add service named:XBMC JSONRPC@$(HOSTNAME) type:_xbmc-jsonrpc._tcp port:8080. Error:Invalid Error Code :/ FIXME!....
21:09:49 T:8282848 M:2786394112   ERROR: GLX: Same window as before, refreshing context
....
21:09:49 T:71998320 M:2786140160   ERROR: AddOnLog: xbmc.pvrclient/Tvheadend HTSP Client: ReadResult - access denied (1)
....
21:09:49 T:3002035056 M:2784714752   ERROR: AddOnLog: xbmc.pvrclient/Tvheadend HTSP Client: ReadResult - access denied (1)
21:09:49 T:3002035056 M:2784714752   DEBUG: AddOnLog: xbmc.pvrclient/Tvheadend HTSP Client: ReadSuccess - failed to enableAsyncMetadata failed
21:09:49 T:3002035056 M:2784714752   ERROR: AddOnLog: xbmc.pvrclient/Tvheadend HTSP Client: Action - couldn't send EnableAsync().
.....
21:09:51 T:71998320 M:2776178688   ERROR: PVR - SetTimeCorrection - failed to get the backend time from 'HTS Tvheadend:127.0.0.1:9982'

Any and all advice greatly appreciated!! Thanks


EDIT: This is even More embarrassing. Woke up knowing what the problem was! This morning I added a new line to the Access Control of the tvheadend webgui and it works a treat!!


- kdevane - 2011-03-28

Loving the PVR build and been using for a few months now. Runnig the latest Karmic Build of XBMC-Pvr (XBMC Pref-11.0 Git:unknown (compiled: Mar 24 2011 ) and TV headend 2.12.99~git20110313.1aa214~odk1.
Since the time change at the weekend epg guide on Live TV has been out an hour. I've tried setting the epg offset -1,0,+1 all with no affect. Times reported in TvHeadend are all correct.
Current time just after 7pm, but the show listed in the epg as on now doesn't start till 8pm.

xbmc-desktop:~$ date
Mon Mar 28 19:12:03 IST 2011

Any ideas what i need to change ?

Thanks,
Kevin