NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums General General Discussion v
« Previous 1 … 23 24 25 26 27 … 159 Next »
Close NextPVR while running Custom Task

 
  • 0 Vote(s) - 0 Average
Close NextPVR while running Custom Task
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#1
2011-08-13, 03:00 PM
I have a "Blu Ray" custom task which launches Power DVD for Blu Ray playback. Is there an easy way to close NextPVR while the custom task is running, and then relaunch NextPVR once finished. The reason I need this the Blu Ray playback stutters if NextPVR is running at the same time.

I was thinking some kind of setting in NextPVR (I'm sure there was something in GB-PVR that did this), or a clever batch file
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
mian
Offline

Member

Posts: 217
Threads: 29
Joined: Aug 2005
#2
2011-08-13, 04:39 PM
Have you ever used autohotkey? I think you can trigger closing npvr when powerdvd is in focus, and then relaunch it thereafter. Try winwait/winclose and winwaitclose/run.
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#3
2011-08-13, 04:51 PM
Turn your custom task into a batch file, and then you can call something like the following, which is a shortened version of the batch file I use with GBPVR:

Code:
taskkill /im pvrx2.exe
start /D"C:\Program Files\Arcsoft\TotalMedia Theatre 3\" /WAIT /MIN uMCEDVDPlayer.exe
start /D"C:\Program Files\Devnz\GBPVR" PVRX2.exe -direct "Live TV"

I actually do a whole bunch of other stuff too, like change ReClock settings, and put a nice "blu-ray" background onto the desktop while TMT is loading, etc...

Iain
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#4
2011-08-13, 11:45 PM
McBainUK Wrote:The reason I need this the Blu Ray playback stutters if NextPVR is running at the same time.
I suspect this happens because of the screen saver running in the background; I used to have this problem with PVRX2 and Hulu - playback would start out fine, then start glitching; I eventually figured out that it glitched every time the screensaver re-rendered.

I long ago requested an option to disable the screensaver during the execution of a custom task, but I think maybe the issue was that PVRX2 would have no definitive way of knowning when the custom task was finished. I've not had the same problem with NextPVR, but I've not tried Blu Ray playback either.

My solution then was the same as what Iain uses: batch file starting with 'taskkill /im pvrx2.exe'.
server: NextPVR 5.0.7/Win10 2004/64-bit/AMD A6-7400k/hvr-2250 & hvr-1250/Winegard Flatwave antenna/Schedules Direct
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,828
Threads: 954
Joined: May 2006
#5
2011-08-13, 11:47 PM
Check with ACTCMS to see if SSPlus could help. The Notify() events might have enough information to allow this.

Martin
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#6
2011-08-14, 12:05 AM
ah yes, of course, from the logs I see SSPlus gets told pretty much everything that goes on. I half expect to see this one day:
Code:
2011-08-13 15:58:21.291    [DEBUG][1]    SSPlus Notify: EVENT: Type = 'JOHNSONX42_TOOK_A_LEAK' Text = 'System.Windows.Bladder.DrainageEventArgs'
2011-08-13 15:58:21.291    [DEBUG][1]    SSPlus Notify: bladder relieved...
server: NextPVR 5.0.7/Win10 2004/64-bit/AMD A6-7400k/hvr-2250 & hvr-1250/Winegard Flatwave antenna/Schedules Direct
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV
ACTCMS
Offline

Posting Freak

UK
Posts: 2,730
Threads: 101
Joined: Jun 2007
#7
2011-08-14, 12:18 AM
johnsonx42 Wrote:ah yes, of course, from the logs I see SSPlus gets told pretty much everything that goes on. I half expect to see this one day:
Code:
2011-08-13 15:58:21.291    [DEBUG][1]    SSPlus Notify: EVENT: Type = 'JOHNSONX42_TOOK_A_LEAK' Text = 'System.Windows.Bladder.DrainageEventArgs'
2011-08-13 15:58:21.291    [DEBUG][1]    SSPlus Notify: bladder relieved...
lol Big Grin
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#8
2011-08-14, 06:12 AM
Classic!

Iain
dark_half
Offline

Senior Member

USA
Posts: 463
Threads: 30
Joined: Mar 2006
#9
2011-08-14, 05:33 PM
I do the following so that it kills NextPVR on the server only and leaves the clients running for the Popcorn Hour's.
Code:
for /F "tokens=1,2,3 delims=: " %%i in ('tasklist /V') do (

    if %%i==NextPVR.exe (
                if %%k==Console (
                      taskkill /F /PID %%j
                                 )
                            )  
                        )
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#10
2011-08-17, 05:14 AM (This post was last modified: 2011-08-17, 06:47 PM by McBainUK.)
imilne Wrote:Turn your custom task into a batch file, and then you can call something like the following, which is a shortened version of the batch file I use with GBPVR:
Thanks imiline! Smile Here's the batch file I'm using based on your example.

blurary.bat
Code:
taskkill /im NextPVR.exe"
start /D"C:\Program Files\CyberLink\PowerDVD8" /WAIT PowerDVD8.exe /fullscreen /drive f:
start /D"C:\Program Files\NPVR" NextPVR.exe"

And so the nasty little command window for the batch file is not visible I also created a shortcut to the bat file (with run minimizes option set), and then added a NPVR menu item to launch the shortcut:
Code:
<MenuItem enabled="true" exe="D:\bluray.bat.lnk">Blu Ray</MenuItem>
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
« 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
  Error getting EPG data with NextPVR juliescamilla 2 349 2025-04-01, 10:07 AM
Last Post: juliescamilla
  Using NextPVR instead of Channels DVR Fangking79 3 1,603 2023-11-01, 11:32 PM
Last Post: mvallevand
  Multiple instances of NextPVR on Kodi Spaldo 4 1,232 2023-06-01, 09:13 AM
Last Post: Spaldo
  FrndlyTV on NextPVR markosjal 0 1,089 2022-11-18, 07:50 AM
Last Post: markosjal
  NextPVR server configuration suggestions. mvallevand 0 922 2022-08-04, 12:58 AM
Last Post: mvallevand
  Is it possible to export NextPVR's EPG in XML format Paul92 3 1,596 2022-07-05, 01:38 PM
Last Post: mvallevand
  newbie to NEXTPVR Need help with TV guides sffire 16 4,135 2021-10-10, 05:46 AM
Last Post: sffire
  Kodi and NextPVR question RoshaBeli 1 1,313 2021-08-30, 07:05 PM
Last Post: sub
  How to access NextPVR remotely without Kodi? devilkepo74 2 2,420 2021-02-05, 11:48 AM
Last Post: Graham
  Nextpvr laurihold78 1 1,418 2021-01-19, 12:37 PM
Last Post: Graham

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

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

Linear Mode
Threaded Mode