View Single Post
Old 12-19-2018, 01:35 PM   #12
wwwmaze
Human being with feelings
 
Join Date: Oct 2009
Posts: 99
Default

Quote:
Originally Posted by wwwmaze View Post
... may be improved by filtering frames over time but it probably reduces the image sharpness.
This is a very primitive motion blur (it just averages the last and current frame).
Basically it's just a tiny mod of Justins "show motion- subtract last frame" preset:
PHP Code:
// Simple motion blur
input 0// could also do input = input_track(0);
input || input_track(0) > || input_count() == || input_ismaster() ? (
  
input_info(input,project_w,project_h);
  
hf ? (
    
gfx_img_getptr(hf) != gfx_img_getptr(input) ? (
      
gfx_img_free(last_frame);
      
last_frame hf;
      
hf gfx_img_hold(input);
    );
    
gfx_blit(last_frame);
    
gfx_a=0.5;
    
gfx_blit(input,1);
  ) : (
    
// first frame: black
    
gfx_fillrect(0,0,project_w,project_h);
    
hf gfx_img_hold(input);
    
last_frame gfx_img_hold(hf);
  );
); 
Maybe it helps a bit.
You can increase the effect by duplicating the preset.

EDIT: updated to set preferred video size to size of input

Last edited by wwwmaze; 12-19-2018 at 04:10 PM. Reason: updated to set preferred video size to size of input
wwwmaze is offline   Reply With Quote