Hello Stefan,<div><br></div><div>I don't want to use playbin2 since I see playbin2 is beffering & playing. Let me explain my set up to make you understand my problem.</div><div>I am mounting the media files residing on my phone (twonkey server is running on my phone) on to my PC using djmount client running on my pc over WiFi. </div>
<div>Once mount is successful , I see all the media files look like a regular file (i can do open/seek etc on the files).</div><div><br></div><div>For example I see the files mounted in my pc at /home/upnp/Twonkey_Mobile/Music/All_tracks/*.mp3</div>
<div><br></div><div>I don't know how to find out the URI associated with each file to provide it to souphttpsrc plugin.</div><div><br></div><div>One more experiment I did , I just tried fdsrc instead of filesrc by opening an upnp mp3 file & providing it's "fd" to it. This plays fine without any buffering & there are no breaks in the audio.</div>
<div><br></div><div>Do you see any limitation in making use of this plugin ?</div><div><br></div><div>Also with fdsrc I am able to seek forward correctly but on seek backward say for "n" sec , I am hearing no sound for "n" sec & exactly after n sec,</div>
<div>playback starts from the new seeked position in the stream. Is there any thing wrong I am doing in passing the seek event? or Is it the limitation of fdsrc. ?</div><div><br></div><div>// code snippet for seeking</div>
<div><br></div><div><div>void seek_handler (double displacement) // displacement is in second</div><div> {</div><div><br></div><div> GstFormat fmt = GST_FORMAT_TIME;</div><div> gint64 cur_pos;</div><div> gst_element_query_position (pipeline, &fmt, &cur_pos);</div>
<div><br></div><div> double new_pos_sec = cur_pos * (1.0 / GST_SECOND) + displacement;</div><div> </div><div> seek (new_pos_sec * GST_SECOND);</div><div><br></div><div> }</div></div><div><br></div><div><div>void seek (gint64 new_pos)</div>
<div> {</div><div> if (new_pos < 0)</div><div> new_pos = 0;</div><div> gst_element_seek (pipeline, 1.0, GST_FORMAT_TIME, GST_SEEK_FLAG_FLUSH, GST_SEEK_TYPE_SET,</div><div> new_pos, GST_SEEK_TYPE_NONE, GST_CLOCK_TIME_NONE);</div>
<div> }</div></div><div><br></div><div><br></div><div><br></div><div>Thanks & Regards</div><div>Satish</div><div><br></div><div><br></div><div><br></div><div><br><div class="gmail_quote">On Wed, Apr 6, 2011 at 1:52 AM, Stefan Kost <span dir="ltr"><<a href="mailto:ensonic@hora-obscura.de">ensonic@hora-obscura.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Am 05.04.2011 13:30, schrieb satish pattar:<br>
<div class="im">> Hello Stefan,<br>
><br>
> Thanks for your very good input. I see "souphttpsrc" plugin installed in my pc<br>
> . Do you think it can straightway be used as source plugin to stream UPnP media<br>
> file. Also , I learnt that UPnP share uses SSDP protocol hence I am doubting<br>
> whether I can use souphttpsrc or not.<br>
<br>
</div>You can use libgupnp to handle the upnp parts. Once you got a media url, use<br>
gstreamer to play from it (just use playbin2 and set the http url you got from<br>
the upnp side).<br>
<br>
Stefan<br>
<div class="im">><br>
><br>
><br>
> Please provide your inputs.<br>
><br>
> Thanks & Regards<br>
> Sateesh P<br>
><br>
><br>
> On Tue, Apr 5, 2011 at 2:09 AM, Stefan Kost <<a href="mailto:ensonic@hora-obscura.de">ensonic@hora-obscura.de</a><br>
</div><div class="im">> <mailto:<a href="mailto:ensonic@hora-obscura.de">ensonic@hora-obscura.de</a>>> wrote:<br>
><br>
> Am 28.03.2011 14:16, schrieb satish pattar:<br>
> > Hello All,<br>
> ><br>
> > I need to develop a some source plugin that can generate source from a<br>
> > file(*.mp3 , which is not a file residing on the local machine, but instead a<br>
> > file mounted from some remote machine using djmount).<br>
><br>
> (for other djmount is a fuse thingy to mount a upnp share).<br>
><br>
> Satish, maybe you are needing some larger buffering after filesrc. Also why<br>
> don't you just use some httpsrc to play from the upnp share?<br>
><br>
> Stefan<br>
><br>
> ><br>
> > I thought of using "filesrc" plugin along with decodebin to play the file. it<br>
> > plays fine when the network condition is good but in case of Wireless i<br>
> observe<br>
> > there is some cut in the playing for every certian interval<br>
> > (,say 8 sec). Please let me know what could be the problem. your inputs are<br>
> > highly appreciated.<br>
> ><br>
> ><br>
> ><br>
> > --<br>
> > Thanks & Regards,<br>
> ><br>
> > Satish Pattar<br>
> ><br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > gstreamer-devel mailing list<br>
> > <a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
</div>> <mailto:<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>><br>
<div><div></div><div class="h5">> > <a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
><br>
><br>
><br>
><br>
> --<br>
> Thanks & Regards,<br>
><br>
> Satish Pattar<br>
><br>
><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>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Thanks & Regards,<br><br>Satish Pattar<br><br>
</div>