Log in

View Full Version : Upscale NTSC DV 4:1:1 with nnedi3


JReiginsei
15th November 2025, 04:41
Can you post an Avisynth+ script to upscale the chroma with nnedi3 from a BFF NTSC DV 4:1:1 to 4:2:2?

I haven't used Avisynth in a long time so I forgot most of what I knew.

edit: Here is what I have so far


FFMpegSource2("C:\DV Capture\dvgrab-004.avi", atrack=-1)
AssumeBFF()
Crop(8,0,-8,0)

Selur
16th November 2025, 10:36
iirc. this should do the trick:
src = FFVideoSource("C:\DV Capture\dvgrab-004.avi")

# set DV interlacing parity:
src = src.AssumeBFF()

# Separate fields
f = src.SeparateFields()

# Extract chroma
U = f.UToY()
V = f.VToY()

# --- Horizontal doubling using rotate trick ---
U2 = U.TurnRight().nnedi3().TurnLeft()
V2 = V.TurnRight().nnedi3().TurnLeft()

# Merge chroma back with original luma
f422 = YToUV(U2, V2, f).AssumeFieldBased()

# Reweave fields
interlaced = f422.Weave()

# fix metadata to make sure content is tagged as YUV422
interlaced.ConvertToYUV422(interlaced=true)

Crop(8,0,-8,0)

return last

JReiginsei
16th November 2025, 14:10
Thanks Selur, the script opens in Virtualdub2 without error.