PDA

View Full Version : SVCD source --> to DIVX (aspect ratio problem)


namdape
15th October 2006, 11:54
Hello!

Check this:

[15.10.2006 12:34:34] AutoGK 2.34b
[15.10.2006 12:34:34] OS: Win2000 (5.0.2195).2
[15.10.2006 12:34:34] Job started.
[15.10.2006 12:34:34] Input file: G:\recorded_shows\small_final_WinTV_(7).MPG
[15.10.2006 12:34:34] Output file: G:\recorded_shows\small_final_WinTV_(7).avi
[15.10.2006 12:34:34] Output codec: XviD
[15.10.2006 12:34:34] Audio 1: Audio Stream 0 MPEG
[15.10.2006 12:34:34] Subtitles: none
[15.10.2006 12:34:34] Format: AVI
[15.10.2006 12:34:34] Target size: 10Mb
[15.10.2006 12:34:34] Audio 1 settings: VBR MP3 with average bitrate: 128Kbps
[15.10.2006 12:34:34] Standalone support enabled: MTK/Sigma
[15.10.2006 12:34:34] Started encoding.
[15.10.2006 12:34:34] Demuxing and indexing.
[15.10.2006 12:34:35] Processing file: G:\recorded_shows\small_final_WinTV_(7).MPG
[15.10.2006 12:34:35] Source resolution: 480x576
[15.10.2006 12:34:35] Found PAL source.
[15.10.2006 12:34:35] Source aspect ratio: 4:3
[15.10.2006 12:34:35] Manual aspect ratio: 4:3
[15.10.2006 12:34:35] Color correction enabled.
[15.10.2006 12:34:35] Analyzing source.
[15.10.2006 12:35:08] Source has percentage of interlacing in motion areas: 2.56
[15.10.2006 12:35:08] Source is considered to be interlaced.
[15.10.2006 12:35:08] Output will contain 1620 frames
[15.10.2006 12:35:08] Encoding audio.
[15.10.2006 12:35:28] Audio1 size: 908,234 bytes (0.87 Mb)
[15.10.2006 12:35:28] Overhead: 64,768 bytes (0.06 Mb)
[15.10.2006 12:35:28] Video size: 9,512,758 bytes (9.07 Mb)
[15.10.2006 12:35:28] Running compressibility test.
[15.10.2006 12:35:28] Writing the following script to G:\recorded_shows\agk_tmp\small_final_WinTV_(7)_comptest.avs
===========================================================
LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\ColorMatrix.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\RemoveGrainSSE2.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\kerneldeint.dll")

movie = mpeg2source("G:\recorded_shows\agk_tmp\small_final_WinTV_(7).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.6
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 = 480
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
KernelDeInt(movie,order=1,sharp=true)
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)
ColorMatrix("Rec.709->Rec.601",opt=0,hints=false)
SelectRangeEvery(15,15)
===========================================================
[15.10.2006 12:37:48] Duration was: 2 minutes 20 seconds
[15.10.2006 12:37:48] Speed was: 11.54 fps.
[15.10.2006 12:37:48] Compressibility percentage is: 167.45
[15.10.2006 12:37:48] Using sharper matrix
[15.10.2006 12:37:48] Switching b-frames off
[15.10.2006 12:37:48] Chosen resolution is: 480x256 ( AR: 1.88 )
[15.10.2006 12:37:48] Predicted comptest value is: 94.06%
[15.10.2006 12:37:48] Running first pass.
[15.10.2006 12:37:48] Writing the following script to G:\recorded_shows\agk_tmp\small_final_WinTV_(7)_movie.avs
===========================================================
LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\ColorMatrix.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\RemoveGrainSSE2.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\kerneldeint.dll")

movie = mpeg2source("G:\recorded_shows\agk_tmp\small_final_WinTV_(7).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.6
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 = 480
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
KernelDeInt(movie,order=1,sharp=true)
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)
ColorMatrix("Rec.709->Rec.601",opt=0,hints=false)
===========================================================
[15.10.2006 12:39:17] Duration was: 1 minute, 29 seconds
[15.10.2006 12:39:17] Speed was: 18.19 fps.
[15.10.2006 12:39:17] Expected quality of first pass size: 86.50%
[15.10.2006 12:39:17] Running second pass.
[15.10.2006 12:41:08] Duration was: 1 minute, 50 seconds
[15.10.2006 12:41:08] Speed was: 14.60 fps.
[15.10.2006 12:41:08] Job finished. Total time: 6 minutes 34 seconds

It does not follow orders :-P
I want the resulting avi to be 1.33:1 instead autogk want to
be a smartass and have a cropping party ;-)

Whats going on?

len0x
15th October 2006, 21:25
"Manual aspect ratio" is not for output AR, but rather input AR. You have to disable autocrop from hidden options if you want no cropping to be done...