<div>hi, Jan</div>  <div>&nbsp;</div>  <div>Our resolution has a limitation which inhibits not using your ideas, adding queue between codec and render.</div>  <div>&nbsp;</div>  <div>In order to save memcpy time from codec to render, we just using codec buffer (hardware based) directly and using DMA to move data simultaneity, and codec only ensures do not use the same output buffer continuously.</div>  <div>&nbsp;</div>  <div>So if adding queue between codec and render will lead a problem, the screen is shrinking all the time, since data conflict, the buffer read by render is witten by codec at the same time.</div>  <div>&nbsp;</div>  <div>The mpeg2 stream I test last time is 6M bps, it will run 34fps at full speed, and block at original speed 30fps.</div>  <div>&nbsp;</div>  <div>Now I use 1.5M bps mpeg2 stream, it could run continuously at original speed 30fps, while it will reach 41 fps at full speed with 98% cup usage.</div>  <div>&nbsp;</div>  <div>I am so curious, how
 many additional fps gstreamer will downgrade. In other words, if I want to play at 30 fps fluently, how many fps need to achieve at full speed.</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>*snip*<BR><BR>&gt; command line is<BR>&gt; gst-launch filesrc location=*.mpg ! flupsdemux ! mpeg2dec ! overlay2sink<BR>&gt; <BR><BR>*snip*<BR><BR>&gt; <BR>&gt; I thought video render discard frame because fps could not reach timestamp.<BR>&gt; But for 30 fps stream, why full speed fps can reach 34fps, while using<BR>&gt; timestamp still can not play frequently.<BR>&gt; <BR>&gt; Is there any tricky, since the same story on qtdemux and h264dec.<BR>&gt; <BR><BR>Add a queue between the decoder and the sink to decouple the decoding<BR>and display into 2 separate threads and provide some
 buffering.<BR>Something like<BR>queue max-size-buffers=5 should do it.<BR><BR>When you get to playing audio too, you'll also want some queues between<BR>the demuxer and the decoders.<BR><BR>J.<BR></BLOCKQUOTE><BR><p>&#32;
                <hr size=1><a href="http://cn.mail.yahoo.com" target=blank>ÇÀ×¢ÑÅ»¢Ãâ·ÑÓÊÏä-3.5GÈÝÁ¿£¬20M¸½¼þ£¡</a>