Kodi Community Forum

Full Version: [OLD] HOW-TO watch Live TV in XBMC for Linux with Tvheadend, the easy way!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
could you please:
- read the manuals
- read the information that is available on the wiki
- try finding something out yourself before posting anything
bigdawgte Wrote:Thanks for the gentle prod about setting password and loggin in - it wasn't exactly clear that was what I needed to do from previous posts, however. With respect to configuring the grabber, as I tried to explain in my earlier posts, tvgrabfile is NOT A FULL/TRUE GRABBER, rather only an uploader and therefore does not have configuration.
Attempting to "configure" tv_grab_file results in:

/usr/bin/tv_grab_file: illegal option -- -
unknown option: -
Usage: tv_grab_file: [--description] [--version] [--capabilities].

Suggestion?

edit ~/.hts/tvheadend/xmltv/config, and in last line change to "current-grabber": "/usr/bin/tv_grab_file" and configure tv_grab_file by editing it with valid xml file which can be downloaded in net or by epgdownloader which is used by me Smile And work... Only encoding polish letters suck, but you can change the iso to utf. by small script.
dushmaniac Wrote:could you please:
- read the manuals
- read the information that is available on the wiki
- try finding something out yourself before posting anything

RoflRoflRoflRoflRoflRofl
Hi

From time to time XBMC form Lars PAA crushes. The only thing seems to bo common on those are problems with SQL updates like this:

Quote:21:35:57 T:3057691504 M:888987648 DEBUG: AddOnLog: xbmc.pvrclient/Tvheadend HTSP Client: cHTSPSession:TonguearseEvent - id:8868,
chan_id:153, title:'Woda to Ĺźycie' genre_type:5, genre_sub_type:0,
desc:'Serial uadamia znaczenie wody dla egzzystencji wszystkich stworzei ron
na Ziemi. Naukowcy juĹź dawno okreli woddjest ĹşrĂłd Ĺźycia.', start:1290609300,
stop:1290610800, next:8802
21:35:57 T:3057691504 M:888987648
DEBUG: AddOnLog: xbmc.pvrclient/Tvheadend HTSP Client:
cHTSPSession:TonguearseEvent - id:8802, chan_id:153, title:'Ataki rekinĂłw ',
genre_type:5, genre_sub_type:0, desc:'W dokumencie: atak Ĺźarcza biago
naklatkochronnz nurkami, atak rekina ludojada na pwaka oraz Ĺźarcza togego na
wkarzy.', start:1290721800, stop:1290725100, next:8803
21:35:57
T:3057691504 M:888987648 NOTICE: TV-Database: erasing epg data due to event
change on channel Animal Planet HD
21:35:57 T:3057691504 M:888860672 ERROR: SQL: Abort due to constraint
violation
Query: update GuideData set idChannel=10, StartTime='2010-11-23 23:00:00',
EndTime='2010-11-24 00:05:00', strTitle='OglÂądaj z Andrzejem Fidykiem,
Dziecko Alison', strPlotOutline='OglÂądaj z Andrzej Fidykiem, Dziecko
Alison', strPlot='', GenreType=240, GenreSubType=240, firstAired='1969-12-31
23:59:59', parentalRating=0, starRating=0, notify=0, seriesNum='',
episodeNum='', episodePart='', episodeName='', idUniqueBroadcast=8480 WHERE
idDatabaseBroadcast=38715
21:35:57 T:3057691504 M:888860672 ERROR: UpdateEPGEntry (Ataki rekinĂłw 2
on Chanel Animal Planet HD) failed

Might it be a problem with character set ?

Best regards
Janusz
hello !

i am using your two current packages (xbmc and hts-tvheadend), i suppose they're the newest available on your ppa repo since i downloaded/installed them today Tongue

i noticed that my XBMC has been crashing (and rebooting, since it's a standalone running on XBMC live) very often while watching Live TV, with no common situation (other than the stream running) to the event ...

the only thing i noticed is that the last line in the crashlog always tends to be similar to this (only the number in front of .pvr varies) :
Code:
22:55:01 T:2834025328 M:835940352   DEBUG: CGUIInfoManager::SetCurrentMovie(pvr://channels/tv/all/66.pvr)

any idea if that means that updating the EPG of the currently streaming channel can lead to crashes?

if you need any other logs and/or info, lemme know.
@m404:
someone was just telling me the same on irc (could be you Smile). please provide a full crash log

@janumix:
what OS are you running XBMC on?

edit:
nvm, you said you're running the ppa builds.
what branch+revision is your build from?
I'm sorry - forgot to add: 2:10.4-dharma+pvr~odk45+karmic
deb http://ppa.launchpad.net/lars-opdenkamp/xbmc-pvr/ubuntu karmic main

Regards
Janusz
Hmm that would be one of the latest builds. Could you see if it happens in the builds from "master" too?

And please provide a full crashlog.
m404 Wrote:
Code:
Nov 23 16:38:04 TVmonstah tvheadend[4140]: START: HTS Tvheadend version SVN5617~odk4 started, running as PID:4140 UID:115 GID:44, settings located in '/home/hts/.hts/tvheadend'
Nov 23 16:38:04 TVmonstah tvheadend[4140]: capmt: got connection from client ...
Nov 23 16:38:05 TVmonstah tvheadend[4140]: AVAHI: Service 'Tvheadend' successfully established.
Nov 23 16:38:38 TVmonstah tvheadend[4140]: HTTP: 192.168.1.119: /service/_dev_dvb_adapter0_STB0899_Multistandard12148500_H_0306 -- 404
Nov 23 16:38:38 TVmonstah tvheadend[4140]: capmt: Starting capmt server for service "GOD  Channel" on tuner 0
Nov 23 16:38:38 TVmonstah tvheadend[4140]: subscription: "RTSP" direct subscription to adapter: "STB0899 Multistandard", network: "BetaDigital", mux: "BetaDigital: 12,148,500 kHz Horizontal (No satconf)", provider: "BetaDigital", service: "GOD  Channel", quality: 100
Nov 23 16:38:40 TVmonstah tvheadend[4140]: CRASH: Signal: 6 in PRG: /usr/bin/tvheadend (SVN5617~odk4) [8b29bae7a0532611563ad95a31345410d29d4dba] CWD: /  
Nov 23 16:38:40 TVmonstah tvheadend[4140]: CRASH: Fault address 0x102c (N/A)
Nov 23 16:38:40 TVmonstah tvheadend[4140]: CRASH: Loaded libraries: /lib/librt.so.1 /lib/libdl.so.2 /lib/libcrypt.so.1 /usr/lib/libavahi-common.so.3 /usr/lib/libavahi-client.so.3 /lib/libpthread.so.0 /lib/libm.so.6 /lib/libc.so.6 /lib/ld-linux.so.2 /lib/libdbus-1.so.3 /lib/libnss_compat.so.2 /lib/libnsl.so.1 /lib/libnss_nis.so.2 /lib/libnss_files.so.2  
Nov 23 16:38:40 TVmonstah tvheadend[4140]: CRASH: Register dump [19]: 00000033 00000000 0000007b 0000007b 00513ff4 004efd5e b70e1108 b70e10fc 0000102c 00000006 0000102e 00000000 00000000 00000000 005f5416 00000073 00000202 b70e10fc 0000007b
Nov 23 16:38:40 TVmonstah tvheadend[4140]: CRASH: STACKTRACE
Nov 23 16:38:40 TVmonstah tvheadend[4140]: CRASH: /usr/bin/tvheadend 0x8067c09
Nov 23 16:38:40 TVmonstah tvheadend[4140]: CRASH: __kernel_rt_sigreturn+0x0  ()
Nov 23 16:38:40 TVmonstah tvheadend[4140]: CRASH: abort+0x182  (/lib/libc.so.6)
Nov 23 16:38:40 TVmonstah tvheadend[4140]: CRASH: __assert_fail+0xf8  (/lib/libc.so.6)
Nov 23 16:38:40 TVmonstah tvheadend[4140]: CRASH: /usr/bin/tvheadend 0x805f363
Nov 23 16:38:40 TVmonstah tvheadend[4140]: CRASH: /usr/bin/tvheadend 0x80536a8
Nov 23 16:38:40 TVmonstah tvheadend[4140]: CRASH: /usr/bin/tvheadend 0x8059178
Nov 23 16:38:40 TVmonstah tvheadend[4140]: CRASH: /usr/bin/tvheadend 0x8059260
Nov 23 16:38:40 TVmonstah tvheadend[4140]: CRASH: /lib/libpthread.so.0 0x6a2cc9
Nov 23 16:38:40 TVmonstah tvheadend[4140]: CRASH: clone+0x5e  (/lib/libc.so.6)

this happens whenever i try to tune into a channel, whether i do this over the webinterface or via xbmc makes no difference (ofc, it's tvheadend crashing)

since i'm using your patched version of it, i ain't really feeling comfortable with bugging the tvheadend devs with it Tongue
how would i go if i wanted to remove your version and replace it with the normal version of lonelycoder ? so that i can see if it's related to the patches you made or if it's a general tvheadend issue?


I'm having a similar problem. It justed start tonight for some reason with svn 5617. I'm using cwc not capmt.


Nov 27 20:59:17 xbmc tvheadend[1223]: CRASH: Signal: 6 in PRG: /usr/bin/tvheadend (SVN-r5617) [244ac129446283d2689f6c1f854817ea32bb44b8] CWD: /
Nov 27 20:59:17 xbmc tvheadend[1223]: CRASH: Fault address 0x4c7 (N/A)
Nov 27 20:59:17 xbmc tvheadend[1223]: CRASH: Loaded libraries: /lib/librt.so.1 /lib/libdl.so.2 /lib/libcrypt.so.1 /usr/lib/libavahi-common.so.3 /usr/lib/libavahi-client.so.3 /lib/libpthread.so.0 /lib/libm.so.6 /lib/libc.so.6 /lib/ld-linux.so.2 /lib/libdbus-1.so.3 /lib/libnss_compat.so.2 /lib/libnsl.so.1 /lib/libnss_nis.so.2 /lib/libnss_files.so.2
Nov 27 20:59:17 xbmc tvheadend[1223]: CRASH: Register dump [19]: 00000033 c05c0000 ffff007b ffff007b 004a5ff4 9c042078 b1cf77d0 b1cf77c4 000004c7 00000006 00000536 00000000 00000000 00000000 00c53416 00000073 00000202 b1cf77c4 0000007b
Nov 27 20:59:17 xbmc tvheadend[1223]: CRASH: STACKTRACE
Nov 27 20:59:17 xbmc tvheadend[1223]: CRASH: /usr/bin/tvheadend 0x8068319
Nov 27 20:59:17 xbmc tvheadend[1223]: CRASH: __kernel_rt_sigreturn+0x0 ()
Nov 27 20:59:17 xbmc tvheadend[1223]: CRASH: abort+0x182 (/lib/libc.so.6)
Nov 27 20:59:17 xbmc tvheadend[1223]: CRASH: /usr/bin/tvheadend 0x805d01f
Nov 27 20:59:17 xbmc tvheadend[1223]: CRASH: /usr/bin/tvheadend 0x805c9b1
Nov 27 20:59:17 xbmc tvheadend[1223]: CRASH: /usr/bin/tvheadend 0x805edb2
Nov 27 20:59:17 xbmc tvheadend[1223]: CRASH: /usr/bin/tvheadend 0x80729e0
Nov 27 20:59:17 xbmc tvheadend[1223]: CRASH: /usr/bin/tvheadend 0x805f2bd
Nov 27 20:59:17 xbmc tvheadend[1223]: CRASH: /usr/bin/tvheadend 0x8083f40
Nov 27 20:59:17 xbmc tvheadend[1223]: CRASH: /lib/libpthread.so.0 0x9d3cc9
Nov 27 20:59:17 xbmc tvheadend[1223]: CRASH: clone+0x5e (/lib/libc.so.6)
since log has over 10MB, I uploaded it to:
http://rapidshare.com/files/433610045/xb...01.log.zip

On previous versions it happens, too.

There is one more possible crush problem - log is full of lines like below:

Quote:22:15:56 T:2839403376 M:859807744 DEBUG: Previous line repeats 5 times.
22:15:56 T:2839403376 M:859807744 DEBUG: AddOnLog: xbmc.pvrclient/Tvheadend HTSP Client: cHTSPDemux::Read - Frame type B
22:15:56 T:2839403376 M:859934720 DEBUG: AddOnLog: xbmc.pvrclient/Tvheadend HTSP Client: cHTSPDemux::Read - Frame type P
22:15:56 T:2839403376 M:859934720 DEBUG: AddOnLog: xbmc.pvrclient/Tvheadend HTSP Client: cHTSPDemux::Read - Frame type B
22:15:56 T:2839403376 M:859934720 DEBUG: Previous line repeats 1 times.
22:15:56 T:2839403376 M:859934720 DEBUG: AddOnLog: xbmc.pvrclient/Tvheadend HTSP Client: cHTSPDemux::Read - Frame type
22:15:56 T:2839403376 M:859934720 DEBUG: CGUIInfoManager::SetCurrentMovie(pvr://channels/tv/all/23.pvr)
22:15:56 T:2839403376 M:859934720 DEBUG: AddOnLog: xbmc.pvrclient/Tvheadend HTSP Client: cHTSPDemux::Read - Frame type
22:15:56 T:2839403376 M:859934720 DEBUG: Previous line repeats 10 times.
22:15:56 T:2839403376 M:859934720 DEBUG: AddOnLog: xbmc.pvrclient/Tvheadend HTSP Client: cHTSPDemux::Read - Frame type I
22:15:56 T:2839403376 M:859934720 DEBUG: AddOnLog: xbmc.pvrclient/Tvheadend HTSP Client: cHTSPDemux::Read - Frame type B
22:15:57 T:2839403376 M:859934720 DEBUG: Previous line repeats 1 times.
22:15:57 T:2839403376 M:859934720 DEBUG: AddOnLog: xbmc.pvrclient/Tvheadend HTSP Client: cHTSPDemux::Read - Frame type
22:15:57 T:2839403376 M:859934720 DEBUG: Previous line repeats 5 times.
22:15:57 T:2839403376 M:859934720 DEBUG: AddOnLog: xbmc.pvrclient/Tvheadend HTSP Client: cHTSPDemux::Read - Frame type P
22:15:57 T:2839403376 M:859934720 DEBUG: AddOnLog: xbmc.pvrclient/Tvheadend HTSP Client: cHTSPDemux::Read - Frame type B
22:15:57 T:2839403376 M:859934720 DEBUG: Previous line repeats 1 times.
22:15:57 T:2839403376 M:859934720 DEBUG: AddOnLog: xbmc.pvrclient/Tvheadend HTSP Client: cHTSPDemux::Read - Frame type P
22:15:57 T:2839403376 M:859934720 DEBUG: AddOnLog: xbmc.pvrclient/Tvheadend HTSP Client: cHTSPDemux::Read - Frame type B
22:15:57 T:2839403376 M:859934720 DEBUG: AddOnLog: xbmc.pvrclient/Tvheadend HTSP Client: cHTSPDemux::Read - Frame type
22:15:57 T:2839403376 M:859934720 DEBUG: Previous line repeats 5 times.
22:15:57 T:2839403376 M:859934720 DEBUG: AddOnLog: xbmc.pvrclient/Tvheadend HTSP Client: cHTSPDemux::Read - Frame type B
22:15:57 T:2839403376 M:859934720 DEBUG: AddOnLog: xbmc.pvrclient/Tvheadend HTSP Client: cHTSPDemux::Read - Frame type P
22:15:57 T:2839403376 M:859934720 DEBUG: AddOnLog: xbmc.pvrclient/Tvheadend HTSP Client: cHTSPDemux::Read - Frame type B
22:15:57 T:2839403376 M:859934720 DEBUG: Previous line repeats 1 times.
22:15:57 T:2839403376 M:859934720 DEBUG: AddOnLog: xbmc.pvrclient/Tvheadend HTSP Client: cHTSPDemux::Read - Frame type
22:15:57 T:2839403376 M:859934720 DEBUG: Previous line repeats 5 times.
22:15:57 T:2839403376 M:859934720 DEBUG: AddOnLog: xbmc.pvrclient/Tvheadend HTSP Client: cHTSPDemux::Read - Frame type P
22:15:57 T:2839403376 M:859934720 DEBUG: AddOnLog: xbmc.pvrclient/Tvheadend HTSP Client: cHTSPDemux::Read - Frame type B
22:15:57 T:2839403376 M:859934720 DEBUG: Previous line repeats 1 times.
22:15:57 T:2839403376 M:859934720 DEBUG: AddOnLog: xbmc.pvrclient/Tvheadend HTSP Client: cHTSPDemux::Read - Frame type P
22:15:57 T:2839403376 M:859934720 DEBUG: AddOnLog: xbmc.pvrclient/Tvheadend HTSP Client: cHTSPDemux::Read - Frame type
22:15:57 T:2839403376 M:859934720 DEBUG: Previous line repeats 5 times.
22:15:57 T:2839403376 M:859934720 DEBUG: AddOnLog: xbmc.pvrclient/Tvheadend HTSP Client: cHTSPDemux::Read - Frame type B
22:15:57 T:2839403376 M:859934720 DEBUG: Previous line repeats 1 times.
22:15:57 T:2839403376 M:859934720 DEBUG: AddOnLog: xbmc.pvrclient/Tvheadend HTSP Client: cHTSPDemux::Read - Frame type P
22:15:57 T:2839403376 M:859938816 DEBUG: AddOnLog: xbmc.pvrclient/Tvheadend HTSP Client: cHTSPDemux::Read - Frame type B
22:15:57 T:2839403376 M:859938816 DEBUG: Previous line repeats 1 times.
22:15:57 T:2839403376 M:859938816 DEBUG: AddOnLog: xbmc.pvrclient/Tvheadend HTSP Client: cHTSPDemux::Read - Frame type
22:15:57 T:2839403376 M:859938816 DEBUG: Previous line repeats 5 times.
22:15:57 T:2839403376 M:859938816 DEBUG: AddOnLog: xbmc.pvrclient/Tvheadend HTSP Client: cHTSPDemux::Read - Frame type P
22:15:57 T:2839403376 M:859938816 DEBUG: AddOnLog: xbmc.pvrclient/Tvheadend HTSP Client: cHTSPDemux::Read - Frame type B
22:15:57 T:2839403376 M:859938816 DEBUG: Previous line repeats 1 times.
22:15:57 T:2839403376 M:859938816 DEBUG: AddOnLog: xbmc.pvrclient/Tvheadend HTSP Client: cHTSPDemux::Read - Frame type P
22:15:57 T:2839403376 M:859938816 DEBUG: CGUIInfoManager::SetCurrentMovie(pvr://channels/tv/all/23.pvr)
22:15:58 T:2750622576 M:859652096 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
22:15:58 T:2839403376 M:859607040 DEBUG: CGUIInfoManager::SetCurrentMovie(pvr://channels/tv/all/23.pvr)


############### END LOG FILE ################

############ END XBMC CRASH LOG #############


Best regards
Janusz
problem i had above has gone away luckily.

Another problem though with latest svn. Video glitches in all recordings. No errors in log or tvheadend interface but video glitch/breakup every so often. Went back to 2.11 and recordings are fine but i need svn version as it allows me to record some channels 2.11 cant record.

Anyone else get video glitches in recording using svn 5617?
@moontan77
no glitches here. you better ask in #hts on irc instead of this topic.
I saw in trac that Dushmaniacs 2nd patch to TV Headend has now made it (in slightly modified form) into the trunk, so no need anymore to separately patch TV Headend when compiling a new build. I wish Dharma would reach final status soon, so the PVR-Testing branch can be included in the XBMC trunk.
martdj Wrote:I saw in trac that Dushmaniacs 2nd patch to TV Headend has now made it (in slightly modified form) into the trunk, so no need anymore to separately patch TV Headend when compiling a new build.
hadn't noticed it. I'll remove the patches from the xbmc source tree then.

Quote:I wish Dharma would reach final status soon, so the PVR-Testing branch can be included in the XBMC trunk.
don't expect it to be merged instantly after Dharma is final. it'll be merged piece by piece and there will be some refactoring before.
why do you want to have it in trunk anyway? doesn't make much difference to you to fetch another repos than trunk I think.
martdj Wrote:I saw in trac that Dushmaniacs 2nd patch to TV Headend has now made it (in slightly modified form) into the trunk, so no need anymore to separately patch TV Headend when compiling a new build.
Yip, yesterday compiled a new build: working like a charm!
Quote:I wish Dharma would reach final status soon, so the PVR-Testing branch can be included in the XBMC trunk.
I am totally happy with Lars's repo. Looking at the TTC (time to community Wink) of backports to latest beta's and RC's I do not currently see any added value.

O Yes.... just noticed that Dushmaniac got 'promoted' to 'Team-XBMC member', congrats on that!

Regards,
Ruud.