# Muxing video and audio stream

**URL:** <https://community.wowza.com/t/muxing-video-and-audio-stream/36782>\
**Category:** Wowza Streaming Engine\
**Created:** [June 16, 2011, 9:27am UTC](https://community.wowza.com/t/muxing-video-and-audio-stream/36782 "2011-06-16T09:27:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim\_No](https://avatars.discourse-cdn.com/v4/letter/t/e79b87/32.png) [@Tim\_No](https://community.wowza.com/u/Tim_No)\
**Post date:** [June 16, 2011, 9:27am UTC](https://community.wowza.com/t/muxing-video-and-audio-stream/36782/1 "2011-06-16T09:27:38Z")

</div>

I have two separate streams, one audio and one video stream. The video stream comes from an Axis IP Camera (h264) and the audio streams is from a Barix Instreamer (mpga). What I want to have is an single stream with the video from the IP camera and the audio from the audio encoder. I found out that this is called muxing, however I cannot find how to do this.

**Codec informatie from VLC**

_Audio (can be adjusted in the Barix when necessary_

Type: Audio

Codec: MPEG Audio Layer 1/2/3 (mpga)

Channels: Stereo

Sample rate: 24000 Hz

Bitrate 160 kb/s

_Video_

Type: Video

Codec: H264 - MPEG-4 AVC (part10)(h264)

Resolution: 1280x720

The Wowza software is runnig on Ubuntu 11.04 Server x64.

Can someone help me with this?

---

<div class="post-metadata">

**Author:** ![Tim\_No](https://avatars.discourse-cdn.com/v4/letter/t/e79b87/32.png) [@Tim\_No](https://community.wowza.com/u/Tim_No)\
**Post date:** [June 30, 2011, 8:21am UTC](https://community.wowza.com/t/muxing-video-and-audio-stream/36782/2 "2011-06-30T08:21:48Z")

</div>

I’m trying it with VLC but cannot figure out how to use multiple input streams and mux them into one transportstream. Also tried ffmpeg which is working fine with static files, however I can’t get it to work with live streams.

---

<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:** [June 30, 2011, 3:50am UTC](https://community.wowza.com/t/muxing-video-and-audio-stream/36782/3 "2011-06-30T03:50:24Z")

</div>

There is no way to do this with Wowza. You might be able to do it with ffmpeg but I do not know the details.

Charlie

---

<div class="post-metadata">

**Author:** ![Randall\_Auriemma](https://avatars.discourse-cdn.com/v4/letter/r/85e7bf/32.png) [@Randall\_Auriemma](https://community.wowza.com/u/Randall_Auriemma)\
**Post date:** [July 7, 2011, 8:05am UTC](https://community.wowza.com/t/muxing-video-and-audio-stream/36782/4 "2011-07-07T08:05:20Z")

</div>

Hi icarus,

Try posting your ffmpeg commands that work muxing VOD files. And also try posting what you’ve tried that doesn’t work. Maybe someone will have a suggestion.

---

<div class="post-metadata">

**Author:** ![Tim\_No](https://avatars.discourse-cdn.com/v4/letter/t/e79b87/32.png) [@Tim\_No](https://community.wowza.com/u/Tim_No)\
**Post date:** [July 7, 2011, 10:29am UTC](https://community.wowza.com/t/muxing-video-and-audio-stream/36782/5 "2011-07-07T10:29:29Z")

</div>

Thanks for the reply.

Unfortunately I can’t figure out how to do this with ffmpeg either. It sounds easy just to combine two ip streams but it seems like there is no way to do this, although I still think it should be possible…

---

<div class="post-metadata">

**Author:** ![Tim\_No](https://avatars.discourse-cdn.com/v4/letter/t/e79b87/32.png) [@Tim\_No](https://community.wowza.com/u/Tim_No)\
**Post date:** [October 17, 2011, 12:01pm UTC](https://community.wowza.com/t/muxing-video-and-audio-stream/36782/6 "2011-10-17T12:01:59Z")

</div>

In the end I solved it by using another Axis IP camera, one that has an audio input and is able to mux this internally. Using Wowza to distribute this h.264 streams to my clients is working fine! Thanks for the suggestions and the help 🙂
