NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Windows v
1 2 3 4 5 102 Next »
Standby/Sleep During Playback

 
  • 0 Vote(s) - 0 Average
Standby/Sleep During Playback
fla
Offline

Posting Freak

Posts: 890
Threads: 46
Joined: Mar 2006
#21
2025-03-02, 04:53 AM (This post was last modified: 2025-03-02, 04:57 AM by fla.)
(2025-03-01, 12:39 AM)mvallevand Wrote: It is not setting power requests, the OS sends requests to sleep to NextPVR which need blocking.
Here you said to someone complaining that the server stayed awake: "What do you want us to see in those logs? The server is awake because you are watching LiveTV and NextPVR does tell the server to stay awake during Live TV.

The server does indeed make wonderful power requests during LiveTV (see them in post #5 of this thread) and while recording. The BlockShutdownForExtraSecondsAfterRecording setting is also wonderful. We are asking for the same/similar power requests to be made during playback as well. Not saying it's easy to do in the code, but that is our wish as users.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,130
Threads: 957
Joined: May 2006
#22
2025-03-02, 04:59 AM (This post was last modified: 2025-03-02, 05:16 AM by mvallevand.)
How do you know that message is a power request and not simply a flag to block sleep when requested. The power management requests are wake ups for recording and EPG updates.

I do understand what you are asking for though.

Martin
fla
Offline

Posting Freak

Posts: 890
Threads: 46
Joined: Mar 2006
#23
2025-03-02, 05:14 AM (This post was last modified: 2025-03-02, 05:15 AM by fla.)
Sorry I didn't intend to sound like a smart ass. My technical lingo is probably off. Tone of voice is missing on forums. The stuff being done for recording & live TV is great and more of the same for playback would be even greater but you already understood my request.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#24
2025-03-02, 05:42 AM
Martin, can you remind me which of the streaming calls kodi typically uses to stream existing recordings? I'll try to put explicit power management around it.

I checked, and there is already power management around the main call I use for streaming in my own stuff.

It doesn't really need anything around live tv or in-progress recordings, because NextPVR is explicitly keeping the system awake during those activities anyway.
fla
Offline

Posting Freak

Posts: 890
Threads: 46
Joined: Mar 2006
#25
2025-03-02, 01:33 PM
(2025-03-02, 05:42 AM)sub Wrote: Martin, can you remind me which of the streaming calls kodi typically uses to stream existing recordings? I'll try to put explicit power management around it.
That would be terrific as I only uses kodi on the LAN. Hopefully (for those that use it) browser playback uses the same streaming calls as kodi and will benefit from playback standby protection too (posts #16, #17 above) .
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,130
Threads: 957
Joined: May 2006
#26
2025-03-02, 02:58 PM (This post was last modified: 2025-03-02, 02:59 PM by mvallevand.)
For playback Kodi has several scenarios

- If the client is on localhost it will use the filesystem
- if the recording filename is a Windows UNC it will convert it to Kodi smb:// format for a UNC and if found it will use it.
- if path substitution is used it will try the substituted name and use the file system if found.

I would expect those to be handled by Windows sleep configuration not NextPVR I do assume Kodi to keep itself open during playback.

Otherwise http will be used

- uses /live?recording=recordingoid&client=XBMC-sid
- if the file starts in progress it will close and reopen to seek
- there is no close action defined in the API, so there needs to be an incremental count of active streams.

In both case starting in Piers the recording can be opened twice. Also during recording playback all heartbeats to the server are disabled so there will be zero activity during a pause.

Currently Kodi doesn't use the m3u8 streaming protocol used by the browser for recordings just for Live TV.

In Kodi knewc (UI client) the URL in the action activity will be used so it could be /stream?f= and media=stop should be used.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#27
2025-03-02, 05:16 PM
(2025-03-02, 02:58 PM)mvallevand Wrote: - uses /live?recording=recordingoid&client=XBMC-sid
As far as I can tell, this method already does power management. fla, if your scenario was using this method for streaming, and you set <LogPowerManagement>true</LogPowerManagement> you should see regular "PowerManagement PreventStandby..." messages in nrecord.log

For the other methods, such as playback from filesystem or unc, NextPVR doesn't play a role.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,130
Threads: 957
Joined: May 2006
#28
2025-03-02, 05:59 PM
Is it possible that in his scenario, playing in progress, the flag gets turned off when the recording ends

Code:
2025-03-02 12:43:48.019    [DEBUG][11]    PowerManagement StayAwake
2025-03-02 12:43:48.019    [DEBUG][11]    Active...staying awake

start playing with Kodi

2025-03-02 12:45:18.836    [DEBUG][11]    PowerManagement AllowSleep
2025-03-02 12:45:18.836    [DEBUG][11]    No longer active
keep playing in Kodo

I didn't see this when it is in progress.

2025-03-02 12:55:40.822 [DEBUG][25] PowerManagement PreventStandby...

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#29
2025-03-02, 06:35 PM
Do you have "StreamNative@1.." maybe a couple more messages then "About to stream recording: "?
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,130
Threads: 957
Joined: May 2006
#30
2025-03-02, 06:45 PM
Yes many times with every range request that Kodi makes.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (6): « Previous 1 2 3 4 5 6 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  New Installation on WIN11 Sleep Problem 12vibes 2 38 Yesterday, 05:31 PM
Last Post: 12vibes
  nextpvr.exe playback issues? hae 7 887 2025-05-31, 09:02 PM
Last Post: sub
  playback issue artmetz 4 460 2025-03-28, 07:47 PM
Last Post: artmetz
  NextPVRServer.exe (Version 7) Preventing Sleep PVR_Convert 4 501 2025-02-18, 07:18 PM
Last Post: mvallevand
  No standby after update to Version 7 Escape7 163 12,324 2025-01-04, 05:27 PM
Last Post: sub
  Jerky Playback at 2160p dshorrosh 6 713 2024-07-17, 01:49 PM
Last Post: mvallevand
  Error at 58 minutes playback Offroad 4 681 2024-06-01, 01:17 PM
Last Post: Offroad
  Recording wont resume, just playback from beginning dallascowboy23 26 3,466 2024-05-15, 01:35 PM
Last Post: mvallevand
  Sleep WakeUp, PC shuts down instead FM5 3 584 2024-05-09, 09:52 PM
Last Post: mvallevand
  Playback record skips back while recording a program sgar75 2 655 2024-03-23, 05:41 AM
Last Post: sgar75

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

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

Linear Mode
Threaded Mode