NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) GB-PVR Support (legacy) v
« Previous 1 … 264 265 266 267 268 … 1231 Next »
Question!

 
  • 0 Vote(s) - 0 Average
Question!
AmericanSlon
Offline

Member

Posts: 79
Threads: 18
Joined: Sep 2006
#1
2008-08-26, 04:34 AM
Hi,

The way I have my setup is my power button on the remote both turns GBPVR on and off. The way I do that is I have startup and shutdown .bat files that essentially only do two things turn monitor on/off and run/kill pvrx2.exe process. This creates a slight problem. If i just kill pvrx2.exe while watching live TV once pvrx2.exe is shut down the live tv continues to get recorded ( i have timeshift enabled all the time).
When I noticed that I was like fine this makes sense I am not exactly closing the prvx2.exe gracefully. So what I did for a workaround is I have included stop and start GBPVRrecordingService.exe commands in my shutdown script. And then I realized that this way I won't be able to shutdown GBPVR through remote when I am actually purposefully recording something since the GBPVRRecordingService.exe will get restarted.
So my question is: is there a way to call the same function that selecting Exit from the main menu calls, from the batch file? Or is there a way to add some OnPvrx2ProcessClose logic(in future releases) that can differentiate if it's live tv being recorded or an actual program?
Hope that made senseSmile
Thanks
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#2
2008-08-26, 04:58 AM
The easiest thing is to set it to go back to Live Preview mode on channel change. Live TV will not be recorded unless you hit the pause button. Then you can just change the channel before shutting down.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,707
Threads: 767
Joined: Nov 2003
#3
2008-08-26, 06:04 AM
If you kill the app, it may think the device is in use for a max of 30 seconds, then it'll realise and free the resources. Its only going to be a problem if you turn it off/on in less than this. Even then, the worst you'll have to do is wait a few seconds.

Instead of killing the process, you can also send the Alt-F4 keystrokes to get it to do an orderly shutdown. No waiting would then be required.
AmericanSlon
Offline

Member

Posts: 79
Threads: 18
Joined: Sep 2006
#4
2008-08-26, 11:09 PM
ALT F4 works like a charm. Also it's good to know you can put more then one command per button into the irremote. Eliminates the need for batch filesSmile
Thanks
dark_half
Offline

Senior Member

USA
Posts: 463
Threads: 30
Joined: Mar 2006
#5
2008-08-27, 12:16 AM
Quote:If you kill the app, it may think the device is in use for a max of 30 seconds, then it'll realise and free the resources.

I start but saying I do not have any logs proving this but if I close the app while watching livetv(I always use timeshift) that the recording will continue until the recording service is restarted. It will continue to record to the same file name even after the program ends. I have seen the recording file size get up to 45gig before I restarted the service. I see this often because on my setup livetv freezes on any attempt to rewind from the client pc requiring you to kill it. I believe I have seen it when on the rare event that server has an issue with livetv and has to be retarted also.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,707
Threads: 767
Joined: Nov 2003
#6
2008-08-27, 12:20 AM
I seriously doubt it due to the license/renewal scheme used, which requires the client to rerequest access to the device every 30 seconds or it loses access, but I'm happy to look at the logs if you reproduce it and post the logs.
dark_half
Offline

Senior Member

USA
Posts: 463
Threads: 30
Joined: Mar 2006
#7
2008-08-27, 02:10 AM (This post was last modified: 2008-08-27, 02:56 AM by dark_half.)
Here you go.

Started livetv on client

Quote:2008-08-26 20:40:23.891 VERBOSE [14] Temporary live TV filename: E:\_LiveBuffer\House_3_20080826_20002100.mpg


I see a renewal
Quote:2008-08-26 20:40:56.580 VERBOSE [14] RenewLease 3
2008-08-26 20:40:56.580 VERBOSE [14] forcing refresh of next 2 hour events for all capture sources
2008-08-26 20:40:56.581 VERBOSE [14] Checking for other recordings using device: DEVICE:Adaptec AVC-3610 #1 with FM Tuner:1
2008-08-26 20:40:56.581 VERBOSE [14] getValue cached value: /settings/LiveTVDirectory : E:\_LiveBuffer
2008-08-26 20:40:56.581 VERBOSE [14] Getting current programme from cache
2008-08-26 20:40:56.582 VERBOSE [14] RenewLease finished

Killed PVRX2 on client

Quote:2008-08-26 20:41:13.970 VERBOSE [15] Media Streaming Thread exiting..


Recording was still going even after program ended at 9:00pm. Restarted recording service and file was deleted.

Quote:2008-08-26 21:04:30.069 VERBOSE [9] Checking if GB-PVR can remove: E:\_LiveBuffer\House_3_20080826_20002100.mpg
2008-08-26 21:04:30.093 VERBOSE [9] LiveTV file removed: E:\_LiveBuffer\House_3_20080826_20002100.mpg
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,707
Threads: 767
Joined: Nov 2003
#8
2008-08-27, 02:15 AM
Was this from a client PC? It'd be interesting for you to test the same thing directly on the PC to see if you get the same behaviour.
Quote:2008-08-26 20:40:30.305 VERBOSE [16] getValue() loading new key/value into cache: /settings/ClientModeExtendedLogging
2008-08-26 20:40:30.305 VERBOSE [16] getValue: /settings/ClientModeExtendedLogging : true
2008-08-26 20:40:30.305 VERBOSE [16] Streaming media handler starting
2008-08-26 20:40:30.411 VERBOSE [15] Media Streaming Thread started...
2008-08-26 20:40:30.411 VERBOSE [15] Streaming media handler starting
2008-08-26 20:40:30.411 VERBOSE [15] getValue cached value: /settings/ClientModeExtendedLogging : true
2008-08-26 20:40:30.411 VERBOSE [15] OPEN: E:\_LiveBuffer\House_3_20080826_20002100.mpg
2008-08-26 20:40:30.411 VERBOSE [15] file size is currently: 4079616
2008-08-26 20:40:30.427 VERBOSE [16] STATUS: DEADBEEF000000F5
2008-08-26 20:40:30.427 VERBOSE [16] returning length: 4079616
2008-08-26 20:40:30.813 VERBOSE [15] File length currently: 4448256
2008-08-26 20:40:30.831 VERBOSE [15] READ: 49152 bytes from offset 0
2008-08-26 20:40:30.831 VERBOSE [15] READ: complete
2008-08-26 20:40:30.831 VERBOSE [15] File length currently: 4448256
2008-08-26 20:40:30.831 VERBOSE [15] READ: 49152 bytes from offset 49152
2008-08-26 20:40:31.038 VERBOSE [15] READ: complete
2008-08-26 20:40:31.038 VERBOSE [15] File length currently: 4644864
2008-08-26 20:40:31.038 VERBOSE [15] READ: 49152 bytes from offset 98304
2008-08-26 20:40:31.043 VERBOSE [15] READ: complete
2008-08-26 20:40:31.043 VERBOSE [15] File length currently: 4669440
2008-08-26 20:40:31.043 VERBOSE [15] READ: 49152 bytes from offset 147456
2008-08-26 20:40:31.048 VERBOSE [15] READ: complete
...etc

I dont have a client PC setup these days, so no easy way to test it quickly myself.
dark_half
Offline

Senior Member

USA
Posts: 463
Threads: 30
Joined: Mar 2006
#9
2008-08-27, 02:26 AM
Yes this was from a client pc. I will see if I can recreate on the server
dark_half
Offline

Senior Member

USA
Posts: 463
Threads: 30
Joined: Mar 2006
#10
2008-08-27, 02:55 AM
Here are the logs when recreated on the server. If I read this correct it looks like it stops the recording here

Quote:2008-08-26 21:38:02.957 ERROR [5] Found expired lease. Stopping recording.
2008-08-26 21:38:02.958 VERBOSE [5] Received request to stop livetv: 4
2008-08-26 21:43:27.446 VERBOSE [9] Checking if GB-PVR can remove: E:\_LiveBuffer\Smash Lab _4_20080826_21002200.mpg
2008-08-26 21:44:35.753 INFO [4] GB-PVR Recording Service stopping
2008-08-26 21:44:35.766 INFO [5] RecordingManager has been signalled to shutdown
2008-08-26 21:44:35.766 INFO [5] RecordingManager has finished
2008-08-26 21:44:36.754 INFO [4] GB-PVR Recording Service shutdown complete

However the file continues to grow and the tray app shows the recording still active. I restarted the recording services after 5/6 minutes at which time the recording file stopped growing and was deleted.
« 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
  GBPVR Database question - Recording Schedule David B 1 1,619 2010-11-08, 09:21 PM
Last Post: sub
  Descriptive Audio Service Question mikeh49 3 3,117 2010-10-21, 10:49 PM
Last Post: sub
  Italian channels post and a question about compatibility with Seven 64 bit pinopallino 2 1,644 2010-08-18, 09:14 AM
Last Post: pinopallino
  Newbie Question rthefish 4 2,083 2010-05-25, 08:06 PM
Last Post: pBS
  Question About Recording Formats LewE 11 3,650 2010-04-27, 02:23 AM
Last Post: LewE
  Question about Haupblast.exe broadband412 2 2,471 2010-04-24, 08:59 PM
Last Post: broadband412
  A Complete noob question about remote controller mpooley 3 1,881 2010-04-01, 11:52 AM
Last Post: jw100
  MCE remote and netradio question collin 4 1,929 2010-03-23, 11:32 PM
Last Post: collin
  Question on EVR Renderer collin 4 2,418 2010-02-18, 02:39 PM
Last Post: collin
  A little question Yonidan 15 4,625 2010-01-16, 10:32 PM
Last Post: majortom999

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

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

Linear Mode
Threaded Mode