<div>Jan,</div>  <div>&nbsp;</div>  <div>Thank you very much for your kind notification.</div>  <div>&nbsp;</div>  <div>Now I use repack, I could know there is a frame only if data is inside two sync code. </div>  <div>The problem is if input buffer is really one frame, I could not get the correct answer immediately, except next sync code is got, so memcpy is unavoidable.</div>  <div>&nbsp;</div>  <div>what about mpegvideoparse reaction when input buffer is really one frame, does it need another sync code, which means memcpy.</div>  <div>&nbsp;</div>  <div>If so, maybe set repack function to mpeg2dec plugin will have better performance, since context switching time is saved.</div>  <div>&nbsp;</div>  <div>Could you give some ideas?</div>  <div>&nbsp;</div>  <div>Thanks</div>  <div>&nbsp;</div>  <div>&nbsp;</div>  <div>&nbsp;</div>  <div><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; Hi, <BR>&gt; <BR>&gt; I use flupsdemux handle 704x480 size video, it seems flupsdemux do not<BR>&gt; send integrated frames.<BR>&gt; It will go to mpeg2dec 6 times, print info as below:<BR><BR>*snip*<BR><BR>&gt; But when I demux some small size, the input frame is intact.<BR>&gt; Is there any method to judge whether the input frame is intact or not,<BR>&gt; since our codec only handle intact frames.<BR><BR>The data is delivered from the demuxer according to the packetisation<BR>that the muxer gave it. This usually does not coincide with elementary<BR>stream video boundaries. If your codec cannot parse the stream to find<BR>the picture boundaries itself, I suggest you use the mpegvideoparse<BR>element between the demuxer and the decoder.<BR><BR>You can either insert mpegvideoparse in the pipeline manually, or<BR>specify 'parsed=true' as a requirement on your decoder element sink pad,<BR>to cause it to be
 autoplugged if you are using decodebin/playbin.<BR><BR>mpegvideoparse is available from CVS of gst-plugins-bad, and will be in<BR>the 0.10.5 release in a week or so.<BR><BR>Regards,<BR>Jan.<BR><BR><BR><BR></BLOCKQUOTE><BR><p>&#32;



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