NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support v
« Previous 1 … 18 19 20 21 22 … 43 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: 13
Threads: 4
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: 13
Threads: 4
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: 13
Threads: 4
Joined: Jun 2020
#3
2021-09-04, 09:46 AM
...vs when playing the ABC stream:
   
   
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,766
Threads: 954
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: 106,626
Threads: 767
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: 106,626
Threads: 767
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: 106,626
Threads: 767
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: 106,626
Threads: 767
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: 13
Threads: 4
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: 106,626
Threads: 767
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: 2 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  RTP streams / Kodi gets incorrect docker IP DiligentScrubber 8 639 2025-03-20, 04:45 PM
Last Post: DiligentScrubber
  How do you filter large IPTV Devices? ModdingFriendly 7 542 2025-03-15, 09:22 PM
Last Post: sub
  Is it possible to rename IPTV tuners? brcarls 1 259 2025-02-27, 07:58 PM
Last Post: sub
  Web player no longer gives "resume watching" option LeGrandZombie 11 613 2025-02-07, 08:22 PM
Last Post: mvallevand
  IPTV - Change source IP address, without needing to reimport channel. Paul92 1 346 2024-11-09, 03:23 AM
Last Post: mvallevand
  IPTV Radio Type topcat 10 1,536 2024-06-27, 06:08 PM
Last Post: sub
  IPTV provider snagglewest 2 1,189 2024-02-16, 03:07 PM
Last Post: snagglewest
  IPTV Recordings not finishing - Too many retries...giving up Ade_AV 3 833 2023-12-05, 07:08 AM
Last Post: Ade_AV
  No audio Skyopen IPTV Jaggy 2 667 2023-11-05, 11:48 PM
Last Post: Jaggy
  IPTV "Subcategories" WatchGuardian 2 777 2023-10-03, 02:01 PM
Last Post: sub

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

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

Linear Mode
Threaded Mode