<br><br><div class="gmail_quote">2009/6/15 Maximilan Hoegner <span dir="ltr">&lt;<a href="mailto:maxi@hg.homeunix.org">maxi@hg.homeunix.org</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
is there some simple gst-launch-pipeline to slow down a video file?<br>
Something like<br>
<br>
gst-launch-0.10 filesrc location=in.wav ! slowdown ! filesink=out.wav<br>
<br>
I know that I can play a video slower if I send a seek event with rate<br>
!= 1.0. But seeking doesn&#39;t seem to work with filesink, and I don&#39;t know<br>
how to seek when using gst-launch, if this is possible. So is there a<br>
simple pipeline I can use with gst-launch?<br>
<br>
In case there is not:<br>
<br>
Is there another way of seeking that does work with filesink? I also<br>
tried sync=TRUE for the filesink, which had no effect.<br>
Perhaps I made some mistake in my program structure. I first set the<br>
state of the pipeline to playing. Then I do a get_state to wait for the<br>
state change to complete (otherwise seeking has no effect at all, even<br>
when not using filesink). Then I call<br>
<br>
gst_element_seek(pipeline, 0.5, GST_FORMAT_TIME, GST_SEEK_FLAG_FLUSH,<br>
GST_SEEK_TYPE_SET, 0, GST_SEEK_TYPE_NONE, GST_CLOCK_TIME_NONE);<br>
<br>
which should set the playback rate to 0.5. After that I run the<br>
gmainloop. This does indeed work if I do not use filesink, but when I<br>
use it, the file is not slowed down at all (seeking to another position<br>
doesn&#39;t work either). Anything wrong about that?<br>
I suspect that the work is already done when the program reaches the<br>
seek line, because state is set to playing before. Doing it the other<br>
way round does not work however, the seek event does not get handled then. </blockquote><div> </div><div>The seek event will change the rate of the stream but you need to make it effective (rewrite timestamps according to the new rate) using the videorate element before the filesink for example.<br>
<br>Andoni<br></div><div> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thank you for your help,<br>
Maxi<br>
<br>
<br>------------------------------------------------------------------------------<br>
Crystal Reports - New Free Runtime and 30 Day Trial<br>
Check out the new simplified licensing option that enables unlimited<br>
royalty-free distribution of the report engine for externally facing<br>
server and web deployment.<br>
<a href="http://p.sf.net/sfu/businessobjects" target="_blank">http://p.sf.net/sfu/businessobjects</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>Andoni Morales Alastruey<br><br>LongoMatch:The Digital Coach<br><a href="http://www.longomatch.ylatuya.es">http://www.longomatch.ylatuya.es</a><br>