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

Reply
 
Thread Tools Display Modes
Old 11-14-2018, 01:44 AM   #1
Eliseat
Human being with feelings
 
Eliseat's Avatar
 
Join Date: Mar 2018
Location: Cologne
Posts: 1,167
Thumbs up Some video masks for testing with Reapers Video processor

Hi video people,

we now have our video sub forum. And to celebrate it nicely I want to share some of my self made video masks. You can use them for testing wwwmaze's amazing Selective Blender preset which allows to blend videos thru grey scale masks. https://forum.cockos.com/showthread.php?t=213043

Quote:
Originally Posted by wwwmaze View Post
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

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. ...
To use the new feature, create a new folder, apply a video processor on it and create a new preset with wwwmaze's code. Put two videos you want to over blend into the folder and a third video or image which works as mask. The mask has to be the third in row or you have to adjust the order in the preset settings.

Here is my link for the video masks: https://we.tl/t-6gxPs2QCO7

Have fun and thank the universe for always curious people like wwwmaze. And he's always busy like a bee.

Many thanks
Eliseat is offline   Reply With Quote
Old 11-14-2018, 01:51 AM   #2
Eliseat
Human being with feelings
 
Eliseat's Avatar
 
Join Date: Mar 2018
Location: Cologne
Posts: 1,167
Default

Here are some examples.









If you have requests for other blend overs or want to share your thoughts, feel free to reply.
Eliseat is offline   Reply With Quote
Old 11-14-2018, 03:43 PM   #3
wwwmaze
Human being with feelings
 
Join Date: Oct 2009
Posts: 115
Default

Quote:
Originally Posted by Eliseat View Post
Hi video people,

we now have our video sub forum. And to celebrate it nicely I want to share some of my self made video masks. You can use them for testing wwwmaze's amazing Selective Blender preset which allows to blend videos thru grey scale masks. https://forum.cockos.com/showthread.php?t=213043



To use the new feature, create a new folder, apply a video processor on it and create a new preset with wwwmaze's code. Put two videos you want to over blend into the folder and a third video or image which works as mask. The mask has to be the third in row or you have to adjust the order in the preset settings.

Here is my link for the video masks: https://we.tl/t-6gxPs2QCO7
Awesome Eli, many thanks for sharing!

Quote:
Originally Posted by Eliseat View Post
Have fun and thank the universe for always curious people like wwwmaze. And he's always busy like a bee.
Haha I'm really just a strange dude who likes to mess with logic in his free time I never could have imagined the things you do with that preset.

I have 1 request though, where can I find that lovely sleeping cat video?
wwwmaze is offline   Reply With Quote
Old 11-15-2018, 01:02 AM   #4
Eliseat
Human being with feelings
 
Eliseat's Avatar
 
Join Date: Mar 2018
Location: Cologne
Posts: 1,167
Default

The cute cat video can you get here: https://videos.pexels.com/videos/cute-cat-1481903

We also have a cat but he is a tomcat who brings new scars back daily from his nightly fights. Not so cute but very fondly. I love him.

By the way: I will start a thread with links to resources like free stock videos etc.

Greetings
Eli
Eliseat is offline   Reply With Quote
Old 11-15-2018, 11:33 AM   #5
wwwmaze
Human being with feelings
 
Join Date: Oct 2009
Posts: 115
Default

Thanks Eli.

Quote:
Originally Posted by Eliseat View Post
We also have a cat but he is a tomcat who brings new scars back daily from his nightly fights. Not so cute but very fondly. I love him.
I disagree, there's no cat on this planet that isn't cute
https://www.instagram.com/wilfredwarrior/
wwwmaze 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 05:21 AM.


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