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.
So, i had my old mediacenter running great, even for hd channels. Then i got my new shuttle xs35gt, which has basically the same hardware as the old one, but in a nicer, quieter packaging.
Only problem is: I have constant stuttering while watching hd channels.
As i tune in, it goes extremely slow for half a second, then it runs great for about a second or two and then it goes bizarre: First it goes slow for almost a second, then for the rest of the second it speeds up to keep sync. Displaying codec information i can see that a/v jumps back and forth between about .03 while its slow and .1 while it speeds up. Theres also about eight or nine dropped frames each time it speeds up.

Vdpau is working, i can watch movies from disk in 1080p fine, and i testet probably every combination of "sync video to display" and "set display refresh rate" there is. I also tried those setting with different settings for refresh rate in system > video.

Some background information: I do not use the pvr branch, because it crashed a lot and i had to regularly disable and reenable live tv, because my program list goes empty. Strange. So im running the normal version on archlinux, built from latest git. I use TVheadend via htsp://-protocol.

Any ideas what i might be doing wrong?
dushmaniac Wrote:@martdj:
no, not really. haven't looked at windows much lately. someone seems to have fixed the vs2008 files on github. maybe you can use those and use the vs2010 upgrade function (not sure if that'll work).
Today I tried to compile the dharma-pvr branch with Visual C++ 2008. I have no previous experience with VC, but I managed to overcome the initial errors (which concerned stdint.h and inttypes.h not being included in VC2008 by default). I now however get a lot of 'error LNK2001: unresolved external symbol' errors.

For example:

1>Socket.obj : error LNK2001: unresolved external symbol "const type_info::`vftable'" ([email protected]@[email protected])
1>timers.obj : error LNK2001: unresolved external symbol "const type_info::`vftable'" ([email protected]@[email protected])
1>utils.obj : error LNK2001: unresolved external symbol "const type_info::`vftable'" ([email protected]@[email protected])

I'll look further into it tomorrow, but does anyone already have an idea about how to fix this?
@tlanfer:
no idea. might help if you posted a full debug log.

@sfinx:
your project file is missing files. and because you didn't already know that I don't think you can fix that yourself.
it's likely that the vs2008 project files from my branches are outdated. like I said before, I saw someone branch me off and post some fixes for project files. you should check that one out.
dushmaniac Wrote:@tlanfer:
no idea. might help if you posted a full debug log.
Yeah, didnt have the time yesterday to do so. Anyway, here it is: http://pastebin.com/xZC3CTF0
Last thing i did before grabbing that file was to play one of those hd channels, wait a couple of seconds and then stop it.

I also tried that script in the xbmc-linux/live section, "How to play back perfectly synced video". Didnt help at all.

Further information: Im running HTS Tvheadend SVN-r5700 and xbmc SVN:35018
@tlanfer
try downgrading tvheadend to r5683. andoma said he's going to change a lot for the 3.0 version and that you shouldn't be using the latest svn revisions for a while.

looks like ffmpeg is complaining about illegal data:
Quote:#
19:44:51 T:139816868980496 M:1865170944 ERROR: ffmpeg[A6CF2710]: [h264_vdpau] number of reference frames exceeds max (probably corrupt input), discarding one
#
19:44:51 T:139816868980496 M:1865170944 ERROR: ffmpeg[A6CF2710]: [h264_vdpau] mmco: unref short failure
#
19:44:51 T:139816868980496 M:1865170944 ERROR: ffmpeg[A6CF2710]: [h264_vdpau] illegal short term buffer state detected
#
19:44:51 T:139816868980496 M:1865170944 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 2984, consumed: 0
#
19:44:51 T:139816868980496 M:1865170944 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 942, consumed: 0
#
19:44:52 T:139816868980496 M:1865170944 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 1834, consumed: 0
Unfortunately that didnt really help. But ill stick with that version for now.

I finally found the time to do some googling around: It looks like im not the only one with exactly these symtoms. Furthermore, it all seems to be something come done to either VDPAU issues or powersaving features of the processor.
Ill take a closer look at the nvidia drivers, libvdpau and all that powersaving stuff and report back Smile


/E: Ok, i think i am on to something: If i set interlaced handling to "Auto select", my hd channels run fine, but sd channels begin to stutter. So now im looking for some sort of combination of interlaced handling and scaling method which works for both kinds of channels.
try vdpau/temporal
@dushmaniac
Could you please include the german translation from http://gitorious.org/xbmc/xbmc/blobs/18f...trings.xml in your build?
it's already been included in git: https://github.com/opdenkamp/xbmc/commit...d2537b6e7b

I'll probably do new builds this week end.
okay.

thanks!
Hello,

I don't know if this is the right place to post this but...

I was searching for some help to install and configure TVHeadend and found this site...

http://www.ausgamers.com/features/read/2841622

Hope it's helpful to someone.


RJ
megacrypto Wrote:got all running (tvheadend) .. but when accessing it from xbmc i get "Remote Share: Could not coonect to network server" ??

Same here... I'm using Dharma RC2 LiveCD installed to a USB stick on a Revo 3610.
TVheadend is running, I can access the web interface, it does see the adapter, found some channels, downloaded EPG.

However, I can't access it in XBMC, I get the same message as above. when I SSH in via putty and restart tvheadend this is what happens:
Code:
[email protected]:~$ sudo tvheadend restart
[INFO]:dvb: Found adapter /dev/dvb/adapter0 (DiBcom 7000PC) via USB (480 Mbit/s)
[INFO]:dvr: Creating new configuration ''
[WARNING]:dvr: Output directory for video recording is not yet configured for DVR configuration "". Defaulting to to "/home/xbmc/Videos". This can be changed from the web user interface.
[INFO]:CSA: Using SSE2 128bit parallel descrambling
[NOTICE]:START: HTS Tvheadend version 2.12 started, running as PID:3435 UID:0 GID:0, settings located in '/home/xbmc/.hts/tvheadend'
[INFO]:AVAHI: Service 'Tvheadend' successfully established.
[INFO]:htsp: Got connection from 127.0.0.1
[INFO]:htsp: 127.0.0.1: Welcomed client software: XBMC Media Center
[INFO]:htsp: 127.0.0.1 [ XBMC Media Center ]: Disconnected
[INFO]:htsp: Got connection from 127.0.0.1
[INFO]:htsp: 127.0.0.1: Welcomed client software: XBMC Media Center
[INFO]:htsp: 127.0.0.1 [ XBMC Media Center ]: Disconnected
[INFO]:htsp: Got connection from 127.0.0.1
[INFO]:htsp: 127.0.0.1: Welcomed client software: XBMC Media Center
[INFO]:htsp: 127.0.0.1 [ XBMC Media Center ]: Disconnected
[INFO]:htsp: Got connection from 127.0.0.1
[INFO]:htsp: 127.0.0.1: Welcomed client software: XBMC Media Center
[INFO]:htsp: 127.0.0.1 [ XBMC Media Center ]: Disconnected
[INFO]:htsp: Got connection from 127.0.0.1
[INFO]:htsp: 127.0.0.1: Welcomed client software: XBMC Media Center
[INFO]:htsp: 127.0.0.1 [ XBMC Media Center ]: Disconnected
Each connection is a separate attempt to open the stream.
if I got 5 cents for each time someone asked why X doesn't work without providing a full debug log, I would have been rich by now.
dushmaniac Wrote:if I got 5 cents for each time someone asked why X doesn't work without providing a full debug log, I would have been rich by now.

5 cent is to much. 1 sent is enought for be rich. Smile
dushmaniac Wrote:if I got 5 cents for each time someone asked why X doesn't work without providing a full debug log, I would have been rich by now.
I'm sorry, I'm a linux noob Wink

Just tell me what you need.