Avidemux Forum

Avidemux => Windows => Topic started by: zemanepic on February 10, 2012, 02:47:43 PM

Title: Shut down computer when finish turning on during batch conversiom
Post by: zemanepic on February 10, 2012, 02:47:43 PM
This happen random after 8 - 12 files processed turning off the computer when you dont see it and uncheck it.

Can somebody fix it, pls?
Title: Re: Shut down computer when finish turning on during batch conversiom
Post by: zemanepic on March 07, 2012, 07:30:28 PM
Any chance to change the shut down computer option to a suspend computer option in a next release?

Is faster to recover when the bug strikes...

Thank you.

%-)
Title: Re: Shut down computer when finish turning on during batch conversiom
Post by: zemanepic on March 31, 2012, 10:52:16 PM
Today i set a new record.

Six not programed shutdowns.

Anything to do?

%-(
Title: Re: Shut down computer when finish turning on during batch conversiom
Post by: Jan Gruuthuse on April 01, 2012, 05:59:15 AM
Disable suspend (OS feature), when computer is suspended other software have no longer control.
Title: Re: Shut down computer when finish turning on during batch conversiom
Post by: zemanepic on April 01, 2012, 12:21:06 PM
Screen saver, shutdown monitor, suspend and hibernate are all disabled from the begining. (Win 7)

Can you pls elaborate more this suggestion?

Thank you very much.

%-)
Title: Re: Shut down computer when finish turning on during batch conversiom
Post by: Jan Gruuthuse on April 01, 2012, 01:30:05 PM
If I understand you correctly: your computer shuts down while only running jobs with avidemux? And you did not thick the box shutdown computer when finished processing?
Your CPU, GPU is overheating? Try lowering down priority encoding in Preferences: Threading. Check computer for dust, blocking fans, check fans with monitoring fans? If cpu overheats: bios shuts down cpu/system? my understanding.
If your jobs consists of re-encoding video, this could put a heavy load on your cpu. Load process explorer on your system, you can monitor cpu/core load with it. Process Explorer v15.13 (http://technet.microsoft.com/en-us/sysinternals/bb896653)
Title: Re: Shut down computer when finish turning on during batch conversiom
Post by: zemanepic on April 01, 2012, 01:54:30 PM
I use to encode 20 to 25 avi 350 or 170 mb series videos to h264 mkv in a row and watch videos/movies while encoding.

The avidemux option to shut down after finish just turns on alone (checks) when next encoding starts and when the encoding finish, the machine shuts down. You can see the shut down box ticked. If you uncheck, its ok.  If you do not see it the machines goes off at the end of encoding.

I am monitoring temperature and its 52, 53 degrees C. So, its not overheating. Priority is already low.

The problem happens after processing around 10 files.

Thank you for your help.
Title: Re: Shut down computer when finish turning on during batch conversiom
Post by: Jan Gruuthuse on April 01, 2012, 03:05:07 PM
Switch to  batch processing with script and cli version of avidemux, so the GUI is not interacting with what you're doing on screen. If focus is grabbed by avidemux, key press or mouse click could be transfered, not saying it is.
Title: Re: Shut down computer when finish turning on during batch conversiom
Post by: zemanepic on April 01, 2012, 03:16:00 PM
???

Sorry but did not follow you.
Title: Re: Shut down computer when finish turning on during batch conversiom
Post by: zemanepic on April 01, 2012, 03:18:28 PM
While was typing above post the box turned on.  Is was the 9 th file of the day.
Title: Re: Shut down computer when finish turning on during batch conversiom
Post by: Jan Gruuthuse on April 01, 2012, 04:14:53 PM
When you process avidemux jobs, there is a Window with avidemux running. When this window becomes active, by loading a new clip and start encoding. This window can take the focus of keyboard/mouse and a take this as instruction.
If jobs are similar like processing a lot of video by just encoding to another format, you could use batch processing.
see avidemux Batch processing (http://www.avidemux.org/admWiki/doku.php?id=tutorial:batch_processing) and Scripting (http://www.avidemux.org/admWiki/doku.php?id=using:scripting)

Other option could be while encoding minimize to tray? Not sure if this an option (checkbox)?
Title: Re: Shut down computer when finish turning on during batch conversiom
Post by: zemanepic on April 01, 2012, 04:56:54 PM
My dear friend.

Look to the title of my post:  Shut down computer when finish turning on during batch conversiom

I am using a .bat program to do that.

Is as follows...

set avidemux="C:\Program Files\Avidemux 2.5\avidemux2.exe"
for %%f in (*.avi) do %avidemux% --force-alt-h264 --load "%%f" --run aq27.js --save "%%f.mkv" --quit

The problems happens when i run the job over 20 or more avi files and stay laying down in my coach.
Title: Re: Shut down computer when finish turning on during batch conversiom
Post by: Jan Gruuthuse on April 01, 2012, 05:44:32 PM
Yes my friend you're using the avidemux for batch processing using a .bat file. Is that avidemux GUI or the command line version? Can't see that from here. If using the GUI try with switch --nogui or switch to avidemux cli, if that exists in windows?
Otherwise try with 2.6.
I do similar stuff in linux, and I'm no longer familiar with Window$. Batch processing in Linux does not cause a shutdown while processing a large amount of video's.
At the bottom of the page Batch processing: from link in previous reply.
QuoteTips

You can replace avidemux2 with avidemux2_cli if you want to process files without GUI

You can use ââ,¬â€œnogui option in case you want to suppress all dialogs (it must be first option!)

So hope you get it sorted out my friend.
Title: Re: Shut down computer when finish turning on during batch conversiom
Post by: Jan Gruuthuse on April 01, 2012, 05:56:49 PM
If still having issues, memory?, you could try this:
set avidemux="C:\Program Files\Avidemux 2.5\avidemux2.exe"
for %%f in (*.avi) do (
%avidemux% --force-alt-h264 --load "%%f" --run aq27.js --save "%%f.mkv" --quit
%avidemux% --help --quit
)

The second avidemux line should clear some stuff (files, ...) after finishing each encode
Should this fail to, change the avidemux lines form position.
No guarantee this will work, can't test this: no windows.
Title: Re: Shut down computer when finish turning on during batch conversiom
Post by: zemanepic on April 01, 2012, 07:18:25 PM
Testing with avidemux_cli.

How i use the  ââ,¬â€œnogui option pls?

set avidemux="C:\Program Files\Avidemux 2.5\avidemux2_cli.exe"
for %%f in (*.avi) do %avidemux% --nogui --force-alt-h264 --load "%%f" --run aq27.js --save "%%f.mkv" --quit  ???

Thank you for your patience.
Title: Re: Shut down computer when finish turning on during batch conversiom
Post by: nibbles on April 01, 2012, 10:09:57 PM
If you use avidemux2_cli.exe, then you are already implying --nogui.  Do not use that option with the cli.
If you use avidemux2.exe, it is the gui.  Adding --nogui like you did would be right in that case.
I don't know about Jan, but I am confused by your title.  Are you saying there is an Avidemux checkbox or menu option in the GUI or flag somewhere to "shutdown after processing"?

What I do know is this, and Jan guessed the same thing: When you are doing a lot of intensive computing and your computer randomly and spontaneously reboots without any reason, this is a classic example of a hardware failure, meaning bad memory, inadequate cooling, or a bad power supply.  On the other hand, if the Operating system pops up a General Protection Fault (GPF) complaining that Avidemux crashed, that is a software failure.  If the Operating System itself crashes into a Blue Screen of Death (BSOD), that is also a software failure in the OS itself, likely due to an old video driver or audio driver, but it very low level that failure, between the OS and the hardware.

It's  hard for us to explain things to each other due to language differences at times, but I think this is what you are describing.  If not, please be more specific.
Title: Re: Shut down computer when finish turning on during batch conversiom
Post by: Jan Gruuthuse on April 02, 2012, 05:22:42 AM
Quote from: nibbles on April 01, 2012, 10:09:57 PM
Are you saying there is an Avidemux checkbox or menu option in the GUI or flag somewhere to "shutdown after processing"?
When the encoding window is showing, bottom left in that window you have the [v] to shutdown after processing option.

@zemanepic
I've tested the 2 x avidemux lines script in Linux, it should work similar in windows batch to. If problem still exists. If your computer  has only 4 GB ram: try on another computer with more memory. Could be a slow incremental memory clogging, not leaving enough memory after processing x times? Use program like ccleaner to clean unused files on your hard disc. Stay away from register.
Title: Re: Shut down computer when finish turning on during batch conversiom
Post by: zemanepic on April 17, 2012, 12:55:26 PM
Lets start over.

I use the following script under windows 7:

set avidemux="C:\Program Files\Avidemux 2.5\avidemux2.exe"
for %%f in (*.avi) do %avidemux% --force-alt-h264 --load "%%f" --run aq27.js --save "%%f.mkv" --quit

I copy the above .bat and the aq27.js file to a folder with a complete séries season that can have 13 to 26 avi files.

Avidemux2.exe (not cli) then starts and encodes file by file.

As i dont have nogui option active each time the encode begins the program shows the progress window (bottom left in that window you have the [v] to shutdown after processing option).

After about 10 files processed, when next file starts encoding and the above window apears, there is a bug or ghost intervention and the shutdown box is checked. If you dont see it and uncheck it the program does what is expected to do, finish encoding and shuts down the computer. If you uncheck it, no problem at all but in this case the box may appear checked again in the next or the second file after. The box checks alone with out human intervention.

This is what i am trying to explain from the beginng.

The computer temperature is under controll and the last file being encoded is always complete so i am shure that is not a harware problem.

I did some tests using avidemux2_cli.exe and the problem did not happen yet.

Thank you very much for your help.

%-)
Title: Re: Shut down computer when finish turning on during batch conversiom
Post by: Jan Gruuthuse on April 17, 2012, 02:20:03 PM
Did understand the described problem. I'm glad the cli is not causing this problem. Have you done anything with the suggestion to use 2.6? Found here http://avidemux.razorbyte.com.au/ or http://avidemux.org/nightly/?
If you have problems running the 64-bit avidemux on windows 7 64-bit, try 32-bit version, users reported this as solution.
Title: Re: Shut down computer when finish turning on during batch conversiom
Post by: zemanepic on April 17, 2012, 03:47:25 PM
So, you think 2.6 is stable now?

Could not use it in the past.

Will spend some time to make a 2.6 h264 options set to replace what i am using now and will test.

Could you pls help me to add the --nogui option in my actual script? Would like to test it.

Thank you for your help.

%-)

Title: Re: Shut down computer when finish turning on during batch conversiom
Post by: Jan Gruuthuse on April 17, 2012, 05:36:15 PM
Sorry about that, believed you had that working? It is only for use on the GUI versions and not CLI:
QuoteYou can use ââ,¬â€œnogui option in case you want to suppress all dialogs (it must be first option!)
last line bottom of page under Tips (http://www.avidemux.org/admWiki/doku.php?id=tutorial:batch_processing)
So only use for avidemux2.exe (2.5.#) or avidemux3.exe (2.6)
I find 2.6 stable enough and it is the only one working with MPEG-TS HDTV streams and leaving audio streams intact. Use it daily to process hours of TV recordings. I'm very pleased with it.
Do keep in mind this is a work in progress and considered experimental (Beta), some stuff that is not handled by 2.6, I try with 2.5.6. Always look what works best and keep both on your system.
Title: Re: Shut down computer when finish turning on during batch conversiom
Post by: zemanepic on April 17, 2012, 10:31:37 PM
No way, 2.6 last release, win32, cancels at file load, during the building time map.

Its a pretty old file (star treck - deep space 9)

Will try other files.

Dont have win64 installed.

Tks