Problem with porting playbin in a pipeline from Gst-0.10 to Gst1.0

Victor henri nadaeck at hotmail.com
Sun Nov 2 15:32:03 PST 2014


Hi Tim

gst-launch works perfectly both with mp3 or flac (gst-play doesn't because it says the gst-play command is not found, although I have the  gstreamer1.0-plugins-base-apps package installed...).
My app can be compiled against both gst-0.10 and -1.0 but to be sure, I removed the gstreamer-0.10-dev to be sure it is compiled against gst-1.0 for sure.

Actually the playbin used alone in my code plays perfectly mp3 or flac files. The problem comes when I want to have its sink (via the sink GstGhostPad) in the pipeline composed by the several elements I have put in it (equalizers, audiochebband, spectrum, autoaudiosink and some others)...

I have tried on another Ubuntu system (13.10 version). I have the same problem.

Cheers

Victor



> Subject: Re: Problem with porting playbin in a pipeline from Gst-0.10 to Gst1.0
> From: tim at centricular.com
> To: gstreamer-devel at lists.freedesktop.org
> Date: Sun, 2 Nov 2014 14:43:06 +0000
> 
> On Sun, 2014-11-02 at 15:31 +0100, Victor henri wrote:
> 
> Hi Victor,
> 
> > Thank you for your reply. I have all those pugins installed, including
> > the package gstreamer1.0-fluendo-mp3 (I use Ubuntu 14.04). I post here
> > the output of gst-inspect-1.0 and mpegaudioparse and flacparse are in
> > the list. On the other side, Totem or Rythmbox players (that use
> > Gstreamer-1.0 I think) can read mp3 or flac normally on my system...
> > 
> > I really don't understand what is the problem then...
> 
> Does this work for you?
> 
> 
>  $ gst-launch-1.0 playbin uri=file:///path/to/foo.flac
> 
> or
> 
>  $ gst-play-1.0 foo.flac
> 
> ?
> 
> Are you sure you are actually using GStreamer 1.x in your application?
> 
>  Cheers
>   -Tim
> 
> > Victor 
> > 
> > +0100, Victor henri wrote:
> > > 
> > > Hi Victor,
> > > 
> > > > I have use playbin2 with Gstreamer-0.10 for my app and it could
> > read
> > > > any kind of file.
> > > > 
> > > > I want to port it to Gstreamer1.0. I have made some adjustments,
> > as I
> > > > could find from the doc. It can read only wave files now, but
> > > > not .flac or .mp3 files! I have every possible plugins installed
> > (I
> > > > think). 
> > > > 
> > > > Could please help me with this?
> > > 
> > > The code should continue to work as is, apart from the
> > playbin2->playbin
> > > change.
> > > 
> > > It sounds like you're still missing some elements. Perhaps you could
> > > send us the output of gst-inspect-1.0 ?
> > > 
> > > In particular, make sure you have parsers installed, in 1.0 we now
> > > require parsers in front of most decoders, so for FLAC you'd need
> > > flacparse and flacdec, and for mp3 you'd need mpegaudioparse. The
> > > audioparsers ship as part of gst-plugins-good, most video parsers
> > are in
> > > gst-plugins-bad (h264parse etc.)
> > > 
> > > Cheers
> > > -Tim
> > 
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20141103/eb9ff601/attachment.html>


More information about the gstreamer-devel mailing list