Kapil,<br><br>I was trying to implement something like :<br><br>gst-launch souphttpsrc ! adaptivestreaming ! decodebin ! sink.<br><br>It works well if I program the souphttpsrc with the URI to download; But I want the adaptivestreaming element to control souphttpsrc. Is that possible ?<br>
<br>Rajashree<br><br><br><br><div class="gmail_quote">On Wed, May 4, 2011 at 11:25 PM, Kapil Agrawal <span dir="ltr">&lt;<a href="mailto:kapil.agl@gmail.com">kapil.agl@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Are you trying to implement something as<br>gst-launch adaptivestreaming ! souphttpsrc ! decodebin ! sink ?<br><br>If yes then I doubt how could you do that as  souphttpsrc only has src pads.<br><br>I would have tried to make changes in the souphttpsrc element to implement adaptive streaming inside it ?<br>

<br>Regards<br>Kapil <br><br><div class="gmail_quote"><div><div></div><div class="h5">On Thu, May 5, 2011 at 5:17 AM, Rajashree Chivakula <span dir="ltr">&lt;<a href="mailto:rajashree.prasad@gmail.com" target="_blank">rajashree.prasad@gmail.com</a>&gt;</span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5"><div class="gmail_quote"><div link="blue" vlink="purple" lang="EN-US">
<div><p class="MsoNormal" style="margin-bottom: 12pt;">
<span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">Hi all, <br>
<br>I&#39;m new to gstreamer so please bear with me if my issue seems trivial. <br><br>I&#39;m developing an application to implement Adaptive Streaming. For this, I have the souphttpsrc element that&#39;s linked to my adaptivestreaming element. The adaptivestreaming element needs to send out URIs to the souphttpsrc element and download chunks of data from the network, which it then passes along to the demux/decoders. Each chunk has it&#39;s own URI. The problem I&#39;m facing is : how do i design it such that my adaptivestreaming element will control the flow of data from souphttpsrc ? Basically run my adaptivestreaming element in pull mode (I&#39;m not really interested in random accesses, I need to download all the data that&#39;s accessible by the URI); I did implement the activate_function and activatepull_function, but it didn&#39;t work. I could not enter my looping function associated with the sinkpad of my adaptivestreaming element. <br>


In my activate function :</span></p><p class="MsoNormal" style="margin-bottom: 12pt;"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">static gboolean gst_adaptive_streaming_activate (GstPad *pad) {</span></p>


<p class="MsoNormal" style="margin-bottom: 12pt;"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">    if(gst_pad_check_pull_range(pad)) {</span></p><p class="MsoNormal" style="margin-bottom: 12pt;">


<span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">        return gst_pad_activate_pull(pad, TRUE);</span></p><p class="MsoNormal" style="margin-bottom: 12pt;"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">    }</span></p>


<p class="MsoNormal" style="margin-bottom: 12pt;"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">    else {</span></p><p class="MsoNormal" style="margin-bottom: 12pt;"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">        g_print(&quot;Cannot activate task ...\n&quot;);</span></p>


<p class="MsoNormal" style="margin-bottom: 12pt;"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">        return FALSE;</span></p><p class="MsoNormal" style="margin-bottom: 12pt;">


<span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">    }</span></p><p class="MsoNormal" style="margin-bottom: 12pt;"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">}</span></p>


<p class="MsoNormal" style="margin-bottom: 12pt;"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">gst_pad_check_pull_range() returned FALSE ;  But souphttplivesrc does support getrangefunc(); Any idea what’s happening here ?</span></p>


<p class="MsoNormal" style="margin-bottom: 12pt;"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;"><br>Thanks </span></p></div></div></div><br>
<br></div></div>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">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></blockquote></div><font color="#888888"><br><br clear="all"><br>-- <br><a href="http://www.mediamagictechnologies.com" target="_blank">www.mediamagictechnologies.com</a> (Gstreamer, ffmpeg, Red5, Streaming)<br>twitter handle: @gst_kaps<br>
<a href="http://www.linkedin.com/in/kapilagrawal" target="_blank">http://www.linkedin.com/in/kapilagrawal</a><br>

</font><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></blockquote></div><br>