Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.


Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Thread Tools Search this Thread Display Modes
Old 12th March 2011, 17:34   #1  |  Link
Registered User
Join Date: Oct 2010
Posts: 2
Adjust black borders to different aspect ratios in same movie, HELP?

Maybe its in the wrong section. But...I have searched the net and this forum without any luck.

I have Blurays of Transformers, Dark Knight and Armin Only Mirage.

Problem is that certain parts of the movies are filmed with IMAX and have bigger resolution and aspect ratio.
I dont know how to remove black borders from the rest of the scenes to keep everything as is.
If i use (auto)crop the IMAX scenes will also be cut not only the black borders...

Is there any settings or plugins to use to automatically detect and crop only the black borders?
I use avisynth and have meGUI, RipBot, Xvid4psp etc aswell.
All help is appreciated.
Mermade is offline   Reply With Quote
Old 20th March 2011, 06:21   #2  |  Link
Registered User
Join Date: Feb 2011
Posts: 16
I don't there is any decoder/encoder that supports midstream AR switches.

Anyway, what is the problem with keeping the black bars? It barely hurts compression (<.5%) to keep them.
skampy is offline   Reply With Quote
Old 20th March 2011, 14:05   #3  |  Link
Registered User
Join Date: Mar 2003
Location: Germany
Posts: 43
There is no way to be 100% sure what is a black bar and what is just a really dark scene, because black is relative. Pure black, really dark black, greyish black, etc. If the decoder does not use the right colorspace, black becomes greyish.
That's why automatic crop algorithms analyze a distributed portion of frames (with the hope to hit at least one frame where the black borders can be detected correctly).

The only way to optimize the situation is to apply crop by range. See applyrange() in avisynth. Then one has to align the visual area by macroblocks and add the black borders again -> addborders().

This reduces the impact in compression, as the encoder does not need to distribute bitrate to semi-black macroblocks (a transition between black and visual area is considered a sharp contour an needs extra bitrate)
-TiLT- is offline   Reply With Quote

adjust, aspect ratio, crop, same movie

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +1. The time now is 20:05.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, vBulletin Solutions Inc.