<div dir="ltr">Two remarks. <div><br></div><div>I'm assuming your video is recorded at 40 fps, otherwise the no duplication/dropping frames requirement is incompatible. Nevertheless your problem is that you don't have any live element in your decoding pipeline. If you set the sync property of the fakesink to true, it will start respecting the timestamps of your frames. </div><div><br></div><div>(Irrelevant) Gotta say you picked a inconvenient format for that container. Avimux cannot handle image/png but avidemux can. :)<br><div><br></div><div>Cheers</div></div><div>Sérgio</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-12-09 11:34 GMT+01:00 mariannasb <span dir="ltr"><<a href="mailto:mariannasb@yahoo.com.br" target="_blank">mariannasb@yahoo.com.br</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I want to be able to simulate a v4l2src using a captured stream with a<br>
filesrc.<br>
What Im interested in is how to get a constant fps.<br>
<br>
If I run:<br>
v4l2src ! video/x-raw, framerate=40/1 ! ...some image processing filters...<br>
! fakesink<br>
<br>
I get frames at 25ms interval (as expected)<br>
<br>
If I then swap v4l2src for filesrc:<br>
filesrc location=video.avi ! decodebin ! video/x-raw, framerate=40/1 !<br>
...some image processing filters... ! fakesink<br>
<br>
I get frames at 15ms interval (which is the time that the image filters take<br>
to process the image).<br>
How can I make the frames come out at 25ms interval instead?<br>
Note: duplicating/dropping frames is unacceptable<br>
<br>
The file is an avi of made of png images...<br>
<br>
I have also tried using multifilesrc caps="image/png, framerate=40/1" !<br>
pngdec ! ... ! fakesink<br>
with similar results<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Simulate-v4l2src-with-filesrc-tp4674823.html" rel="noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/Simulate-v4l2src-with-filesrc-tp4674823.html</a><br>
Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div><br></div>