hudl / HudlFfmpeg

Hudl.Ffmpeg framework
Apache License 2.0
112 stars 32 forks source link

Blend opacity #89

Open idb- opened 7 years ago

idb- commented 7 years ago

I'm trying to blend 2 videos together, but do not see any type of support for all_opacity. Am I overlooking something here? Basically I want to overlay 1 video ontop of another and i want the top video to be semi-transparent. Any tips?

Casey-Bateman commented 7 years ago

The Blend Filter supports the c1_opacity, c0_opacity, c2_opacity, c3_opacity, all_opacity Options. That should cover that for you. https://github.com/hudl/HudlFfmpeg/blob/master/Hudl.FFmpeg/Filters/Blend.cs#L35

Also, if your top video has the transparency built in, you can just use the Overlay filter to achieve this.

Sorry for such a late reply