<!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] use livemedia transport
mpeg4streame prob</title></head><body>
<blockquote type="cite" cite>thanks.if use the encode to file,the file
use "testondemandrtpserver" tansport,VLC player is GOOD.(use
i frame and p frame).</blockquote>
<div><br></div>
<div>That's good news, because it shows that the data from your
encoder is OK. The only problem is the way that you are sending
it.</div>
<div><br></div>
<div>Because your data comes from an encoder - one frame at a time -
you should be feeding it into a "MPEG4VideoStreamDiscreteFramer"
(*not* a "MPEG4VideoStreamFramer"), and from there into a
"MPEG4ESVideoRTPSink".</div>
<div><br></div>
<div><br></div>
<blockquote type="cite" cite>i have two question:<br>
1ÅAi look devicesource exsample,it say if use livesource,then
"fDurationInMicroseconds" is no set.yes? if no,how to set
it?</blockquote>
<div><br></div>
<div>Because your encoded video data comes from a live source, you
probably do not need to set "fDurationInMicroseconds" in
your data source class. (However, if you do choose to set it,
you would set it to</div>
<div><x-tab>
</x-tab>1000000.0/frame_rate</div>
<div>for each frame, where "frame_rate" is the stream's
frame rate in frames-per-second.</div>
<div><br></div>
<div><br></div>
<blockquote type="cite" cite>2ÅAwhatever livemeida receive is I
frame and P frame,my owndevicesource deliverFrame use same
gettimeofday(&fPresentationTime,NULL)</blockquote>
<div><br></div>
<div>That should be OK. Just be sure to feed this data into a
"MPEG4VideoStreamDiscreteFramer", and the presentation time
values will be adjusted properly, even for P frames.</div>
<x-sigsep><pre>--
</pre></x-sigsep>
<div><br>
Ross Finlayson<br>
Live Networks, Inc.<br>
http://www.live555.com/</div>
</body>
</html>