# Multiple input streams and one output streams

**URL:** https://community.wowza.com/t/multiple-input-streams-and-one-output-streams/48092
**Category:** Wowza Streaming Engine
**Created:** [January 30, 2017, 11:13pm UTC](https://community.wowza.com/t/multiple-input-streams-and-one-output-streams/48092 "2017-01-30T23:13:56Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Juan\_Calle](https://avatars.discourse-cdn.com/v4/letter/j/cc9497/32.png) [@Juan\_Calle](https://community.wowza.com/u/Juan_Calle)
#### Post date: [January 30, 2017, 11:13pm UTC](https://community.wowza.com/t/multiple-input-streams-and-one-output-streams/48092/1 "2017-01-30T23:13:56Z")

</div>

I want to have multiple input streams from different devices and one specified output.

The way I was thinking of doing this that on my first connection I duplicate my stream (for example “mystream1”) and call the second stream something like “output”. I have a flowplayer that subscribes to that “output”. Then if a second or a third stream appears(Ex.: “mystream2” and/or “mystream3”) I will be able to switch which stream is feeding the output stream. The final user wont see the changes just keeps watching the same stream.

Also is it possible to use a user and password for all streams except that output. I want that output to be public.

---

<div class="post-metadata">

### Author: ![Jason\_Hilton](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_hilton/32/437_2.png) [@Jason\_Hilton](https://community.wowza.com/u/Jason_Hilton)
#### Post date: [February 3, 2017, 11:50am UTC](https://community.wowza.com/t/multiple-input-streams-and-one-output-streams/48092/2 "2017-02-03T11:50:16Z")

</div>

Hi,

You could publish multiple streams and switch between them on the player side by referencing the streams within a .smil file.

Alternatively, you could write a custom Module that uses the functionality that’s in the [ModuleLoopUntilLive](https://www.wowza.com/docs/how-to-loop-a-pre-roll-until-a-live-stream-starts-loopuntillive%28ModuleLoopUntilLive%29) which allows the source of a playback stream to be switched while the player remains connected.

If you need assistance writing a custom Module, we have a list of independent consultants which is available on request but this will require that you [open a ticket with our support team](https://www.wowza.com/support/open-ticket)

Alternatively you can post in our [Find a consultant forum](http://community.wowza.com/c/-/7) for assistance.

Regards,

**Jason Hilton**

Technical Support Engineer

Wowza Media Systems

---

<div class="post-metadata">

### Author: ![Juan\_Calle](https://avatars.discourse-cdn.com/v4/letter/j/cc9497/32.png) [@Juan\_Calle](https://community.wowza.com/u/Juan_Calle)
#### Post date: [February 3, 2017, 9:18pm UTC](https://community.wowza.com/t/multiple-input-streams-and-one-output-streams/48092/3 "2017-02-03T21:18:15Z")

</div>

Looking around I found many thing that people might find usefull

[https://www.wowza.com/forums/showthread.php?34921-Multiple-inputs-and-multiple-outputs](https://www.wowza.com/forums/showthread.php?34921-Multiple-inputs-and-multiple-outputs)

and this, that apparently does what I asked for

[https://www.wowza.com/docs/how-to-switch-streams-using-stream-class-streams](https://www.wowza.com/docs/how-to-switch-streams-using-stream-class-streams)
