Why Alpha Channel on Uncompressed only?

Comments

ritsmer wrote on 10/7/2013, 2:48 AM
@ malowz - just tried another codec not supporting alpha and quite as expected it rendered Ok - but just without an alpha channel.

@Jedman - IMHO that is not allowed according to the license agreement.
robwood wrote on 10/7/2013, 12:09 PM
how about HuffYUV? it's AVI, has alpha, can be flagged as YUV or RGB.

caveat: occasionally i get a black frame when i render (about 1 in 15 projects).
malowz wrote on 10/7/2013, 12:35 PM
i believe the black frames is a vegas problems, not codec problem.

i had black/red frames editing AVCHD files, DV files, AVI with Canopus HQ...
robwood wrote on 10/7/2013, 1:24 PM
oops, should have written inverted frame, not black frame.
Jedman wrote on 10/7/2013, 4:26 PM
@ritsmer.
Shhhhh. We wont tell anyone. Promise.
malowz wrote on 10/7/2013, 8:13 PM
well, inverted frame may be codec issue ;)
malowz wrote on 4/30/2015, 9:12 PM
For interested ones, address for vegas 13 b444

Address: 39FB8
change 750A with 9090

tested and working fine.
ritsmer wrote on 5/1/2015, 7:40 AM
Great! Thank you malowz!

And, BTW: this "improvement" should work for Lagarith with an alpha channel too.
Use it in V12 all the time.
malowz wrote on 5/1/2015, 7:37 PM
Yes, should work with any alpha-capable codec.

i believe is just change the video send to the codec, instead of RGB24 to RGB32.

most codecs that do not accept alpha, will just discard the alpha layer, and encode normally.

but if your video has alpha, is best to enable the option only if using a alpha-capable codec. cause in the alpha areas the image may appear different, as the video expect the alpha channel to be added and remove those transparent areas. so, only enable alpha to the codec if alpha will be preserved. easy to make a template especially for it.

I'm using with alpha on the Canopus HQ codec (testing HQX now), in After Effects, Vegas and Boris Red. Works fine.
malowz wrote on 6/27/2015, 11:13 PM
b453 have the same address.

Address: 39FB8
change 750A with 9090
wwaag wrote on 6/30/2015, 10:40 PM
@malowz

Finally got this to working and it's really great with Canopus HQ. I've been doing some map animations (http://www.sonycreativesoftware.com/forums/showmessage.asp?forumid=4&messageid=925516) and wanted to render just the alpha track movement so I could speed it up or slow it down at particular points. For a 12 sec track, the uncompressed avi rendered at 5881 MB, Canopus HQ only 58 mb (Project 1080 60P). A 100 to 1 difference in storage and so much faster to preview--what a savings. Thanks so much for this work and sharing.

wwaag

AKA the HappyOtter at https://tools4vegas.com/. System 1: Intel i7-8700k with HD 630 graphics plus an Nvidia RTX4070 graphics card. System 2: Intel i7-3770k with HD 4000 graphics plus an AMD RX550 graphics card. System 3: Laptop. Dell Inspiron Plus 16. Intel i7-11800H, Intel Graphics. Current cameras include Panasonic FZ2500, GoPro Hero11 and Hero8 Black plus a myriad of smartPhone, pocket cameras, video cameras and film cameras going back to the original Nikon S.

ritsmer wrote on 7/1/2015, 3:08 AM
+1 for malowz for keeping track.

Really hope that we get a Settings Entry for this in 14...
... and that Disable "Smart" resample is ON for default too.

These 2 things would (probably) cost next to no programming time to make - but be a great, daily help to many of us.

The resample issue has become more important as many have existing 25/30 Fps cameras and add 50/60 Fps cameras when we buy new ones.
malowz wrote on 9/30/2016, 3:11 AM

v14 b161

Address: 3A098
change 750A with 9090

NickHope wrote on 9/30/2016, 3:30 AM

Thanks Malowz!

The "Render alpha channel (uncompressed video formats only)" option in Vegas should be enabled for all VFW codecs and changed to something like "Render alpha channel (supported video formats only)". Adding it to my wishlist.

RogerKroksleiven wrote on 10/4/2016, 5:09 PM

Malowz, how would you modify the aviplug.dll for Vegas 10?

wwaag wrote on 1/18/2019, 12:20 AM

Any updates to locations on V15 or V16? Just curious. How does one go about finding these addresses?? While the change is the same, the addresses are different.

AKA the HappyOtter at https://tools4vegas.com/. System 1: Intel i7-8700k with HD 630 graphics plus an Nvidia RTX4070 graphics card. System 2: Intel i7-3770k with HD 4000 graphics plus an AMD RX550 graphics card. System 3: Laptop. Dell Inspiron Plus 16. Intel i7-11800H, Intel Graphics. Current cameras include Panasonic FZ2500, GoPro Hero11 and Hero8 Black plus a myriad of smartPhone, pocket cameras, video cameras and film cameras going back to the original Nikon S.

Former user wrote on 1/18/2019, 12:49 AM

Any updates to locations on V15 or V16? Just curious. How does one go about finding these addresses?? While the change is the same, the addresses are different.

+1 @wwaag @malowz

Enabling this alpha channel functionality in uncompressed files is of great importance to anyone who works with video editing.

I found this video showing how to enable this function in Vegas Pro 14, 15 and 16. I would also like to know how to use an HEX editor in these files and make that kind of change in the file aviplug.dll

malowz wrote on 1/18/2019, 4:35 AM

As i'm stuck in v14, i din't check for offset in newer versions, but you guys are doing a great job on your own! So proud! :D

Musicvid wrote on 1/18/2019, 9:24 AM

As with me, Malowz. I don't consider myself stuck in 14, however, as my needs haven't changed much.

wwaag wrote on 1/18/2019, 7:03 PM

Just figured out how to do this using the hex editor HxD. (https://mh-nexus.de/en/hxd/ ) To find the offset address, I found that the easiest way was to do a search (Ctrl-F) with the tab Hex-values selected and the following string 33 74 07 3D 4D 31 30 34 75 0A C7 86 D8 00 00 00 as the values to be searched. The string is a bit of overkill, but if you search for only the values 75 0A, you will get over a hundred hits. With this string, you will find only the correct one. Here is a screen shot.

Enter OK and the selected values will be highlighted. Then change the values 750A to 9090 (courtesy of Malowz). The edited values will turn red. Enter save and you're done.

Here are the address offsets for the following Vegas versions:

v12 build 770 3AD72
v13 build 453 39FB8   
v14 build 270 39FE8  
v15 build 384 3A378
v16 build 352 3CCF1

A couple of tips. Make sure you backup the original aviplug.dll. Copy the plugin to another directory (not in C) before making changes. Once changes are made, then copy back to the correct Vegas directory--e.g. "C:\Program Files\VEGAS\VEGAS Pro 16.0\FileIO Plug-Ins\aviplug" in Vegas 16.

Once you start Vegas you can verify its working OK by first selecting a render template and then open the Customize Template dialog. You will see that Render Alpha channel is no longer grayed out.

I have tested alpha support for Canopus HQ, Canopus HQX, Magic YUV-RGBA, and UtVideo RGBA VCM. All worked without issue in versions 12-16.

One final thing. Don't forget to change the rendered file properties Alpha Channel from None to Premultiplied or Straight (Unmatted).

And now a plug. If you use the RenderEvents tool in Happy Otter Scripts (https://tools4vegas.com/), there is an option, thanks to Grazie, to automatically set the alpha channel property--a time saver if you have lots of events to render.

Last changed by wwaag on 1/18/2019, 7:21 PM, changed a total of 1 times.

AKA the HappyOtter at https://tools4vegas.com/. System 1: Intel i7-8700k with HD 630 graphics plus an Nvidia RTX4070 graphics card. System 2: Intel i7-3770k with HD 4000 graphics plus an AMD RX550 graphics card. System 3: Laptop. Dell Inspiron Plus 16. Intel i7-11800H, Intel Graphics. Current cameras include Panasonic FZ2500, GoPro Hero11 and Hero8 Black plus a myriad of smartPhone, pocket cameras, video cameras and film cameras going back to the original Nikon S.

Musicvid wrote on 1/18/2019, 7:36 PM

Would it be appropriate to ask if a modified aviplug is available to download?

wwaag wrote on 1/18/2019, 10:03 PM

It's OK to ask, but probably not OK to make such a download readily available.

AKA the HappyOtter at https://tools4vegas.com/. System 1: Intel i7-8700k with HD 630 graphics plus an Nvidia RTX4070 graphics card. System 2: Intel i7-3770k with HD 4000 graphics plus an AMD RX550 graphics card. System 3: Laptop. Dell Inspiron Plus 16. Intel i7-11800H, Intel Graphics. Current cameras include Panasonic FZ2500, GoPro Hero11 and Hero8 Black plus a myriad of smartPhone, pocket cameras, video cameras and film cameras going back to the original Nikon S.

malowz wrote on 8/20/2019, 3:55 AM

v17 b284 3CCA1

make sure to check/un-check the alpha option to the AVI presets you render.

Former user wrote on 8/22/2019, 9:11 PM

v17 b284 3CCA1

make sure to check/un-check the alpha option to the AVI presets you render.


That's useless to people who are fine with the version they're on but otherwise need the ability to render alpha channels in files using CODECs installed on the PC that support Alpha.

Up to VP16, it won't let you use Alpha in any format that isn't uncompressed.

A "bug fix" (by design or otherwise) is not worth such a steep upgrade cost.