01-28-2021, 04:57 AM | #1 |
Human being with feelings
Join Date: Apr 2020
Posts: 3
|
Using Videos with alpha channel
Hi, I posted this in the main forum but realized this might be the better place to ask... sorry for the double post...
I'm trying to use videos with alpha transparency built in but the alpha only shows up as black and any elements behind are blocked out. Is there a way in Reaper to have transparency in videos without chroma key? Chroma key isn't what I'm after. Other video editors simply work. I use a lot of transparent elements... Is this doable in Reaper or should I do my video editing elsewhere? |
01-28-2021, 10:35 AM | #2 |
Human being with feelings
Join Date: Dec 2012
Posts: 7,293
|
I think you need to add the image overlay preset and set the appropriate parameter to use the source alpha.
__________________
Lorenzo's Tractor is Everywhere --- Ash's Tube --- Join the Partnership for a Drum Free Amerika |
01-28-2021, 02:12 PM | #3 |
Human being with feelings
Join Date: Jul 2009
Posts: 3,714
|
In Item Properties > Source Properties, you may also need to enable "Preserve transparency". (I don't know why this isn't enabled by default.)
|
01-30-2021, 06:55 AM | #4 |
Human being with feelings
Join Date: Apr 2020
Posts: 3
|
Hi, I can't seem to find the option to preserve Transparency in either the item properties or the source properties... I can't get this working to save my life lol... Image overlay still leaves it black...
|
01-30-2021, 05:20 PM | #5 |
Human being with feelings
Join Date: Jul 2009
Posts: 3,714
|
I quickly tested this with a transparent gif and a transparent mkv, and only the gif has that option in Source properties, so if your video doesn't give that option, it is probably not required.
The transparent mkv worked fine as long as I added the "Image overlay" video processor preset as a take or track FX. I don't know if REAPER can handle transparency in any and all video formats. Which format are you using? Would it be possible to upload a snippet of the video? EDIT: If I'm not mistaken, REAPER's video processor can choose from three colorspaces: RGBA, YV12, or YUY2. I wonder if that means that REAPER can't use alpha information of YUVA videos.
__________________
Scripts for advanced MIDI editing | LFO Tool for MIDI editor and envelopes Video thumbnail scripts | ReaScriptAPI extension Last edited by juliansader; 01-30-2021 at 10:50 PM. |
05-09-2021, 06:12 AM | #6 | |
Human being with feelings
Join Date: Feb 2020
Location: nice (fr)
Posts: 5
|
Quote:
Video: 960x720@25.00fps, Aspect=1.00, Decoding format=I420/YV12 Using ffmpeg/libav DLL decoder v58.91.100 Video: tiff (tiff / 0x66666974), rgba, 960x720 [SAR 1:1 DAR 4:3] - converted from pixfmt 26 The transparency doesn't show up with image overlay preset. I've tried with a gif file and it works when "preserve transparency" is enabled. Could you mention the video format and pixel format of mkv files showing transparency? Last edited by patko; 05-09-2021 at 06:21 AM. |
|
09-09-2021, 12:50 PM | #7 |
Human being with feelings
Join Date: Jul 2009
Posts: 3,714
|
I recently played around with transparent videos again.
As I guessed in my previous comment, REAPER doesn't seem to recognize the alpha channel of YUVA-encoded videos. Only RGBA-based formats (rgba, bgrp, rgb32, etc) can provide an alpha channel. If a video is encoded in a YUV format, there are two (or more) solutions: 1) Convert the video to RGBA. FFMPEG's own FFV1 format is a good lossless option: Code:
ffmpeg -vcodec libvpx-vp9 -i input.webm -vcodec ffv1 -pix_fmt rgb32 output.mkv 2) Extract the alpha channel to a separate greyscale video, and then use that as a transparency mask with wwwmaze's video script: Code:
ffmpeg -vcodec libvpx-vp9 -i input.webm -vf alphaextract mask.mp4 |
10-22-2022, 08:36 AM | #8 | |
Human being with feelings
Join Date: Aug 2020
Location: Brasil
Posts: 690
|
Quote:
I am resurecting an old thread here but the information julainsader provided here proved crucial making it work in my project. I have a video source pre-processing project consisting of about 50 sources to which (among other transformations) I am adding an alpha transparency frame. I needed to render each source in a format that supports RGB+alpha. SO far the only combinations that work using the extended FFMPEG lib are - mkv or avi container + FFV1 - mkv or avi container + HUFYuv but they generate huge files (lossless!) I know that WEBM + FP9 should work but all my sources are in YV12 and the resulting file also. Is there a way to hack FFMpeg in Reaper into generating an RGBA file? Last edited by papagirafe; 10-22-2022 at 04:29 PM. Reason: incorrect info |
|
Thread Tools | |
Display Modes | |
|
|