# Can wowza mix two streams? Server-side video editing

**URL:** <https://community.wowza.com/t/can-wowza-mix-two-streams-server-side-video-editing/35028>\
**Category:** Wowza Streaming Engine\
**Created:** [July 12, 2010, 11:18pm UTC](https://community.wowza.com/t/can-wowza-mix-two-streams-server-side-video-editing/35028 "2010-07-12T23:18:35Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![J\_V](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@J\_V](https://community.wowza.com/u/J_V)\
**Post date:** [July 12, 2010, 11:18pm UTC](https://community.wowza.com/t/can-wowza-mix-two-streams-server-side-video-editing/35028/1 "2010-07-12T23:18:35Z")

</div>

Is it possible to do this:

Take incoming stream A and incoming stream B and mix them together to broadcast A and B

in single stream C.

While scaling A and B sizes to fit to screen of C.

Server-side video editing?

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [July 12, 2010, 9:29pm UTC](https://community.wowza.com/t/can-wowza-mix-two-streams-server-side-video-editing/35028/2 "2010-07-12T21:29:03Z")

</div>

Wowza doesn’t do transcoding, so not really. At some low-level, these kinds of things might be possible, but not for practical purposes.

Richard

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [July 23, 2011, 4:11am UTC](https://community.wowza.com/t/can-wowza-mix-two-streams-server-side-video-editing/35028/3 "2011-07-23T04:11:14Z")

</div>

Wowza Media Server 3 Transcoder does do transcoding but the initial release will not support video overlays.

Charlie

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [July 13, 2010, 12:02pm UTC](https://community.wowza.com/t/can-wowza-mix-two-streams-server-side-video-editing/35028/4 "2010-07-13T12:02:50Z")

</div>

I’m not sure. I don’t think it’s the right platform to build an editing tool.

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [April 16, 2011, 12:32pm UTC](https://community.wowza.com/t/can-wowza-mix-two-streams-server-side-video-editing/35028/5 "2011-04-16T12:32:30Z")

</div>

Anton,

It is definitely possible to do all that. It is not simple, but it is typical and straight-forward Wowza/Flash application.

The fundamental starting place for you would be the ServersideModules example that ships with Wowza in the examples folder, and the IDE and its guide:

[http://wowza.com/ide.html](http://wowza.com/ide.html)

Also look at the VideoChat example, and here is slightly more involved VideoChat example that shows basic av presence using sharedObjects

> [@Wowza/Flex AV Chat example](http://community.wowza.com/t/-/234):
>
> This is a Flex version of the Wowza videoChat example, with application module to track users and streams in shared objects. Wowza and Flex source files are attached. Steps: Copy the jar file from the package /lib folder to Wowza lib folder. Create an application named “avchat”, then add this Module /conf/avchat/Application.xml /Modules list. Make it the last one: \<Module\> \<Name\>avchat\</Name\> \<Description\>AV Chat support\</Description\> \<Class\>com.lakesidetechn…

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [April 18, 2011, 12:15pm UTC](https://community.wowza.com/t/can-wowza-mix-two-streams-server-side-video-editing/35028/6 "2011-04-18T12:15:40Z")

</div>

Anton,

If the delay is only client-side in some (slow connection) cases, and the streams are in sync from encoders to Wowza, then you might inject cuepoints with timestamps in each stream, and devise some client-side process for checking and adjusting.

[https://www.wowza.com/docs/how-to-inject-cue-points-or-metadata](https://www.wowza.com/docs/how-to-inject-cue-points-or-metadata)

Having said that, I’m really not sure how you would make the adjustment client-side. You can’t pause a live stream so that one will catch up. Maybe you can re-subscribe to one or both if they are out of sync.

Richard

---

<div class="post-metadata">

**Author:** ![J\_V](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@J\_V](https://community.wowza.com/u/J_V)\
**Post date:** [July 12, 2010, 11:53pm UTC](https://community.wowza.com/t/can-wowza-mix-two-streams-server-side-video-editing/35028/7 "2010-07-12T23:53:12Z")

</div>

Is it possible in client side Flash?

Mixing or editing stream together?

---

<div class="post-metadata">

**Author:** ![Anton\_Evangelatov](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@Anton\_Evangelatov](https://community.wowza.com/u/Anton_Evangelatov)\
**Post date:** [April 15, 2011, 5:19am UTC](https://community.wowza.com/t/can-wowza-mix-two-streams-server-side-video-editing/35028/8 "2011-04-15T05:19:58Z")

</div>

I am interested in something similar as well.

We would be having two venues, and both venues will be streaming live video… The idea is to have one final stream, where A and B are merged…

Do you think it is possible with Flash streaming and Wowza? Venue A starts streaming… at one point they pass on to Venue B (at which point both streams are shown in the same player, so that speaker A, introduces speaker B, and then speaker B from Venue B continues with the rest.

Any ideas on how to display live streams that collaborate from 2 venues are appreciated.

Best regards,

Anton

---

<div class="post-metadata">

**Author:** ![Anton\_Evangelatov](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@Anton\_Evangelatov](https://community.wowza.com/u/Anton_Evangelatov)\
**Post date:** [April 16, 2011, 5:54am UTC](https://community.wowza.com/t/can-wowza-mix-two-streams-server-side-video-editing/35028/9 "2011-04-16T05:54:56Z")

</div>

Thanks Richard!

I will definitely look up those examples, start working on it and see what happens.

One more question - I have noticed a number of times that when I stream live video, some clients who don’t have enough bandwidth will be building up delay… at one point lets say 1-2min. delay on a 3 hour event. If I start collaborating with 2 streams at one point (when speaker A introduces speaker B, and the final stream starts eventually showing the stream from venue B), how can I be sure that they are mixed at the proper time? Considering that the delay at the client-side might be different for different clients? Or will they just see that point of collaboration in the stream with their own delay when they get to this point (few minutes later).

I hope what I said above is clear enough 🙂

Best regards,

Anton

---

<div class="post-metadata">

**Author:** ![David\_Reich](https://avatars.discourse-cdn.com/v4/letter/d/e47774/32.png) [@David\_Reich](https://community.wowza.com/u/David_Reich)\
**Post date:** [October 17, 2011, 3:14pm UTC](https://community.wowza.com/t/can-wowza-mix-two-streams-server-side-video-editing/35028/10 "2011-10-17T15:14:54Z")

</div>

I don’t know if anyone is still looking for this, but if you don’t want to wait for this feature to show up someplace reasonable (i.e. Wowza) it is possible to do this in DirectShow (I know, ugh!).

You can either modify one of the example filters from MS, or even look at paying for some overlay filters from Leadtools.

However, to do this you have to enter the morass of DirectShow.

David

---

<div class="post-metadata">

**Author:** ![Bertran\_Harden](https://avatars.discourse-cdn.com/v4/letter/b/ecb155/32.png) [@Bertran\_Harden](https://community.wowza.com/u/Bertran_Harden)\
**Post date:** [May 25, 2011, 8:25am UTC](https://community.wowza.com/t/can-wowza-mix-two-streams-server-side-video-editing/35028/11 "2011-05-25T08:25:18Z")

</div>

My question is can I combine an alpha channel video on top of webcam video to make one final video.

So video A is webcam video (it could be any) and there is alpha channel video B on top. So you can see the video A below the alpha channel of video B.

So I want to turn video A and B into one. A union, not concatenation.

Video A will determine the length of the final video.

---

<div class="post-metadata">

**Author:** ![Phone\_Review\_tom](https://avatars.discourse-cdn.com/v4/letter/p/f0a364/32.png) [@Phone\_Review\_tom](https://community.wowza.com/u/Phone_Review_tom)\
**Post date:** [July 23, 2011, 12:55am UTC](https://community.wowza.com/t/can-wowza-mix-two-streams-server-side-video-editing/35028/12 "2011-07-23T00:55:42Z")

</div>

Wowza doesn’t do transcoding, so not really.Is it possible in client side Flash?
