[Live-devel] H.264 Streaming from Live H.264 source
vikas srivastava
vikasjkmcs2005 at yahoo.co.in
Sun Mar 21 19:00:36 PDT 2010
Hi Developers,
I have requirement to create streaming in H.264 , i am receiving stream from live source(in H.264 format) and i have to re-stream it to another ip/port.
for that i have edited openRTSP and added one more option for re-streaming and added following code.
RTPSink* videoSink;
iter.reset();
{while((subsession = iter.next()) != NULL) //***************Create our RTPsink variables...// Create 'groupsocks' for RTP and RTCP:charconst* destinationAddressStr = "10.69.169.149";constunsignedshortrtpPortNum = 8888;constunsignedshortrtcpPortNum = rtpPortNum+1;constunsignedcharttl = 7; // low, in case routers don't admin scopedestinationAddress.s_addr = our_inet_addr(destinationAddressStr);
Groupsock rtpGroupsock(*env, destinationAddress, rtpPort, ttl);
Groupsock rtcpGroupsock(*env, destinationAddress, rtcpPort, ttl);structin_addr destinationAddress;constPort rtpPort(rtpPortNum);constPort rtcpPort(rtcpPortNum);//Create our sink...videoSink = H264VideoRTPSink::createNew(*env, &rtpGroupsock,subsession->rtpPayloadFormat(),subsession->fmtp_profile_level_id(),subsession->fmtp_spropparametersets());
*env <<
exit(1);
}if(videoSink == NULL){"Unable to create sink \n";//********************************************** subsession->sink = videoSink;
subsession->sink->startPlaying(*(subsession->readSource()),subsessionAfterPlaying,subsession);
}
But i am unable to play stream , i am using VLC player.
Can anybody help me out,
for rtpPayloadFormat,profile_level_id,sprop_parameter_sets_str in H264VideoRTPSink::createNew , i am putting whatever i am getting from live source.
Thanks
Vikas Srivastava
The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20100322/a927cb07/attachment.html>
More information about the live-devel
mailing list