12-21-2018, 05:09 AM | #1 |
Human being with feelings
Join Date: Jan 2007
Location: The Underground Bunker
Posts: 705
|
Can track (video) fx only affect one track?
Hi, is it possible to have track-fx only affect items on the one track (that the effect is on) and not all the 'lower' video tacks?
The use-case here is, that I have a lot of video-text-items (on one track) that needs the same xy adjustment, that is different from the rest of video tracks. I guess there are workarounds with rendering, or item fx, but that would loose some (much needed) flexibility later on - so I don't see that a an option here. Thank you W
__________________
"if DAWs are religions, REAPER is atheism" - The big J __________________ Windows 10x64 | Asus Z170-a i7, 32GB ram | RME-Digiface USB |
12-21-2018, 07:19 AM | #2 |
Human being with feelings
Join Date: Mar 2018
Location: Cologne
Posts: 1,362
|
Yes, that's a big problem in my opinion. wwwmaze also posted some thought about it as this seems just not logical.
The workaround would be to lay such a track at the end of the track stack but that doesn't work for all situations. An example would be if you want blur only on one track while other tracks also are visible. This blurry track has to be the last in the stack if not everything below also will be blurred. But if one of the other track also has something special which affects the whole stack you get stuck here. The best thing would be, if only folders would be mixing everything together while separate tracks keep their effects on their own. Or this needs kind of an divider/separator. Or there must be a separate input definition in the programming language which only allows one track input without blend possibility. For blur or something like that it would be a great option. But I have no idea how this could be done. for the moment I can't find where wwwmaze wrote his thought about that. Will edit the post if I have found it. |
12-21-2018, 02:04 PM | #3 |
Administrator
Join Date: Jan 2005
Location: NYC
Posts: 15,721
|
Yes, some of the presets implement this, but here's a preset which, if you put it last on a track, will only make the track FX used when the track has video items:
Code:
// makes track FX only used where track has video items input = input_track(0); input > input_next_item(0) ? input=0; input_info(input,project_w,project_h); gfx_blit(input); Code:
// makes track FX only used where track has video items input = input_track(0); input <= input_next_item(0) ? ( input_info(input,project_w,project_h); gfx_blit(input); ); Caveat: this doesn't handle being the only FX on a track properly (will figure out a workaround for that -- not that it's useful as the only FX on a track). Last edited by Justin; 12-21-2018 at 02:30 PM. Reason: updated with helper presets |
12-21-2018, 02:24 PM | #4 |
Human being with feelings
Join Date: Jul 2009
Posts: 7,571
|
what would I need if I wanted the rotation part of "// Track opacity/zoom/pan"
to only apply to images, text, or lines/shapes draw by a video processor? need some easy way to apply processing only to the output of previous video processor in same chain.
__________________
REAPER Video Tutorials, Tips & Tricks and more at The REAPER Blog
|
12-21-2018, 02:30 PM | #5 |
Administrator
Join Date: Jan 2005
Location: NYC
Posts: 15,721
|
Put it on a track by itself (with the previous processor), then blend it with whatever else as you like from another track?
|
12-21-2018, 05:08 PM | #6 | |
Human being with feelings
Join Date: Jul 2009
Posts: 7,571
|
Quote:
the text and lines are made in video processor. its even worse if you want the drawing to rotate different from the text. Works differently with image files, pretty much fine.
__________________
REAPER Video Tutorials, Tips & Tricks and more at The REAPER Blog
|
|
12-21-2018, 06:05 PM | #7 |
Administrator
Join Date: Jan 2005
Location: NYC
Posts: 15,721
|
I think the problem is that you want to make a mask, transform it, then combine it with something else. You can definitely do this, but it takes a bit more work.
(these all require a recent +dev build, though most of the techniques can be used in 5.965 too) Here's one way to do it: https://1014.org/_/overlaytransform.rpp Track 2 has a video. Track 1 has a green background generator => text overlay => track opacity/zoom/pan (modified to fill background with green rather than black, see comment inside it) => Chroma-key, which combines track 2 with track 1. This is pretty fast but doesn't allow partial transparency. Here's another way, which is probably about as fast but requires going to RGBA: https://1014.org/_/overlaytransform2.rpp Track 2 has a video Track 1 has a black background generator => text overlay => track opacity/zoom/pan => custom RGBA red to alpha channel converter => image overlay This allows partial transparency, but because red is copied to alpha, you are limited in what colors are available to you in your overlay image. You could tweak which channel is used in order to allow some different combinations, but it's not ideal either. |
12-21-2018, 06:47 PM | #8 |
Administrator
Join Date: Jan 2005
Location: NYC
Posts: 15,721
|
Edit: extending RGBA mode to give more control over RGBA alpha channel writing. This will give the best performance for RGBA and also full color.
In today's build you will be able to use: https://1014.org/_/overlaytransform3.rpp Some of the various presets may need to be extended to be alpha-channel aware though... Last edited by Justin; 12-21-2018 at 07:00 PM. |
12-21-2018, 07:29 PM | #9 |
Human being with feelings
Join Date: Jul 2009
Posts: 7,571
|
thanks for looking into this so quickly.
btw for text I usually have the fx chain on MIDI items
__________________
REAPER Video Tutorials, Tips & Tricks and more at The REAPER Blog
|
05-29-2020, 09:57 AM | #10 |
Human being with feelings
Join Date: Apr 2010
Posts: 1,247
|
Justin, any news on disabling one FX to influence all video items?
__________________
W10 (64) Lenovo E540 - SSD; Lenovo B590; W7 (32), Compaq 610 (2.1Ghz core 2 duo, L2 cache, 2GB RAM); DPA 4018, Schoeps MK2, Schoeps MTSC 64, Neumann mk184, AEA Ribbon 88mk, AKG SolidTUBE; Focusrite Scarlett 18i20, recording merely live acoustic music. |
06-01-2020, 06:30 AM | #11 |
Human being with feelings
Join Date: Dec 2012
Location: Germany
Posts: 3,018
|
oh yes, please! This is SOOOO essential!!!
.
__________________
Check out AVConvert (free, super-fast media file manipulation via the right-click context-menu in Windows Explorer) and my free VST plugins. My Reaper tutorials and studio related videos on youtube. |
06-01-2020, 08:07 AM | #12 |
Human being with feelings
Join Date: Jul 2009
Posts: 7,571
|
Hey guys this is already fixed. this thread predates the inclusion of the preset "Apply track FX only where track has video item"
Put it last in the track chain, should solve the issue.
__________________
REAPER Video Tutorials, Tips & Tricks and more at The REAPER Blog
|
06-01-2020, 08:19 AM | #13 |
Human being with feelings
Join Date: Apr 2010
Posts: 1,247
|
Jon, for some instances of official presets it does not work yet.
__________________
W10 (64) Lenovo E540 - SSD; Lenovo B590; W7 (32), Compaq 610 (2.1Ghz core 2 duo, L2 cache, 2GB RAM); DPA 4018, Schoeps MK2, Schoeps MTSC 64, Neumann mk184, AEA Ribbon 88mk, AKG SolidTUBE; Focusrite Scarlett 18i20, recording merely live acoustic music. |
07-28-2021, 11:11 PM | #14 |
Human being with feelings
Join Date: Dec 2013
Posts: 5
|
I have the same problem!
Hi, has anyone found a solution to this? I'm having the same problem as the OP, and I haven't made any progress.
I have hundreds of midi items with text for captions, and I need to scale them all and slightly adjust their positioning. Unfortunately, "Apply track FX only where track has video item" still impacts the background videos any time a caption displays. Is it possible to "Apply track FX only to items on this track, without effecting items on other tracks?" Thanks in advance for any help! |
07-29-2021, 07:58 AM | #15 |
Human being with feelings
Join Date: Dec 2012
Posts: 7,272
|
Well sort of, but it gets weird. The issue really is that, from the perspective of the video processor, any video that would be showing at this time is on this track as long as this track is above wherever that video comes from. That is, if you use it as standard and normal, it kind of can’t work. What you end up having to do is not let any video show through any other in that sort of native automatic way, and find some other way to combine whatever you want via more direct and discrete reference to individual video tracks. There aren’t too many presets that do that natively, so it would probably require some coding to get what you want.
I’m not super sure that actually transparencies can work with this, though, because you need to have some solid background to keep whatever is below the transparent things from showing through on that transparent track, so that by the time the mixing preset sees that transparent track, it has no transparent parts, just the solid background. So you end up having to do chroma key, cropping, or more sophisticated masking. My cropped overlay preset does the discrete mixing by referencing the two tracks directly, and as long as neither of them are letting things below them show through, you can put whatever other effects you want on each. I’m posting the link not because I think it is the preset you need, but as an example of how that sort of thing gets done in the code. https://forum.cockos.com/showthread.php?t=245490
__________________
Lorenzo's Tractor is Everywhere --- Ash's Tube --- Join the Partnership for a Drum Free Amerika |
05-05-2022, 02:24 AM | #16 |
Human being with feelings
Join Date: Apr 2017
Location: Scotland, UK
Posts: 56
|
If you select a video item and then go to "Item>Take>Show FX chain for active take" (default shortcut is shift E) then you can add "Video Processor" as an effect and select a preset etc. and it will only apply while that item exists and won't double videos or apply the effect to the wrogn video etc. when the item stops. You can also drag the Video Processor effect name from the FX list for the item onto other items too and that will copy across the effect.
|
01-16-2023, 03:55 AM | #17 | |
Human being with feelings
Join Date: Feb 2020
Location: germany
Posts: 381
|
Quote:
To me the Apply track FX only where track has video items preset won't work. If I e.g. put a text preset on one item, then a blur effect and then the Apply track FX only ... preset, the whole output will just be black. I attached a sample project. You will have to replace the BG png with any image or video. My background / issue and how/why I found this thread: I was thinking about making some kind of "shadow" effect with items or images with transparency, so that I can e.g. put a shadow effect on any PNG image or text or both. I would combine blur, brightness/contrast etc. and try to add the original input back. But with this behaviour of the vieo processor affecting every underlying source, I do not even have to start this. Unfortunatley such an effect would probably not be able to distinguish between the part I want to have shadow and all the underlying sources then, I guess ...
__________________
System: Win 10 64 bit / i9 9900K (8x 3.6 GHz) / 16 GB DDR4-3200 RAM / 1TB M.2 SSD + 2x 500 GB SSD / RME Babyface / Reaper Tagirijus.de |
|
01-17-2023, 07:09 PM | #18 | |
Human being with feelings
Join Date: Aug 2020
Location: Brasil
Posts: 679
|
Quote:
I have made a text overlay preset that adds good quality shadows (0if you are interested, see additional preset sticky). For images elements you need to generate a png with transparency info in external tools or use special presets like my gfx_polygons. |
|
01-18-2023, 03:11 AM | #19 | |||
Human being with feelings
Join Date: Feb 2020
Location: germany
Posts: 381
|
Thanks, papagirafe, for taking time looking into the project and answering me!
Quote:
Quote:
Quote:
I did try your Overlay: text w/adjustable ol/sh/rot/pos. Did you mean this? I will browse your mentioned thread again to see, if I might have missed something. Thank you for your help!! (=
__________________
System: Win 10 64 bit / i9 9900K (8x 3.6 GHz) / 16 GB DDR4-3200 RAM / 1TB M.2 SSD + 2x 500 GB SSD / RME Babyface / Reaper Tagirijus.de |
|||
01-18-2023, 01:03 PM | #20 | |
Human being with feelings
Join Date: Aug 2020
Location: Brasil
Posts: 679
|
Quote:
Code:
//make transparent bg for text !project_wh_valid?(project_w=1280;project_h=720); colorspace='RGBA'; gfx_set(0,0,0,1,0,-1,0); //last '0' = alpha 2 = alpha plane opacity gfx_fillrect(0,0,project_w,project_h); Last edited by papagirafe; 01-18-2023 at 09:18 PM. Reason: code typo |
|
01-19-2023, 04:19 AM | #21 | ||
Human being with feelings
Join Date: Feb 2020
Location: germany
Posts: 381
|
Quote:
Quote:
Further info about my goal: The idea is that I want be able to have some kind of video processor effect (e.g. a chain or a combined script I would write), which I can use to make either PNG with alpha channel or the text video processor preset get a shadow so that I do not have to pre-render the text with shadow beforehand. I want to have a workflow where I will have some little overlay (little icon + text) in my video, where I can change the text in Reaper quickly without the need of an external program (like Affinity Designer or Photo) for every time I want to change only the text.
__________________
System: Win 10 64 bit / i9 9900K (8x 3.6 GHz) / 16 GB DDR4-3200 RAM / 1TB M.2 SSD + 2x 500 GB SSD / RME Babyface / Reaper Tagirijus.de |
||
01-21-2023, 07:41 PM | #22 | |
Human being with feelings
Join Date: Aug 2020
Location: Brasil
Posts: 679
|
Quote:
|
|
01-22-2023, 07:09 AM | #23 | ||
Human being with feelings
Join Date: Feb 2020
Location: germany
Posts: 381
|
Quote:
Quote:
But in the end I am going to come up with another solution for now: I do not use text for the sections like I first wanted to. Instead I am just using icons with pre-rendered smooth shadow into the PNG (working with Affinity Designer here). I guess this will do it for now. Still thanks for your help! (=
__________________
System: Win 10 64 bit / i9 9900K (8x 3.6 GHz) / 16 GB DDR4-3200 RAM / 1TB M.2 SSD + 2x 500 GB SSD / RME Babyface / Reaper Tagirijus.de |
||
01-22-2023, 08:16 PM | #24 | |
Human being with feelings
Join Date: Aug 2020
Location: Brasil
Posts: 679
|
Quote:
For shadows on icons: double the image with offset, once with reduced chromacity + half transparent, once normal then overlay |
|
01-23-2023, 03:14 AM | #25 | |
Human being with feelings
Join Date: Feb 2020
Location: germany
Posts: 381
|
Quote:
1. I cannot see any HQ parameter there. 2. The script seems to be a bit buggy here. Like some issue with caching or so. Like such a thing happens: I thought of something with a better workflow, after all. Like "being able to load an image asset once, apply an effect and just be lucky", hehe. Thanks anyway! (=
__________________
System: Win 10 64 bit / i9 9900K (8x 3.6 GHz) / 16 GB DDR4-3200 RAM / 1TB M.2 SSD + 2x 500 GB SSD / RME Babyface / Reaper Tagirijus.de |
|
01-23-2023, 02:23 PM | #26 | |
Human being with feelings
Join Date: Aug 2020
Location: Brasil
Posts: 679
|
Quote:
|
|
01-24-2023, 02:40 AM | #27 |
Human being with feelings
Join Date: Feb 2020
Location: germany
Posts: 381
|
Wow, cool. Looking forward to it! Thank you. (=
__________________
System: Win 10 64 bit / i9 9900K (8x 3.6 GHz) / 16 GB DDR4-3200 RAM / 1TB M.2 SSD + 2x 500 GB SSD / RME Babyface / Reaper Tagirijus.de |
Thread Tools | |
Display Modes | |
|
|