Log in

View Full Version : Fails 2nd Pass --> Doesn't Work with Undelete


Squee0
14th January 2007, 00:47
AutoGK fails to encode an MPEG into XviD in the begging of the second pass receives this error message every time:

FastWritestream: couldn't open "c:\...": The Process cannot access the file because it is being used by another process..

Undelete by Executive Software is active and running on the drive, that's the only thing that I could assume that's causing this not to finish, because the file size is correct after the 1st pass but the second it starts the 2nd pass the file size goes to 0kb and receive that error message.

BigDid
14th January 2007, 05:26
AutoGK fails to encode an MPEG into XviD in the begging of the second pass receives this error message every time:

FastWritestream: couldn't open "c:\...": The Process cannot access the file because it is being used by another process..

Hi,

Please post your logfile...

Did

Squee0
14th January 2007, 16:40
[1/13/2007 11:28:49 PM] AutoGK 2.40
[1/13/2007 11:28:49 PM] OS: Win2003 (5.2.3790).2
[1/13/2007 11:28:49 PM] Job started.
[1/13/2007 11:28:49 PM] Input file: E:\Sabrina, the Teenage Witch\Season 1\Sabrina, the Teenage Witch - 1x01 - Pilot.mpg
[1/13/2007 11:28:49 PM] Output file: C:\Sabrina, the Teenage Witch - 1x01 - Pilot.avi
[1/13/2007 11:28:49 PM] Output codec: XviD
[1/13/2007 11:28:49 PM] Audio 1: Audio Stream 0 MPEG
[1/13/2007 11:28:49 PM] Subtitles: none
[1/13/2007 11:28:49 PM] Format: AVI
[1/13/2007 11:28:49 PM] Target size: 233Mb
[1/13/2007 11:28:49 PM] Custom resolution settings: fixed width of 576 pixels
[1/13/2007 11:28:49 PM] Audio 1 settings: CBR MP3 with bitrate: 192Kbps
[1/13/2007 11:28:49 PM] Started encoding.
[1/13/2007 11:28:49 PM] Demuxing and indexing.
[1/13/2007 11:29:26 PM] Processing file: E:\Sabrina, the Teenage Witch\Season 1\Sabrina, the Teenage Witch - 1x01 - Pilot.mpg
[1/13/2007 11:29:26 PM] Source resolution: 720x480
[1/13/2007 11:29:26 PM] Found NTSC source.
[1/13/2007 11:29:26 PM] Source aspect ratio: 4:3
[1/13/2007 11:29:26 PM] Analyzing source.
[1/13/2007 11:36:33 PM] Source has percentage of interlacing in motion areas: 32.79
[1/13/2007 11:36:33 PM] Source has percentage of telecined patterns: 84.40
[1/13/2007 11:36:33 PM] Source has percentage of progressive patterns: 13.55
[1/13/2007 11:36:33 PM] Source has percentage of interlaced patterns: 2.05
[1/13/2007 11:36:33 PM] Source is considered to be hybrid (mostly FILM).
[1/13/2007 11:36:33 PM] Looking for optimal hybrid thresholds.
[1/13/2007 11:38:45 PM] Found threshold of: 1.96
[1/13/2007 11:38:45 PM] Output will contain 30594 frames
[1/13/2007 11:38:45 PM] Encoding audio.
[1/13/2007 11:49:55 PM] Audio1 size: 30,626,496 bytes (29.21 Mb)
[1/13/2007 11:49:55 PM] Overhead: 363,264 bytes (0.35 Mb)
[1/13/2007 11:49:55 PM] Video size: 213,328,448 bytes (203.45 Mb)
[1/13/2007 11:49:55 PM] Running compressibility test.
[1/13/2007 11:49:55 PM] Writing the following script to C:\agk_tmp\Sabrina, the Teenage Witch - 1x01 - Pilot_comptest.avs
===========================================================
LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\decomb.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\RemoveGrain.dll")

movie = mpeg2source("C:\agk_tmp\Sabrina, the Teenage Witch - 1x01 - Pilot.d2v")
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=34,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 0.888888888888889
c_width = width(cropclip)
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
input_par = (input_par > 1.4) || (input_par < 1.25) ? input_par : (4.0/3.0)
out_width = 576
out_height = round(float(out_width) / input_par)
hmod = out_height - (floor(out_height / 16 ) * 16)
out_height = (hmod > 4) ? (out_height + (16 - hmod)) : (out_height - hmod)
new_aspect = (float(out_width) / float(out_height)) / fixed_aspect
Telecide(movie,guide=1,post=2).Decimate(mode=3,threshold=1.96)
autocrop(mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=34,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
LanczosResize(out_width,out_height)
RemoveGrain(mode=2)
SelectRangeEvery(214,15)
===========================================================
[1/14/2007 12:00:47 AM] Duration was: 10 minutes 52 seconds
[1/14/2007 12:00:47 AM] Speed was: 3.28 fps.
[1/14/2007 12:00:47 AM] Compressibility percentage is: 76.38
[1/14/2007 12:00:47 AM] Chosen resolution is: 576x432 ( AR: 1.33 )
[1/14/2007 12:00:47 AM] Predicted comptest value is: 76.38%
[1/14/2007 12:00:47 AM] Running first pass.
[1/14/2007 12:00:47 AM] Writing the following script to C:\agk_tmp\Sabrina, the Teenage Witch - 1x01 - Pilot_movie.avs
===========================================================
LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\decomb.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\RemoveGrain.dll")

movie = mpeg2source("C:\agk_tmp\Sabrina, the Teenage Witch - 1x01 - Pilot.d2v")
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=34,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 0.888888888888889
c_width = width(cropclip)
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
input_par = (input_par > 1.4) || (input_par < 1.25) ? input_par : (4.0/3.0)
out_width = 576
out_height = round(float(out_width) / input_par)
hmod = out_height - (floor(out_height / 16 ) * 16)
out_height = (hmod > 4) ? (out_height + (16 - hmod)) : (out_height - hmod)
new_aspect = (float(out_width) / float(out_height)) / fixed_aspect
Telecide(movie,guide=1,post=2).Decimate(mode=3,threshold=1.96)
autocrop(mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=34,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
LanczosResize(out_width,out_height)
RemoveGrain(mode=2)
===========================================================
[1/14/2007 1:30:39 AM] Duration was: 1 hour, 29 minutes 51 seconds
[1/14/2007 1:30:39 AM] Speed was: 5.67 fps.
[1/14/2007 1:30:39 AM] Expected quality of first pass size: 80.22%
[1/14/2007 1:30:39 AM] Running second pass.
[1/14/2007 10:36:05 AM] Duration was: 9 hours 5 minutes 25 seconds
[1/14/2007 10:36:05 AM] Speed was: 0.93 fps.
[1/14/2007 10:36:05 AM] Job finished. Total time: 11 hours 7 minutes 15 seconds

BigDid
14th January 2007, 17:44
Hi,

Please post your logfile...

Did
Is this the logfile for your problematic encode?
Cause I don't see any error messages...

One general tip: Try restricting your files and folders naming to DOS characters.

Did

Squee0
14th January 2007, 20:08
I get the problem in the form of a popup message box, and then once I click on with that AutoGK then saves the .log file and it moves onto the next item in the batch, even though the file hasn't complete since its file size is 0kb. Will try dos file names.

Squee0
14th January 2007, 22:49
yeah it still doesn't work when making the file name length less then 7 characters, still get the same error can't access file while its attempting to start the 2nd pass.

The Scientist
14th January 2007, 23:56
Undelete by Executive Software is active and running on the drive, that's the only thing that I could assume that's causing this not to finishThen why don't you try it with it disabled?

Also, if you have Symantec Anti-Virus running try it without this running (especially Corporate Edition). Also, ZoneAlarm can cause this too.

Try each to see if you can track it down, good luck.

Squee0
15th January 2007, 01:51
Yeah I would try with undelete disabled, except that its not really possible to disable per-say. but i'll figured something out...