Wowza Community

height, width of native RTP stream

I understand that when Wowza receives a native RTP stream, it doesn’t get any height, width information within the RTP stream itself. Is there any way to specify it explicitly in the SDP file?

I’m running into difficulty with flowplayer, which thinks the stream has a width and height of 0. It would be great if Wowza could inject the frame size into the RTMP metadata…

Try adding this to the SDP file in the video section:

m=video 5434 RTP/AVP 97
c=IN IP4 233.154.234.163/15/1
a=rtpmap:97 H264/90000
a=fmtp:97 packetization-mode=1;profile-level-id=4D401E;sprop-parameter-sets=J01AHqkYPBf8uANQYBBrbCte98BA,KN4JF6A=
a=cliprect:0,0,360,480
a=framesize:97 480-360
b=AS:1372
[code]
See the framesize value here:
a=framesize:97 480-360
This should work. just needs to be in the video section. The first number needs to match the last number on this line:
m=video 5434 RTP/AVP 97
Charlie

Fantastic – thanks, Charlie! I added this

a=cliprect:0,0,324,432

a=framesize:96 432-324

(I used 96 because my m=video line looked like this:

m=video 9000 RTP/AVP 96

)

My frames are 432x324. I did a little experimentation, and it seems that I really only need the framesize line.

Thanks for the quick and helpful response!