# AvMixModule mixing problem of different mediacasters

**URL:** <https://community.wowza.com/t/avmixmodule-mixing-problem-of-different-mediacasters/34327>\
**Category:** Wowza Developer Dojo\
**Tags:** wowza-streaming-server-java-api\
**Created:** [December 7, 2015, 6:01am UTC](https://community.wowza.com/t/avmixmodule-mixing-problem-of-different-mediacasters/34327 "2015-12-07T06:01:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marcin\_Wozniak](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@Marcin\_Wozniak](https://community.wowza.com/u/Marcin_Wozniak)\
**Post date:** [December 7, 2015, 6:01am UTC](https://community.wowza.com/t/avmixmodule-mixing-problem-of-different-mediacasters/34327/1 "2015-12-07T06:01:42Z")

</div>

Hi,

I try to mux audio stream comming from rtsp with a shoutcast stream using AVMuxing mod.

I sucessfully started video merge but cannot combine it with audio. How can i mux video in application named “live” with audio from app called “audio”?

The problem is here:

```auto
IMediaStream localIMediaStream = this.appInstance.getStreams().getStream(this.audioName);

```

It searches for audio stream in itself context, which is not possible.

Maybe fix it this way?

```auto
IApplicationInstance audioInstance = application.getAppInstance("audio");
IMediaStream localIMediaStream = audioInstance .getStreams().getStream(this.audioName);

```

This is of course just a stub.

I cannot use in same app both rtp-live and shoutcast mediacaster. How to avoid that?

Marcin

---

<div class="post-metadata">

**Author:** ![Matt\_Young](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/matt_young/32/389_2.png) [@Matt\_Young](https://community.wowza.com/u/Matt_Young)\
**Post date:** [January 6, 2016, 9:22am UTC](https://community.wowza.com/t/avmixmodule-mixing-problem-of-different-mediacasters/34327/2 "2016-01-06T09:22:23Z")

</div>

Hello Marcin

I’d suggest restarting Wowza and running your use-case once more. Then zip up your conf/ and logs/ folders and sending them to support@wowza.com. If you made any changes to the module itself (from the default), please indicate as such upon submission and include the jar file.

Thanks,

Matt
