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 6th May 2007, 05:13   #1  |  Link
Cobydawg
Registered User
 
Join Date: Apr 2007
Posts: 2
Motion blur and mvfps

Any advice on a script to replicate what mvfps does, but with the latest version of mvtools (which doesn't have mvconvertfps)? That is, changing framerate with a tweakable motion blur parameter?

function mvfps(clip i, float fps, int "oversample", int "blurradius")
{
oversample=default(oversample,1)
blurradius=default(blurradius,1)
j=i.temporalsoften(2,4,5,2)
fwd=mvtools0962_mvanalyse(j,isb=false,lambda=4000)
bwd=mvtools0962_mvanalyse(j,isb=true, lambda=4000)
i.mvtools0962_mvconvertfps(bwd,fwd,fps=fps*oversample)
(oversample>1) ? last.temporalsoften(blurradius,255,255,mode=2).selectevery(oversample,0) : last
}
Cobydawg is offline   Reply With Quote
Old 6th May 2007, 07:05   #2  |  Link
WorBry
Registered User
 
Join Date: Jan 2004
Location: Here, there and everywhere
Posts: 1,197
http://forum.doom9.org/showthread.php?t=105015
WorBry is offline   Reply With Quote
Old 7th May 2007, 00:11   #3  |  Link
foxyshadis
ангел смерти
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Lost
Posts: 9,558
mvconvertfps has also been replaced with mvflowfps; parameters are mostly the same except framerate is a num/den fraction instead of a float. In other words:

Code:
function mvfps(clip i, float fps, int "oversample", int "blurradius")
{
oversample=default(oversample,1)
blurradius=default(blurradius,1)
fr=i.assumefps(fps*oversample)
j=i.temporalsoften(2,4,5,2)
fwd=mvanalyse(j,isb=false,lambda=4000,truemotion=true,idx=1)
bwd=mvanalyse(j,isb=true, lambda=4000,truemotion=true,idx=1)
i.mvflowfps(bwd,fwd,num=fr.frameratenumerator,den=fr.frameratedenominator,idx=1)
(oversample>1) ? last.temporalsoften(blurradius,255,255,mode=2).selectevery(oversample,0) : last
}
Should work. If not, just use the one in the other thread, though it's slower. Make sure you get the latest from Fizick's page.
foxyshadis is offline   Reply With Quote
Old 14th May 2007, 06:26   #4  |  Link
Cobydawg
Registered User
 
Join Date: Apr 2007
Posts: 2
Thanks - appreciated!
Cobydawg 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 00:19.


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