![]() |
#1 |
Human being with feelings
Join Date: Jan 2013
Location: Canada
Posts: 281
|
![]()
In my previous post I asked for help with using chroma-key and provided two examples: one with default Reaper effects and a custom effect.
And the other with the same track order and effects that not works. As there are no answers I thought that my description of the situation is not clear. So, let me ask differently... How to create a video using chroma-key in Reaper allowing to use any background? As a start I did a video using a green screen background. I would like to have step by step instructions allowing to easy manipulate with a cropping of the source video for smooth integration with a desired video or image background. May be this topic is clearly described in Reaper manual? I am ready to study the topic and experiment in order to aquire some basic and reliable skills. What others do for using green screen? Thx.
__________________
"When you hit a wrong note it's the next note that makes it good or bad". Miles Davis Last edited by mla; 01-22-2023 at 08:13 PM. |
![]() |
![]() |
![]() |
#2 |
Human being with feelings
Join Date: Jan 2013
Location: Canada
Posts: 281
|
![]()
here are two files the source image (object on green screen) and desired background image.
https://drive.google.com/drive/folde...iM?usp=sharing I can apply chroma key, but green screen surrounding appears. May be somebody can try to make it work and provide how to...
__________________
"When you hit a wrong note it's the next note that makes it good or bad". Miles Davis |
![]() |
![]() |
![]() |
#3 | |
Human being with feelings
Join Date: Aug 2020
Location: Brasil
Posts: 388
|
![]() Quote:
Code:
//Chroma-key(RGB) + mask out //by papagirafe //to be used as source for "overlay image" preset //@param cl "mask left" 0 0 1 0.5 0.001 //@param cr "mask right" 0 0 1 0.5 0.001 //@param ct "mask top" 0 0 1 0.5 0.001 //@param cb "mask bottom" 0 0 1 0.5 0.001 //@param mode '0=green,1=blue' 0 0 1 0.5 1 //@param p primary 5.7 0 6 3 .01 //@param rej rejection 3 0 6 3 .01 //@param k3 threshold 0 -2 2 0 .01 //@param spill 'spill reduction' 0 0 1 0.5 1 in1=0; in2=input_track(0); colorspace='RGBA'; E=0xFFFE; input_info(0,w,h)?( cl=(cl*w)&E; cr=(cr*w)&E; ct=(ct*h)&E; cb=(cb*h)&E; cx=cl; cy=ct; cw=w-(cl+cr); ch=h-(ct+cb); gfx_set(0,mode?0:1,mode?1:0,1,0,-1,0); //pure green/blue gfx_fillrect(0,0,w,h); //fill all mode>.5?(k1=-rej;k2=p; ):(k1=p; k2=-rej;); gfx_keyedblit(0,cx,cy,cw,ch,cx,cy,k1,k2,k3,spill); //keyblit the cropped source over ); Last edited by papagirafe; 01-24-2023 at 09:33 AM. Reason: minor cleanup and add commentts |
|
![]() |
![]() |
![]() |
#4 | |
Human being with feelings
Join Date: Jan 2013
Location: Canada
Posts: 281
|
![]() Quote:
![]() I saved all the tips and screenshots from last troubleshooting. Was sure it will work. But no way ... What changed? My new green screen setup (different size and distance to it). So this is the main factor of the problem I guess. Now... I did save your new code as preset, applied 3 presets in the order as previously, EXCLUDED green only track (that you mention). Nothing works (see pics). I tried to play with all 3 presets and cannot even bring the saxman into the picture. after trying different cropper software I found one that allows to do easy cropping. Cropped video of saxman is on Green screen but the sides from surrounding are replaced by black. I think this cropping is not really helpful, so other techniques are required Anyway, I cannot do anything with current presets. I replace video track of saxman with a pic only. I also attached project with new preset and background image. Could you please apply your force/knowledge ![]() What is your conclusion, would this initial green screen setup allow to do something useful? Thanks again... https://drive.google.com/drive/folde...usp=share_link
__________________
"When you hit a wrong note it's the next note that makes it good or bad". Miles Davis |
|
![]() |
![]() |
![]() |
#5 | |
Human being with feelings
Join Date: Aug 2020
Location: Brasil
Posts: 388
|
![]() Quote:
https://stash.reaper.fm/46119/fixed%20green.rpp That should also correct the sizing problems. :-) |
|
![]() |
![]() |
![]() |
#6 |
Human being with feelings
Join Date: Jan 2013
Location: Canada
Posts: 281
|
![]()
I think you forgot to attach the file...
should be changed saxman pic. when open your rpp it shows
__________________
"When you hit a wrong note it's the next note that makes it good or bad". Miles Davis |
![]() |
![]() |
![]() |
#7 |
Human being with feelings
Join Date: Jan 2013
Location: Canada
Posts: 281
|
![]()
My appologies...
When complained ![]() and top and the bottom of saxman were cut out... So I panicked (thought that you adjusted the pic prior to provide new rpp). Than tried your Croma-key handles: mask left righ top and bottom Works like a charm... I will try to recreate a project from scratch following your example. Tell me please... should I crop my green screen video and leave saxman on green with black surrounding that basically replaced room view. Or using suggested effects it doesn't matter and it should simply work? Thank you very much. Sure you deserve a good beer ![]() Promised! Let me just practice and confirm that I can manage this green screen setup without any issue.
__________________
"When you hit a wrong note it's the next note that makes it good or bad". Miles Davis |
![]() |
![]() |
![]() |
#8 | |
Human being with feelings
Join Date: Aug 2020
Location: Brasil
Posts: 388
|
![]() Quote:
As for the beer... next time I'm in Toronto for sure! :-) Last edited by papagirafe; 01-24-2023 at 09:30 AM. Reason: partially incorrect info |
|
![]() |
![]() |
![]() |
#9 | |
Human being with feelings
Join Date: Jan 2013
Location: Canada
Posts: 281
|
![]() Quote:
You did absolutely great job. I have some colors instability with lighter background that I could not make flawless. Will try improve green screen approach. I have very basic knowledge in that. I had just 20cm distance between saxman and green screen. This I can improve. Will experiment a bit. But the code you wrote and whole approach seems to be absolutely smart and pro. I am in Montreal not in Toronto ![]() ![]() Thank you very much for friendly help!
__________________
"When you hit a wrong note it's the next note that makes it good or bad". Miles Davis |
|
![]() |
![]() |
![]() |
#10 | |
Human being with feelings
Join Date: Aug 2020
Location: Brasil
Posts: 388
|
![]() Quote:
|
|
![]() |
![]() |
![]() |
#11 | |
Human being with feelings
Join Date: Jan 2013
Location: Canada
Posts: 281
|
![]() Quote:
![]()
__________________
"When you hit a wrong note it's the next note that makes it good or bad". Miles Davis |
|
![]() |
![]() |
![]() |
#12 | |
Human being with feelings
Join Date: Jan 2013
Location: Canada
Posts: 281
|
![]() Quote:
I did few tests and played with wonderful presets that you combined. Masks and zoom performs 100%. So, my big problem gone. But now I have another one I cannot tweak in any way my shoes part ![]() I did couple of vids. First blamed the light. Now I have about no shadows on the screen. I think my first photo on green screen which you used for fixing was in no way better. But there was no problem with as now. The only difference is that the shoes were white-grey instead of black now. Could it be the culprit? I attach the proj with short vid. Check please the vid itself in the folder prior to run it in the project. Is my green screen setup is really bad and this cause the shoes ![]() May be you can suggest something that will reliably help to fix this kind of things? Thx. https://drive.google.com/drive/folde...hB?usp=sharing
__________________
"When you hit a wrong note it's the next note that makes it good or bad". Miles Davis |
|
![]() |
![]() |
![]() |
#13 | |
Human being with feelings
Join Date: Aug 2020
Location: Brasil
Posts: 388
|
![]() Quote:
|
|
![]() |
![]() |
![]() |
#14 | |
Human being with feelings
Join Date: Jan 2013
Location: Canada
Posts: 281
|
![]() Quote:
Second Espresso promised ![]()
__________________
"When you hit a wrong note it's the next note that makes it good or bad". Miles Davis |
|
![]() |
![]() |
![]() |
#15 |
Human being with feelings
Join Date: Aug 2020
Location: Brasil
Posts: 388
|
![]() |
![]() |
![]() |
![]() |
#16 |
Human being with feelings
Join Date: Jan 2013
Location: Canada
Posts: 281
|
![]()
I see...
I just thought that if my initial green screen is not so bad from basic techical requirements perspective the appropriate program should easily do the trick. A friend of mine recomended DAVINCHI. The installation file is 3.2GB... it's funny. Then a learning courve, that I am shure will not be so simple as in Reaper (of course with top notch presets if avalable). I guess for my needs should be a simpler solution. There are VideoPad and Videoproc apps with tube tutorials. Ideally, I would like to use Reaper because I love it for audio and 6 month ago you helped with my first video thing. May be I had better green screen vid for start... Anyway, if by chance you'll have time to try to organise presets that will flawlessly manage all this "green" stuff it would be nice... I really would like to be able to make this in Reaper. For now, will continue to watch this thread in hope of final solution. Thank you for your time and explanation. Best!
__________________
"When you hit a wrong note it's the next note that makes it good or bad". Miles Davis |
![]() |
![]() |
![]() |
#17 |
Human being with feelings
Join Date: Jan 2013
Location: Canada
Posts: 281
|
![]()
Hi,
I digged in a bit more with VIDEOPROC... Absolutely simple and good quality for my green screen needs. Few clicks and export... I have to play with audio made in Reaper but may be will drop ready video to Reaper with audio proj. There are other tweaking effects but even basic clicks give a very good result IMHO. As for Reaper, I think that if you will succeed to adjust more controlable tweaking of Green it will be great. Sure I would try new shiny ![]() Here is a screenshot from the vid. No probs with green at all. https://drive.google.com/drive/folde...IP?usp=sharing Thanks.
__________________
"When you hit a wrong note it's the next note that makes it good or bad". Miles Davis Last edited by mla; Yesterday at 09:51 PM. |
![]() |
![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|