Hi,<br>I&#39;m facing this problem, the app which get webcam screenshot and encode them in h263 works and feed live with an UDP socket (addr 127.0.0.1 port 1234). I don&#39;t know why the bytestream seems not arriving to the live server..<br>
Could anyone help me or give any hints?<br>I report my server code below<br><br>#include &quot;liveMedia.hh&quot;<br>#include &quot;BasicUsageEnvironment.hh&quot;<br>#include &quot;GroupsockHelper.hh&quot;<br><br>FramedSource* videoSource;<br>
<br>void afterPlaying(void*);<br><br>int main()<br>{<br>       TaskScheduler* scheduler = BasicTaskScheduler::createNew();<br>       UsageEnvironment*env = BasicUsageEnvironment::createNew(*scheduler);<br><br>       //Create our sink variables...<br>
       char const* destinationAddrStr = &quot;192.168.55.102&quot;;<br>       const unsigned char ttl = 1;<br>       const Port rtpPort(8888);<br>       struct in_addr destinationAddress;<br>       destinationAddress.s_addr = our_inet_addr(destinationAddrStr);<br>
       Groupsock rtpGroupsock(*env, destinationAddress, rtpPort, ttl);<br>       <br>       //Create our sink...<br>       //RTPSink* videoSink = MPEG1or2VideoRTPSink::createNew(*env, &amp;rtpGroupsock);<br>       RTPSink* videoSink = H263plusVideoRTPSink::createNew(*env,&amp;rtpGroupsock,56,0);<br>
       if(videoSink == NULL){<br>               *env &lt;&lt; &quot;Unable to create sink \n&quot;;<br>               exit(1);<br>       }<br>       *env&lt;&lt;&quot;RTPSink created\n&quot;;<br>       //Create our source variables...<br>
       char const* srcAddrStr = &quot;127.0.0.1&quot;;<br>       struct in_addr srcAddress;<br>       srcAddress.s_addr = our_inet_addr(srcAddrStr);<br>       const Port udpPort(1234);<br>       Groupsock udpGroupsock(*env, srcAddress, udpPort, ttl);<br>
<br>       //Create our source...<br>       FramedSource* input = BasicUDPSource::createNew(*env, &amp;udpGroupsock);<br>       if (input == NULL) {<br>               *env &lt;&lt; &quot;Unable to open source \n&quot;;<br>
               exit(1);<br>       }<br>       *env&lt;&lt;&quot;Input created\n&quot;;<br><br>       //Create our framer...<br>       videoSource = H263plusVideoStreamFramer::createNew(*env,input);<br><br>       *env&lt;&lt;&quot;framer created\n&quot;;<br>
       //Start to stream the data....<br>       videoSink-&gt;startPlaying(*videoSource, afterPlaying, NULL);<br>       env-&gt;taskScheduler().doEventLoop();<br>    *env&lt;&lt;&quot;END&quot;;<br>       return 0;<br>}<br>
<br>void afterPlaying(void*) {<br> Medium::close(videoSource);<br>}<br><br>Thanks a lot for the kind help!<br><br><div class="gmail_quote">On Thu, Jul 30, 2009 at 7:41 PM, Ross Finlayson <span dir="ltr">&lt;<a href="mailto:finlayson@live555.com">finlayson@live555.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

I&#39;ve an application which gets images from a webcam, then live encode them. I need to live stream this to a mobile device via a live555server. How can i manage this input stream (based on socket comm between the two apps) in live555?could BasicUDPSource the class which reads from the buffer?<br>

</blockquote>
<br></div>
It could, if your input is UDP packets.  However, it&#39;d be far better to have your input source be just an unstructured byte stream (i.e., a device file, a pipe, or a TCP connection).  Then you could use &quot;H263plusVideoStreamFramer&quot;.<div class="im">
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
 May I use H263plusVideoStreamFramer as framer for the H263 stream??<br>
</blockquote>
<br></div>
If (and only if) your input is a byte stream.  If, instead, it&#39;s a sequence of discrete frames, then you would need a new class &quot;H263plusVideoStreamDiscreteFramer&quot; (which you would need to write) instead.<br>

-- <br><font color="#888888">
<br>
Ross Finlayson<br>
Live Networks, Inc.<br>
<a href="http://www.live555.com/" target="_blank">http://www.live555.com/</a><br>
_______________________________________________<br>
live-devel mailing list<br>
<a href="mailto:live-devel@lists.live555.com" target="_blank">live-devel@lists.live555.com</a><br>
<a href="http://lists.live555.com/mailman/listinfo/live-devel" target="_blank">http://lists.live555.com/mailman/listinfo/live-devel</a><br>
</font></blockquote></div><br>