[gst-devel] Re: Re: could configure blocksize of filesrc in post plugin

zhangfei gao gaozhangfei at yahoo.com.cn
Sat Jun 2 15:00:44 CEST 2007


hi, Stadler
   
  do you mean encoder element should realized in pull mode as well as push mode.
   
  when src element is camera, which ensures input is integrate frame, encoder takes pull mode.
  When src element is filesrc, encoder takes push mode.
   
  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.
   
  Thanks

René Stadler <mail at renestadler.de> 写道:
  Am Samstag, den 02.06.2007, 12:11 +0800 schrieb zhangfei gao:
> 
> Hi, 
> 
> Is there any method to configure blocksize of filesrc in encoder
> plguin, such as getcaps.
> Does seting filesrc property is the only method. 
> Of couse application could set filesrc property, but this request user
> know some details.
> 
> this is my command line.
> gst-launch filesrc location=test.yuv ! h264enc frame_width=480
> frame_height=640 frame_rate=30 ! avimux ! filesink location=test.avi
> 
> Since encoder knows width and height, could know exactly bytes number
> of one frame, for example width*height*3/2 for YUV420.
> It would be more efficient, if encoder could set property of filesrc
> blocksize, then no buffer is needed to repack input data. Instead
> encoder could use input buffer directly.
> 
> Thanks in advance

This is exactly what pull mode scheduling is for.

-- 
Regards,
René Stadler



       
---------------------------------
抢注雅虎免费邮箱3.5G容量,20M附件! 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20070602/43aefc22/attachment.htm>


More information about the gstreamer-devel mailing list