muxing ip audio and ip video with ffmpeg

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.

Nice. Thanks for the example.

Richard