Time should be in nano-seconds . <div><br><div>For more info;</div><div><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-eventsseek.html">http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-eventsseek.html</a></div>
<div><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-eventsseek.html"></a><br><br><div class="gmail_quote">On Mon, Jan 17, 2011 at 1:04 AM, Umakant Goyal <span dir="ltr"><<a href="mailto:umakantgoyal1@gmail.com">umakantgoyal1@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Thiago,<br><br>I tried to run pipeline for specified period of time as suggested by you. But it did not work for me. I want to run pipeline for 15 seconds for that i have done<br>
<br> bool flag = gst_element_seek (pipeline, 1.0, GST_FORMAT_TIME, (GstSeekFlags)(GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_ACCURATE), GST_SEEK_TYPE_NONE, 0, GST_SEEK_TYPE_SET, 15*GST_SECOND);<br>
<br>i have also tried following line of code<br><br> bool falg = gst_element_seek (vBin, 1.0, GST_FORMAT_TIME, (GstSeekFlags)(GST_SEEK_FLAG_FLUSH|GST_SEEK_FLAG_ACCURATE), GST_SEEK_TYPE_SET, 0 * 15*GST_SECOND, GST_SEEK_TYPE_SET, 15*GST_SECOND);<br>
<br>i have run above line of code in once in READY state and once in PAUSED state. I have also tried GST_MSECOND instead of GST_SECOND. But nothing works for me. <br><br>Please help by telling where i am doing wrong while calling above line of code. <br>
<br>Thanks <br><div><div></div><div class="h5"><br><div class="gmail_quote">On Sun, Jan 16, 2011 at 2:14 AM, Thiago Sousa Santos <span dir="ltr"><<a href="mailto:thiago.sousa.santos@collabora.co.uk" target="_blank">thiago.sousa.santos@collabora.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex"><div>On Sun, 2011-01-16 at 01:12 +0530, Umakant Goyal wrote:<br>
> Hi All,<br>
><br>
> Can i make a pipeline to run for specific period of time?<br>
<br>
</div>Yes. You can send a seek event to the pipeline with a start and a stop<br>
time. Check<br>
<a href="http://www.gstreamer.net/data/doc/gstreamer/head/gstreamer/html/GstElement.html#gst-element-seek" target="_blank">http://www.gstreamer.net/data/doc/gstreamer/head/gstreamer/html/GstElement.html#gst-element-seek</a><br>
<br>
--<br>
Thiago<br>
<br>
><br>
> Thanks<br>
><br>
> ------------------------------------------------------------------------------<br>
> Protect Your Site and Customers from Malware Attacks<br>
> Learn about various malware tactics and how to avoid them. Understand<br>
> malware threats, the impact they can have on your business, and how you<br>
> can protect your company and customers by using code signing.<br>
> <a href="http://p.sf.net/sfu/oracle-sfdevnl" target="_blank">http://p.sf.net/sfu/oracle-sfdevnl</a><br>
> _______________________________________________<br>
> gstreamer-devel mailing list<br>
> <a href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a><br>
> <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br>
<br>
<br>
------------------------------------------------------------------------------<br>
Protect Your Site and Customers from Malware Attacks<br>
Learn about various malware tactics and how to avoid them. Understand<br>
malware threats, the impact they can have on your business, and how you<br>
can protect your company and customers by using code signing.<br>
<a href="http://p.sf.net/sfu/oracle-sfdevnl" target="_blank">http://p.sf.net/sfu/oracle-sfdevnl</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
</blockquote></div><br>
</div></div><br>------------------------------------------------------------------------------<br>
Protect Your Site and Customers from Malware Attacks<br>
Learn about various malware tactics and how to avoid them. Understand<br>
malware threats, the impact they can have on your business, and how you<br>
can protect your company and customers by using code signing.<br>
<a href="http://p.sf.net/sfu/oracle-sfdevnl" target="_blank">http://p.sf.net/sfu/oracle-sfdevnl</a><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br><br>Sudarshan Bisht<br>
</div></div>