<div>Hi,</div> <div>I'm not sure this is possible from command line. But if you write your own application and create and handle your pipeline yourself, here are the guidelines:</div> <div> </div> <div>When you create and start your pipeline, connect a signal for the "segment done" message like this:</div><FONT size=2> <div>g_signal_connect (commonBus, </FONT><FONT color=#800000 size=2>"message::segment-done"</FONT><FONT size=2>, (GCallback) reloop_call, pipeline);</div> <div></FONT> </div> <div>In your callback, check the right message and then send an event to get back to beginning of file:</div><FONT size=2><FONT color=#0000ff size=2> <div>static</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>void </FONT><FONT size=2>reloop_call (GstBus * bus, GstMessage * message, GstElement * pipeline)</div> <div>{</div> <div>GstEvent* seek_event;</div> <div></FONT><FONT color=#0000ff size=2>switch</FONT><FONT size=2> (message->type) {</div>
<div></div> <div></FONT><FONT color=#0000ff size=2>case</FONT><FONT size=2> GST_MESSAGE_SEGMENT_DONE:</div> <div>g_log(G_LOG_DOMAIN_VSA, G_LOG_LEVEL_INFO, </FONT><FONT color=#800000 size=2>"Segment done message received"</FONT><FONT size=2>);</div></FONT><FONT size=2> <div>seek_event = gst_event_new_seek (1.0, GST_FORMAT_TIME,</div> <div>(GstSeekFlags) (GST_SEEK_FLAG_SEGMENT | GST_SEEK_FLAG_FLUSH),</div> <div>GST_SEEK_TYPE_SET, (GstClockTime) 0,</div> <div>GST_SEEK_TYPE_SET, -1);</div> <div>gst_element_send_event (pipeline, seek_event);</div> <div></FONT><FONT color=#0000ff size=2>break</FONT><FONT size=2>;</div> <div></FONT><FONT color=#0000ff size=2>default</FONT><FONT size=2>:</div> <div>g_assert_not_reached ();</div> <div></FONT><FONT color=#0000ff size=2>break</FONT><FONT size=2>;</div> <div>}</div> <div>}</div></FONT></FONT> <div><BR>Regards,</div> <div>Al</div> <div><BR><B><I>Sreejesh <sreejesh@multitech.co.in></I></B> a écrit :</div>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"> <META content="Microsoft Word 11 (filtered medium)" name=Generator> <STYLE> <!-- /* Font Definitions */ @font-face {font-family:Wingdings; panose-1:5 0 0 0 0 0 0 0 0 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {color:blue; text-decoration:underline;} span.EmailStyle17 {mso-style-type:personal-reply; font-family:Arial; color:navy;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in;} div.Section1 {page:Section1;} /* List Definitions */ @list l0 {mso-list-id:502283966; mso-list-template-ids:-2111254188;} @list l0:level1 {mso-level-number-format:bullet; mso-level-text:\F0B7;
mso-level-tab-stop:.5in; mso-level-number-position:left; text-indent:-.25in; mso-ansi-font-size:10.0pt; font-family:Symbol;} ol {margin-bottom:0in;} ul {margin-bottom:0in;} --> </STYLE> <DIV class=Section1> <DIV> <div class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Hi All,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></FONT></div> <div class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></div> <div class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">How can I continuously replay a .wav file.<o:p></o:p></SPAN></FONT></div> <div class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">I have the following pipeline to play a .wav
file.<o:p></o:p></SPAN></FONT></div> <div class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></div> <div class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Gst-launch filesrc location=myaudio.wav ! decodebin ! osssink<o:p></o:p></SPAN></FONT></div> <div class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></div> <div class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">The above pipeline stops after getting EOS. But I wanted to repeat the playback.<o:p></o:p></SPAN></FONT></div> <div class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></div> <div class=MsoNormal><FONT
face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Please help.<o:p></o:p></SPAN></FONT></div> <div class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></div> <div class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Thanks & Regards<o:p></o:p></SPAN></FONT></div> <div class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Sreejesh R B<o:p></o:p></SPAN></FONT></div></DIV></DIV>-------------------------------------------------------------------------<BR>This SF.net email is sponsored by the 2008 JavaOne(SM) Conference <BR>Don't miss this year's exciting event. There's still time to save $100. <BR>Use priority code J8TL2D2.
<BR>http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone_______________________________________________<BR>gstreamer-devel mailing list<BR>gstreamer-devel@lists.sourceforge.net<BR>https://lists.sourceforge.net/lists/listinfo/gstreamer-devel<BR></BLOCKQUOTE><BR><p> __________________________________________________<br>Do You Yahoo!?<br>En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicités <br>http://mail.yahoo.fr Yahoo! Mail