<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hello,</div>
<div> </div>
<div>I'm currently trying to push captured images from an camera to a gstreamer pipeline.</div>
<div>Everytime a new image will be captured from the camera I store the image to an buffer.</div>
<div>The problem is that these images have a framerate from 15fps to 30fps therefore I have tried to create a thread with:</div>
<div>GSource *timeout = g_timeout_source_new (1000/25);</div>
<div>g_source_set_callback (timeout, push_data, NULL, NULL);</div>
<div>g_source_attach(timeout, context);</div>
<div>These thread should push the last captured image from the buffer to the pipeline with 25fps. The video caps for the appsrc also have 25fps.</div>
<div>If I try to play this video generated by the captured images it will look like very juddery.</div>
<div>I also tried to use the need-data callback to push the last image put this doesn't make it better.</div>
<div> </div>
<div>To check if the pushed images will generate a nice video I store every image to a jpg file. This video shows a timer running on my laptop and it looks like the GSource is too slow. I have saved 300 images which shows a timespan from 13 seconds but 25fps should be 12 seconds.</div>
<div> </div>
<div>Is there method to push the images at the exactly right time?</div>
<div>I hope I get some help.</div>
<div> </div>
<div>Thanks Thomas</div></div></body></html>