<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
--></style><title>Re: [Live-devel] Can't read from a MPEG4 unicast
stream?</title></head><body>
<blockquote type="cite" cite>Hi,<br>
<br>
This is my first contact with the library and the mpeg4 world.
I'm</blockquote>
<blockquote type="cite" cite>trying to fetch a mpeg4 RTP unicast video
stream from a sony snc-rz25p<br>
IP network camera. My RTCP instance keeps the connection alive (so
I<br>
have some working code snips :) ), but i'm trying to dump the stream
to</blockquote>
<blockquote type="cite" cite>a file, and I always get a 0 byte
file.<br>
<br>
RTP Payload type is 96. I'm using a MPEG4VideoStreamFramer as
source<br>
(getting the stream from a MPEG4ESVideoRTPSource) and a FileSink
to<br>
write it to disk...<br>
<br>
My affected code is:<br>
<br>
struct in_addr serverAddress;<br>
serverAddress.s_addr = our_inet_addr ("192.168.2.10");<br>
Groupsock rtpGroupsockVideo (*env, serverAddress, 50000, 255);<br>
<br>
videoSource = MPEG4ESVideoRTPSource::createNew (*env,<br>
<x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab>&rtpGroupsockVideo,<br>
<x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab>96,<br>
<x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab>0);<br>
videoFramedSource = MPEG4VideoStreamFramer::createNew (*env,<br>
<x-tab> </x-tab><x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab>videoSource);<br>
<br>
fileSink = FileSink::createNew(*env, outputFilename);<br>
fileSink->startPlaying (*videoFramedSource, afterPlaying,
NULL);<br>
<br>
env->taskScheduler().doEventLoop();<br>
<br>
The afterPlaying function is just empty.<br>
</blockquote>
<blockquote type="cite" cite>What I am doing wrong?</blockquote>
<div><br></div>
<div>I'm not sure, but try replacing "192.168.2.10" with
"0.0.0.0".</div>
<div><br></div>
<div>(See <<font face="Lucida Grande" size="-4"
color="#000000">http://www.live555.com/liveMedia/faq.html#unicast</font
>>)</div>
<x-sigsep><pre>--
</pre></x-sigsep>
<div><br>
Ross Finlayson<br>
Live Networks, Inc.<br>
http://www.live555.com/</div>
</body>
</html>