<div>hi, Stadler</div>  <div>&nbsp;</div>  <div>do you mean encoder element should realized in pull mode as well as push mode.</div>  <div>&nbsp;</div>  <div>when src element is camera, which ensures input is integrate frame, encoder takes pull mode.</div>  <div>When src element is filesrc, encoder takes push mode.</div>  <div>&nbsp;</div>  <div>but I have question, if encoder takes pull mode, avimux also takes pull mode, then it will be two elements take pull mode in the pipeline, is that OK.</div>  <div>&nbsp;</div>  <div>Thanks<BR><BR><B><I>Ren¨¦ Stadler &lt;mail@renestadler.de&gt;</I></B> Ð´µÀ£º</div>  <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Am Samstag, den 02.06.2007, 12:11 +0800 schrieb zhangfei gao:<BR>&gt; <BR>&gt; Hi, <BR>&gt; <BR>&gt; Is there any method to configure blocksize of filesrc in encoder<BR>&gt; plguin, such as getcaps.<BR>&gt; Does seting filesrc property is the only method. <BR>&gt; Of couse
 application could set filesrc property, but this request user<BR>&gt; know some details.<BR>&gt; <BR>&gt; this is my command line.<BR>&gt; gst-launch filesrc location=test.yuv ! h264enc frame_width=480<BR>&gt; frame_height=640 frame_rate=30 ! avimux ! filesink location=test.avi<BR>&gt; <BR>&gt; Since encoder knows width and height, could know exactly bytes number<BR>&gt; of one frame, for example width*height*3/2 for YUV420.<BR>&gt; It would be more efficient, if encoder could set property of filesrc<BR>&gt; blocksize, then no buffer is needed to repack input data. Instead<BR>&gt; encoder could use input buffer directly.<BR>&gt; <BR>&gt; Thanks in advance<BR><BR>This is exactly what pull mode scheduling is for.<BR><BR>-- <BR>Regards,<BR>Ren¨¦ Stadler<BR><BR></BLOCKQUOTE><BR><p>&#32;



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