[Live-devel] implement a socket to listen for incomming packets inliveMedia

David Lo davidlo.net at msa.hinet.net
Tue Apr 24 21:10:35 PDT 2007


 

Sorry, let me elaborate a little more.

 

I'm trying to feed a live stream mpeg4 data to mediaServer instead of 

using a file. I've also created a new class
MPEG4VideoFileServerMediaSubssionRoute

which is based on MPEG4VideoFileServerMediaSubssionRoute except, it's taking
the input

from a BasicUDPSource instead of a ByteStreamFileSource. It all compiles out
okay,

and it could run as well, But when I try to connect to the server with a
player. Then,

the server give out a "Segmentation fault" message. I believe that
MPEG4VideoStreamFramer

take in FramedSource. Which both BasicUDPSource and ByteStreamFileSource
represents.

Did I do something wrong? I've provided a snippet on the implementations.

 

FramedSource* MPEG4VideoFileServerMediaSubsessionRoute

::createNewStreamSource(unsigned /*clientSessionId*/, unsigned& estBitrate)
{

  estBitrate = 500; // kbps, estimate 

 

  char* inputAddressStr  = "239.255.42.42";

  struct in_addr inputAddress;

  inputAddress.s_addr = our_inet_addr(inputAddressStr);

 

  Port const inputPort(fportNum);

  unsigned char const inputTTL = 0; // we're only reading from this mcast
group  

  Groupsock inputGroupsock(envir(), inputAddress, inputPort, inputTTL);

  FramedSource* source = BasicUDPSource::createNew(envir(),
&inputGroupsock);  

   return MPEG4VideoStreamFramer::createNew(envir(), source);

 

}

 

Can someone help me?? Thanks in advance

David

  _____  

From: live-devel-bounces at ns.live555.com
[mailto:live-devel-bounces at ns.live555.com] On Behalf Of David Lo
Sent: Wednesday, April 25, 2007 9:34 AM
To: live-devel at ns.live555.com
Subject: [Live-devel] implement a socket to listen for incomming packets
inliveMedia

 

Hi all, 

 

 I'm new to using the live555 library, still a little confused on how to use
it

I'm trying to feed live stream mpeg4 video into liveMedia server, however,
I'm 

Unable to send it using a pipeline under linux pipe. So, I'm thinking to 

Use socket instead. 

 

My encoder will send data to localhost using a socket. And I want to modify
the

LiveMedia Server to read from this socket and provide it to a media sink.

 

Could anyone give me some pointers on how to do this?

Thanks

 

David

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.live555.com/pipermail/live-devel/attachments/20070424/a3a2458f/attachment-0001.html 


More information about the live-devel mailing list