View Full Version : Is it possible to pause an encoding in MeGUI?
comomolo
20th August 2006, 19:42
I see a pause icon in the main queue window, but when I click on it, the encoding still goes on.
Sirber
20th August 2006, 19:47
I see a pause icon in the main queue window, but when I click on it, the encoding still goes on.might pause after the current pass.
comomolo
20th August 2006, 19:48
The current pass will take 8 hours... I need to pause it in the middle of this pass. Is that possible at all?
Sirber
20th August 2006, 20:02
As far as I know, no. You cannot pause a CLI.
Doom9
20th August 2006, 20:18
I presume you're using x264 (I really cannot imagine why somebody wouldn't tell that to begin with.. how is anybody but you to know what you are doing if you don't tell?), so in that case, x264.exe will keep on going for a few hundred frames (and depending on your settings, computer, etc. that can take a long while) before it finally rests.
Although, since pause doesn't mean you can close megui, what's wrong with low priority? That'll yield every CPU cycle other apps need but it'll still keep going and once no other software uses your CPU cycles it'll go on full speed again without you having to do anything about it.
Sirber
20th August 2006, 20:24
@Doom9
How does your "pause" exactly work?
Doom9
20th August 2006, 20:35
stop reading from the stdout/stderr pipes.. that pauses every software that prints progress to stdout/stderr I know of (in case of x264, it takes excessively long but it still works).
Sirber
20th August 2006, 20:52
hum.... don't think I can do that with TDosCommand (Delphi)...
thanks for the hint though! :D
comomolo
20th August 2006, 23:56
I presume you're using x264 (I really cannot imagine why somebody wouldn't tell that to begin with.. how is anybody but you to know what you are doing if you don't tell?)
Hey, hold your horses!! I simply didn't think that was an important bit of information. I still think it isn't, but you're the developer, so yes, you're right, I'm using x264.
Although, since pause doesn't mean you can close megui, what's wrong with low priority? That'll yield every CPU cycle other apps need but it'll still keep going and once no other software uses your CPU cycles it'll go on full speed again without you having to do anything about it.
All right. I'll see if I can still work on Golive (which takes A LOT of memory and CPU) while x264.exe is executing in low priority.
Just out of curiosity: Long time ago I was a Silicon Graphics user and IRIX had a command to pause any process (Ctrl-z, if I remember well) and then other commands (fg and bg) to bring it back to life. Aren't there any similar commands in Windows? Again, this is just curiosity.
Thanks for your answers.
Sirber
21st August 2006, 00:31
Just out of curiosity: Long time ago I was a Silicon Graphics user and IRIX had a command to pause any process (Ctrl-z, if I remember well) and then other commands (fg and bg) to bring it back to life. Aren't there any similar commands in Windows? Again, this is just curiosity.That's powerfull UNIX stuff, windows is too sissy ;)
foxyshadis
21st August 2006, 00:56
Sirber:
http://www.codecomments.com/message232528.html
DOS and Win32 cmd shell have pause too; what do you think the pause key is for? :p But a lot of programs ignore it now, maybe it's not part of current stdc libs. But no way to break into a command and run the shell before resuming. Neatness.
Sirber
21st August 2006, 01:02
Could be cool if someone could hack this in TDosCommand :D
hhanh00
12th September 2006, 03:55
You can suspend a process by calling SuspendThread on all its threads.
There is a command line tool. http://www.sysinternals.com/Utilities/PsSuspend.html
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.