Log in

View Full Version : Blending Problem (3 Normal Frames Followed by 2 Blended Frames)


feisty2
5th January 2013, 13:01
I bought a DVD recently and found it's fairly weird,it's not telecined,fieldblended or interlaced, not progressive either
It's 3 Normal Frames Followed by 2 Blended Frames as the title says
here's one short sample
http://pan.baidu.com/share/link?shareid=176073&uk=370037491
(I trimmed this by mmg,so it's mkv format)
since it's ntsc 29.97fps and 3:2 patterned, so I guess the original DVD Master must be 23.976fps
any possibility to make it back to unblended 23.976fps?
thx :thanks:

feisty2
5th January 2013, 15:58
I tried Exblend but it doesn't work very well... the frames restored from blended frames look very dirty and jagged...

Didée
5th January 2013, 18:40
Well, not a big tragdy. It's only Britney, after all. :D

Seriously - I've never used exblend % can't tell if it's responsible for "dirtiness" of the deblended frames. But for the gagged edges - those are already in the source (though it seems a bit too pronounced, whoknows how the vid was created), hence the jaggies will make their way through the unblending process.

I've tried FixBlendIVTC, and did run daa3() prior to it: (daa3 => Google (http://pastebin.com/MWe6N6LY));)

dgsource("file.dgi")
daa3()
FixBlendIVTC(post=3)

Result seems fairly okay. Not all aliasing is removed, difficult spots like in hair etc. tend to be immune against AA. But overall it's definetly an improvement.

http://thumbnails108.imagebam.com/23043/91ae52230426248.jpg (http://www.imagebam.com/image/91ae52230426248) http://thumbnails107.imagebam.com/23043/885d6d230426238.jpg (http://www.imagebam.com/image/885d6d230426238)

feisty2
6th January 2013, 09:16
Well, not a big tragdy. It's only Britney, after all. :D

Seriously - I've never used exblend % can't tell if it's responsible for "dirtiness" of the deblended frames. But for the gagged edges - those are already in the source (though it seems a bit too pronounced, whoknows how the vid was created), hence the jaggies will make their way through the unblending process.

I've tried FixBlendIVTC, and did run daa3() prior to it: (daa3 => Google (http://pastebin.com/MWe6N6LY));)

dgsource("file.dgi")
daa3()
FixBlendIVTC(post=3)

Result seems fairly okay. Not all aliasing is removed, difficult spots like in hair etc. tend to be immune against AA. But overall it's definetly an improvement.

http://thumbnails108.imagebam.com/23043/91ae52230426248.jpg (http://www.imagebam.com/image/91ae52230426248) http://thumbnails107.imagebam.com/23043/885d6d230426238.jpg (http://www.imagebam.com/image/885d6d230426238)

thx AA works! but Exblend gives me better result on blend removal,mayebe you should try Exblend too :)

manono
7th January 2013, 12:22
Have you tried this yet:

Srestore(omode="pp3")
TDecimate()

feisty2
8th January 2013, 04:22
Have you tried this yet:

Srestore(omode="pp3")
TDecimate()

I tried,but it remains many blended frames :D
exblend does a better job on this source

manono
8th January 2013, 06:43
I tried,but it remains many blended frames :D
OK, so maybe it's elsewhere in the video. I just went through the whole sample and didn't find a single blended frame remaining (except for the first 2, which is understandable). Maybe you can point some out? There are some odd looking frames during fades, but they're not blended.

feisty2
8th January 2013, 06:58
http://thumbnails102.imagebam.com/23090/b51da9230891997.jpg (http://www.imagebam.com/image/b51da9230891997)
http://thumbnails106.imagebam.com/23090/179b58230892005.jpg (http://www.imagebam.com/image/179b58230892005)
http://thumbnails102.imagebam.com/23090/f59aa6230892012.jpg (http://www.imagebam.com/image/f59aa6230892012)

manono
8th January 2013, 07:59
I'm not seeing that here. Your blended one seems to be a mix of
frame numbers 249 and 250 from the sample, so I've enclosed a
pic of the 2 frames side-by-side. Your clear one seems to be
number 250 from the sample (although I'm not positive). That's
the picture on the right side.

How are you opening the video? I'm using MPEG2Source.

feisty2
8th January 2013, 08:48
I'm using DGDecode_mpeg2source
it's frame 312 (before TDecimate()) in the sample
I guess TDecimate() must delete these blended frames....
you can still see blended frames like frame 1,2,182,183
and frame 14 seems totally destroyed....

manono
8th January 2013, 10:34
OK, I turned off TDecimate, although I don't know why you'd want to as it's needed to remove the dupe frames and return the video to the original 23.976fps. TDecimate doesn't favor blended frames to remove. Also, I'm using AviSynth numbering which begins with frame #0.

First, numbers 1 and 2 don't count as SRestore hasn't had time to establish a pattern. With the entire video (unless those are the beginning frames) I don't think you'd have those blends there. I have nothing blended at 182 and 183, or at frame 14, or anywhere in the entire sample. I've uploaded a Britney.mp4 encoded from the sample:

http://www.mediafire.com/?en2duaogiuhw9i2

just so you can see I'm not making this up. The entire script (except for the LoadPlugins and MPEG2Source) is:

Srestore(omode="pp3")
TDecimate()
Crop(4,96,0,-96)
LanczosResize(640,282)

It is true that when I move back and forth in VDubMod I can sometimes see blending, because SRestore gets messed up, but just opening the script and moving forward gives good results. Yes, there's the aliasing, and some sort of chroma strangeness in the polo player's red shirt, but no blending.

Maybe check just by stepping forward. Maybe run a test encode without checking the frames at all.

Didée
8th January 2013, 10:45
I was just going to add this, too.

a) Both Srestore and FixBlendIVTC need strictly linear access. Do not "scrub around" on the timeline with the editor application.

a1) Encoding is fine. Strictly frame-forward on the timeline is fine. You can also jump on the timeline, but the first few frames after the jump are meaningless, you may only start "evaluating" after the script has had a few frames to establish a pattern.

b) Both Srestore and FixBlendIVTC can only be used one time in a script, because of the global variables. Use them two times in a script, you get a mess.

feisty2
8th January 2013, 11:11
@manono
@Didee
thank both of you, I tried to encode the sample and everything seems fine,no blended frames any more
I'm new on Avisynth and I learned some filters and scripts need strictly linear access,MeGUI Preview is untrusted