# NDI opacity on channel randomly does not work

**URL:** <https://casparcgforum.org/t/ndi-opacity-on-channel-randomly-does-not-work/6447>\
**Category:** General\
**Tags:** config, server\
**Created:** [March 2, 2024, 6:33am UTC](https://casparcgforum.org/t/ndi-opacity-on-channel-randomly-does-not-work/6447 "2024-03-02T06:33:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fdeigiudici](https://casparcgforum.org/user_avatar/casparcgforum.org/fdeigiudici/32/410_2.png) [@fdeigiudici](https://casparcgforum.org/u/fdeigiudici)\
**Post date:** [March 2, 2024, 6:33am UTC](https://casparcgforum.org/t/ndi-opacity-on-channel-randomly-does-not-work/6447/1 "2024-03-02T06:33:18Z")

</div>

Hello peeps!

Setting opacity on NDI channel:  
` _Caspar.Execute(String.Format("MIXER " & channel.ToString & "-" & layer.ToString & " " & "OPACITY " & opacity_value & " " & duration & " " & transition))`

time to time does not make any effect.  
So output on the consumer does not either appear or disappear.  
Adding a further screen consumer on the same channel fix the behaviour.  
Any one experienced the same?  
Thanks!

---

<div class="post-metadata">

**Author:** ![markusnygard](https://casparcgforum.org/user_avatar/casparcgforum.org/markusnygard/32/8_2.png) [@markusnygard](https://casparcgforum.org/u/markusnygard)\
**Post date:** [March 2, 2024, 8:29am UTC](https://casparcgforum.org/t/ndi-opacity-on-channel-randomly-does-not-work/6447/2 "2024-03-02T08:29:32Z")

</div>

Hi  
Has outputed NDI from CasparCG to vMix on a almost daily bases for 2 years without any problem with alpha in NDI.  
CasparCG is 2.3.3, vmix v26, sourcematerial HTML-templates (raw code and some done with Loopic) and PNG:s

---

<div class="post-metadata">

**Author:** ![didikunz](https://casparcgforum.org/user_avatar/casparcgforum.org/didikunz/32/7_2.png) [@didikunz](https://casparcgforum.org/u/didikunz)\
**Post date:** [March 2, 2024, 3:35pm UTC](https://casparcgforum.org/t/ndi-opacity-on-channel-randomly-does-not-work/6447/3 "2024-03-02T15:35:11Z")

</div>

> [@fdeigiudici](#):
>
> Setting opacity on NDI channel:  
> ` _Caspar.Execute(String.Format("MIXER " & channel.ToString & "-" & layer.ToString & " " & "OPACITY " & opacity_value & " " & duration & " " & transition))`

Maybe it should read `opacity_value.ToString`. What is the datatype and value of that `opacity_value` variable?

---

<div class="post-metadata">

**Author:** ![Mikelpapamike](https://casparcgforum.org/user_avatar/casparcgforum.org/mikelpapamike/32/1556_2.png) [@Mikelpapamike](https://casparcgforum.org/u/Mikelpapamike)\
**Post date:** [March 4, 2024, 9:51am UTC](https://casparcgforum.org/t/ndi-opacity-on-channel-randomly-does-not-work/6447/4 "2024-03-04T09:51:30Z")

</div>

As I’ve been working with NDI a lot lately, with CasparCG, vMix, OBS, NDI tools, NDI connect etc, I’ve noticed many times lag on NDI which was highly dependent on hardware I’ve been using, but none of them were CasparCG issue. As the command you’re using though is CasparCG MIXER and has nothing to do with NDI output, did you check that your NDI receiver is not showing any freeze frame in order to be able to see the change to the opacity?
