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

René Stadler mail at renestadler.de
Sat Jun 2 13:43:57 CEST 2007


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





More information about the gstreamer-devel mailing list