flv demux failures on YouTube 240p FLV audio tracks

Dave Milici davemilici at sbcglobal.net
Sat May 25 10:55:12 PDT 2013


It worked, Awesome!

Calling gst_plugin_feature_set_rank() on the ffdec_mp3 plugin at init time got it to auto-plug with playbin2 pipeline. No more audio-sink hack.

Thanks again, Tim.
--DaveM

--- On Thu, 5/23/13, Dave Milici <davemilici at sbcglobal.net> wrote:

> From: Dave Milici <davemilici at sbcglobal.net>
> Subject: Re: flv demux failures on YouTube 240p FLV audio tracks
> To: "Discussion of the development of and with GStreamer" <gstreamer-devel at lists.freedesktop.org>
> Date: Thursday, May 23, 2013, 10:53 PM
> Tim, Thanks very much for that tip. I
> don't think libmad was in our OE Qt4 build, nor recognize
> the others you mentioned.
> 
> I figured there had to be some secret to getting playbin2
> auto-plugging to work, so I'll check out the ranking option
> when back at the lab.
> 
> Regards,
> --DaveM
> 
> --- On Wed, 5/22/13, Tim-Philipp Müller <t.i.m at zen.co.uk>
> wrote:
> 
> > From: Tim-Philipp Müller <t.i.m at zen.co.uk>
> > Subject: Re: flv demux failures on YouTube 240p FLV
> audio tracks
> > To: gstreamer-devel at lists.freedesktop.org
> > Date: Wednesday, May 22, 2013, 2:46 PM
> > On Tue, 2013-05-21 at 22:25 -0700,
> > Dave Milici wrote:
> > 
> > > I have a followup finding and question after
> > experimenting with a
> > > playbin2 example with both video-sink and
> audio-sink
> > components.
> > > 
> > > Modifying some of the gstreamer custom playbin
> > examples, I found that
> > > if I explicitly add an "ffdec_mp3" element to
> custom
> > "audio-sink" bin,
> > > I can get audio and video streams to play.
> > > 
> > > What I'm confused about is whether adding a
> decoder
> > element to a head
> > > of a "sink" bin is the appropriate thing to do in
> this
> > case. Is that
> > > expected protocol?
> > 
> > It's not :)
> > 
> > > Wouldn't it be more logical to add the decoder
> element
> > to the "src" pad
> > > of the flv demuxer? Is there an example of fixing
> up
> > incomplete demuxer
> > > connections?
> > 
> > Yes, indeed. The reason that doesn't happen is that
> > ffdec_mp3 has no
> > rank, for various reasons. If you had either the 'mad'
> mp3
> > decoder
> > installed, or the mpg123audiodec mp3 decoder, or the
> > (free/FLOSS)
> > flump3dec decoder, then an mp3 decoder should be
> plugged
> > after the
> > demuxer by playbin/uridecodebin automatically. You can
> also
> > change the
> > rank of ffdec_mp3 to something like GST_RANK_MARGINAL,
> so
> > that it gets
> > autoplugged. You can do that by changing the
> gst-ffmpeg
> > source code and
> > recompile the plugin, or by looking up the ffdec_mp3
> plugin
> > feature from
> > the registry in your application, and then set the
> plugin
> > feature rank
> > there (after gst_init, before creating your pipeline).
> > 
> > Cheers
> >  - Tim
> > 
> > _______________________________________________
> > gstreamer-devel mailing list
> > gstreamer-devel at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> > 
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> 


More information about the gstreamer-devel mailing list