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
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 8th May 2020, 05:54   #1  |  Link
orion44
None
 
orion44's Avatar
 
Join Date: Jul 2007
Location: The Background
Posts: 307
Should black bars be cropped when backing up Blu-ray and DVD movies?

Do you crop black bars when backing up Blu-ray and DVD movies?

Does cropping the black bars decrease video quality?

Last edited by orion44; 8th May 2020 at 06:48.
orion44 is offline   Reply With Quote
Old 8th May 2020, 06:52   #2  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,733
I always crop. It does not decrease quality but will rather increase it because the bits will then be spent on the active area of the frame. Sometimes there is noise also in the border area, at least near the edges.
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...
Boulder is offline   Reply With Quote
Old 8th May 2020, 09:44   #3  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,580
It depends.

Consider that if you have a "stupid" player on your tv, it will resize the movie, losing quality.

So, I tend to ignore small black bars to reach 1920 widht or 1080 height.

If the bars are noticeable, I crop.
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 8th May 2020, 11:31   #4  |  Link
wonkey_monkey
Formerly davidh*****
 
wonkey_monkey's Avatar
 
Join Date: Jan 2004
Posts: 2,496
Is it worth keeping crops to mod 16 so that macroblocks occupy the same positions in the re-encode?
__________________
My AviSynth filters / I'm the Doctor
wonkey_monkey is offline   Reply With Quote
Old 8th May 2020, 11:35   #5  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,580
Quote:
Originally Posted by wonkey_monkey View Post
Is it worth keeping crops to mod 16 so that macroblocks occupy the same positions in the re-encode?
I keep mod8, usually. After a denoise, it's not worth worrying about macroblocks.
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 8th May 2020, 13:12   #6  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
If you want to keep borders, not a bad idea to use Letterbox() on them, ie make perfect black borders.
http://avisynth.nl/index.php/Letterbox

Code:
Letterbox(clip clip, int top, int bottom [, int x1 , int x2 , int color ] [, int color_yuv AVS+])

    int  top, bottom = (required)

        Number of top and bottom rows to blank out.

            For YV12 sources, top and bottom must be mod2 (divisible by 2). 

    int  x1, x2 = 0

        Number of left (x1) and right (x2) columns to blank out.

            For YUY2, YV16 and YV12 sources, left and right must be mod2 (divisible by 2).
            For YV411 sources, left and right must be mod4 (divisible by 4). 

    int  color = (black)

        Fill color; specified as an RGB value. See this page for more information on specifying colors.

            For YUV clips, colors are converted from full-range (0d-255d) to YV-range (16d-235d). 

    int  color_yuv =
    AVS+

        Specifies the color of the border using YUV values. It requires setting pixel_type to one of the YUV formats; otherwise it doesn't do anything. 
        Similar to color_yuv in BlankClip
Usually use the default 16 for YUV
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 8th May 2020 at 13:15.
StainlessS is offline   Reply With Quote
Old 8th May 2020, 16:45   #7  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,997
Quote:
Originally Posted by wonkey_monkey View Post
Is it worth keeping crops to mod 16 so that macroblocks occupy the same positions in the re-encode?
Hmmm.... I think to remember that the quality decreases slightly near the borders with respect to the rest of the macroblock (the encoder uses higher quantizers) unless one keeps the original mod 16 macroblock structure intact. It may happen only when one adds 'misaligned' clean black borders back though (?). It's probably because the encoder distributes the bits differently when part of the macroblock is black compared to when the full macroblock is used by the picture. The difference is small anyway and barely noticeable.

@orion44: Just in case you want to author blu-ray or DVD discs you must keep the borders.

Last edited by Sharc; 8th May 2020 at 17:57.
Sharc is offline   Reply With Quote
Old 8th May 2020, 17:03   #8  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
For BD movies, I pretty much always keep the bars. I also almost always resize to 720p since very few movies have the actual resolution worth keeping them at their original 1080p. There are exceptions such as Wall-E from Pixar which really uses the full 1080p resolution.

For DVD, I usually crop the bars since sometimes they have kinda fuzzy margins. However, after cropping I add bars again and resize to 1024 x 576 for 1:1 PAR.

I compared encoding with/without bars and never encountered any significant bitrate differences for a given CRF.
__________________
Groucho's Avisynth Stuff
Groucho2004 is offline   Reply With Quote
Old 9th May 2020, 10:05   #9  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,733
Quote:
Originally Posted by Sharc View Post
It's probably because the encoder distributes the bits differently when part of the macroblock is black compared to when the full macroblock is used by the picture.
A modern encoder (like x264 or x265) can skip those completely black blocks so the bitrate needed for them in the bitstream is very low. That's why it's important to at least make sure they are only black and no (invisible to the human eye) noise there.
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...
Boulder is offline   Reply With Quote
Reply


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 08:36.


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