Comments (32)
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.
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.
Please provide both a debug log from Kodi and a debug log from tvheadend for the same timeframe.
from pvr.hts.
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.
Could you try enabling trace debugging from the addon settings?
from pvr.hts.
Trace debugging was enabled in the addon settings!
from pvr.hts.
Can you post the full log in that case? You must also enable debug logging in Kodi itself.
from pvr.hts.
OK, I had'nt enabled debug logging in Kodi itself... I will do that and post new logs!
from pvr.hts.
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.
from pvr.hts.
Do you have sufficient information now or can I help with some more?
from pvr.hts.
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.
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.
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.
This is still occuring for me with a cabled 1gbps connection on LAN.
from pvr.hts.
@Xstasy do SD recordings work? You only mentioned HD in the original post
from pvr.hts.
Same for me. Gb LAN HD shutters.
from pvr.hts.
@Jalle19 Yes, I do not have issues with SD recordings.
from pvr.hts.
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.
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.
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.
@mhlund can you disable VDPAU acceleration in Kodi, it doesn't work on your hardware anyway?
from pvr.hts.
@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.
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.
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.
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.
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.
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.
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.
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.
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.
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-beta1xenial
kodi-pvr-hts 3.4.7-1
tvheadend 4.1-2236g817f67exenial
from pvr.hts.
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)
- pvr.hts segfaults - kodi 20.0-ALPHA1 (19.90.701) Git:20220701-30fb576edd HOT 8
- Too many status messages after long inactivity time HOT 3
- Kodi 19.4 (Nvidia Shield Pro) Audio Stutter and Buffering with TVHeadend Addon HOT 4
- Selecting a different video decoder HOT 2
- Kodi 20 Beta 1 & Nightlies - EPG Flush/Crash HOT 2
- Channel switch times HOT 3
- Feature request: Force software decoding for hts streams HOT 2
- Season 0 shows up as season 2 HOT 3
- Choppy audio only on bluetooth
- [issue] GUI is blocked when starting any live channel in Kodi Nexus HOT 8
- Live TV Subtitles broken on Kodi 20 HOT 1
- Cannot save settings on appletv HOT 3
- Live TV HEVC streams not playing-Ubuntu 22.04 lts Kodi Nexus HOT 22
- listitem.size doesn't update in real time HOT 1
- Channel Groups/Tags not syncing between tvheadend and Kodi HOT 1
- Feature Request: Warn when creating an overlapping recording HOT 3
- Disconnect from TVHeadend server while playing piped mpd-stream with "demux read no data for at least 10 secs" HOT 6
- [tvOS] Addon settings not saved
- Live TV HEVC streams not playing-Libreelec Intel generic HOT 6
- cstdint needs to be included in HTSPVFS.h HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pvr.hts.