I'm attempting to stream audio over rtp from the audio encoder. I've proven that the audio encoder works by sending the data from the encoder to a file and then playing that file - it works fine.
I'm using the ortp library provided (0.14.2).
I'm sending the audio encoder data using the following code:
static int encoder_audio_cb( void *bufp, int len )
{
int n;
n = rtp_session_send_with_ts( encoder_audio_rtp, bufp, len,
encoder_audio_ts );
encoder_audio_ts += 1024/*len*/;
}
encoder_audio_cb is called from the audio encoder code when the audio encoder has a buffer to be emptied.
I'm using the following sdp
v=0
o=- 653 1 IN IN4 10.0.3.247
s=CPN-5600 streaming audio
t=0 0
m=audio 10004 RTP/AVP 96
c=IN IP4 10.0.1.202
a=rtpmap:96 mpeg4-generic/48000/2
a=fmtp:96 streamtype=5;profile-level-id=15;mode=AAC-hbr;config=1190;sizeLength=13;indexLength=3;indexDeltaLength=3;constantDuration=1024
a=control:trackID=2
I can see data being transmitted to port 10004 by using tcpdump, but the decoder (vlc) doesn't seem to see anything. I can successfully send video using a similar setup, but audio does not work at all.
Any suggestions?