<div>Jan,</div> <div> </div> <div>Thank you very much for your kind notification.</div> <div> </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> </div> <div>what about mpegvideoparse reaction when input buffer is really one frame, does it need another sync code, which means memcpy.</div> <div> </div> <div>If so, maybe set repack function to mpeg2dec plugin will have better performance, since context switching time is saved.</div> <div> </div> <div>Could you give some ideas?</div> <div> </div> <div>Thanks</div> <div> </div> <div> </div> <div> </div> <div><BR><B><I>Jan Schmidt <thaytan@noraisin.net></I></B> дµÀ£º</div> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT:
5px; BORDER-LEFT: #1010ff 2px solid">zhangfei gao wrote:<BR>> Hi, <BR>> <BR>> I use flupsdemux handle 704x480 size video, it seems flupsdemux do not<BR>> send integrated frames.<BR>> It will go to mpeg2dec 6 times, print info as below:<BR><BR>*snip*<BR><BR>> But when I demux some small size, the input frame is intact.<BR>> Is there any method to judge whether the input frame is intact or not,<BR>> 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> 
<hr size=1><a href="http://cn.mail.yahoo.com" target=blank>ÇÀ×¢ÑÅ»¢Ãâ·ÑÓÊÏä3.5GÈÝÁ¿£¬20M¸½¼þ£¡</a>