<div>hi, Stadler</div> <div> </div> <div>do you mean encoder element should realized in pull mode as well as push mode.</div> <div> </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> </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> </div> <div>Thanks<BR><BR><B><I>Ren¨¦ Stadler <mail@renestadler.de></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>> <BR>> Hi, <BR>> <BR>> Is there any method to configure blocksize of filesrc in encoder<BR>> plguin, such as getcaps.<BR>> Does seting filesrc property is the only method. <BR>> Of couse
application could set filesrc property, but this request user<BR>> know some details.<BR>> <BR>> this is my command line.<BR>> gst-launch filesrc location=test.yuv ! h264enc frame_width=480<BR>> frame_height=640 frame_rate=30 ! avimux ! filesink location=test.avi<BR>> <BR>> Since encoder knows width and height, could know exactly bytes number<BR>> of one frame, for example width*height*3/2 for YUV420.<BR>> It would be more efficient, if encoder could set property of filesrc<BR>> blocksize, then no buffer is needed to repack input data. Instead<BR>> encoder could use input buffer directly.<BR>> <BR>> 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> 
<hr size=1><a href="http://cn.mail.yahoo.com" target=blank>ÇÀ×¢ÑÅ»¢Ãâ·ÑÓÊÏä3.5GÈÝÁ¿£¬20M¸½¼þ£¡</a>