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 14th September 2015, 00:38   #1  |  Link
ZacharyGeorgeNN
Registered User
 
Join Date: Mar 2015
Posts: 6
Difficult Interlacing

I'm trying to rip this very rare DVD, but the interlacing in it looks like nothing I've seen before. Even after using QTGMC, it isn't removed, but instead looks like a set of Venetian blinds almost. What would be the best way to handle this?

With interlacing:



After QTGMC:

ZacharyGeorgeNN is offline   Reply With Quote
Old 14th September 2015, 02:11   #2  |  Link
johnmeyer
Registered User
 
Join Date: Feb 2002
Location: California
Posts: 2,691
You have to upload a few seconds from the original. The second picture looks like interlaced video that was badly resized.
johnmeyer is offline   Reply With Quote
Old 14th September 2015, 02:45   #3  |  Link
luquinhas0021
The image enthusyast
 
Join Date: Mar 2015
Location: Brazil
Posts: 270
Try eedi3 + nnedi3
__________________
Searching for great solutions
luquinhas0021 is offline   Reply With Quote
Old 14th September 2015, 03:59   #4  |  Link
jmac698
Registered User
 
Join Date: Jan 2006
Posts: 1,867
None of these will work, this is a combination of clean and blended interlacing, in a pattern which repeats every 12 lines.
The pattern shown in this frame is like this:
line mod 12,effect
0,this field
1,next field
2,blend
3,blend
4,next field
5,this field
6,next field
7,this field
8,blend
9,blend
10,this field
11,next field

I could write a script to fix that now, but there's only 4 of 12 lines that are clean, each field would be 1/3 height, and the pattern might reverse on frames. You need to use unblending scripts for this. I think it's called depal? There's one brilliant one that can figure out blending patterns. I could puzzle on it and make a good guess how it was created, but it would be much easier to have a sample. Pick an area with very strong contrast and movement. His white robe against the dark background was a good choice.

Btw the robe is about 210-217, the coat behind is 99-118, and the blended areas are 150-179. I've found that the blends are about 50/50 between this and next frames.

Last edited by jmac698; 14th September 2015 at 04:04.
jmac698 is offline   Reply With Quote
Old 14th September 2015, 08:49   #5  |  Link
wonkey_monkey
Formerly davidh*****
 
wonkey_monkey's Avatar
 
Join Date: Jan 2004
Posts: 2,493
Resize it to 720x480 with something other than pointresize, then QTGMC. You'll have some blending, but no venetian blinds. What you do next depends on the rest of the clip, since as johnmeyer points out, a single frame is not much to go on.
__________________
My AviSynth filters / I'm the Doctor
wonkey_monkey is offline   Reply With Quote
Old 14th September 2015, 09:06   #6  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,997
What is your playback device? TV or some PC SW player?

A sample of the original would be helpful for getting better advice.
Sharc is offline   Reply With Quote
Old 14th September 2015, 14:21   #7  |  Link
jmac698
Registered User
 
Join Date: Jan 2006
Posts: 1,867
huh? It's 720x576, and he already showed what qtgmc did to it.
jmac698 is offline   Reply With Quote
Old 14th September 2015, 15:44   #8  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,997
SRestore() may help, but one would need a sample to try it out.
Sharc is offline   Reply With Quote
Old 14th September 2015, 17:13   #9  |  Link
wonkey_monkey
Formerly davidh*****
 
wonkey_monkey's Avatar
 
Join Date: Jan 2004
Posts: 2,493
Quote:
Originally Posted by jmac698 View Post
huh? It's 720x576, and he already showed what qtgmc did to it.
To whom do you "huh?"? My suggestion is to resize to 720x480. Doing so in Photoshop and deinterlacing the odd and even frames gives a fairly clean result. There's a bit of blending of the two frames, but applied to the video as a whole it should be watchably smooth, and srestore might be able to something about the blending.
__________________
My AviSynth filters / I'm the Doctor
wonkey_monkey is offline   Reply With Quote
Old 14th September 2015, 18:09   #10  |  Link
TheSkiller
Registered User
 
Join Date: Dec 2007
Location: Germany
Posts: 632
It's interlaced video which was resized in the vertical direction. This mixes the fields partly. It's not possible to reverse this, but if you're lucky it can be helped a bit.
TheSkiller is offline   Reply With Quote
Old 14th September 2015, 19:06   #11  |  Link
ZacharyGeorgeNN
Registered User
 
Join Date: Mar 2015
Posts: 6
Here's a sample of the DVD: https://mega.nz/#!k5w3EbiZ!cTHHwwdK2...kWwhzFom3uHvAw

The frames are also pretty screwed up, there doesn't seem to be a discernible pattern in regards to the duplicates. What would be a good script to use here to make this look at least a little better?
ZacharyGeorgeNN is offline   Reply With Quote
Old 14th September 2015, 20:02   #12  |  Link
johnmeyer
Registered User
 
Join Date: Feb 2002
Location: California
Posts: 2,691
Wow, that is a very strange video clip. Here's what I found.

1. Mediainfo (and other tools) report the clip as 23.976 progressive. However, I went ahead and used separatefields() on the clip and found that it actually IS interlaced, TFF.

2. The interlaced cadence is all over the map, with lots of blends in the individual fields.

3. The herring bones that appear in individual fields are not of uniform width, and many of the lines are several scan lines tall.

4. There are lots of dropped frames. You can easily see this by walking through the clip one frame at a time. You will see sudden jumps in motion.

So, as others already surmised from your single frame capture, this is going to be a very, very difficult task to get a decent result. I don't know if SRestore can deal with the uneven vertical widths of the "interlace" artifact that you are trying to remove. In addition, you will need to have some sort of dropped frame detection and replacement, something I have posted about several times before.

No easy answer to this problem.

P.S. I just looked at the footage, full speed, and it plays way too fast.

Last edited by johnmeyer; 14th September 2015 at 20:03. Reason: Added P.S.
johnmeyer is offline   Reply With Quote
Old 14th September 2015, 20:09   #13  |  Link
wonkey_monkey
Formerly davidh*****
 
wonkey_monkey's Avatar
 
Join Date: Jan 2004
Posts: 2,493
Hmm, okay, it actually is 720x480, unlike the image in the original post. So the original problem was because it'd been resized to 720x576.

That said, even at 720x480 the interlacing is a mess. Maybe it's an interlaced telecine that's been encoded as progressive? But even then field priority seems to jump around...

Quote:
P.S. I just looked at the footage, full speed, and it plays way too fast.
It looks okay speed-wise to me.
__________________
My AviSynth filters / I'm the Doctor

Last edited by wonkey_monkey; 14th September 2015 at 20:11.
wonkey_monkey is offline   Reply With Quote
Old 14th September 2015, 22:50   #14  |  Link
ZacharyGeorgeNN
Registered User
 
Join Date: Mar 2015
Posts: 6
I think some of the confusion regarding the size of the first pictures was that I saved the screencap that had loaded in avisynth. I didn't resize it, though.
ZacharyGeorgeNN is offline   Reply With Quote
Old 15th September 2015, 09:51   #15  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,997
You may try
FieldDeinterlace(blend=true)

It doesn't fix the messy source, but the playback looks better (means less annoying) to my eyes.
You should also check how it looks on TV, finally.
Sharc is offline   Reply With Quote
Old 15th September 2015, 17:48   #16  |  Link
ZacharyGeorgeNN
Registered User
 
Join Date: Mar 2015
Posts: 6
That worked well. It doesn't seem there's much that can be done about the duplicate frames since there's no pattern to them, but at least it looks more watchable now.
ZacharyGeorgeNN is offline   Reply With Quote
Old 15th September 2015, 21:52   #17  |  Link
AzraelNewtype
Registered User
 
AzraelNewtype's Avatar
 
Join Date: Oct 2007
Posts: 135
Quote:
Originally Posted by ZacharyGeorgeNN View Post
That worked well. It doesn't seem there's much that can be done about the duplicate frames since there's no pattern to them, but at least it looks more watchable now.
If you're feeling lucky, dedup with the right threshold can nuke them for you without ruining the content you want. Of course, finding that right threshold will be a hilarious guessing game, and it's probably not particularly safe, but if you're willing to do a shit load of trial and error (and maybe segmenting to cut down on the problems) you can do it in a way slightly less gross than manually excluding frames. I mean, that's technically possible too, but you don't want to do it. Nobody wants to do that.
AzraelNewtype is offline   Reply With Quote
Old 16th September 2015, 21:21   #18  |  Link
kuchikirukia
Registered User
 
Join Date: Oct 2014
Posts: 476
2 pass?

Index with dgindex. Run analysis pass with:

spline36resize(720,480)
tfm(d2v="D:\input.d2v",output="tfm.txt")
tdecimate(mode=4,output="tdecimate.txt")

then encode:
spline36resize(720,480)
tfm(d2v="D:\input.d2v",input="tfm.txt")
tdecimate(mode=2,input="tdecimate.txt",tfmIn="tfm.txt"")

Still combed to hell, but seems to be less nausea inducing.

Last edited by kuchikirukia; 16th September 2015 at 22:19.
kuchikirukia 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 15:32.


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