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 13th December 2011, 21:21   #1  |  Link
Lyris
Registered User
 
Join Date: Sep 2007
Location: Europe
Posts: 602
Messed up chroma interlacing - how to solve?

Hi Doom9,
Can anyone help out with this?

Basically I have this interview that's going to be used on a BD. The source for it is not a professional master, instead, we have to use an existing DVD.

The source is PAL (576i) video camera footage and it needs to go out to NTSC (480i). No problem.

So, my first step is to deinterlace this to 50p. Then I apply some noise reduction inside VirtualDub (Neat Video). I then take that NR'd, 50p file and perform these steps on it:

Code:
AVISource("DVD_50p_NR.avi")
antialiasing(th_luma=0)
Sharpen(0.7,0.7)
ChangeFPS(59.94)
spline64resize(720,480)
SeparateFields() 
SelectEvery(4,0,3)
Weave()
The AntiAliasing line introduces this messed up chroma which I believe is the result of using YV12:



Uploaded with ImageShack.us

Sorry I can't post a bigger sample, but hopefully you get the idea.

Of course I've seen this before, and understand that it's the result of using progressive chroma subsampling on interlaced footage. But I don't understand why this is happening, because I'm applying the AntiAliasing filter while the footage is still in the progressive (50p) domain.

The chroma is clean with the antialiasing line removed, but the footage really needs it. I don't know how the people who edited it made it look this way, but I guess it was scaled inside the NLE with less than optimal processing quality (Final Cut Pro or something...)

Can anyone spot where things are going wrong?
Lyris is offline   Reply With Quote
Old 13th December 2011, 21:35   #2  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,346
vdub treats interlaced yv12 as progressive , so chroma is upsampled incorrectly

so the workaround is to either use video=>color depth select yuy2

or convert to rgb (interlaced=true) in the script before vdub

EDIT: I think I misread what you wrote, initially I thought you're taking the screenshot in vdub, so it's converting to RGB as progressive ? What if you take the screenshot through avspmod with converttorgb(interlaced=true) ?

If you take the screenshot before re-interlacing (while it's progressive), are there chroma issues ?

Last edited by poisondeathray; 13th December 2011 at 21:46.
poisondeathray is offline   Reply With Quote
Old 13th December 2011, 22:22   #3  |  Link
TheSkiller
Registered User
 
Join Date: Dec 2007
Location: Germany
Posts: 632
Everything is correct. It is due to the way the YV12 color is upsampled to RGB for displaying in VirtualDub. This is not done by VirtualDub itself by the way, any installed Codec that can convert YV12 to RGB does it. This pretty much always happens without taking into account that the picture is interlaced so it will look broken in VirtualDub although in fact it isn't. The way the chroma is converted is like using ConverttoRGB(interlaced=false) on an interlaced video.

For displaying purposes in VirtualDub add ConverttoRGB(interlaced=true) but be sure to remove it when encoding.

Last edited by TheSkiller; 13th December 2011 at 22:29.
TheSkiller 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 07:14.


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