Hi,<br>I&#39;m writing a fakesrc in which get mpeg4 packets and I&#39;m setting this timestamp:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //The exerternal video source is at 13fps <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //FPS_DEN=1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //FPS_NUM=13<br><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ts = gst_util_uint64_scale_int (frame_num * GST_SECOND, FPS_DEN,&nbsp; FPS_NUM);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; next_ts = gst_util_uint64_scale_int ((frame_num + 1) * GST_SECOND, FPS_DEN,&nbsp; FPS_NUM);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; GST_BUFFER_TIMESTAMP (buffer) = ts;
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; GST_BUFFER_DURATION (buffer) = next_ts-ts;<br><br><br>And in the pipeline elements there&#39;s an equal framerate (13fps).Now, the pipeline works well, the images are correctly showed on my directdrawsink but...They are slowed down!!It seems that the pipeline works on 2-3 frames less than the fakesrc so after one minute I accumulate an hard 
delay.So, here&#39;s my problem:<br>&nbsp;<br>1) I can&#39;t speed up the fakesrc modifing FPS_NUM because my video source give me empty packets with consequent error on ffdec_mpeg4 (or I don&#39;t know how to set a gstbuffer with empty data);
<br><br>2)I&#39;ve tried to speed up the pipeline setting over 20 fps on the appropriate caps and objects proprierties (ffdec_mpeg4, videoscale and directdrawsink) but nothing is changed,like these values are not parsed...
<br clear="all"><br><br>Can someone give me some tips to understand why the pipeline slow down?<br>So near but so far...<br><br>Best Regards.<br><br>-- <br>Riccardo Corona