<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>Thanks Wim,</DIV>
<DIV>I got it working fine now,</DIV>
<DIV>Regards,</DIV>
<DIV>Al<BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><BR>
<DIV style="FONT-SIZE: 13px; FONT-FAMILY: arial, helvetica, sans-serif"><FONT face=Tahoma size=2>
<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, 14 Novembre 2008, 17h35mn 54s<BR><B><SPAN style="FONT-WEIGHT: bold">Objet :</SPAN></B> Re: [gst-devel] Re : Re : Sending seek events to correct pipelines<BR></FONT><BR>On Fri, 2008-11-14 at 15:50 +0000, Albert Costa wrote:<BR>> Thanks Wim, <BR>> I've tried as follows for testing:<BR>> <BR>> [create and set all the elements and properties...]<BR>> gst_bin_add_many(GST_BIN(pipeline), filesrc1, decodebin1,<BR>> ffmpegcolorspace1, directdrawsink1, filesrc2, decodebin2,<BR>> ffmpegcolorspace2, directdrawsink2, NULL);<BR>> [link filesrc1, decodebin1, ffmpegcolorspace1, directdrawsink1<BR>> together, and filesrc2,
decodebin2, ffmpegcolorspace2, directdrawsink2<BR>> together as distinct lines]<BR>> gst_element_set_state (pipeline, GST_STATE_PLAYING);<BR>> <BR>> <BR>> <BR>> then<BR>> <BR>> gst_element_send_event (pipeline, seek_event); -> ok but both filesrc1<BR>> & filesrc2 get the seek event (not what I want)<BR>> <BR>> <BR>> gst_element_send_event (filesrc1, seek_event); -> not sent (returns 0)<BR>> gst_element_send_event (decodebin1, seek_event); -> sent (returns 1)<BR>> but nothing happens (seek not handled)<BR>> <BR>> I don't know why this won't work, but if I understand what you wrote<BR>> in the first reply, there's no way to set the seek only on one of the<BR>> lines.<BR><BR>Yes there is, send the event to the relevant sink.<BR><BR>Wim<BR><BR>> Regards,<BR>> Al<BR>> <BR>> <BR>> ______________________________________________________________________<BR>> De
: Wim Taymans <<A href="mailto:wim.taymans@gmail.com" ymailto="mailto:wim.taymans@gmail.com">wim.taymans@gmail.com</A>><BR>> À : Discussion of the development of GStreamer<BR>> <<A href="mailto:gstreamer-devel@lists.sourceforge.net" ymailto="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</A>><BR>> Envoyé le : Vendredi, 14 Novembre 2008, 15h23mn 32s<BR>> Objet : Re: [gst-devel] Re : Sending seek events to correct pipelines<BR>> <BR>> On Fri, 2008-11-14 at 14:13 +0000, Albert Costa wrote:<BR>> > Hi Wim,<BR>> > is there any way of sending the event to only the specific element<BR>> > (one of the filesrc elements in my case) I need?<BR>> > If I try to send the seek with gst_element_send_event<BR>> > (pipeline1.source, seek_event) (where pipeline1.source would of<BR>> course<BR>> > be my video source), then it seems the event is not sent
(returns<BR>> > false). Sending to pipeline1 itself returns ok, but seems not to be<BR>> > taken into account anyway.<BR>> > Regards,<BR>> > Al<BR>> <BR>> You can send the event to any element that is driving the pipeline,<BR>> which may or may not be the source. In a typical playback pipeline,<BR>> the<BR>> demuxer is pushing data into the pipeline.<BR>> <BR>> Wim<BR>> <BR>> > <BR>> > > However I want to send specific seek events for each pipeline (to<BR>> > > access specific parts of the video files I play). If I use<BR>> > > gst_element_send_event (mainpipeline, my_seek_event) then I got<BR>> one<BR>> > of<BR>> > > the file beeing seek, but it is not sure which line received the<BR>> > > event. And if I use gst_element_send_event (pipeline1,<BR>> > > my_seek_event_1) and gst_element_send_event (pipeline2,<BR>> > >
my_seek_event_2) then it seems that none of the events is catched<BR>> > nor<BR>> > > processed.<BR>> > <BR>> > Sending the event to a pipeline/bin will send the event to all sinks<BR>> > (or<BR>> > bins with sinks in them) so both pipelines should receive the event.<BR>> > <BR>> > <BR>> ><BR>> -------------------------------------------------------------------------<BR>> > This SF.Net email is sponsored by the Moblin Your Move Developer's<BR>> challenge<BR>> > Build the coolest Linux based applications with Moblin SDK & win<BR>> great prizes<BR>> > Grand prize is a trip for two to an Open Source event anywhere in<BR>> the world<BR>> > <A href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" target=_blank>http://moblin-contest.org/redirect.php?banner_id=100&url=/</A><BR>> > _______________________________________________
gstreamer-devel<BR>> mailing list <A href="mailto:gstreamer-devel@lists.sourceforge.net" ymailto="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>> This SF.Net email is sponsored by the Moblin Your Move Developer's<BR>> challenge<BR>> Build the coolest Linux based applications with Moblin SDK & win great<BR>> prizes<BR>> Grand prize is a trip for two to an Open Source event anywhere in the<BR>> world<BR>> <A href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" target=_blank>http://moblin-contest.org/redirect.php?banner_id=100&url=/</A><BR>> _______________________________________________<BR>>
gstreamer-devel mailing list<BR>> <A href="mailto:gstreamer-devel@lists.sourceforge.net" ymailto="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>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<BR>> Build the coolest Linux based applications with Moblin SDK & win great prizes<BR>> Grand prize is a trip for two to an Open Source event anywhere in the world<BR>> <A href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" target=_blank>http://moblin-contest.org/redirect.php?banner_id=100&url=/</A><BR>> _______________________________________________ gstreamer-devel mailing list <A
href="mailto:gstreamer-devel@lists.sourceforge.net" ymailto="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>This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<BR>Build the coolest Linux based applications with Moblin SDK & win great prizes<BR>Grand prize is a trip for two to an Open Source event anywhere in the world<BR><A href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" target=_blank>http://moblin-contest.org/redirect.php?banner_id=100&url=/</A><BR>_______________________________________________<BR>gstreamer-devel mailing list<BR><A href="mailto:gstreamer-devel@lists.sourceforge.net"
ymailto="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><br>
</body></html>