I have a video application that uses a custom encoder to encode video to H.264. The encoder can be configured to stream the video over RTP to an IP address. Normally I configure the encoder to stream it locally.
I am able to play the video in VLC and GStreamer using the SDP file generated by the encoder. While trying to access the stream with Wowza (installed on the same machine as the encoder) I get a java.net.BindException stating that the address is in use.
INFO server comment - RTPSessionDescriptionDataProviderBasic.getStreamInfo: /usr/local/WowzaMediaServerPro/content/streams/stream1.sdp
DEBUG server comment - cmd: setBufferTime
DEBUG server comment - sdp: v=0
DEBUG server comment - sdp: o=- 0 0 IN IP4 10.99.50.91
DEBUG server comment - sdp: s=RTP_H264_0
DEBUG server comment - sdp: c=IN IP4 0.0.0.0
DEBUG server comment - sdp: t=0 0
DEBUG server comment - sdp: m=video 8000 RTP/AVP 97
DEBUG session setbuffertime [114845166,1]: 750 750
DEBUG server comment - sdp: a=rtpmap:97 H264/90000
DEBUG server comment - sdp: a=fmtp:97 packetization-mode=0;profile-level-id=420033;sprop-parameter-sets=Z0IAM7kQFAX0IAAAfQAADqYQgA==,aM48gA==
INFO server comment - sortPackets[2]: sortBufferSize:500
DEBUG server comment - onFlushNotifyClients: true
DEBUG server comment - flushInterval: 50
DEBUG server comment - verboseDebug: false
INFO stream create - -
INFO stream create - -
DEBUG server comment - RTPDePacketizerRFC3984H264.init
INFO stream publish stream1.sdp -
INFO server comment - UDPTransport.bind: 0.0.0.0/0.0.0.0:8000
INFO server comment - UDPTransport.bind: 0.0.0.0/0.0.0.0:8001
ERROR server comment - RTPUDPListener.init: java.net.BindException: Address already in use
INFO server comment - UDPTransport.unbind: 0.0.0.0/0.0.0.0:8000
INFO server comment - RTPMediaCaster.Reconnector: stop
ERROR server comment - RTPUDPListener.init: java.net.BindException: Address already in use
INFO server comment - UDPTransport.unbind: 0.0.0.0/0.0.0.0:8001
I have found that if the encoder is configured to send the RTP stream to a different machine and I run Wowza on that machine, then I am able to play the video without any issues.
I have followed the NativeRTPVideoStreaming example, setting the stream type to rtp-live or rtp-live-lowlatency (i get the same error in either case).
Is there any other configuration needed to read an RTP stream?