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

Reply
 
Thread Tools Search this Thread Display Modes
Old 5th April 2010, 03:43   #1  |  Link
Blue_MiSfit
Derek Prestegard IRL
 
Blue_MiSfit's Avatar
 
Join Date: Nov 2003
Location: Los Angeles
Posts: 5,989
Unusual Aliasing on "The Men Who Stare at Goats" BluRay

Hey folks,

I'm working on encoding The Men Who Stare at Goats, and have noticed a nasty and unusual aliasing throughout the entire movie.

It's difficult to describe, but looks similar to another title I posted about here:

http://forum.doom9.org/showthread.php?t=144316

Here's a screenshot of how the issue manifests on text. Note also the gunky chroma inside the white text


And another screenshot example. Look at the flag and diagonal edges of the house:


And of course, here's a proper sample:
http://www.mediafire.com/?nyynmyyymm2

What do you guys think? Noting the similarity between this and the issue I had with "Shine a Light", I tried the MT_Convolution lowpass filter suggested by *.mp4 guy. This reduced visible aliasing in live action scenes, but demonstrated massive ringing around text. It also affected global luma levels, but I remember that being discussed in my old thread.

I tried the same brutal method as before - turnright.nnedi.turnleft, but this doesn't remove all the aliasing, and kills details / sharpness.

Perhaps a different FIR filter design can fix this as well? I do wish I better understood the construction and function of FIR filters.

~MiSfit
__________________
These are all my personal statements, not those of my employer :)

Last edited by Blue_MiSfit; 5th April 2010 at 03:47.
Blue_MiSfit is offline   Reply With Quote
Old 5th April 2010, 07:45   #2  |  Link
IanB
Avisynth Developer
 
Join Date: Jan 2003
Location: Melbourne, Australia
Posts: 3,167
At first glance it look like the V chroma channel is shifted, leading to green fringes on the left, red fringes on the right of objects. I would not call this aliasing. I would call this faulty encoding or decoding. (1st try a different decoder)

Use something like this to analyse how the chroma planes are related :-
Code:
...src...
Y=Greyscale()
U=UtoY().PointResize(Width(Y), Height(Y))
V=VtoY().PointResize(Width(Y), Height(Y))

Interleave(Y, U, Y, V)
You are looking for how edges of objects align across the planes.

If this hypothesis is correct and you estimate how much to shift back, use something like this :-
Code:
...src...

Y=Last

Ux=0.0 # U right shift amount
Uy=0.0 # U down shift amount
Y.UtoY()
U=Spline16Resize(Width(), Height(), Ux, Uy)

Vx=-1.5 # V right shift amount, -ve -> shift left
Vy=0.0 # V down shift amount
Y.VtoY()
V=Spline16Resize(Width(), Height(), Vx, Vy)

YToUV (U, V , Y)
This abuses the resizer as a subpixel shifter ...

Last edited by IanB; 5th April 2010 at 22:37. Reason: Fix fuzzy thinking :o
IanB is offline   Reply With Quote
Old 5th April 2010, 08:34   #3  |  Link
Blue_MiSfit
Derek Prestegard IRL
 
Blue_MiSfit's Avatar
 
Join Date: Nov 2003
Location: Los Angeles
Posts: 5,989
Thanks for your time IanB!

I decoded the source (and created the sceenshots) using DSS2 (Haali + CoreAVC 2.0).

I'll try FFMS2 and your suggestion for playing with chroma plane alignment.

I agree this looks quite promising for the chroma issues, but what about the stair stepping (aliased) diagonal edges?

Thanks again!
~MiSfit
__________________
These are all my personal statements, not those of my employer :)
Blue_MiSfit is offline   Reply With Quote
Old 5th April 2010, 09:48   #4  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,431
Quote:
Originally Posted by IanB View Post
V=Spline16Resize(Width(), Height(), Vx, Vy, Width()+Vx, Height+Vy)
Why isn't it
V=Spline16Resize(Width(), Height(), Vx, Vy, Width(), Height)

or, the same thing,
V=Spline16Resize(Width(), Height(), Vx, Vy)
Gavino is offline   Reply With Quote
Old 5th April 2010, 23:07   #5  |  Link
IanB
Avisynth Developer
 
Join Date: Jan 2003
Location: Melbourne, Australia
Posts: 3,167
@Gavino, Yes, oops

@Blue_MiSfit, this looks like shitty upsizing, return the disk and get your money back.
IanB is offline   Reply With Quote
Old 6th April 2010, 02:10   #6  |  Link
Blue_MiSfit
Derek Prestegard IRL
 
Blue_MiSfit's Avatar
 
Join Date: Nov 2003
Location: Los Angeles
Posts: 5,989
@IanB:

Unfortunately this is a BluRay from a studio I'm expected to transcode and put on a VOD service... I'm hoping some resolution can be found.

Otherwise I'll just encode it as-is
__________________
These are all my personal statements, not those of my employer :)
Blue_MiSfit is offline   Reply With Quote
Old 6th April 2010, 03:47   #7  |  Link
Lyris
Registered User
 
Join Date: Sep 2007
Location: Europe
Posts: 602
I've seen these exact same problems on a UK disc from Entertainment In Video. Not sure who did the encode or what encoder, but I thought my projector's focus was off when I first saw the "misconvergence" (what actually just turned out to be weird coloured fringing in the encode itself).
Lyris is offline   Reply With Quote
Old 6th April 2010, 04:47   #8  |  Link
IanB
Avisynth Developer
 
Join Date: Jan 2003
Location: Melbourne, Australia
Posts: 3,167
Quote:
Originally Posted by Blue_MiSfit View Post
Unfortunately this is a BluRay from a studio I'm expected to transcode and put on a VOD service... I'm hoping some resolution can be found.
Are you are sufficiently in the loop to find out how this disc was mastered?

Quote:
Otherwise I'll just encode it as-is
Yes, just fix the chroma aberrations, and continue from there.

Are you re-encoding at the original resolution or smaller?

I guess I should have asked earlier, what is the unscaled horizontal resolution of the source? 1920? 1440? other?
IanB is offline   Reply With Quote
Old 6th April 2010, 07:56   #9  |  Link
Blue_MiSfit
Derek Prestegard IRL
 
Blue_MiSfit's Avatar
 
Join Date: Nov 2003
Location: Los Angeles
Posts: 5,989
The BluRay disc is 1920x1080, not to say that it didn't come from an HDCam or DVCProHD. I'd suspect some subsampled format, given the atrocious processing that was obviously performed at some stage.

I'm not really in the loop enough to see how the disc was mastered, but I can possibly request a ProRes or 80mbps MPEG-2 mezzanine file. I'd rather not, since this usually means spending more money, and this movie isn't a huge new release. Maybe they can send me the master tape, we've got the decks to capture it.

I'l be re-encoding to 1080p, 720p, and 480p (3 bitrates each resolution)

~MiSfit
__________________
These are all my personal statements, not those of my employer :)
Blue_MiSfit is offline   Reply With Quote
Reply

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 12:46.


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