NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Windows v
« Previous 1 … 36 37 38 39 40 … 100 Next »
After upgrading to nextPVR v6.0, timeout problem when streaming recorded TV

 
  • 0 Vote(s) - 0 Average
After upgrading to nextPVR v6.0, timeout problem when streaming recorded TV
newton
Offline

Junior Member

Denmark
Posts: 8
Threads: 1
Joined: Sep 2022
#1
2022-09-21, 02:15 PM
After upgrading to nextPVR  v6.0.0.220904 I have a problem. When watching a show I have recorded with NextPVR, the libreELEC nextPVR client suddenly stops playing.
I have found out that the problem occurs when my computer wants to go to sleep.

If I set Windows to go into sleepmode after 5 minutes of inactivity, I can play a recording for about 5 minutes before it is interrupted.
It seems like v6.0 isn’t keeping Windows alive when streaming the TV show to libreElec

I have been looking into the logfiles when the break event happens and in nrecord.log I see this:
2022-09-21 14:53:52.252 [DEBUG][3] [Suspend]
2022-09-21 14:53:52.253 [DEBUG][3] OnSleep...
2022-09-21 14:54:25.427 [DEBUG][23] Client has disconnected
2022-09-21 14:54:25.427 [DEBUG][23] Sent total of 327232800 bytes

My client is a raspberryPi 2 running libreELEC 9.2 with the latest NextPVR client. I have also tried libreELEC 10 and it has the same problem (libreELEC 10 has a lot of other problems when running on RaspberryPi 2)
The nextPVR client has the setting Wake On Lan enabled.
My Windows 64 bit version is 21H2 with the latest updates.

I have included the logs.


Attached Files
.zip   logs-20220921-1455.zip (Size: 25.55 KB / Downloads: 1)
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,767
Threads: 954
Joined: May 2006
#2
2022-09-21, 04:24 PM
I talked about this problem with sub and he told me NextPVR never kept the PC awake during recordings so you need to check your streaming sleep settings 

Martin
newton
Offline

Junior Member

Denmark
Posts: 8
Threads: 1
Joined: Sep 2022
#3
2022-09-23, 06:45 AM (This post was last modified: 2022-09-23, 06:45 AM by newton.)
Hi Martin,
Thanks for answering so fast.

I assume that by ”NextPVR never kept the PC awake during recordings” you mean “while streaming recordings”?

The only change in my Windows configuration is that I replaced NextPVR v5 with NextPVR v6.

But you never know with Windows, so I checked if the setting “When Sharing Media prevent idling to sleep” was set. It was.
But to be completely sure I went into failsafe mode and made a new configuration with this option set. But it didn’t help.
Are there any other settings I should check?

Could it be that defaults concerning when a service is going to sleep has changed from .NET v5 to 6?
I think that NextPVR already reacts on Windows suspend and resume events. Has something changed from v5 to v6?

Just a longshot.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#4
2022-09-23, 07:32 AM
Usually disk activity is enough to keep a machine awake.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#5
2022-09-23, 07:36 AM
That said, the current version of NextPVR will actively try to keep a machine awake while streaming.

If you set <LogPowerManagement>true</LogPowerManagement> in the <General> section of config.xml, you should see regular "PowerManagement PreventStandby" log messages. This is effectively NextPVR telling the machine it's still in use, so don't go to sleep.
newton
Offline

Junior Member

Denmark
Posts: 8
Threads: 1
Joined: Sep 2022
#6
2022-09-23, 08:28 AM (This post was last modified: 2022-09-23, 08:36 AM by newton.)
I have set LogPowerManagement to true as described. I have attached the logfiles so you can see if it is as expected. Search for this line in nrecord: 2022-09-23 10:11:45.146 [DEBUG][14] [Suspend]


Attached Files
.zip   logs-20220923-1013.zip (Size: 28.38 KB / Downloads: 1)
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#7
2022-09-23, 06:47 PM
As far as I can tell, NextPVR is telling Windows that the machine is still in use. It's not clear why Windows would still be choosing to go to sleep.

Quote:2022-09-23 10:08:49.914 [DEBUG][13] PowerManagement PreventStandby
2022-09-23 10:09:49.937 [DEBUG][13] PowerManagement PreventStandby
2022-09-23 10:10:49.968 [DEBUG][13] PowerManagement PreventStandby
2022-09-23 10:11:45.146 [DEBUG][14] [Suspend]
2022-09-23 10:11:45.147 [DEBUG][14] OnSleep...
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#8
2022-09-23, 06:54 PM
Maybe try updating NShared.dll to this version, and let me know if it helps.


Attached Files
.zip   NShared.zip (Size: 363.24 KB / Downloads: 7)
newton
Offline

Junior Member

Denmark
Posts: 8
Threads: 1
Joined: Sep 2022
#9
2022-09-24, 07:38 AM
Hi,
Thanks.
It seems to be working.
I have switched between the new and the old dll a couple of times with the same result.
Does it have any side effects eg. does it only keep the pc awake while streaming or recording which would be the ideal behaviour, or does it keep the pc awake as long the LibreELEC with the NextPVR client is turned on?
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,767
Threads: 954
Joined: May 2006
#10
2022-09-24, 08:01 AM
NextPVR always keeps a Windows PC awake during recording.

If you want your PC to sleep you can set up wol and restarting pvr.nextpvr will send a wol to your PC

If you don't have heavy recording demands or many clients the native LE server option might work for you.  It is not quite on the LE repo yet but it is very easy to install.
« Next Oldest | Next Newest »

Users browsing this thread: 4 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Problem with encrypted channels achim_m 0 61 2025-05-03, 03:34 PM
Last Post: achim_m
  NextPVR missing EPG benniehill 4 233 2025-04-28, 09:51 AM
Last Post: mvallevand
  Streaming 4K Marvi 1 195 2025-04-14, 03:21 PM
Last Post: mvallevand
  NextPVR - Access from Remote Location - Port Forwarding? TomasCremin 2 334 2025-04-13, 08:39 PM
Last Post: boringgit
  Streamlink + NextPVR + Pluto TV Stream Freezes During Ads wrenloren 2 269 2025-04-01, 01:57 AM
Last Post: DessieJerde
  NextPVR client no longer works Rich A 13 584 2025-03-30, 10:04 PM
Last Post: mvallevand
  EPG not found for some channels - DVB/ATSC (NextPVR version 7) Nimoder 22 1,093 2025-03-12, 10:18 PM
Last Post: sub
  What's the link between Preferred Streaming Profile and config.xml Transcode Profile? aderlopas 5 2,050 2025-03-10, 07:52 AM
Last Post: mmortal03
  Multiple Instances of NextPVR JaxMedia 1 242 2025-02-22, 07:34 PM
Last Post: sub
  Streaming Failed (transcoder exited) jzk 3 266 2025-02-20, 03:26 PM
Last Post: mvallevand

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

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

Linear Mode
Threaded Mode