Code Monkey home page Code Monkey logo

Comments (32)

Jalle19 avatar Jalle19 commented on July 2, 2024

You need to enable debug logging and post a new (preferably complete) log. Did this start happening recently? Can you try an older version?

from pvr.hts.

mhlund avatar mhlund commented on July 2, 2024

I also have this exact problem! http://forum.kodi.tv/showthread.php?tid=259646

I'll try to provide some more information this weekend. What kind of logging do you need? From kodi or from the tvheadend server? Or is it possible to enable debug logging in the kodi extension?

from pvr.hts.

Jalle19 avatar Jalle19 commented on July 2, 2024

Please provide both a debug log from Kodi and a debug log from tvheadend for the same timeframe.

from pvr.hts.

mhlund avatar mhlund commented on July 2, 2024

Here's some logging from my system: http://pastebin.com/zbMcXFUz

My tvheadend backend is an Ubuntu 15.10 server in the basement, with a DVB-S2 card and tvheadend 4.1-1533gff6bf99wily

My frontend is a Intel NUC5i3 with Ubuntu 15.10, kodi 16.0git20160205.0918-rc3-0wily and kodi-pvr-hts 2.2.12-1wily

Unfortenately when playing a recording through the kodi add-on through htsp there was no logging from tvheadend even though i enabled debug logging!

from pvr.hts.

Jalle19 avatar Jalle19 commented on July 2, 2024

Could you try enabling trace debugging from the addon settings?

from pvr.hts.

mhlund avatar mhlund commented on July 2, 2024

Trace debugging was enabled in the addon settings!

from pvr.hts.

Jalle19 avatar Jalle19 commented on July 2, 2024

Can you post the full log in that case? You must also enable debug logging in Kodi itself.

from pvr.hts.

mhlund avatar mhlund commented on July 2, 2024

OK, I had'nt enabled debug logging in Kodi itself... I will do that and post new logs!

from pvr.hts.

mhlund avatar mhlund commented on July 2, 2024

Here is a complete log from starting kodi with debug logging enabled. The first thing i did was going to TV->Recordings and started playing a HD recording for 10-15 seconds before stopping it. It was stuttering the entire playback time.

http://pastebin.com/ydhCz63w

from pvr.hts.

mhlund avatar mhlund commented on July 2, 2024

Do you have sufficient information now or can I help with some more?

from pvr.hts.

RgRRgR avatar RgRRgR commented on July 2, 2024

I have the same problem. Playing a recording via the "recordings"-menu makes the CPU go wild (100% usage for Kodi) and causes stuttering, while playing the same file over a network share goes fine and while playing live-tv also is no problem.
I reverted back to Kodi 14.2 because of this. Kodi 14.2 plays recordings fine. I read in some other thread about a same kind of problem that it could have something to do with Kodi continuously checking the EPG-data during playing the file, but I'm not sure if that's the case here.

from pvr.hts.

Jalle19 avatar Jalle19 commented on July 2, 2024

The addon in Kodi 14.2 used an internal buffer when playing recordings. This buffer was removed at some point because it caused other issues. Any chance you're streaming over wifi or something?

from pvr.hts.

RgRRgR avatar RgRRgR commented on July 2, 2024

Yes, temporarily I am even streaming over WAN... I understand I am pushing the limits :)
But live-tv and recordings are really working fine in Kodi 14.2 with it. In Kodi 15+ the live-tv is still working fine, but when I start to play a recording I get the same errors as the topicstarter. It makes sense that the removal of the internal buffer you mentioned causes this problem. Could there be some way around this? Otherwise I will stick with 14.2 for a while.

from pvr.hts.

Xstasy avatar Xstasy commented on July 2, 2024

This is still occuring for me with a cabled 1gbps connection on LAN.

from pvr.hts.

Jalle19 avatar Jalle19 commented on July 2, 2024

@Xstasy do SD recordings work? You only mentioned HD in the original post

from pvr.hts.

stan86 avatar stan86 commented on July 2, 2024

Same for me. Gb LAN HD shutters.

from pvr.hts.

Xstasy avatar Xstasy commented on July 2, 2024

@Jalle19 Yes, I do not have issues with SD recordings.

from pvr.hts.

volodymyrpavlenko avatar volodymyrpavlenko commented on July 2, 2024

Same issue, have another thread on the forum
http://forum.kodi.tv/showthread.php?tid=234640

But in my case I have problem with SD as well.
live streaming is working good, both sd and hd.

CPU usage in way higher when trying to watch records. it comes up to 16% (4 cores)

from pvr.hts.

mhlund avatar mhlund commented on July 2, 2024

Today I noticed something interesting. When I use the IOS App TvhClient and choose to play my recordings through my kodi client (which magically shows up along with VLC etc in the app) the recordings play with no problems at all! No stutter at all and I can skip forward and rewind, pause... Everything just works!

Is Kodi accessing the recording with another method when the IOS App is playing it?

Edit: When the recording is playing i assumed Kodi is accessing the TVHeadend server directly? Maybe I'm wrong... is it the app that streams the recording to kodi?

from pvr.hts.

volodymyrpavlenko avatar volodymyrpavlenko commented on July 2, 2024

I have an assumption that tvhclient accesses it by http on 9981 port and kodi does it on 9982 via htsp protocol. I have no problems with http streaming.

from pvr.hts.

Jalle19 avatar Jalle19 commented on July 2, 2024

@mhlund can you disable VDPAU acceleration in Kodi, it doesn't work on your hardware anyway?

from pvr.hts.

mhlund avatar mhlund commented on July 2, 2024

@Jalle19 sorry for not responding earlier... I've been on a long trip and had vacation...

You're correct that VDPAU acceleration does'nt work on my hardware, so I've had VAAPI-acceleration enabled. I've now tried with all hardware acceleration disabled in Kodi, and it makes no difference. The stuttering is still exactly as before!

from pvr.hts.

gazzer82 avatar gazzer82 commented on July 2, 2024

Any progress on this as I'm seeing the exact same issue. I did have similar judder on live TV, but changing the deinterlacing mode fixed that, unfortunately there doesn't seem to be an option to choose the deinterlacing mode whilst playing back recordings?

from pvr.hts.

Jalle19 avatar Jalle19 commented on July 2, 2024

The option to force deinterlacing on was recently removed, but if you have the option for live TV you should have it for recordings as well.

from pvr.hts.

RgRRgR avatar RgRRgR commented on July 2, 2024

Update: for me the problem is solved since I moved the tvheadend server from a remote WAN-location to an in-home LAN-connection. I no longer have 100% CPU-usage and recordings don't stutter anymore. Nothing else in my setup has changed, so it must have something to do with the network connection (buffering probably).
Maybe other people suffering from this problem can also test their setup in a different location or with a different router just to pinpoint the exact cause of the problem?

from pvr.hts.

mhlund avatar mhlund commented on July 2, 2024

My tvheadend server and two kodi-pvr-hts clients sit on the same gigabit ethernet network and my kodi clients have no problem playing full HD content from a NFS share on the same server. As I have stated before my kodi clients does not have problem streaming live TV from the same tvheadend server. The problem with stuttering is only with recordings.

from pvr.hts.

volodymyrpavlenko avatar volodymyrpavlenko commented on July 2, 2024

Same issue here, I'm currently in the same country as my server is and tv records are working without stutter. At the same time, trying watching from another country brings lots of stutter. TV is working fine all the time from any point.

from pvr.hts.

Jalle19 avatar Jalle19 commented on July 2, 2024

Recordings are played differently than live TV. Practically all decisions about buffering etc. are made by Kodi, not by tvheadend nor this addon. I'm inclined to think this is something that must be fixed in Kodi instead, but I'm not sure where to even start looking.

from pvr.hts.

mhlund avatar mhlund commented on July 2, 2024

I tried Kodi 17 Beta 1 to investigate if the brand new dvdplayer code would make any difference, but the xbmc repos kodi-pvr-hts (3.4.7-1~xenial) does'nt work with my tvheadend server at all now...

from pvr.hts.

ksooo avatar ksooo commented on July 2, 2024

does'nt work with my tvheadend server at all now...

which version is your tvheadeend server? 3.x is no longer supported by pvr.hts. You need 4.0.x or 4.1.x

from pvr.hts.

mhlund avatar mhlund commented on July 2, 2024

A restart of my server solved the general problem with tvheadend and I'm back on square 1....
The new Kodi 17 Beta 1 does'nt solve the stuttering problem on recordings.

I'm running:
kodi 2:17.0git20160823.0914-beta1
kodi-pvr-hts 3.4.7-1
xenial
tvheadend 4.1-2236g817f67exenial

from pvr.hts.

Jalle19 avatar Jalle19 commented on July 2, 2024

The problem with stuttering HD recordings (or any kind of recordings, given the latency to the server is high enough) has been reported but a fix probably won't be around for some time: http://trac.kodi.tv/ticket/16915. The only option would be to re-introduce the buffer we used to have in the addon but that again caused a lot of other weird issues, e.g. slow skipping in recordings, very sketchy rewinding/fastforwarding etc. We can maybe do it but I'm not very keen on it.

I'm closing this for, please trac the ticket I linked instead.

from pvr.hts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.