View Single Post
Old 25th July 2014, 23:07   #1  |  Link
Trephin
Registered User
 
Trephin's Avatar
 
Join Date: Aug 2002
Location: Stockholm, Sweden
Posts: 17
Chroma flicker when deinterlacing DVD

I'm trying to deinterlace a 25 fps PAL DVD box set that I bought. It is an old childrens PAL TV show that I want to convert to AVC for my NAS and tablet, because a couple of episodes didn't play on my TV when ripped with MakeMKV.

What happens is that when I deinterlace with QTGMC (or Yadif or Bob.SelectEven), every other frame has a different hue. I'm not sure if it is like that for all scenes, but in some places it is obvious.

Maybe this is some kind of mastering error where the luma and chroma are interlaced differently?


Any help would be appreciated. I have been at it for days.


These are two adjacent frames that show the issue:




This is my script:

Code:
MPEG2Source("VTS_01_1_20.d2v")
Bob().SelectEven()
It looks fine when I let VLC deinterlace the stream, but I guess it does the deinterlacing after upsampling the color space.

One way I stumbled upon that appears to fix the colors was to upsample as progressive to YUY2 before deinterlacing, but that feels like the wrong solution (or maybe it is a good way to smooth the chroma?). Anyway, this is the script that appears to fix the chroma flicker:

Code:
MPEG2Source("VTS_01_1_20.d2v")
ConvertToYUY2()
Bob().SelectEven()
ConvertToYV12()
Here is a link to a 5 MiB VOB sample from DGSplit:
http://dropproxy.com/f/89D

And here is a link to a 3.8 MiB AVC MKV after encoding from the first script above:
http://dropproxy.com/f/89E

This is the log info from DGIndex:

Code:
Stream Type: MPEG2 Program
Profile: main@main
Frame Size: 720x576
Display Size: [not specified]
Aspect Ratio: 4:3 [2]
Frame Rate: 25.000000 fps
Video Type: PAL
Frame Type: Interlaced
Coding Type: B
Colorimetry: BT.470-2 B,G*
Frame Structure: Frame
Field Order: 
Coded Number: 275130
Playback Number: 3
Frame Repeats: 0
Field Repeats: 0
VOB ID: 1
Cell ID: 2
Bitrate: 
Bitrate (Avg): 
Bitrate (Max): 
Audio Stream: 80: AC3 2/0 224
Timestamp: 1:33:53
Elapsed: 0:04:28
Remain: FINISH
FPS: 
Info:
Thanks in advance,
// Trephin.
__________________
remember sammy jankis

Last edited by Trephin; 26th July 2014 at 23:04. Reason: Corrected spelling error in title
Trephin is offline   Reply With Quote