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

Reply
 
Thread Tools Display Modes
Old 02-06-2018, 07:23 PM   #1
propianist
Human being with feelings
 
Join Date: Feb 2018
Posts: 2
Default Video Processor = RGB White Balance / Colour Grading

This is my first post here.
I was trying to find a way to get Reaper Video Processor FX to do some basic colour grading of R G B levels, mostly for subtle tweaks to white balance.

My Canon camera (with Magic Lantern) is capable of getting very good results if I carefully adjust colour temperature in Kelvin manually before I film something, but too often the case, it's not fine-tuned ideally because I was in a hurry to set up, or the lighting conditions were poor or changed during a long shoot, so it sometimes needs minor correction afterwards.

Anyway, I couldn't find any factory preset in Video Processor that did that job directly, so I adapted a little script and came up with this, which I thought I'd share...

Quote:
//RGB White Balance Colour Grading
src=0;
//@param2:red 'red' 0 -0.1 0.1
//@param4:green 'green' 0 -0.1 0.1
//@param6:blue 'blue' 0 -0.1 0.1
//@param8:intensity 'intensity' 1 0 10
input_info(src,w,h) ? ( project_w=w; project_h=h; ); // preserve input dimensions
w>0 ? gfx_blit(src);
gfx_mode=w>0 ? 1 : 0;
gfx_gradrect(0,0,project_w,project_h, red, green, blue, intensity);
This seems to work okay for subtle adjustments of R G B white balance. The "intensity" dial lets you turn down to zero (bypass) to compare your original image. Turning up past default 1 goes beyond normal everyday range into special effects range.

I wondered if this is useful to anybody like me struggling to do basic video edits in Reaper, but moreover, I wonder if anyone far more experienced than me can make a better job of this type of thing, using more flexible parameters in the script, etc.

I know proper "Colour Grading" software offers full control over highlights / midtones / shadows separately, and can be applied to specific areas of the image also, and can be changed dynamically over the timeline, which is all very complex and complicated to attempt in Reaper. I wonder if duplicating the video item on another track(s) and using opacity to see through several video layers with different processing for each layer could mimic highlights, midtones and shadow processing somehow?
Any other ideas how to make R G B colour grading possible or more flexible in Reaper?

Last edited by propianist; 02-06-2018 at 07:35 PM.
propianist is offline   Reply With Quote
Old 02-06-2018, 08:57 PM   #2
EpicSounds
Human being with feelings
 
EpicSounds's Avatar
 
Join Date: Jul 2009
Posts: 5,093
Default

not bad! really useful actually. I have something similar in my presets. great start.

btw a negative number for intensity can be cool useful here too.

Edit - should say it's not really white balance, but more like tint or using colored filters.
if RGB are the same and you add or subtract (below 0) alpha it's like a brightness control.
__________________
REAPER Video Tutorials, Tips & Tricks and more at The REAPER Blog

Last edited by EpicSounds; 02-06-2018 at 09:06 PM.
EpicSounds is offline   Reply With Quote
Old 10-06-2018, 07:35 AM   #3
TheEscalator
Human being with feelings
 
Join Date: Dec 2017
Posts: 3
Default

thanks alot, this is exaclty what i was looking for!
TheEscalator is offline   Reply With Quote
Old 11-03-2018, 06:13 AM   #4
Eliseat
Human being with feelings
 
Join Date: Mar 2018
Location: Cologne
Posts: 593
Default

Many thanks.
A great addition to the video processor presets.
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 04:50 PM.


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