Wowza Community

What parameter of sdp needs change to differentiate

Hi,

I would like to check to send 2 video streams to wowza account using 2 sdp files from the same origin/host.

I would like to know what parameters of the sdp file needs to be changed such that 2 video streams should not mixup/overlap.

Thanks.

Hello @Kiran Patil, I checked for you and you should be able to stream from the same origin/host by using a different port number. Can you try that and let me know? Thanks.

“m=” is used to listen audio and video with the associated ports.

https://tools.ietf.org/html/rfc4566#section-5.14

“a= rtpmap” is used to map different inputs.

https://tools.ietf.org/html/rfc4566#section-6

FFmpeg can provide an example.

ffmpeg.exe -re -i input.mp4 -vcodec copy -an -f rtp rtp://192.168.1.23:10002 -vn -acodec copy -f rtp rtp://192.168.23.1:10000

This is what it output. I have added a blank line to differentiate between audio and video.

v=0
o=- 0 0 IN IP4 127.0.0.1
s=No Name
t=0 0
a=tool:libavformat 58.9.100

m=video 10002 RTP/AVP 96
c=IN IP4 192.168.1.23
b=AS:999
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1; sprop-parameter-sets=Z2QAHqzZQLQ9v/AAgACRAAADAGQAABdqDxYtlg==,aOvhM8jw; profile-level-id=64001E

m=audio 10000 RTP/AVP 97
c=IN IP4 192.168.23.1
b=AS:351
a=rtpmap:97 MPEG4-GENERIC/48000/2
a=fmtp:97 profile-level-id=1;mode=AAC-hbr;sizelength=13;indexlength=3;indexdeltalength=3; config=119056E500

Ensure that each SDP file has no overlap for different audio or video streams. Do not create SDP files by hand.