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 3rd March 2007, 08:33   #1  |  Link
drevel
Registered User
 
Join Date: Nov 2006
Posts: 5
speeding up mvbob

hi , I've been lurking for some months and trying avisynth, I'm using mvbob to deinterlace HD video in 1080i, very good results but very slow, about 0.2 fps on a X2 3800+, thats about 5 days per hour of video, unpractical

is there any way to improve speed?, I'm using also fft3GPU and the speed increase is amazing from cpu version

wonder if can be done a mvbobGPU version!

Last edited by Guest; 3rd March 2007 at 14:30. Reason: fix title typo
drevel is offline   Reply With Quote
Old 3rd March 2007, 10:09   #2  |  Link
Pookie
Registered User
 
Join Date: Apr 2005
Posts: 1,339
Hi drevel, welcome to the forums. If there were any signficant ways to speed up Mvbob, they would have been implemented long ago. Put SetMemoryMax(512) as the first line in your script; sometimes it can make a big difference.

My favorite deinterlacing for 1080i is pretty simple, but very nice looking. It bobs to 59.94 fps - not DVD player compatible, but who cares? Just try it on a 5 minute stretch of video.

Code:
tdeint(mode=1)
Crop(8,8,-8,-8)
Lanczos4Resize(640,352)
If you must have 29.97 again, you can try

Code:
tdeint(mode=2)
Crop(8,8,-8,-8)
Lanczos4Resize(640,352)
See if the results are acceptable to you. It is always a trade-off between performance and quality, but my eyes like the end product (especially the 59.94 bobbed one)

Last edited by Pookie; 3rd March 2007 at 12:44.
Pookie is offline   Reply With Quote
Old 3rd March 2007, 12:53   #3  |  Link
Blue_MiSfit
Derek Prestegard IRL
 
Blue_MiSfit's Avatar
 
Join Date: Nov 2003
Location: Los Angeles
Posts: 5,757
I find that TDeint is a great choice for working on projects where time is an even remotely important vaue

MVBob is amazing, but TDeint is IMHO 90% as good, and runs so much faster! I get 1-2 fps for SD material with MVBob, and 10-20fps with TDeint.
Blue_MiSfit is offline   Reply With Quote
Old 5th March 2007, 05:25   #4  |  Link
R3Z
Silver Über Alles
 
R3Z's Avatar
 
Join Date: Aug 2006
Location: Australia
Posts: 269
I guess it really depends on the source ? I usually try tdient and skip through every 1000 or so frames to make sure there are no nasties (that i can see anyway). If it doesnt work as planned i go and try securebob then mvbob or mcbob.
R3Z is offline   Reply With Quote
Old 5th March 2007, 08:11   #5  |  Link
Pookie
Registered User
 
Join Date: Apr 2005
Posts: 1,339
Absolutely. The source dictates the method to fix it. Still, I wish we all had Crays to do motion compensated deinterlacing of 1080i sources But usually, 1080i doesn't need such intricate processing, and most deinterlacing artifacts are masked when reducing the image size anyway.
Pookie is offline   Reply With Quote
Old 5th March 2007, 08:35   #6  |  Link
Mug Funky
interlace this!
 
Mug Funky's Avatar
 
Join Date: Jun 2003
Location: i'm in ur transfers, addin noise
Posts: 4,555
i suppose some accuracy could be sacrificed for speed if mvanalyse/compensate were replaced with clouded's motion.dll.

but for HD stuff it's probably not worth it - tdeint should be adequate (especially on HDV which is balls anyway).
__________________
sucking the life out of your videos since 2004
Mug Funky is offline   Reply With Quote
Old 6th March 2007, 05:55   #7  |  Link
drevel
Registered User
 
Join Date: Nov 2006
Posts: 5
thanks, my test with mvbob were amazing, will do some tests comparing mvbob and tdint , will try also the clouded motion.dll
drevel is offline   Reply With Quote
Old 6th March 2007, 14:15   #8  |  Link
Terka
Registered User
 
Join Date: Jan 2005
Location: cz
Posts: 677
how to do:
"mvanalyse/compensate were replaced with clouded's motion.dll"?
how big speedup coud it gain?
Terka is offline   Reply With Quote
Old 6th March 2007, 14:36   #9  |  Link
Mug Funky
interlace this!
 
Mug Funky's Avatar
 
Join Date: Jun 2003
Location: i'm in ur transfers, addin noise
Posts: 4,555
@ terka:

i don't know atm. there's analogous functions to mvtools in motion.dll, but i'm not sure about the mask making capabilities (mvtools has loads of them).

i'm not too interested in developing something for it myself - i got a new job that doesn't involve interlace as much as the old one (instead it's 2k film scans )

[edit]

feel free to have a shot yourself though. it'll be a good way to learn - it's not rocket science
__________________
sucking the life out of your videos since 2004
Mug Funky is offline   Reply With Quote
Old 7th March 2007, 11:33   #10  |  Link
drevel
Registered User
 
Join Date: Nov 2006
Posts: 5
using the "clouded's motion.dll" I get an improvement but no so much, about from 0.17 fps to 0.22 fps

I did not analize the results yet but it seems about the same quality
drevel is offline   Reply With Quote
Old 7th March 2007, 12:47   #11  |  Link
Terka
Registered User
 
Join Date: Jan 2005
Location: cz
Posts: 677
it is not so bad, about 30% speedup
drevel, please check the quality;
paste your results and script
Terka is offline   Reply With Quote
Old 8th March 2007, 10:30   #12  |  Link
Fizick
AviSynth plugger
 
Fizick's Avatar
 
Join Date: Nov 2003
Location: Russia
Posts: 2,183
you can try blksize=16
__________________
My Avisynth plugins are now at http://avisynth.org.ru and mirror at http://avisynth.nl/users/fizick
I usually do not provide a technical support in private messages.
Fizick is offline   Reply With Quote
Old 15th March 2007, 19:11   #13  |  Link
Eshkhmed
Sys/A.D./min
 
Eshkhmed's Avatar
 
Join Date: Feb 2007
Location: Russia
Posts: 5
...if somebody around have a documentation to motion.dll and latest build of it... pls can u paste a link for it in this thread or explain what parameters can to be used with it...because the default link to developer page is "forbidden" fo me...
Eshkhmed is offline   Reply With Quote
Old 15th March 2007, 22:47   #14  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,337
http://forum.doom9.org/showthread.php?t=118430
Wilbert is offline   Reply With Quote
Old 15th March 2007, 23:01   #15  |  Link
drevel
Registered User
 
Join Date: Nov 2006
Posts: 5
I simply changed the functions without parameters, anyway the results are lot worse in a couple of videos, in motion areas of course,

I'm comparing it now with tdeint and anothers
drevel is offline   Reply With Quote
Old 2nd May 2008, 23:40   #16  |  Link
AKarpo
Registered User
 
Join Date: May 2005
Posts: 44
Great method, just one question. If my original source is 30fps and I use this to go 60fps, what is the proper way to adjust my audio stream? (If I need to at all)

Sorry, I'm still new to all of this, but I really enjoy learning new methods.
AKarpo is offline   Reply With Quote
Old 3rd May 2008, 00:35   #17  |  Link
Southstorm
20yr Videographer
 
Join Date: Jan 2008
Location: The Great Northwest
Posts: 272
No need to adjust the audio. The deinterlacer doubles the framecount, it doesn't speed up the video.
__________________
Making movies 1 frame at a time...
Southstorm is offline   Reply With Quote
Old 3rd May 2008, 01:53   #18  |  Link
Adub
Fighting spam with a fish
 
Adub's Avatar
 
Join Date: Sep 2005
Posts: 2,687
The reason is because it plays the same amount of time. Sure there are twice as many frames, but if you play it twice as fast, then you length stays the same. See?
__________________
FAQs:Bond's AVC/H.264 FAQ
Site:Adubvideo
Adub is offline   Reply With Quote
Old 3rd May 2008, 09:46   #19  |  Link
Terka
Registered User
 
Join Date: Jan 2005
Location: cz
Posts: 677
try mvbobmod too
Terka is offline   Reply With Quote
Old 12th May 2008, 20:04   #20  |  Link
LaTo
LaTo INV.
 
LaTo's Avatar
 
Join Date: Jun 2007
Location: France
Posts: 701
You can also try this :
Code:
### "Light" MvBob (Speed Up) by LaTo
###
### Need: Motion.dll, Corrector.dll, EEDI2.dll, Vinverse.dll, Medianblur.dll
###
### Use: MvBobFaster()


function MvBobFaster(clip Input)
{
	# Input
	Order            = ( Input.GetParity == True ) ? 1 : 0
	Input            = ( order == 1 ) ? Input.AssumeTFF() : Input.AssumeBFF()

	# Bobbed
	Bobbed           = Input.Separatefields().EEDI2(field=-2)
	Bobbed           = ( Order == 1 ) ? Bobbed.AssumeTFF() : Bobbed.AssumeBFF()

	# Motion Vectors
	MoCompFWD        = Bobbed.Compensate(source = previous)
	MoCompBWD        = Bobbed.Compensate(source = next)

	# Mismatch Detection
	AnalyseBobCurr   = Bobbed.BicubicResize(Input.Width * 2, Input.Height).MedianBlur().BicubicResize(Input.Width, Input.Height)
	AnalyseCompFWD   = MoCompFWD.BicubicResize(Input.Width * 2, Input.Height).MedianBlur().BicubicResize(Input.Width, Input.Height)
	AnalyseCompBWD   = MoCompBWD.BicubicResize(Input.Width * 2, Input.Height).MedianBlur().BicubicResize(Input.Width, Input.Height)
	MoCompCorrected  = Corrector(AnalyseBobCurr, Bobbed, AnalyseCompFWD, AnalyseCompBWD, MoCompFWD, MoCompBWD, Mode = 0, Th = 10)

	# Interpolated Fields 
	Compensated_Even = MoCompCorrected.SelectEven().SeparateFields().SelectOdd() 
	Compensated_Odd  = MoCompCorrected.SelectOdd().SeparateFields().SelectEven()

	# Original Fields
	Original_Even    = Input.SeparateFields().SelectEven()
	Original_Odd     = Input.SeparateFields().SelectOdd()

	# Merge
	Output_Even      = Interleave(Original_Even, Compensated_Even).Weave()
	Output_Odd       = Interleave(Original_Odd, Compensated_Odd).Weave()
	Output           = Interleave(Output_Even, Output_Odd)

	# Output
	Output           = Output.Vinverse()
	Output           = ( Order == 1 ) ? Output.AssumeTFF() : Output.AssumeBFF()

	Return  Output
}
Dlls Here

Last edited by LaTo; 13th May 2008 at 17:47.
LaTo 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 22:00.


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