NextPVR Forums
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support v
« Previous 1 … 9 10 11 12 13 … 34 Next »
WHY?: 100% CPU while watching select IPTV streams

 
  • 0 Vote(s) - 0 Average
WHY?: 100% CPU while watching select IPTV streams
Pete (NZ)
Offline

Junior Member

new zealand
Posts: 10
Threads: 3
Joined: Jun 2020
#1
2021-09-04, 08:26 AM (This post was last modified: 2021-09-04, 09:59 AM by Pete (NZ).)
I loaded http://i.mjh.nz/nzau/kodi.m3u8 into an IPTV device (NPVR 5.14), and am playing channels via Kodi v19.1, all on a single Windows 10/4GB/Intel i5 laptop, from Martinborough, NZ, via 4G mobile internet.

The NZ channels seem to play fine with around 15-25% CPU (Kodi specs displayed on screen via pressing "o" key), mostly 720p at the time.

However, I'd enabled a couple of Aus channels, and found that while playing them, e.g. ABC channel (also 720p), I was getting significant caching/buffering happening while watching in Kodi.

While the Kodi stream specs were onscreen (I was checking to see if there was a resolution/bitrate difference), I noticed the CPU was at 100% when playing the Aus stream.

Further investigation with "Process Hacker" revealed that Kodi was using around 5% and ffmpeg.exe, under the NPVR service, was maxing out the CPU. So I'm presuming that was the cause of the caching, not the internet stream bitrate/connection. (?)

I verified no recording was scheduled at the time.

I changed channel to TVNZ (720p), and CPU went down to the usual 20-25%, with ffmpeg showing little CPU use.
Switched back to ABC channel, and back up went ffmpeg's CPU use.

So what is the role of ffmpeg here? Why doesn't NPVR just pass the stream on to Kodi, without any transcoding? (...if that is indeed what it's doing to the ABC stream?). If it is transcoding, why doe NPVR think it's required? Is it a situation that is fixable?
The "Inputstream FFMPEG direct" plugin is enabled in Kodi, but I'm not sure exactly what that does, or if it's related.
(BTW, I have "Prefer no trancoding" set in Settings.)


Again, in advance, thanks for your generous help! Smile
Pete


I
Pete (NZ)
Offline

Junior Member

new zealand
Posts: 10
Threads: 3
Joined: Jun 2020
#2
2021-09-04, 09:07 AM (This post was last modified: 2021-09-04, 09:42 AM by Pete (NZ).)
Here's the details when watching the TVNZ stream:
   
   
Pete (NZ)
Offline

Junior Member

new zealand
Posts: 10
Threads: 3
Joined: Jun 2020
#3
2021-09-04, 09:46 AM
...vs when playing the ABC stream:
   
   
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 45,328
Threads: 867
Joined: May 2006
#4
2021-09-04, 10:24 AM (This post was last modified: 2021-09-04, 01:29 PM by mvallevand.)
You should have uploaded the logs but when NextPVR can't detect the file type of an IPTV file it will use ffmpeg to transcode it. When you play the Oz stream in Kodi you are giving the wrong page from the o key (NextPVR doesn't populate that info) what does it show on the other tab "Player Process Info" or better what about the bottom when you hit i during video playback.

Edit: No point in hitting the o in Kodi since the transcoded files will always be h264/aac.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 102,399
Threads: 742
Joined: Nov 2003
#5
2021-09-04, 08:15 PM
As Martin says above, basically NextPVR will try to handle the stream natively if possible. Unfortunately there is lots of different types of IPTV streams out there, and they behave lots of different ways, often complicated by the source trying to protect their stream. If NextPVR can't understand the stream, it falls back to asking ffmpeg to handle the stream.

I've spent the last couple of hours looking at the ABC stream to determine why NextPVR doesn't like it. I found a couple of causes. I'm working through some changes now to hopefully get it handling this stream natively without having to fallback to ffmpeg.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 102,399
Threads: 742
Joined: Nov 2003
#6
2021-09-04, 08:26 PM
This is fixed for the next build.


Attached Files Thumbnail(s)
   
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 102,399
Threads: 742
Joined: Nov 2003
#7
2021-09-04, 08:27 PM
(ignore the picture - I guess that doesn't tell you that ffmpeg isn't needed Big Grin)
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 102,399
Threads: 742
Joined: Nov 2003
#8
2021-09-04, 08:38 PM
It was definitely a bug worth looking into. The changes fixes a compatibility issue with a pile of streams running on Akamai, and it's nice to be able to stream these without having to rely on ffmpeg to convert them.
Pete (NZ)
Offline

Junior Member

new zealand
Posts: 10
Threads: 3
Joined: Jun 2020
#9
2021-09-05, 12:56 AM
Geez, Sub... you're bloody impressive. And soooo appreciate your ongoing generousity.

I'm in Wellington too, and if there's a couple of hours of building/joiney/handyman work (that's my profession) that I can do for you sometime -- pro bono -- I'd love to be able to do that for you. Or perhaps if you'd ever like to use a joinery workshop (I'm in Karori) or a tool or machine for making or breaking anything, I'd be happy to share. Mobile is 0Two9-nine7three-6triple1 Smile
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 102,399
Threads: 742
Joined: Nov 2003
#10
2021-09-05, 02:05 AM
Cheers for the offer. Not in need of anything at this stage, but I appreciate the offer.

I'm actually in Kelburn, so not far from you.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Stalker / MAC support for IPTV? snow 1 113 2023-02-03, 09:35 PM
Last Post: sub
  IPTV device to record Roku streams? bufulo 3 139 2023-01-27, 09:11 PM
Last Post: bufulo
  Use iptv service joshuacarney 1 271 2022-10-19, 04:57 AM
Last Post: sub
  IPTV stream drops hootie318 6 317 2022-09-29, 12:37 AM
Last Post: mvallevand
  IPTV Merge Channel botofode 1 281 2022-08-31, 03:16 AM
Last Post: sub
  IPTV streaming failed: Error - streaming failed (transcoder exited) chandankp 6 431 2022-07-25, 04:57 PM
Last Post: chandankp
  iptv not working on nextpvr davidjj 10 1,349 2021-11-30, 03:46 PM
Last Post: sub
  Tips and Tricks for setting up IPTV in V5 spin35 2 1,214 2021-09-28, 02:34 AM
Last Post: Brucek2839
  HOW: Restrict IPTV stream to a max. bitrate...? Pete (NZ) 10 1,552 2021-09-07, 04:37 PM
Last Post: sub
  Deleting (IPTV) channels/groups, 'Update XC" CenturyBreak 10 1,274 2021-09-01, 04:33 PM
Last Post: CenturyBreak

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode