<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">It works !<br>
<br>
Thanks a lot.<br>
<br>
However, it leaves me with a misunderstanding.<br>
Is this pipeline pull-based ?<br>
I thought that normal pipelines were push-based.<br>
How can we know (even after launch).<br>
<br>
Jonathan<br>
<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF496133"><font color="#000000" face="Tahoma" size="2"><b>De :</b> gstreamer-devel-bounces+jonathan.demeyer=macq.eu@lists.freedesktop.org [gstreamer-devel-bounces+jonathan.demeyer=macq.eu@lists.freedesktop.org] de la part
 de Matt Pekar [mpekar@raineyelectronics.com]<br>
<b>Date d'envoi :</b> vendredi 27 juillet 2012 18:09<br>
<b>À :</b> Discussion of the development of and with GStreamer<br>
<b>Objet :</b> Re: constant framerate<br>
</font><br>
</div>
<div></div>
<div>Try adding sync=true to the fakesink element:
<div><br>
</div>
<div>gst-launch -v videotestsrc num-buffers=10 ! videorate force-fps="1/1" ! "video/x-raw-yuv,framerate=1/1" ! fakesink sync=true<br>
<br>
<div class="gmail_quote">On Fri, Jul 27, 2012 at 11:04 AM, Demeyer Jonathan <span dir="ltr">
<<a href="mailto:Jonathan.Demeyer@macq.eu" target="_blank">Jonathan.Demeyer@macq.eu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<u></u>
<div>
<div dir="ltr" align="left"><font face="Arial"><span>Tanks Matt for the reply.</span></font></div>
<div dir="ltr" align="left"><font face="Arial"><span></span></font> </div>
<div dir="ltr" align="left"><font face="Arial"><span>This didn't work for me as you can see :</span></font></div>
<div dir="ltr" align="left"><font face="Arial"><span></span></font> </div>
<div dir="ltr" align="left"><font face="Arial"><span>$ date; gst-launch -v videotestsrc num-buffers=10 ! videorate force-fps="1/1" ! "video/x-raw-yuv,framerate=1/1" ! fakesink; date<br>
Fri Jul 27 17:55:42 CEST 2012<br>
Setting pipeline to PAUSED ...<br>
/GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0.GstPad:src: caps = video/x-raw-yuv, framerate=(fraction)1/1, format=(fourcc)YUY2, color-matrix=(string)sdtv, chroma-site=(string)mpeg2, width=(int)320, height=(int)240<br>
Pipeline is PREROLLING ...<br>
/GstPipeline:pipeline0/GstVideoRate:videorate0.GstPad:src: caps = video/x-raw-yuv, framerate=(fraction)1/1, format=(fourcc)YUY2, color-matrix=(string)sdtv, chroma-site=(string)mpeg2, width=(int)320, height=(int)240<br>
/GstPipeline:pipeline0/GstVideoRate:videorate0.GstPad:sink: caps = video/x-raw-yuv, framerate=(fraction)1/1, format=(fourcc)YUY2, color-matrix=(string)sdtv, chroma-site=(string)mpeg2, width=(int)320, height=(int)240<br>
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw-yuv, framerate=(fraction)1/1, format=(fourcc)YUY2, color-matrix=(string)sdtv, chroma-site=(string)mpeg2, width=(int)320, height=(int)240<br>
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw-yuv, framerate=(fraction)1/1, format=(fourcc)YUY2, color-matrix=(string)sdtv, chroma-site=(string)mpeg2, width=(int)320, height=(int)240<br>
/GstPipeline:pipeline0/GstFakeSink:fakesink0.GstPad:sink: caps = video/x-raw-yuv, framerate=(fraction)1/1, format=(fourcc)YUY2, color-matrix=(string)sdtv, chroma-site=(string)mpeg2, width=(int)320, height=(int)240<br>
/GstPipeline:pipeline0/GstFakeSink:fakesink0: last-message = "preroll   ******* "<br>
Pipeline is PREROLLED ...<br>
Setting pipeline to PLAYING ...<br>
/GstPipeline:pipeline0/GstFakeSink:fakesink0: last-message = "event   ******* (fakesink0:sink) E (type: 102, GstEventNewsegment, update=(boolean)false, rate=(double)1, applied-rate=(double)1, format=(GstFormat)GST_FORMAT_TIME, start=(gint64)0, stop=(gint64)-1,
 position=(gint64)0;) 0x9173750"<br>
New clock: GstSystemClock<br>
/GstPipeline:pipeline0/GstFakeSink:fakesink0: last-message = "chain   ******* (fakesink0:sink) (153600 bytes, timestamp: 0:00:00.000000000, duration: 0:00:01.000000000, offset: 0, offset_end: 1, flags: 33 ro discont ) 0x9180760"<br>
/GstPipeline:pipeline0/GstFakeSink:fakesink0: last-message = "chain   ******* (fakesink0:sink) (153600 bytes, timestamp: 0:00:01.000000000, duration: 0:00:01.000000000, offset: 1, offset_end: 2, flags: 1 ro ) 0xb6c01870"<br>
/GstPipeline:pipeline0/GstFakeSink:fakesink0: last-message = "chain   ******* (fakesink0:sink) (153600 bytes, timestamp: 0:00:02.000000000, duration: 0:00:01.000000000, offset: 2, offset_end: 3, flags: 1 ro ) 0xb6c01930"<br>
/GstPipeline:pipeline0/GstFakeSink:fakesink0: last-message = "chain   ******* (fakesink0:sink) (153600 bytes, timestamp: 0:00:03.000000000, duration: 0:00:01.000000000, offset: 3, offset_end: 4, flags: 1 ro ) 0xb6c019f0"<br>
/GstPipeline:pipeline0/GstFakeSink:fakesink0: last-message = "chain   ******* (fakesink0:sink) (153600 bytes, timestamp: 0:00:04.000000000, duration: 0:00:01.000000000, offset: 4, offset_end: 5, flags: 1 ro ) 0xb6c01ab0"<br>
/GstPipeline:pipeline0/GstFakeSink:fakesink0: last-message = "chain   ******* (fakesink0:sink) (153600 bytes, timestamp: 0:00:05.000000000, duration: 0:00:01.000000000, offset: 5, offset_end: 6, flags: 1 ro ) 0xb6c01b70"<br>
/GstPipeline:pipeline0/GstFakeSink:fakesink0: last-message = "chain   ******* (fakesink0:sink) (153600 bytes, timestamp: 0:00:06.000000000, duration: 0:00:01.000000000, offset: 6, offset_end: 7, flags: 1 ro ) 0xb6c01c78"<br>
/GstPipeline:pipeline0/GstFakeSink:fakesink0: last-message = "chain   ******* (fakesink0:sink) (153600 bytes, timestamp: 0:00:07.000000000, duration: 0:00:01.000000000, offset: 7, offset_end: 8, flags: 1 ro ) 0xb6c01d38"<br>
/GstPipeline:pipeline0/GstFakeSink:fakesink0: last-message = "chain   ******* (fakesink0:sink) (153600 bytes, timestamp: 0:00:08.000000000, duration: 0:00:01.000000000, offset: 8, offset_end: 9, flags: 1 ro ) 0xb6c01b10"<br>
/GstPipeline:pipeline0/GstFakeSink:fakesink0: last-message = "chain   ******* (fakesink0:sink) (153600 bytes, timestamp: 0:00:09.000000000, duration: 0:00:01.000000000, offset: 9, offset_end: 10, flags: 1 ro ) 0xb6c01b70"<br>
/GstPipeline:pipeline0/GstFakeSink:fakesink0: last-message = "event   ******* (fakesink0:sink) E (type: 86, ) 0x9173750"<br>
Got EOS from element "pipeline0".<br>
Execution ended after 12853781 ns.<br>
Setting pipeline to PAUSED ...<br>
Setting pipeline to READY ...<br>
/GstPipeline:pipeline0/GstFakeSink:fakesink0.GstPad:sink: caps = NULL<br>
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = NULL<br>
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = NULL<br>
/GstPipeline:pipeline0/GstVideoRate:videorate0.GstPad:src: caps = NULL<br>
/GstPipeline:pipeline0/GstVideoRate:videorate0.GstPad:sink: caps = NULL<br>
/GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0.GstPad:src: caps = NULL<br>
Setting pipeline to NULL ...<br>
Freeing pipeline ...<br>
Fri Jul 27 17:55:42 CEST 2012</span></font></div>
<div><font face="Arial"><span></span></font> </div>
<div><font face="Arial"><span>While :</span></font></div>
<div><font face="Arial"><span>$ gst-inspect --gst-version<br>
GStreamer Core Library version 0.10.36</span></font></div>
<div dir="ltr" align="left"><br>
</div>
<div dir="ltr" align="left"><font face="Arial"><span>Any idea ?</span></font></div>
<div dir="ltr" align="left"><font face="Arial"><span></span></font> </div>
<div dir="ltr" align="left"><font face="Arial"><span>Thanks,</span></font></div>
<div> </div>
<div align="left">
<div align="left"><font face="Arial">Jonathan DEMEYER</font></div>
</div>
<div> </div>
<br>
<blockquote dir="ltr" style="border-left:#000000 2px solid; padding-left:5px; margin-left:5px; margin-right:0px">
<div dir="ltr" align="left" lang="en-us">
<hr>
<font face="Tahoma"><b>From:</b> gstreamer-devel-bounces+jonathan.demeyer=<a href="mailto:macq.eu@lists.freedesktop.org" target="_blank">macq.eu@lists.freedesktop.org</a> [mailto:<a href="mailto:gstreamer-devel-bounces%2Bjonathan.demeyer" target="_blank">gstreamer-devel-bounces+jonathan.demeyer</a>=<a href="mailto:macq.eu@lists.freedesktop.org" target="_blank">macq.eu@lists.freedesktop.org</a>]
<b>On Behalf Of </b>Matt Pekar<br>
<b>Sent:</b> mercredi 25 juillet 2012 15:08<br>
<b>To:</b> Discussion of the development of and with GStreamer<br>
<b>Subject:</b> Re: constant framerate<br>
</font><br>
</div>
<div>
<div class="h5">
<div></div>
videorate has a "force-fps" attribute:
<div><br>
</div>
<div>videorate force-fps=1<br>
<div><br>
</div>
<div><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-plugins/html/gst-plugins-base-plugins-videorate.html" target="_blank">http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-plugins/html/gst-plugins-base-plugins-videorate.html</a><br>
<br>
<div class="gmail_quote">On Wed, Jul 25, 2012 at 5:00 AM, Demeyer Jonathan <span dir="ltr">
<<a href="mailto:Jonathan.Demeyer@macq.eu" target="_blank">Jonathan.Demeyer@macq.eu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left:#ccc 1px solid; margin:0px 0px 0px 0.8ex; padding-left:1ex">
<u></u>
<div>
<div><font face="Arial"><span>Hello,</span></font></div>
<div><font face="Arial"><span></span></font> </div>
<div><font face="Arial"><span>I'm trying to test a pipeline (test performance of an element) and for this I want to have a constant image flow.</span></font></div>
<div><font face="Arial"><span>I've try the videorate element like this :</span></font></div>
<div><font face="Arial"><span>gst-launch -v filesrc location="Pictures/image.jpg" ! jpegdec ! imagefreeze ! videorate ! "video/x-raw-yuv,framerate=1/1" ! fakesink</span></font></div>
<div><font face="Arial"><span></span></font> </div>
<div><font face="Arial"><span>But logs tells me that images come when the system is ready instead of each second (but timestamps are OK). Actually I see no difference between using videorate or not.</span></font></div>
<div><font face="Arial"><span>Do I need to use another element or is it a flag that i've missing ?</span></font></div>
<div><font face="Arial"><span></span></font> </div>
<div><font face="Arial"><span>Thanks in advance,</span></font></div>
<div><font face="Arial"></font> </div>
<div align="left">
<div align="left"><b><font face="Arial">Jonathan DEMEYER</font></b></div>
</div>
<div> </div>
</div>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</body>
</html>