<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:'times new roman', 'new york', times, serif;font-size:12pt"><div>It will be great to have this function when it comes in a future release, but at current time I'm still beeing stuck with my blocking problem... Is it something I'm doing wrong or that I didn't catch/understand?</div><div>Regards,</div><div>Al</div><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><br><div style="font-family:arial, helvetica, sans-serif;font-size:13px"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">De :</span></b> Wim Taymans <wim.taymans@gmail.com><br><b><span style="font-weight: bold;">À :</span></b> Discussion of the development of GStreamer <gstreamer-devel@lists.sourceforge.net><br><b><span style="font-weight: bold;">Envoyé le :</span></b> Vendredi, 19 Juin 2009, 20h27mn 19s<br><b><span
style="font-weight: bold;">Objet :</span></b> Re: [gst-devel] How to perform frame-by-frame video playing<br></font><br>On Fri, 2009-06-19 at 14:05 -0400, Nick Haddad wrote:<br>> Wohoo!<br>> <br>> <br>> I've been waiting for the framestepping API! Will this require some<br>> implementation by all the decoders to be reliable? <br><br>It's mostly done in the sinks (which have been updated). For reverse<br>stepping you'll still need the demuxers and decoders output data in<br>reverse, though. <br><br>Wim<br><br>> <br>> <br>> Thanks,<br>> -Nick<br>> <br>> <br>> <br>> On Jun 19, 2009, at 12:47 PM, Andoni Morales wrote:<br>> <br>> > <br>> > <br>> > 2009/6/19 Wim Taymans <<a ymailto="mailto:wim.taymans@gmail.com" href="mailto:wim.taymans@gmail.com">wim.taymans@gmail.com</a>><br>> > On Fri, 2009-06-19 at 16:02 +0000, Albert Costa wrote:<br>>
> <br>> > Your approach will probably work.<br>> > <br>> > Current GIT /and the eventual 0.10.24) has framestepping<br>> > through the<br>> > STEP events, which should solve things in a more general way<br>> > (when you<br>> > need to keep audio synchronized too).<br>> > <br>> > Does that means that the framestep draft [1] will be finally<br>> > implemented in 0.10.24? Good news, though. <br>> > <br>> > Cheers<br>> > <br>> > [1]<br>> > <a href="http://cgit.freedesktop.org/gstreamer/gstreamer/tree/docs/design/draft-framestep.txt"
target="_blank">http://cgit.freedesktop.org/gstreamer/gstreamer/tree/docs/design/draft-framestep.txt</a><br>> > <br>> > <br>> > <br>> > <br>> > Wim<br>> > <br>> > <br>> > > Hi,<br>> > > I'm trying to do the following:<br>> > > I have an application that constructs and controls a<br>> > pipeline. Merely,<br>> > > my pipe would be "filesink ! decodebin ! identity<br>> > sync=true !<br>> > > myfilter ! ffmpegcolorspace ! directdrawsink sync=false".<br>> > > The element myfilter is currently
just a pass-through<br>> > element (it does<br>> > > not process anything). My goal is, from the application,<br>> > to play the<br>> > > file only by moving a frame ahead when the user hits a key<br>> > (in fact<br>> > > later that would be a signal sent by another process). My<br>> > idea was to<br>> > > block the chain() function inside myfilter each time it is<br>> > called,<br>> > > untill a release notification is sent. What I did so far<br>> > is :<br>> > > in the chain() :<br>> > > {<br>>
> > ...<br>> > > g_mutex_lock(myfilter->lock);<br>> > > do<br>> > > {<br>> > > g_cond_wait(myfilter->process_next, myfilter->lock);<br>> > > }<br>> > > g_mutex_unlock(myfilter ->lock);<br>> > > ...<br>> > > }<br>> > ><br>> > ><br>> > > In my application, I have a specific function that gets<br>> > the sink pad<br>> > > of my filter element, and send a specific event on it.<br>>
> > In myfilter's sink_event function, I have a case of event<br>> > type where I<br>> > > call g_cond_signal(myfilter->process_next) (which I<br>> > thought would<br>> > > release the lock in the chain).<br>> > > My problem is that when I launch the pipeline, the<br>> > cond_wait does lock<br>> > > the chain function; but then in my application specific<br>> > function,<br>> > > calling gst_pad_send_event never returns, and my event is<br>> > thus not<br>> > > received by my element. Eveything hangs...<br>> >
> Is there any way to have it working somehow? (another<br>> > option was to<br>> > > set the pipe in pause mode and send seek events to go to<br>> > next frame,<br>> > > but i'm using mpeg2 ts files that do not support seek<br>> > anyway, and I<br>> > > have other constraints for which I need an element that<br>> > can be<br>> > > controled).<br>> > > Any help would be appreciated,<br>> > > Regards,<br>> > > Al<br>> > ><br>> > ><br>> >
><br>> > ><br>> > ><br>> > ><br>> > <br>> > ><br>> > ------------------------------------------------------------------------------<br>> > > Crystal Reports - New Free Runtime and 30 Day Trial<br>> > > Check out the new simplified licensing option that enables<br>> > unlimited<br>> > > royalty-free distribution of the report engine for<br>> > 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 ymailto="mailto:gstreamer-devel@lists.sourceforge.net" 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>> > <br>> > ------------------------------------------------------------------------------<br>> > Crystal Reports - New Free Runtime and 30 Day Trial<br>> > Check out the new
simplified licensing option that enables<br>> > unlimited<br>> > royalty-free distribution of the report engine for<br>> > 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 ymailto="mailto:gstreamer-devel@lists.sourceforge.net" 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>> > <br>> > <br>> > -- <br>> > Andoni Morales Alastruey<br>> > <br>> > LongoMatch:The Digital Coach<br>> > <a href="http://www.longomatch.ylatuya.es" target="_blank">http://www.longomatch.ylatuya.es</a><br>> > <ATT00001.txt><ATT00002.txt><br>> <br>> <br>> ------------------------------------------------------------------------------<br>> Are you an open source citizen? Join us for the Open Source Bridge conference!<br>> Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.<br>> Need another reason to go? 24-hour hacker lounge. Register today!<br>> <a href="http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org" target="_blank">http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org</a><br>>
_______________________________________________ gstreamer-devel mailing list <a ymailto="mailto:gstreamer-devel@lists.sourceforge.net" href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a> <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>Are you an open source citizen? Join us for the Open Source Bridge conference!<br>Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.<br>Need another reason to go? 24-hour hacker lounge. Register today!<br><a href="http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org" target="_blank">http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org</a><br>_______________________________________________<br>gstreamer-devel
mailing list<br><a ymailto="mailto:gstreamer-devel@lists.sourceforge.net" 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></div></div><div style="position:fixed"></div></div><br>
</body></html>