PDA

View Full Version : X-Files encoding problem


Bannor
18th February 2005, 06:28
I'm in the process of transfering my X-Files collection to DivX and have hit a rogue episode which AutoGK doesn't want to encode correctly, for some reason the episode is getting cropped and on the left side. The file created has a resolution of 704x496, while the dvd is 720x480.

Log file:
[06/02/2005 00:09:05] AutoGK 1.89b
[06/02/2005 00:09:05] OS: WinXP (5.1.2600).2
[06/02/2005 00:09:05] Job started.
[06/02/2005 00:09:05] Input dir: C:\DVD\xfs06e06
[06/02/2005 00:09:05] Output file: C:\DVD\xfs06e06\6x06.avi
[06/02/2005 00:09:05] Audio: English
[06/02/2005 00:09:05] Subtitles: English / Normal Closed Captions : Wide
[06/02/2005 00:09:05] Display only forced subtitles.
[06/02/2005 00:09:05] Codec: DivX
[06/02/2005 00:09:05] Target size: 350Mb
[06/02/2005 00:09:05] Started encoding.
[06/02/2005 00:09:05] Demuxing and indexing.
[06/02/2005 00:10:40] Processing file: C:\DVD\xfs06e06\VTS_06_PGC_02_1.VOB
[06/02/2005 00:10:40] Processing file: C:\DVD\xfs06e06\VTS_06_PGC_02_2.VOB
[06/02/2005 00:10:40] Source aspect ratio: 16:9
[06/02/2005 00:10:40] Source resolution: 720x480
[06/02/2005 00:10:40] Found NTSC source.
[06/02/2005 00:10:40] Analyzing source.
[06/02/2005 00:13:14] Source has percentage of interlacing in motion areas: 53.36
[06/02/2005 00:13:14] Source has percentage of telecined patterns: 96.57
[06/02/2005 00:13:14] Source has percentage of progressive patterns: 2.74
[06/02/2005 00:13:14] Source has percentage of interlaced patterns: 0.69
[06/02/2005 00:13:14] Source is considered to be FILM.
[06/02/2005 00:13:14] Output will contain 63817 frames
[06/02/2005 00:13:14] Encoding audio.
[06/02/2005 00:19:08] Preparing subtitles.
[06/02/2005 00:20:59] Audio size: 43,340,808 bytes (41.33 Mb)
[06/02/2005 00:20:59] Overhead: 4,119,168 bytes (3.93 Mb)
[06/02/2005 00:20:59] Video size: 319,541,624 bytes (304.74 Mb)
[06/02/2005 00:20:59] Target bitrate is: 960kbps
[06/02/2005 00:20:59] Running compressibility test.
[06/02/2005 00:20:59] Writing the following script to C:\DVD\xfs06e06\agk_tmp\6x06_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\vsfilter.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\RemoveGrain.dll")

movie = mpeg2source("C:\DVD\xfs06e06\agk_tmp\6x06.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 = 1.18518518518519
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 : (4.0/3.0)
out_width = 640
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,order=1,guide=1,post=2).Decimate(mode=0)
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)
VobSub("C:\DVD\xfs06e06\agk_tmp\6x06.idx")
SelectRangeEvery(280,14)
===========================================================
[06/02/2005 00:24:18] Duration was: 3 minutes 17 seconds
[06/02/2005 00:24:18] Speed was: 16.19 fps.
[06/02/2005 00:24:18] Compressibility percentage is: 100.61
[06/02/2005 00:24:18] Chosen resolution is: 704x496 ( AR: 1.42 )
[06/02/2005 00:24:18] Predicted comptest value is: 82.61
[06/02/2005 00:24:18] Running first pass.
[06/02/2005 00:24:18] Writing the following script to C:\DVD\xfs06e06\agk_tmp\6x06_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\vsfilter.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\RemoveGrain.dll")

movie = mpeg2source("C:\DVD\xfs06e06\agk_tmp\6x06.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 = 1.18518518518519
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 : (4.0/3.0)
out_width = 704
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,order=1,guide=1,post=2).Decimate(mode=0)
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)
VobSub("C:\DVD\xfs06e06\agk_tmp\6x06.idx")
===========================================================
[06/02/2005 01:10:35] Duration was: 46 minutes 16 seconds
[06/02/2005 01:10:35] Speed was: 22.98 fps.
[06/02/2005 01:10:35] Running second pass.
[06/02/2005 01:52:32] Duration was: 41 minutes 55 seconds
[06/02/2005 01:52:32] Speed was: 25.37 fps.
[06/02/2005 01:52:32] Job finished. Total time: 1 hour, 43 minutes 26 seconds

Bannor
18th February 2005, 06:31
Attached screen capture of the source vob.

The file attachment didn't seem to work so here's a link to the image.
720x480 PowerDVD capture (http://www.geocities.com/r5d4_ie/dvd.jpg)

Bannor
18th February 2005, 06:33
Attached screen grab of the divx generated.

704x496 divx capture (http://www.geocities.com/r5d4_ie/divx.jpg)

xtc
18th February 2005, 13:13
I have encoded my entire X-Files collection also, never had any problem with cropping, though. Only had problems with certain episodes being undersized, especially Closure and X-Cops (seasion 7 I think)

But, try to use the hidden option, you can increase the treshold for cropping. I think you can also specify interval of frams for cropping-analyzing.

Sharktooth
18th February 2005, 14:03
Do a search.
Autocrop is fooled by globally dark scenes. There's an hidden option to adjust the autocrop.