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) ZTools and UltraXMLTV v
« Previous 1 … 7 8 9 10 11 12 Next »
Is ZProcess supposed to be resource hungry?

 
  • 0 Vote(s) - 0 Average
Is ZProcess supposed to be resource hungry?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#41
2007-06-17, 05:57 AM
First my advance warning that I've never done VB6 development. I'm also making some assumptions about what exactly ZProcess does, but I'd do it something like this:

1) make a global variable with the 'Dim hProcess As Long'
2) immediately after you launch ffmpeg, call the "hProcess = OpenProcess(...)" call to open the process
3) start a timer with some frequency you'd be happy with (250ms, 500ms, whatever suits)
4) in the timer event, call the "GetExitCodeProcess()" function to check if it has exited
4.1) when it does exit, stop the timer, do whatever logging you want, then call "CloseHandle(hProcess)"
4.2) shutdown zprocess.

With this logic, it gets rid of the tight loop you have checking for the exit code, and zprocess should use virtually no CPU.
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#42
2007-06-17, 08:31 PM
sub Wrote:First my advance warning that I've never done VB6 development. I'm also making some assumptions about what exactly ZProcess does, but I'd do it something like this:

Thanks sub, you did well for not working with VB6! I had to rewrite a bunch of code because there were more than a few things I was doing after FFmpeg was launched and then finished.

But I think I have it now. The timer only checks for an exitcode. I have even changed the time to 1000ms. That seems to be OK, certainly for unattended on-the-fly transcodes...

I've also removed a couple of doevents in Hunter that would surely be cranking up the CPU...

@azimuth try these latest patches for ZProcess and Hunter. I can tell that I have increased performance, but I have no idea how your dual processor will like the changes.

ZProcess 1.0.1015
Hunter 1.0.103
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
Azimuth
Offline

Member

Posts: 225
Threads: 47
Joined: Oct 2006
#43
2007-06-18, 02:21 AM
Yes, that fixed it. much improved Smile
[SIZE="1"]SuperMicro PDSME+ Core2Duo 2.40GHz 6.0GB Ram | HD Homerun | (4) NMT | GB-PVR v1.5.21 | Windows 7 Enterprise x64[/SIZE]
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#44
2007-06-18, 03:04 AM
Azimuth Wrote:Yes, that fixed it. much improved Smile

Thanks for your help. I'm glad its working...
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (5): « Previous 1 2 3 4 5


Possibly Related Threads…
Thread Author Replies Views Last Post
  problems installing zprocess on windows 7 64 bit bertros 3 6,598 2010-04-16, 05:17 PM
Last Post: bertros
  zProcess and Windows Home Server grits 3 6,930 2010-03-07, 06:06 AM
Last Post: zehd
  zProcess ffmpeg "Incorrect frame size" meccano 3 6,062 2010-02-01, 02:46 PM
Last Post: zehd
  zprocess in postprocessing.bat alevideotestservice 2 3,092 2009-12-22, 07:01 PM
Last Post: alevideotestservice
  zprocess... to work or not to work... medic29 26 10,494 2009-11-04, 05:54 PM
Last Post: zehd
  Zprocess & MVP: Can I watch DVD´s yet? Knobby 5 3,334 2009-11-02, 07:10 PM
Last Post: zehd
  Zprocess postprocessing ? Dufcoum 13 6,553 2009-08-19, 10:15 PM
Last Post: Dufcoum
  ZPROCESS: Audio sloooooow on MVP goobie 5 3,406 2009-08-18, 01:34 PM
Last Post: zehd
  MVP+Zprocess: Avi plays with audio only, no video goobie 3 3,084 2009-07-10, 08:01 PM
Last Post: zehd
  Can you clarify functionality of ZProcess please Elmo Putney 4 3,646 2009-03-23, 09:37 PM
Last Post: Elmo Putney

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

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

Linear Mode
Threaded Mode