# muxing ip audio and ip video with ffmpeg

**URL:** <https://community.wowza.com/t/muxing-ip-audio-and-ip-video-with-ffmpeg/40754>\
**Category:** Wowza Streaming Engine\
**Created:** [August 2, 2013, 3:21pm UTC](https://community.wowza.com/t/muxing-ip-audio-and-ip-video-with-ffmpeg/40754 "2013-08-02T15:21:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brendan\_Thompson](https://avatars.discourse-cdn.com/v4/letter/b/3be4f8/32.png) [@Brendan\_Thompson](https://community.wowza.com/u/Brendan_Thompson)\
**Post date:** [August 2, 2013, 3:21pm UTC](https://community.wowza.com/t/muxing-ip-audio-and-ip-video-with-ffmpeg/40754/1 "2013-08-02T15:21:09Z")

</div>

Hi. This is more of a note than a question. I’ve been trying for the last several days to mux an ip audio and ip video signal that is then restreamed out to Wowza. I was completely unable to find a solution or get help but I finally figured it out so I wanted add this for people searching for a solution to this problem.

Still not sure how all the code works but here is the command line i’m using.

ffmpeg -i “rtsp://192.168.20.13/axis-media/media.amp?camera=5” -i “rtsp://192.168.20.24/axis-media/media.amp” -vcodec libx264 -vb 150000 -g 60 -vprofile baseline -level 2.1 -acodec aac -ab 64000 -ar 48000 -ac 2 -vbsf h264\_mp4toannexb -strict experimental -f mpegts udp://127.0.0.1:10000?pkt\_size=1316

This is very similar to the encoding with ffmpeg how to on this site but it add a second feed and omits the -re flag which was causing packet loss.

---

<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:** [August 3, 2013, 5:31pm UTC](https://community.wowza.com/t/muxing-ip-audio-and-ip-video-with-ffmpeg/40754/2 "2013-08-03T17:31:50Z")

</div>

Nice. Thanks for the example.

Richard
