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

Thread Tools Search this Thread Display Modes
Old 8th November 2012, 17:16   #1  |  Link
Registered User
Join Date: Oct 2008
Posts: 55
Despotting in high bit depth?

Lately I have been using Didée's "possible primitive for spot removal":
o=last ox=o.width() oy=o.height()

osup = o.MSuper(pel=2,sharp=2)
bv1  = osup.MAnalyse(isb=true, delta=1,blksize=8,overlap=4,search=4)
fv1  = osup.MAnalyse(isb=false,delta=1,blksize=8,overlap=4,search=4) 
bc1  = o.MCompensate(osup,bv1)
fc1  = o.MCompensate(osup,fv1)

MedianblurT(0,0,0,1)   #  you can also use "Clense(reduceflicker=false)" instead

I like it because it keeps most of the grain, (though it should be tweaked to better distinguish between scenes).
However now I'm working with dpx files (HD, 10 bits) and I'd like to keep the high bit depth. I think I can ingest the dpx into Avisynth with ffms2. With the high bit depth tools, and the available modified plugins, it could be possible to despot and export to 10 bits? I think there is a modified mvtools plugin but I don't think there is a High bit MedianblurT. With what it could be substituted?
Thank you!
18fps is offline   Reply With Quote
Old 9th November 2012, 00:25   #2  |  Link
͡҉҉ ̵̡̢̛̗̘̙̜̝̞̟̠͇̊̋̌̍̎̏̿̿
cretindesalpes's Avatar
Join Date: Feb 2009
Location: No support in PM
Posts: 712
MedianBlurT could be replaced with Dither_median16 but the problem is the MVTools, working only with 8-bit input.

Anyway there is an alternative method, not totally equivalent to pure high bitdepth processing, but close enough. Convert to 8 bits, process, and apply the resulting difference to the 16-bit clip:

FFVideoSource ("blah", enable10bithack=true)	# Or any source outputing stack16 data
o16 = last

DitherPost (mode=-1)

# (insert here the previous script without the final StackHorizontal)

dif = mt_makediff (last, o, y=3, u=3, v=3)
dif16 = dif.Dither_convert_8_to_16 ()
o16.Dither_add16 (dif16, dif=true)
Not tested, but should work in principle.
dither 1.28.1 for AviSynth | avstp 1.0.4 for AviSynth development | fmtconv r30 for Vapoursynth & Avs+ | trimx264opt segmented encoding
cretindesalpes is offline   Reply With Quote
Old 9th November 2012, 01:35   #3  |  Link
Registered User
Join Date: Mar 2004
Posts: 118
I've found that Clense is more accurate than MedianblurT in that spot removal script when it comes to fast moving objects.
cobo is offline   Reply With Quote
Old 9th November 2012, 09:14   #4  |  Link
Registered User
Join Date: Oct 2008
Posts: 55
@cretindesalpes, Thank you! I'll try it.
18fps is offline   Reply With Quote

despot, didée, high bit depth

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 08:10.

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