Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER for Video Editing/Mangling

Reply
 
Thread Tools Display Modes
Old 11-10-2018, 07:37 AM   #41
Eliseat
Human being with feelings
 
Eliseat's Avatar
 
Join Date: Mar 2018
Location: Cologne
Posts: 1,163
Default

wwwmaze,

wouldn't it be a good thing to have video folders behaving the same as audio folders? I mean, imagine how easy it would be to handle title animations separately from scene transitions etc. It only needed a last instance like opacity to plan and organize everything.

But I'm still amazed by your presets. I downloaded SynfigStudio and made within a minute an own black and white transitions. That's so easy. You can practically do anything in 2d.

The other way to create nice alpha effects would be to use the "cheap brightness and contrast" preset with simple video snippets. Film some waves on a lake. Put it in Reaper. Choose the "cheap brightness" effect on it to desaturate and darken it until its nearly black. Then animate the contrast or brightness (extreme settings are possible) to make the transition to white.

So here is the quick synfigStudio test. Its a bit weird in timing but was made in a minute after first time opening this software. Now we see which powerful tool you have created.

Eliseat is offline   Reply With Quote
Old 11-10-2018, 07:57 AM   #42
Eliseat
Human being with feelings
 
Eliseat's Avatar
 
Join Date: Mar 2018
Location: Cologne
Posts: 1,163
Default

Just a few greyscale rectangles moving from left and right, getting bigger and brighter until everything is white.

Eliseat is offline   Reply With Quote
Old 11-10-2018, 11:19 AM   #43
sonicowl
Human being with feelings
 
sonicowl's Avatar
 
Join Date: Oct 2015
Posts: 336
Default

With alpha you can do tons of cool stuff. Really great that wwwmaze created those great presets. Kaleidoscope is amazing. Blending also. I'm amazed how helpful can one script be. I hope wwwmaze keeps writing great presets for video processor. Big thanx.
sonicowl is offline   Reply With Quote
Old 11-10-2018, 04:36 PM   #44
wwwmaze
Human being with feelings
 
Join Date: Oct 2009
Posts: 115
Default

holy cow Eli these are some sweet transitions!

Quote:
Originally Posted by Eliseat View Post
wouldn't it be a good thing to have video folders behaving the same as audio folders? I mean, imagine how easy it would be to handle title animations separately from scene transitions etc. It only needed a last instance like opacity to plan and organize everything.
Yes thats what I was proposing, making video folders a bit more encapsulated. Preferable by a pair of functions to query the folder depth.

Pseudo-code:
PHP Code:
folderDepFX GetMyFolderDepth();  // get folder depth of this video processor
folderDepIn GetInputFolderDepth(input_track(0));  // get folder depth of input

folderDepFX==folderDepIn ? (
  
// do stuff
); 
In the meantime I modified the preset so that the user can define the track offsets from the FX to the input tracks by himself.
The default order hasn't changed: video-processor -> background -> foreground -> mask
PHP Code:
// Selective Blender
// v0.2
// blends parts of the foreground defined by the
// grey-level of a reference (mask) into the background
// 
// Default track-order (can be modified by offset parameters): 
// VideoProcessor - background - foreground - mask

//@param1:blend 'blend amount' 1 0 1 0.5 0.01
//@param2:mode 'blend mode' 0 0 19 0 1

//@param4:sub 'subtract?' 0 0 1 0 1

//@param10:offsBg 'track offset bg' 1 1 20 1 1
//@param11:offsFg 'track offset fg' 2 1 20 1 1
//@param12:offsMask 'track offset mask' 3 1 20 1 1

oldCS=colorspace;
colorspace='RGBA';

bg=input_track(offsBg-1);
fg=input_track(offsFg-1);
mask=input_track(offsMask-1);

gfx_blit(bg);

gfx_dest fsMask gfx_img_resize(fsMask,project_w,project_h);
gfx_blit(mask);

gfx_dest fsFg gfx_img_resize(fsFg,project_w,project_h);
gfx_blit(fg);

gfx_evalrect(0,0,project_w,project_h,
    
"a=max(0,min(255,0.2989*sr+0.5870*sg+0.1140*sb));",
    
0,fsMask);

gfx_dest=-1;
gfx_a=blend*(sub?-1:1);
gfx_mode=(sub?1:mode)|0x10000;
gfx_blit(fsFg);

colorspace=oldCS
To realize this layout
Quote:
Originally Posted by wwwmaze View Post
Code:
parent track* b
---background b
---parent track* a (= foreground b)
------background a
------foreground a
------mask       a
---mask       b
one would just have to set the mask track offset of video-processor b to 6. Just count all tracks with active video inputs (items or FX') at the current time.

Not very user-friendly but afaik there's no other choice currently.


Quote:
Originally Posted by Eliseat View Post
Choose the "cheap brightness" effect on it to desaturate and darken it until its nearly black. Then animate the contrast or brightness (extreme settings are possible) to make the transition to white.
Nice tips. You don't need to desaturate though, the preset automatically converts the mask image to greyscale by the equation specified at the bottom of this page: https://www.mathworks.com/help/matlab/ref/rgb2gray.html

You basically just can use another video as mask.
wwwmaze is offline   Reply With Quote
Old 11-10-2018, 04:36 PM   #45
wwwmaze
Human being with feelings
 
Join Date: Oct 2009
Posts: 115
Default

Quote:
Originally Posted by sonicowl View Post
With alpha you can do tons of cool stuff. Really great that wwwmaze created those great presets. Kaleidoscope is amazing. Blending also. I'm amazed how helpful can one script be. I hope wwwmaze keeps writing great presets for video processor. Big thanx.
thx for the kind words sonic. Don't forget that you guys mostly had these great ideas.
wwwmaze is offline   Reply With Quote
Old 11-10-2018, 04:52 PM   #46
EpicSounds
Human being with feelings
 
EpicSounds's Avatar
 
Join Date: Jul 2009
Posts: 5,475
Default

a way to desaturate the dark areas would be nice. Sometimes I'll do a rough color adjustment and end up with blue or purple dark areas but I'd like them to stay black. In color grade software this would be "Luma vs Sat"
__________________
REAPER Video Tutorials, Tips & Tricks and more at The REAPER Blog
EpicSounds is offline   Reply With Quote
Old 11-14-2018, 07:53 AM   #47
Mordi
Human being with feelings
 
Mordi's Avatar
 
Join Date: May 2014
Location: Norway
Posts: 535
Default

This is really cool. I see this as a great leap for the video capabilities of Reaper. Great job folks!
Mordi is offline   Reply With Quote
Old 11-14-2018, 04:25 PM   #48
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 12,197
Default

Quote:
Originally Posted by EpicSounds View Post
a way to desaturate the dark areas would be nice. Sometimes I'll do a rough color adjustment and end up with blue or purple dark areas but I'd like them to stay black. In color grade software this would be "Luma vs Sat"
You could easily do this with gfx_evalrect()...
Justin is offline   Reply With Quote
Old 11-15-2018, 04:03 AM   #49
Eliseat
Human being with feelings
 
Eliseat's Avatar
 
Join Date: Mar 2018
Location: Cologne
Posts: 1,163
Default

One last thing I wanted to show just to present whats possible with masks now.





This is only a campfire at night. I put it on the video b track and in the mask track without any manipulation. So the mask channel just uses the black and white data to only let the flames get thru. This way you could use snow, rain etc. in front of a black background to mix it in your videos. Very nice.

Lots of free campfires to test out: https://vimeo.com/93091275

Eliseat is offline   Reply With Quote
Old 11-15-2018, 03:45 PM   #50
wwwmaze
Human being with feelings
 
Join Date: Oct 2009
Posts: 115
Default

This is a neat trick. The fire at the ridge actually looks pretty realistic.
I was thinking about for that it would be handy to have some additional parameters to stretch/compress/boost the histogram/contrast of the mask, but then decided it would be best done as separate FX ahead of the input.
wwwmaze is offline   Reply With Quote
Old 11-16-2018, 01:00 AM   #51
Eliseat
Human being with feelings
 
Eliseat's Avatar
 
Join Date: Mar 2018
Location: Cologne
Posts: 1,163
Default

Stretch-compress the histogram ... sounds pretty exciting. I'm coming from Photoshop where this is the first thing you have to do with every new picture: Arranging the levels to get the widest range.

So I hope you get bored and nothing special happens in your next free time.

Eliseat is offline   Reply With Quote
Reply

Thread Tools
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 -7. The time now is 11:36 PM.


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