Log in

View Full Version : Linear Motion Blur?


ag0n
22nd December 2009, 20:21
I'm making a litle movie from a online game. The raw footage has 90 fps and i would like to create a 30 fps movie, but somehow seems Sony Vegas isn't able to ressample/create a good motion blur.

So, i'm looking for avisynth plugin that could linearly merge 90fps to 30fps (meaning 3:1 or any other input). ChangeFPS/ConvertFPS can't do the job properly either. I've searched for such a plugin but couldn't find.


Thanks in advance.


using a tool to merge tga's (that's how i want -> 3:1 linearly merged):
http://i50.tinypic.com/23qyql0.jpg
http://i48.tinypic.com/ws56x.jpg
http://i48.tinypic.com/33lyult.jpg
http://ogrec.1g.fi/ag0n/ag0n_30fpsTGAMERGE.mp4

using 90 to 30 fps 3x supersampling at vegas (box)
http://i47.tinypic.com/dxeexs.jpg
http://i49.tinypic.com/s2e9ab.jpg
http://i48.tinypic.com/35mnuid.jpg
http://ogrec.1g.fi/ag0n/ag0n_30fps3XSS.mp4[/QUOTE]

zilog jones
22nd December 2009, 21:32
You should be able to do something with MVTools, but I'm not sure how exactly. Can you provide a sample clip of the original video?

ag0n
22nd December 2009, 21:39
You should be able to do something with MVTools, but I'm not sure how exactly. Can you provide a sample clip of the original video?

http://ogrec.1g.fi/ag0n/ag0n_30fps3XSS.mp4

thats mostly the original, i disable the ressample at vegas and activate Super Video Sampling (but it doesn't look as it should).

wonkey_monkey
22nd December 2009, 22:24
using a tool to merge tga's (that's how i want -> 3:1 linearly merged):

If that's all you want, you could try:

# load source, then...

a=selectevery(3,0)
b=selectevery(3,1)
c=selectevery(3,2)

d=overlay(a,b,opacity=0.5)
overlay(c,d,opacity=0.66)

#or for a more "central" weighting:
d=overlay(a,c,opacity=0.5)
overlay(b,d,opacity=0.5)

Didée
22nd December 2009, 23:40
If that's all you want, you could try:

# load source, then...

a=selectevery(3,0)
b=selectevery(3,1)
c=selectevery(3,2)

d=overlay(a,b,opacity=0.5)
overlay(c,d,opacity=0.66)

#or for a more "central" weighting:
d=overlay(a,c,opacity=0.5)
overlay(b,d,opacity=0.5)

Technically correct, but too much script.

Linear weighting:
Source()
Temporalsoften(1,255,255,255,2).SelectEvery(3,1)

E.g. Gaussian weighting:
Source()
# Temporalsoften(1,255,255,255,2).SelectEvery(3,1).Merge(last,0.25) # <- stupidly wrong (my original post)
Temporalsoften(1,255,255,255,2).Merge(last,0.25).SelectEvery(3,1) # <- edit: this is correct, of course!

Hint: If some merging can be done via Merge(), then use it. Use Overlay() only when necessary.

ag0n
22nd December 2009, 23:45
I would like to thank you both. I've already tested the davidhorman idea and it worked, but i'm going to test Didée and compare.
Avisynth scripts rocks!

wonkey_monkey
23rd December 2009, 00:15
Technically correct, but too much script.

But doesn't require an external filter ;)

David

ag0n
23rd December 2009, 00:17
Some results:

http://ogrec.1g.fi/ag0n/MBtests/Linear.mp4
http://ogrec.1g.fi/ag0n/MBtests/Linear0.jpg
http://ogrec.1g.fi/ag0n/MBtests/Linear1.jpg
http://ogrec.1g.fi/ag0n/MBtests/Linear2.jpg
Temporalsoften(1,255,255,255,2).SelectEvery(3,1)


http://ogrec.1g.fi/ag0n/MBtests/Overlar05-05.mp4
http://ogrec.1g.fi/ag0n/MBtests/Overlay0.jpg
http://ogrec.1g.fi/ag0n/MBtests/Overlay1.jpg.jpg
http://ogrec.1g.fi/ag0n/MBtests/Overlay2.jpg.jpg (excelent file name lOl)
d=overlay(a,c,opacity=0.5)
overlay(b,d,opacity=0.5)


http://ogrec.1g.fi/ag0n/MBtests/Overlar05-06.mp4
http://ogrec.1g.fi/ag0n/MBtests/Overlay1_0.jpg
http://ogrec.1g.fi/ag0n/MBtests/Overlay1_1.jpg
http://ogrec.1g.fi/ag0n/MBtests/Overlay1_2.jpg
d=overlay(a,b,opacity=0.5)
overlay(c,d,opacity=0.66)

Didée
23rd December 2009, 00:25
But doesn't require an external filter ;)
What or which external filter? :confused:

wonkey_monkey
23rd December 2009, 00:36
What or which external filter? :confused:

Erm... nevermind :stupid:

(I clicked on "t" in the AviSynth docs, and it wasn't there - it's grouped with SpatialSoften - doh!)

David

Didée
23rd December 2009, 01:11
Nevermind too ... Look again at post#5 above, to see how stupid I am! ;)