<div>Jan</div>  <div>&nbsp;</div>  <div>thanks for your big help.</div>  <div>&nbsp;</div>  <div>I still have one question about fps, excuse me for bothing you so much</div>  <div>&nbsp;</div>  <div>In sinkpad_setcaps function it only send such information.</div>  <div>&nbsp;</div>  <div>name: video/mpeg<BR>video/mpeg, mpegversion=(int)2, systemstream=(boolean)false</div>  <div>&nbsp;</div>  <div>Should we calculate fps from es data?</div>  <div>&nbsp;</div>  <div>Thanks<BR><BR><B><I>Jan Schmidt &lt;thaytan@noraisin.net&gt;</I></B> Ð´µÀ£º</div>  <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">zhangfei gao wrote:<BR>&gt; Jan,<BR>&gt; <BR>&gt; Thank you very much for your kind notification.<BR>&gt; <BR>&gt; Now I use repack, I could know there is a frame only if data is inside<BR>&gt; two sync code.<BR>&gt; The problem is if input buffer is really one frame, I could not get the<BR>&gt; correct answer immediately, except
 next sync code is got, so memcpy is<BR>&gt; unavoidable.<BR><BR>If the video packets have been split when they were muxed, then at least<BR>one memcpy to reconstruct them is unavoidable.<BR><BR>Other than that, I'm not sure exactly what you're trying to ask here.<BR><BR>&gt; what about mpegvideoparse reaction when input buffer is really one<BR>&gt; frame, does it need another sync code, which means memcpy.<BR><BR>Detecting the start of the next picture packet requires scanning for<BR>another start code, yes. mpegvideoparse does this without performing<BR>more memcpys that necessary, but at least one is required to reconstruct<BR>non-contiguous packets into a single buffer for decoding.<BR><BR>&gt; If so, maybe set repack function to mpeg2dec plugin will have better<BR>&gt; performance, since context switching time is saved.<BR><BR>I don't know what you are trying to say here.<BR><BR>Regards,<BR>Jan.<BR><BR><BR><BR><BR></BLOCKQUOTE><BR><p>&#32;
        


      <hr size=1><a href="http://cn.mail.yahoo.com" target=blank>ÇÀ×¢ÑÅ»¢Ãâ·ÑÓÊÏä3.5GÈÝÁ¿£¬20M¸½¼þ£¡</a>