Just another weblog

Mencoder aspect ratios

Posted by onlydarksets on September 5, 2007

Found here.

If you want square pixels, use “-vf scale=-1:-2”, or if you want to scale the height to 480 and have the width automatically selected to get square pixels, use “scale=-2:480”

If you want to add black bars to make the video fit a 4:3 aspect, just use “-vf expand=aspect=4/3” (then scale to VCD/SVCD/DVD resolution).

If you don’t specifically want either of the above, just use “-lavcopts autoaspect” and it will select the correct aspect ratio for you.

2 Responses to “Mencoder aspect ratios”

  1. Wahoo said

    Thank you for sharing!

  2. booi said

    Great way to get rid of aspect ratios. modern codecs don’t need them.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: