Dear All,
       First, I'm appreciate you can view my post and give me a detailed
solution. My English is not very good, so if my description is not
clear, pls let me know, thanks a lot~
       Now, I have a project about IP camera, the output from camera was
encoded by hardware to MPEG4, and this encoded stream is transferred by
socket to RTSPServer(using live555 libraries). 
       Currently, my solution is based on "testMPEG4VideoStreamer.cpp",
just modified the filesource in method 'play', code is:
    void play() {
 
  char* inputAddressStr = "0.0.0.0";
  struct in_addr inputAddress;
  inputAddress.s_addr = our_inet_addr(inputAddressStr);
 
  const Port inputPort(6666);
  unsigned char const inputTTL = 0; 
 
  inputGroupsock = new Groupsock(*env, inputAddress, inputPort,
inputTTL);


  // Then create a liveMedia 'source' object, encapsulating this
groupsock:
  FramedSource* videoES = BasicUDPSource::createNew(*env,
inputGroupsock);
 
  //FramedSource* videoES = fileSource;
 
  // Create a framer for the Video Elementary Stream:
  videoSource = MPEG4VideoStreamDiscreteFramer::createNew(*env,
videoES);
 
  // Finally, start playing:
  *env << "Beginning to read from sock...\n";
  videoSink->startPlaying(*videoSource, afterPlaying, videoSink);
}
        
       It's can work correctly, but this is via multicast, Our customer
want unicast. So I follow "testOnDemandRTSPServer.cpp", 
but this module wrapped how to get file source in method "doEventLoop",
and it seems that not support read socket as file source, because 
my file source isn't a local file, so I don't know how to get my socket
file source. If you know or have this experience, pls tell me, Thanks~ 
 
Best regards.
Li Yinhua
 


IMPORTANT NOTE: This e-mail and any attachment are confidential and may contain 
trade secrets and may also be legally privileged or otherwise protected from 
disclosure. If you have received it in error, you are herewith informed about 
its status. Please notify us immediately by reply e-mail and then delete this 
e-mail and any attachment from your system. You are prohibited from making use 
of or copying this e-mail or any attachment or disclosing the contents to any 
other person.

In case you become aware of any unethical business behavior or violation of 
laws, particularly those against the Anti-corruption laws and Anti-trust laws, 
Siemens Compliance HelpDesk "Tell us" can be reached at 
www.siemens.com.cn/compliancehelpdesk

<Disclaimer in Chinese below, characters may not be displayed correctly.>

????:???????????,???????????????????????????,????????????,?????????????????????????????????????,??????????????????????????????
?????????????????,?????????????????,????????????"Tell 
us"??,???www.siemens.com.cn/compliancehelpdesk


_______________________________________________
live-devel mailing list
live-devel@lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel

Reply via email to