<div dir="ltr">Thanks for the pointers, Carlos.<div><br></div><div>It looks like the problem is that there are five streams, only one of which contains any data, this means that gst_asf_demux_check_first_ts() never returns true, so none of the streams ever get activated. Even if I change the function to ignore the streams with no data, it still doesn't get past all_streams_prerolled().</div><div><br></div><div>When playing the mmssrc output from file, I think you get an EOS, which forces the data through, ignoring the checks (see gst_asf_demux_check_activate_streams()).</div><div><br></div><div>As the empty streams have a bitrate of 0, I'm guessing that the sensible thing to do would be to ignore these streams, but first I'll dig out the asf spec and see if I can gain any more enlightenment.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 7, 2016 at 2:11 PM, Carlos Rafael Giani <span dir="ltr"><<a href="mailto:dv@pseudoterminal.org" target="_blank">dv@pseudoterminal.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<p>This appears to be an asfdemux problem. This pipeline shows that
there is no output from asfdemux:</p>
<p>gst-launch-1.0 -v mmssrc
location=<a class="m_3066440527331166390moz-txt-link-rfc2396E">"mmsh://radio.<wbr>yerevannights.com/<wbr>YerevanNights?MSWMExt=.asf"</a>
! identity silent=false name=pre-asf ! asfdemux ! identity
silent=false name=post-asf ! avdec_wmav2 ! audioconvert !
audioresample ! autoaudiosink</p>
<p>Interestingly, if I write the mmssrc output to a file, and then
try to play that, it works.<br>
</p><div><div class="h5">
<br>
<div class="m_3066440527331166390moz-cite-prefix">On 2016-11-07 14:58, Jonathan Miles
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>I can't see any redirect message (assuming below is the
correct way of looking for it):</div>
<div><br>
</div>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div><font face="monospace, monospace">$ gst-launch-1.0 -m
playbin uri="<a class="m_3066440527331166390moz-txt-link-freetext">mmsh://</a><a href="http://radio.yerevannights.com/YerevanNights?MSWMExt=.asf" target="_blank">radio.<wbr>yerevannights.com/<wbr>YerevanNights?MSWMExt=.asf</a>"</font></div>
<div><font face="monospace, monospace">Setting pipeline to
PAUSED ...</font></div>
<div><font face="monospace, monospace">Pipeline is PREROLLING
...</font></div>
<div><font face="monospace, monospace">Got message #0 from
element "streamsynchronizer0" (state-changed):
GstMessageStateChanged,
old-state=(GstState)GST_STATE_<wbr>NULL,
new-state=(GstState)GST_STATE_<wbr>READY,
pending-state=(GstState)GST_<wbr>STATE_VOID_PENDING;</font></div>
<div><font face="monospace, monospace">Got message #1 from
element "playsink" (state-changed):
GstMessageStateChanged,
old-state=(GstState)GST_STATE_<wbr>NULL,
new-state=(GstState)GST_STATE_<wbr>READY,
pending-state=(GstState)GST_<wbr>STATE_VOID_PENDING;</font></div>
<div><font face="monospace, monospace">Got message #2 from
element "playbin0" (state-changed):
GstMessageStateChanged,
old-state=(GstState)GST_STATE_<wbr>NULL,
new-state=(GstState)GST_STATE_<wbr>READY,
pending-state=(GstState)GST_<wbr>STATE_PAUSED;</font></div>
<div><font face="monospace, monospace">Got message #6 from
element "streamsynchronizer0" (state-changed):
GstMessageStateChanged,
old-state=(GstState)GST_STATE_<wbr>READY,
new-state=(GstState)GST_STATE_<wbr>PAUSED,
pending-state=(GstState)GST_<wbr>STATE_VOID_PENDING;</font></div>
<div><font face="monospace, monospace">Got message #7 from
element "uridecodebin0" (state-changed):
GstMessageStateChanged,
old-state=(GstState)GST_STATE_<wbr>NULL,
new-state=(GstState)GST_STATE_<wbr>READY,
pending-state=(GstState)GST_<wbr>STATE_PAUSED;</font></div>
<div><font face="monospace, monospace">Got message #14 from
element "typefind" (state-changed):
GstMessageStateChanged,
old-state=(GstState)GST_STATE_<wbr>NULL,
new-state=(GstState)GST_STATE_<wbr>READY,
pending-state=(GstState)GST_<wbr>STATE_VOID_PENDING;</font></div>
<div><font face="monospace, monospace">Got message #15 from
element "decodebin0" (state-changed):
GstMessageStateChanged,
old-state=(GstState)GST_STATE_<wbr>NULL,
new-state=(GstState)GST_STATE_<wbr>READY,
pending-state=(GstState)GST_<wbr>STATE_PAUSED;</font></div>
<div><font face="monospace, monospace">Got message #19 from
element "typefind" (state-changed):
GstMessageStateChanged,
old-state=(GstState)GST_STATE_<wbr>READY,
new-state=(GstState)GST_STATE_<wbr>PAUSED,
pending-state=(GstState)GST_<wbr>STATE_VOID_PENDING;</font></div>
<div><font face="monospace, monospace">Got message #20 from
element "source" (state-changed): GstMessageStateChanged,
old-state=(GstState)GST_STATE_<wbr>NULL,
new-state=(GstState)GST_STATE_<wbr>READY,
pending-state=(GstState)GST_<wbr>STATE_PAUSED;</font></div>
<div><font face="monospace, monospace">Got message #23 from
pad "source:src" (stream-status): GstMessageStreamStatus,
type=(GstStreamStatusType)GST_<wbr>STREAM_STATUS_TYPE_CREATE,
owner=(GstElement)"\(GstMMS\)\ source",
object=(GstTask)"\(GstTask\)\ source:src";</font></div>
<div><font face="monospace, monospace">Got message #24 from
element "source" (state-changed): GstMessageStateChanged,
old-state=(GstState)GST_STATE_<wbr>READY,
new-state=(GstState)GST_STATE_<wbr>PAUSED,
pending-state=(GstState)GST_<wbr>STATE_VOID_PENDING;</font></div>
<div><font face="monospace, monospace">Got message #25 from
pad "source:src" (stream-status): GstMessageStreamStatus,
type=(GstStreamStatusType)GST_<wbr>STREAM_STATUS_TYPE_ENTER,
owner=(GstElement)"\(GstMMS\)\ source",
object=(GstTask)"\(GstTask\)\ source:src";</font></div>
<div><font face="monospace, monospace">Got message #42 from
element "asfdemux0" (state-changed):
GstMessageStateChanged,
old-state=(GstState)GST_STATE_<wbr>NULL,
new-state=(GstState)GST_STATE_<wbr>READY,
pending-state=(GstState)GST_<wbr>STATE_VOID_PENDING;</font></div>
<div><font face="monospace, monospace">Got message #43 from
element "asfdemux0" (state-changed):
GstMessageStateChanged,
old-state=(GstState)GST_STATE_<wbr>READY,
new-state=(GstState)GST_STATE_<wbr>PAUSED,
pending-state=(GstState)GST_<wbr>STATE_VOID_PENDING;</font></div>
</blockquote>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">I also see the same problem on
GStreamer 1.8.2.</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Nov 7, 2016 at 12:26 PM,
Carlos Rafael Giani <span dir="ltr"><<a href="mailto:dv@pseudoterminal.org" target="_blank">dv@pseudoterminal.org</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF">
<p>Perhaps a redirection is occuring. Check for ELEMENT
messages in the bus with a "redirect" structure.
Starting with 1.10, there is a dedicated REDIRECT
message, but it is not being used by mmssrc yet.<br>
</p>
<div>
<div class="m_3066440527331166390gmail-h5"> <br>
<div class="m_3066440527331166390gmail-m_-3584887999090235585moz-cite-prefix">On
2016-11-07 13:11, Jonathan Miles wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div class="m_3066440527331166390gmail-h5">
<div dir="ltr">I'm having trouble getting the
following internet radio stream to play using
GStreamer 1.10:
<div><br>
</div>
<div>gst-launch-1.0 playbin uri="<a class="m_3066440527331166390gmail-m_-3584887999090235585moz-txt-link-freetext">mmsh://</a><a href="http://radio.yerevannights.com/YerevanNights?MSWMExt=.asf" target="_blank">radio.yerevannight<wbr>s.com/YerevanNights?MSWMExt=.<wbr>asf</a>"<br>
</div>
<div><br>
</div>
<div>This gets to PREROLLING, but never any
further.</div>
<div><br>
</div>
<div>With GST_DEBUG="asfdemux:6" I can see that
packets are being received: <a href="http://pastebin.ca/3737122" target="_blank">http://pastebin.ca/3<wbr>737122</a></div>
<div><br>
</div>
<div>The stream plays happily enough in vlc or
mplayer.</div>
<div><br>
</div>
<div>Are there any asf/mms experts out there
that can help?</div>
<div><br>
</div>
<div>Thanks,</div>
<div><br>
</div>
<div>Jonathan</div>
</div>
<br>
<fieldset class="m_3066440527331166390gmail-m_-3584887999090235585mimeAttachmentHeader"></fieldset>
<br>
</div>
</div>
<pre>______________________________<wbr>_________________
gstreamer-devel mailing list
<a class="m_3066440527331166390gmail-m_-3584887999090235585moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesk<wbr>top.org</a>
<a class="m_3066440527331166390gmail-m_-3584887999090235585moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-dev<wbr>el</a>
</pre>
</blockquote>
</div>
______________________________<wbr>_________________
gstreamer-devel mailing list
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesk<wbr>top.org</a>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-dev<wbr>el</a>
</blockquote></div>
</div></div>
<fieldset class="m_3066440527331166390mimeAttachmentHeader"></fieldset>
<pre>______________________________<wbr>_________________
gstreamer-devel mailing list
<a class="m_3066440527331166390moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.<wbr>freedesktop.org</a>
<a class="m_3066440527331166390moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a>
</pre>
</blockquote>
</div></div></div><br>______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
<br></blockquote></div><br></div>