View Single Post
Old 5th April 2016, 18:16   #28  |  Link
martin53
Registered User
 
Join Date: Mar 2007
Posts: 407
Strange delay under Win10

StainlessS,
would you please help checking if there might be a new Win10-related issue.
I use a loop of AviSynth Script calls to a Thumbsheet-Creator function to make thumbsheets of a set of clips.
The thumbsheet creator uses the ImageWriter function, and to compress the Jpegs and remove the frame number from the filename, CallCmd calls ImageMagick's 'convert' and command prompt's 'del' at the closedown of the modified script in line 63
Code:
CallCmd(Close=
\"Cmd.exe /c P:\PortableApps\ImageMagick\convert " + chr(34) + JpgName +"000000.jpg" +chr(34) + " -quality 75 " + chr(34) + JpgName + ".jpg" + chr(34) + " && del " + chr(34) + JpgName +"000000.jpg" +chr(34),
\Hide=true, Synchronous=7)
I used this regularly and without obvious flaws for many months, for a while with 32bit AviSynth+ r1779, and recently updated from Win7 (x64) to Win10.

Now I observe that the thumbsheets all need a suspicious time of exactly 30 seconds to be created, and by some random cause, the time switches to exactly 30 minutes(!) per thumbsheet.

I'm unsure if the 'synchronous' parameter might be broken in Win10, so CallCmd runs into some sort of timeout.

Will change the outmost loop to do these operations outside the AviSynth script and report more findings.

EDIT
After commenting out line in AVS script and adding the commands in the calling AU3 script, processing time is not as stable at 30" as before, and issue is still there. So seems not to come from the CallCmd line but maybe from VirtualDub (which is the portable version 1.10.4 being called directly without the 'portable wrapper' because that is not needed here) or AviSynth+ itself.

AVS script is executed from AutoIt via:
Code:
RunWait("P:\PortableApps\VirtualDubPortable\App\VirtualDub\vdub.exe " & $s2 & " /cmd VirtualDub.RunNullVideoPass(); /x", "", @SW_HIDE)
AutoIt: 3.3.14.2, OS: WIN_10/X64, Script: MakeThumbsheets.au3
19970814 21.21.59.avi
20:00:56
19970814 22.18.40.avi
20:01:27
19970814 22.20.00.avi
20:01:58
19970814 22.20.18.avi
20:02:28
19970814 22.20.44.avi
20:02:58
19970814 22.21.27.avi
20:03:29
19970814 22.24.23.avi
20:04:00
19970814 22.24.43.avi
20:04:30
19970814 22.26.22.avi
20:05:01
19970815 22.27.48.avi
20:05:32
19970818 22.43.47.avi
20:06:26
19970818 22.45.48.avi
20:06:57
19970818 22.48.49.avi
20:36:58
19970818 22.51.32.avi
20:37:31
19970818 22.52.36.avi
20:38:01
19970818 22.53.43.avi
20:38:32
19970818 22.56.25.avi
20:39:03
19970818 22.57.46.avi
20:39:33
20:40:04
>>>>>> Please close the "Report Log Window" to exit <<<<<<<


EDIT2
will try AVSMeter instead of vdub NullVideoPass()

Last edited by martin53; 5th April 2016 at 20:12. Reason: More findings
martin53 is offline   Reply With Quote