Hello Tim, the context is very straightforward, I need to stop playing a video in order to fit certain schedulling issues/rules.<br>So as I said before, if I have a video1 which lasts 2 mins, but video2 is scheduled to start at the next minute, I need to stop video1. I need it to play just one minute.<br>
<br>This is the pipeline:<br><br>textoverlay ----- ffmpegcolor ---- videoscale --- autovideosink<br><br> decodebin2 ----queue ---audioconvert----audioresample---alsasink // audio<br>(.avi) |<br>
filescr----avidemux<br> |<br> decodebin2 --- queue --- textoverlay.video_sink // video<br><br><br>(.srt)<br>filescr -----parse ------textoverlay.text_sink<br><br><br>I was intended to do it with gst_element_send_event(pipeline, gst_event_new_eos()) and a 'trigger' [1]<br>
<br>gst_clock_new_single_shot_id, where the gst_clock_id_wait_async has a callback function which calls [1].<br><br>But it doesn't work, I don't know if it's the best idea or the functions are in wrong places.<br>
<br>Thanks for any suggestion.<br><br>Rossana<br><br><br><br><br><div class="gmail_quote">2012/3/8 Tim-Philipp Müller <span dir="ltr"><<a href="mailto:t.i.m@zen.co.uk">t.i.m@zen.co.uk</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On Thu, 2012-03-08 at 05:40 -0200, Rossana Guerra wrote:<br>
<br>
> Hello, I have video which lasts 2 minutes, I want it to finish at the<br>
> minute 1 (at the half of its duration).<br>
> What is the best way to do this? I send an event to the pipeline<br>
> (eos_event)<br>
> How I control the time to trigger the event to finish it?<br>
<br>
</div></div>What's the context? What are you trying to do? What pipeline are you<br>
using?<br>
<br>
Cheers<br>
-Tim<br>
<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" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div><br>