Log in

View Full Version : video games and motion blur


gst
3rd January 2005, 22:17
I don't want to dig up an old thread so i post here.

Original thread
http://forum.doom9.org/showthread.php?s=&threadid=75523&perpage=20&highlight=TemporalSoften&pagenumber=1

My problem :
I've captured shots from a video game (quake 3), and i want to create a "movie" motion blur from my image sequence. I can't achieve a good motion blur, it's only looking good when i made a ~40fps video.

This is how i proceed :
1/I take 120 screenshots/secs
2/Import sequence with avisynth
3/resize+sharpen
4/temporal smooth
5/change fps 40
6/denoise+clean

Here my script :

ImageSource("C:\Program Files\Quake III Arena\osp\screenshots\shot%.4d.tga",45,8347,120) <---- last number = fps
#RGBLUT(ampfile="quake.amp") <----- Manao i've got a problem with this one, my .amp give me strange colors
FlipVertical() <---- bug with the tga import, all image are flipped vertically, maybe i've done something wrong with the first line =)
Lanczos4resize(640,480)
DRemoveGrain(mode=1)
ConvertToYV12().LimitedSharpen(special=true) <---- i know it's look crazy to sharpen before smooth, but this method give me good visual
ConvertToYUY2().temporalsoften(2,255,255,mode=2).ConvertToYV12() <---- radius 2 only, above the blur is to strong/crap, but the 'ghost' effect is clearly visible. Ghost only disappear with a 1000fps footage (never mind)
changefps(40) <---- tried 25 and 30, the motion blur is to visible and don't look natural at those rate. 40 is better but not perfect.
FFT3DFilter(sigma=3,bh=32,bw=32)



I can take more screens/secs but above 100/200 screens it's really a pain in the ass to take all this stuff. And quake is limited to 10000 shots (so 1000fps = 10secs of footage only).

My goals :
achieve a good motion blur at 25/30fps (don't think it's possible)
increase the compressibility with the motion blur (and keep a sharp image on static area)
deshake the mouse movements. I've tried depanstabilize but i can't get it working.
My deshake script :

x=depanestimate(last,winx=320,winy=240,dxmax=80,dymax=60,pixaspect=1,trust=0.0,range=2,zoommax=1,fftw=true,log="C:\Deshaker.log")
depanstabilize(data=x,cutoff=4.0,dxmax=80,dymax=60,pixaspect=1,mirror=0,prev=4,next=4,subpixel=2,inputlog="C:\Deshaker.log")


I'm uploading my 40fps sample. I will try to upload a part of the image sequence to. Any help would be appreciated =)

edit :
http://x.spirit.free.fr/thefou_xvid-low-cut.zip