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 27th October 2007, 14:28   #1  |  Link
Morte66
Flying Skull
 
Morte66's Avatar
 
Join Date: Jan 2005
Posts: 397
Correct order for deblocking with de-blended material

If I'm deblending a PAL DVD (which has been blended from NTSC) like this...

Code:
DGDecode_mpeg2source("Sympathy For Lady Vengeance.d2v",info=3) 
 
tdeint(mode=1, full=false, tryweave=true)
changefps(23.976*10)
selectevery(10,10) #selected by experiment

crop(2,72,-2,-72)
spline36resize(720,352) 

#denoise/deband/sharpen/whatever
... where would I put a call to deblock_QED_mt2?

My best guess is just before the crop, where the video is deinterlaced/deblended but it still has the full set of PAL encoder blocks. But frankly, I'm reaching. So I'd love to hear from anybody who actually understands this stuff.
Morte66 is offline   Reply With Quote
Old 27th October 2007, 15:37   #2  |  Link
Didée
Registered User
 
Join Date: Apr 2002
Location: Germany
Posts: 5,394
That's indeed a problem. You can put it in that place, but there is danger that the used Deblock() filter will miss some blocks. Why? Because:

Blocking will occur mostly when there is motion. When there is motion, the deinterlacer can't match fields, but will have to interpolate. When the deinterlacer interpolates, the top/bottom borders of a block are not "sharp" anymore. When the sharp boundaries of a block have been blurred, the deblocker is more likely to not reckognize the block as being blocky, thus not processing it.

Try this way: deblocking the "point-bobbed" interlaced stream before any other processing:

Code:
i=last
AssumeBFF().SeparateFields()
PointResize(i.width,i.height)
Deblock_qed()
AssumeFrameBased().AssumeBFF()
Separatefields().Selectevery(4,0,3).Weave()
(Attention: Change BFF to TFF if needed!)

and see if it makes a difference compaired to the more simple method (deblocking after the deinterlacing).
__________________
- We´re at the beginning of the end of mankind´s childhood -

My little flickr gallery. (Yes indeed, I do have hobbies other than digital video!)
Didée is offline   Reply With Quote
Old 27th October 2007, 16:49   #3  |  Link
Morte66
Flying Skull
 
Morte66's Avatar
 
Join Date: Jan 2005
Posts: 397
That seems usefully better during motion. Thanks.
Morte66 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 19:59.


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