FFMPEG Resource Usage / NextPVR Quits
#1
Hi all.  I'm looking to build a new HTPC rig, but first decided to do some testing on an old one I had to kick the tires with NextPVR a bit.  Basically, I'm looking to capture and record multiple (~4) TV streams simultaneously.  I noticed that after several minutes, the recording would stop prematurely, so I took a look at the logs (attached).  FFMEG stopped because it thought that it was the end of stream.  I then looked at my resource consumption and my CPU was maxed out when FFMPEG was running (either watching or recording stream).  Conversely, when watching the same stream in the native TV app on Kodi, the resource consumption was less than half.  Has anyone else noticed this?  I was looking at building the rig around Intel HUC i5 or i7 (https://www.newegg.com/Product/Product.a...6ZP5UX5861) and beginning to wonder whether this is grossly inadequate for the amount of resources that FFMPEG needs.  What do others use in the same use case?

 https://paste.kodi.tv/quxucinitu
Reply
#2
It is not an ffmpeg problem, your host PC is not fast enough to transcode to the format requested by NextPVR

2018-11-22 15:30:49.250 [DEBUG][36] IPTV: frame= 202 fps= 13 q=29.0 size= 1249kB time=00:00:06.78 bitrate=1509.5kbits/s speed=0.426x

The speed needs to average > 1.0 to work.

There was a recent patch on the NextPVR forums for some streams that where being transcoded that didn't need to be. 

Martin
Reply
#3
(2018-11-22, 22:44)WhiteThnder Wrote: I noticed that after several minutes, the recording would stop prematurely, so I took a look at the logs (attached).  FFMEG stopped because it thought that it was the end of stream.  I then looked at my resource consumption and my CPU was maxed out when FFMPEG was running (either watching or recording stream). 
For most IPTV streams NextPVR shouldn't be running ffmpeg. You might need this updated NShared.dll, which should hopefully get NextPVR using your source stream without needing ffmpeg:

https://forums.nextpvr.com/showthread.ph...post528538
Reply
#4
Thanks @emveepee , @sub3 .  I tried the new .dll and now am getting an error (logs attached).  I can't view or record content anymore.  Looks like connection is being refused with the localhost.  Any ideas?

https://paste.kodi.tv/eguxoqapav
Reply
#5
Update: I decided to reinstall NPVR on top of the existing updated .dll provided and now everything is working great.  CPU utilization dropped and peaked at 25% (on my old rig) and no longer had the premature termination of recordings.  Thanks again guys.  Hopefully this helps someone else out.
Reply

Logout Mark Read Team Forum Stats Members Help
FFMPEG Resource Usage / NextPVR Quits0