View Full Version : Using Avisynth for Anamorphic encoding H264
San07
7th February 2008, 19:06
What all plugins can be used for Anamorphic encoding in H264 iam very new for encoding process ur guide will be helpfull
PLzz Guide me
If anything wrong also guide me.
Blue_MiSfit
8th February 2008, 06:45
1) You're not doing anamorphic encoding (from the looks of it). You're lanczos4 resizing down to square pixels. To encode anamorphic, leave video un-resized, and set DAR when muxing.
2) You don't need ConvertToYV12() at the end. The script is YV12 all the way through.
3) SeeSaw may or may not be needed. Try with and without.
~MiSfit
San07
8th February 2008, 07:43
1) You're not doing anamorphic encoding (from the looks of it). You're lanczos4 resizing down to square pixels. To encode anamorphic, leave video un-resized, and set DAR when muxing.
2) You don't need ConvertToYV12() at the end. The script is YV12 all the way through.
3) SeeSaw may or may not be needed. Try with and without.
~MiSfit
Ok then i want with SeeSaw if Lancoz Resize should not be Used
can u give a clear AviSynth usage script in ur view for Anormphic
Anormphic i gave Resize to Achieve mod16
Blue_MiSfit
8th February 2008, 08:36
What is the aspect ratio of your source?
smok3
8th February 2008, 10:01
If you want to make your own FLVs using VP6, then check out Sh0dan's page, and make sure you use VP6's Advanced Sharpness Profile.
you mean 'heightened sharpness profile'?
sorry for offtopic.
San07
8th February 2008, 16:31
What is the aspect ratio of your source?
FPS : 23.976
Container : MP4
Source : DVD5
RunTime : 2:39:45
I need some Advice also for encoding Anormphic Plzz
Iam new to this encoding process....
Leak
8th February 2008, 20:34
Aspect Ratio : 23.976
That's obviously a frame rate, not an aspect ratio.
Common aspect ratios are 4:3 (1.333), 16:9 (1.777), 1.85, 2.0<something> and so on...
np: Proem - Live @ LSR 03-19-2006 (Merck Fragments)
Blue_MiSfit
9th February 2008, 00:38
Yeah... what he said :)
Post a VOB sample maybe..
~MiSfit
San07
9th February 2008, 17:34
Sorry For The Mistake ITU 16:9 NTSC (1.822784) NTSC ALL Region
San07
10th February 2008, 07:49
Yeah... what he said :)
Post a VOB sample maybe..
~MiSfit
Click Here For VOB Sample (http://www.mediafire.com/?cmdudtnktwy)
Burst
11th February 2008, 14:55
MeGUE correctly calculate DAR for anamorphic encoding.
Height=1.822784*480*(720-2-2)~870.076
Width=480-58-56=366
DAR=870.076/366~2.377~5943:2500
Change of the sizes with lanczos (or other resizers) is necessary for the further encoding (366 is only Mod2 resolution).
smok3
11th February 2008, 15:23
your script seems fine (at least my calc thinks so)
http://somestuff.org/resizeCalc.php?ssmw=720&ssmh=480&sar=1.215&sar2=&CT=58&CL=2&CR=2&CB=56&trw=720&dar=1.215&dar2=&mod=&padw=&padh=&css=&doit=true
# pixels = 264960, DAR error = 0.012 - really small dar error when you mod16 your output resolutions
# Crop(Left, top, -right, -Bottom)
Crop(2,58,-2,-56)
LanczosResize(720,368) # min mod16 # warning, upscaling
nothing to calculate considering aspect ratios, just use sar signaling with x264 or par with mp4box (dunno how is that handled in megui)
San07
11th February 2008, 16:57
My video bitrate will be 1090
smok3
11th February 2008, 21:18
san07: try to crop such as that your final x and y will be mod16.
Crop(8,56,-8,-56) # should give you 704x368
San07
11th February 2008, 22:30
san07: try to crop such as that your final x and y will be mod16.
Crop(8,58,-8,-56) # should give you 704x368
ok
Does it need anyother changes.......:)
& anyother additional plugins
smok3
11th February 2008, 22:32
uhm, did you edit that or i missed that?
remove this line;
Lanczos4Resize(720,368) # Lanczos4 (Sharp) "Resize to mod 16"
San07
11th February 2008, 22:41
uhm, did you edit that or i missed that?
remove this line;
Lanczos4Resize(720,368) # Lanczos4 (Sharp) "Resize to mod 16"
I Editted it now
Removed anyother changes need r is it perfect now..:)
smok3
11th February 2008, 23:34
actually croping should be;
Crop(8,56,-8,-56)
Blue_MiSfit
12th February 2008, 01:39
Looks good :)
San07
12th February 2008, 14:42
actually croping should be;
Crop(8,56,-8,-56)
Atlast is it perfect or not.......:)
San07
12th February 2008, 14:44
Looks good :)
Its all with ur's help and smok3's help
Thank u........:)
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.