<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.5945" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=824342204-19062010>Dear
All,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=824342204-19062010> 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~</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=824342204-19062010> Now, I have a
project about IP camera, the output from camera was encoded by hardware to
MPEG4, and this encoded stream </SPAN></FONT><FONT face=Arial size=2><SPAN
class=824342204-19062010>is transferred by socket to RTSPServer(using live555
libraries). </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=824342204-19062010> Currently, my
solution is based on "testMPEG4VideoStreamer.cpp", just modified the
filesource in method 'play', code is:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=824342204-19062010> <FONT face=Fixedsys><FONT
color=#0000ff>void</FONT> play() {</FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=824342204-19062010><FONT
face=Fixedsys></FONT></SPAN></FONT> </DIV>
<DIV><FONT face=Fixedsys size=2><SPAN class=824342204-19062010> <FONT
color=#0000ff>char</FONT>* inputAddressStr = "0.0.0.0";<BR> <FONT
color=#0000ff>struct</FONT> in_addr inputAddress;<BR> inputAddress.s_addr
= our_inet_addr(inputAddressStr);</SPAN></FONT></DIV>
<DIV><FONT face=Fixedsys></FONT> </DIV>
<DIV><FONT face=Fixedsys size=2><SPAN class=824342204-19062010> <FONT
color=#0000ff>const Port</FONT> inputPort(6666);<BR> <FONT
color=#0000ff>unsigned char</FONT> const inputTTL = 0; </SPAN></FONT></DIV>
<DIV><FONT face=Fixedsys></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=824342204-19062010><FONT
face=Fixedsys> inputGroupsock = <FONT color=#0000ff>new</FONT>
Groupsock(*env, inputAddress, inputPort, inputTTL);<BR></FONT></DIV>
<DIV><BR><FONT face=Fixedsys> </FONT><FONT face=Fixedsys><FONT
color=#008000>// Then create a liveMedia 'source' object, encapsulating this
groupsock:<BR></FONT> <FONT color=#ff0000>FramedSource* videoES =
BasicUDPSource::createNew(*env,
inputGroupsock);</FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT face=Fixedsys></FONT> </DIV>
<DIV><FONT face=Fixedsys size=2><SPAN class=824342204-19062010> <FONT
color=#008000>//FramedSource* videoES = fileSource;</FONT></SPAN></FONT></DIV>
<DIV><FONT face=Fixedsys color=#008000></FONT> </DIV>
<DIV><FONT face=Fixedsys size=2><SPAN class=824342204-19062010><FONT
color=#008000> // Create a framer for the Video Elementary
Stream:<BR></FONT> <FONT color=#ff0000>videoSource =
MPEG4VideoStreamDiscreteFramer::createNew(*env,
videoES);</FONT></SPAN></FONT></DIV>
<DIV><FONT face=Fixedsys></FONT> </DIV>
<DIV><FONT face=Fixedsys size=2><SPAN class=824342204-19062010> <FONT
color=#008000>// Finally, start playing:<BR></FONT> *env <<
"Beginning to read from sock...\n";<BR>
videoSink->startPlaying(*videoSource, afterPlaying,
videoSink);<BR>}</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=824342204-19062010>
</SPAN></FONT><FONT face=Arial size=2><SPAN class=824342204-19062010> <SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-fareast-font-family: 宋体; mso-bidi-language: AR-SA"></SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=824342204-19062010> It's can work
correctly, but this is via multicast, Our customer want unicast. So I
follow "testOnDemandRTSPServer.cpp", </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=824342204-19062010>but this module
wrapped </SPAN></FONT><FONT face=Arial size=2><SPAN class=824342204-19062010>how
to get file source in method "doEventLoop", and it seems that not support read
socket as file source, because </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=824342204-19062010>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~</SPAN></FONT><FONT face=Arial
size=2><SPAN class=824342204-19062010> </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV align=left><FONT face=Arial size=2>
<DIV align=left><FONT face=Arial size=2>Best regards.</FONT></DIV></FONT></DIV>
<DIV align=left><SPAN lang=EN-US
style="FONT-SIZE: 14pt; COLOR: #33cccc; FONT-FAMILY: Arial"><SPAN lang=EN-US
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT face="Comic Sans MS"><SPAN
style="FONT-SIZE: 11pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.0pt; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-fareast-font-family: 宋体; mso-bidi-language: AR-SA"><SPAN
lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN
class=824342204-19062010></SPAN><FONT color=#000000>L<SPAN
class=824342204-19062010>i
Yinhua</SPAN></FONT></SPAN></SPAN></FONT></SPAN></SPAN></DIV>
<DIV> </DIV><p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>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.</span><p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>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 <A href="http://www.siemens.com.cn/compliancehelpdesk">www.siemens.com.cn/compliancehelpdesk</A><br></span><br><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'> < Disclaimer in Chinese below, characters may not be displayed correctly.><br></span><br><p><span lang=ZH-CN style='font-size:10.0pt;font-family:??;mso-ascii-font-family:Arial;mso-bidi-font-family:Arial'>????:???????????,???????????????????????????,????????????,?????????????????????????????????????,??????????????????????????????</span><p><span lang=ZH-CN style='font-size:10.0pt;font-family:??;mso-ascii-font-family:Arial;mso-bidi-font-family:Arial'>?????????????????,?????????????????,????????????"Tell us"??,???<A href="http://www.siemens.com.cn/compliancehelpdesk">www.siemens.com.cn/compliancehelpdesk</A><br></span><span style='font-family:"Arial","sans-serif"'><span style='mso-tab-count:1'> </span><o:p></o:p></span></p></BODY></HTML>