Log in

View Full Version : Interlaced PAL DVD problems


gunfelix
21st January 2016, 16:01
I have a PAL DVD that has some sort of weird field-interlace (I think?). With the script I have now, it results in:
- some sort of Moire effect (Aliasing?)
- some artifact that comes up every few minutes (bottom left):
http://i.imgur.com/FTOLbrP.png

Is this fixable?

Script:
MPEG2Source("input.d2v", cpu=6)
assumetff()
QTGMC(Preset="Very Slow", FPSDivisor=2, EZDenoise=4.0, NoisePreset="Slower", Sharpness=0.7, Lossless=2, TR0=1, TR1=1, TR2=0, sourcematch=15)
HQDeringmod(Y=3, U=3, V=3)
MosquitoNR(strength=23)
MAA2()
MAA2()
Dither_convert_8_to_16()
gradfun3(lsb=true,lsb_in=true)
Ditherpost()
turnleft()
nnedi3(dh=true)
turnright()
Spline36Resize(768,576)
Crop(2,2,-2,-2)
AssumeFPS(25)

Clips:
https://www.sendspace.com/filegroup/dtF81Mk5yc0q4tl0K6nTkQ

ChiDragon
24th January 2016, 07:09
You're throwing away half the motion resolution by converting 50Hz to 25 fps. Encoding at 50 fps would be better, and would make the aliasing less obvious because the image is refreshing faster.

You're also killing a crazy amount of detail by turning it into a "watercolor" type look. I'll never understand why people do this to animation.

http://s11.postimg.org/edlq8175f/gunfelix_samplefields_QTGMC_resize_crop.png

FFVideoSource("samplefields.mkv")

QTGMC()
Spline36Resize(768,576)
Crop(2,2,-2,-2)

This crop you used is also weird, as it results in a frame size that is a non-standard mod4 number. I guess it's okay if you know every device you're ever going to play it on supports this.

gunfelix
24th January 2016, 13:53
You're throwing away half the motion resolution by converting 50Hz to 25 fps. Encoding at 50 fps would be better, and would make the aliasing less obvious because the image is refreshing faster.

You're also killing a crazy amount of detail by turning it into a "watercolor" type look. I'll never understand why people do this to animation.

<image>

FFVideoSource("samplefields.mkv")

QTGMC()
Spline36Resize(768,576)
Crop(2,2,-2,-2)

This crop you used is also weird, as it results in a frame size that is a non-standard mod4 number. I guess it's okay if you know every device you're ever going to play it on supports this.

Noted, thanks for the lesson. I was a bit too focused on getting rid of artifacts and not much on detail, like these:
http://i.imgur.com/2VLN7p6.png
I'm not sure what it's called, I guess ringing with blocking. With the script I used it was reduced (with huge quality loss ofcourse). Is there another filter (combination) that doesn't scrub out too much detail in the rest of the video but does reduce these artifacts?
Clip: https://www.sendspace.com/file/za2heb

Is the aliasing/moire that's left removable? Also, That thing in the bottom left still remains, is it because I used DGIndex/MPEG2Source or are frameserving it with avs2yuv?
http://i.imgur.com/NZ4jWRB.png

I was using QTGMC(sourcematch=15, Lossless=2, TR0=1, TR1=1, TR2=0) because if I didn't, this would happen (check the hair):
http://screenshotcomparison.com/comparison/159192
If I use it, it causes more aliasing and static black lines (as seen in the top background in samplefields.mkv) also start to flicker. Is there another filter/way to fix this?
Clip: https://www.sendspace.com/file/xr08gd

ChiDragon
24th January 2016, 18:32
I'm not an expert at deblocking or anti-aliasing. You were already using MAA2 so I assume you're familiar with at least some of these already:

http://avisynth.nl/index.php/External_filters#Deblocking
http://avisynth.nl/index.php/External_filters#Anti-aliasing

Unless you used a different resize/crop this time, that "W building" frame with artifact you posted isn't the same frame as post #1. It looks like some sort of decode error, which I didn't see at all with FFVideoSource on your MKV sample.

Are there lots of progressive frames like that opening credits shot?

gunfelix
24th January 2016, 21:08
With normal/QED Deblock, it just makes the rainbow-like smears worse and any detail is also gone. For anti-aliasing, the other filters did nothing, except for MAA2 twice or Santiag on agressive settings. Santiag removed more detail so that wasn't an option.

I think I fixed that artifact. Apparently, DGIndex doesn't like MPEG2 in .mkv. I extracted the video stream and opened that in DGINdex. That artifact seems to be gone.

Every frame with that hair movement does that (about 20-25). Also, the lines at the left top of this next clip:
https://www.sendspace.com/file/jl4848
I haven't seen it anywhere else in the video (yet).

geometer
24th January 2016, 21:36
the frame with the girls: these look like JPEG errors from too lossy compression.

(from the quarrel about fake satellite fotos it becomes clear that there are tools freely available that do a JPEG error statistics test.)
these might not hold water in forensics, but as an avisynth filter might be utterly useful. I didn't sift through for such but hopefully is avail.

by this, the error value per frame could be written to a log file. put each frame in its "scene-bin" interval, and judge the scenes e.g. with some quartile logic on high error levels. then, every scene or subscene only receives the processing required for the particular loss in compression.
other scenes wouldn't be hurt by the filtering, and for the ruined scenes... choose your poison.

thecoreyburton
31st January 2016, 15:05
What's your source? I did a rip of Totally Spies from my own PAL DVDs so I have a little bit of experience here.

When you said your solved one of your artifact problems, were you referring to the screenshot with the girls? It looks like the type of compression that'd occur if an ISO had been recompressed from a dual layer disk to a single layer disk poorly.

I'll compare your samples to my own DVDs and see if there are any problems or differences when I get a chance.

gunfelix
31st January 2016, 23:57
What's your source? I did a rip of Totally Spies from my own PAL DVDs so I have a little bit of experience here.

When you said your solved one of your artifact problems, were you referring to the screenshot with the girls? It looks like the type of compression that'd occur if an ISO had been recompressed from a dual layer disk to a single layer disk poorly.

I'll compare your samples to my own DVDs and see if there are any problems or differences when I get a chance.

A Dutch Totally Spies DVD "Avontuur in de toekomst (1)", episode title Futureshock!/Avontuur in de toekomst.

In the W-building image, the artifact at the left bottom.

Mine is DVD5, no idea about the others.

gunfelix
3rd February 2016, 20:49
Another thing I've noticed is that if I use blend deinterlacing, the aliasing/moire in the intro (for example this (https://www.sendspace.com/file/jl4848) clip) is completely gone and the hairline problem with QTGMC is also fixed. The titles will look blended like on the NTSC DVDs (duh):
http://i.imgur.com/OoeePRG.png

Blend deinterlacing or any kind still causes aliasing/moire in the rest of the video. Even without deinterlacing, it still looks like it's there.

ChiDragon
5th February 2016, 16:08
I suspect it always looked aliased (plus flickery), even on a CRT. You've got tiny lines that only exist in a single field during the 50Hz pans.