[Live-devel] RTP PCMU-audio and H263-video problem?

wei su suwei19870312 at gmail.com
Tue Apr 27 22:11:55 PDT 2010


hi *Ross:*
*I need some help!
*
*I recently use live555 to implement a RTP streaming relay, I have to relay
PCMU-audio and H263-video from a media server to RTSP client,*
*when I only relay PCMU-audio or H263-video it works ok, but when i want
relay both of them it works weird,*
*it can send aduio in 2 seconds, and then re-cache the rtp streaming, then
the audio can't be send
*
*, but video works well. I am sorry my english is not good.*
*this is frame work of my PCMU-audio  relay:*
*1. I use SimpleRTPSource::createNEW() to get the RTP streaming.*
*2. I use SimpleRTPSink::createNEW() to create audioSink.*
*3.I use audioSink to play audioSource. *
*and it works well.*
*
*
*this is frame work of my H263-video relay:*
*1. I use SimpleRTPSource::createNew() to get the RTP streaming.*
*2. I use H263plusVideoStreamFramer::createNew() to create video source.*
*3. I use H263plusVideoRTPSink::createNew() to create video sink.*
*4. I use videosink to play videosource.*
*an it works well.*
*
*
*but after relay both of them. it woks weird.*
*1. ServerMediaSession* sms = ServerMediaSession::createNew(*env, 8554).*
*2. RTSPServer* rtspServer = RTSPServer::createNew(*ene, 8554).*
*3. sms->addSubsession(PassiveServerMediaSubsession::create(*audiosink,
audioRTCP)).*
*4. sms->addSubsession(PassiveServerMediaSubsession::create(*videosink,
videoRTCP)).*
*5. rtspServer->addServerMediaSession(sms);*
*6. audioSink->startPlaying(*aduioSource, afterPlaying, audioSink);*
*7. videoSink->startPlaying(*videoSource, afterPlaying, videoSink);*
*
*
*
*
*
*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20100428/ba9a0f70/attachment-0001.html>


More information about the live-devel mailing list