View Full Version : MEGUI is squashing the aspect ratio


bradwiggo
17th August 2018, 21:39
MEGUI is squashing the aspect ratio of a video file I am encoding. The file is a 720 by 576 file that has black borders so the actual videos part is running at an aspect ratio of 2.39:1, however, after encoding the video is squashed horizontally. I think what is happening is the black bars are being removed but the resolution is staying the same, so the video is being stretched vertically.

How do I fix this?

manono
18th August 2018, 00:38
I don't think MeGUI is responsible. This is the AviSynth forum and AviSynth knows nothing about aspect ratios. For it, everything is 1:1.

Did you set the DAR for 16:9?

StainlessS
18th August 2018, 01:37
You could try this if you think it is of use


Function SignalDAR(float DAR){ # Signal DAR for MEGUI (Name change from SetDar)
Assert(DAR>0.0, "SignalDAR: Error, DAR must be greater than zero")
Global MeGUI_darx=Round(1000*DAR) Global MeGUI_dary=1000
}
Function SignalDAR2(int DARX,int DARY){
Assert(DARX>0 && DARY>0, "SignalDAR2: Error, DARX and DARY must be greater than zero")
Global MeGUI_darx=DARX Global MeGUI_dary=DARY
}


At end of Avs Script.

SignalDar2(239,100)
Return Last


EDIT: https://en.wikibooks.org/wiki/MeGUI/Aspect_Ratio_Signalling_in_AviSynth_Scripts

tormento
18th August 2018, 09:10
How do I fix this?
Given the resolution, it could be a DVD rip.

Some need to be encoded with a SAR of 64:45 in the command line of x264 or the encoder you are using.

Try and tell me.

kuchikirukia
25th August 2018, 13:31
Just remux it and set the DAR there.

Forteen88
4th September 2018, 05:16
An AviSynth-script that shows what SAR you should set for DVD:s is here,
https://forum.doom9.org/showthread.php?p=1849752#post1849752