<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi Tim<br><br>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 <a href="https://launchpad.net/ubuntu/trusty/+package/gstreamer1.0-plugins-base-apps">gstreamer1.0-plugins-base-apps</a> package installed...).<br>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.<br><br>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)...<br><br>I have tried on another Ubuntu system (13.10 version). I have the same problem.<br><br>Cheers<br><br>Victor<br><br><br><br><div>> Subject: Re: Problem with porting playbin in a pipeline from Gst-0.10 to Gst1.0<br>> From: tim@centricular.com<br>> To: gstreamer-devel@lists.freedesktop.org<br>> Date: Sun, 2 Nov 2014 14:43:06 +0000<br>> <br>> On Sun, 2014-11-02 at 15:31 +0100, Victor henri wrote:<br>> <br>> Hi Victor,<br>> <br>> > Thank you for your reply. I have all those pugins installed, including<br>> > the package gstreamer1.0-fluendo-mp3 (I use Ubuntu 14.04). I post here<br>> > the output of gst-inspect-1.0 and mpegaudioparse and flacparse are in<br>> > the list. On the other side, Totem or Rythmbox players (that use<br>> > Gstreamer-1.0 I think) can read mp3 or flac normally on my system...<br>> > <br>> > I really don't understand what is the problem then...<br>> <br>> Does this work for you?<br>> <br>> <br>> $ gst-launch-1.0 playbin uri=file:///path/to/foo.flac<br>> <br>> or<br>> <br>> $ gst-play-1.0 foo.flac<br>> <br>> ?<br>> <br>> Are you sure you are actually using GStreamer 1.x in your application?<br>> <br>> Cheers<br>> -Tim<br>> <br>> > Victor <br>> > <br>> > +0100, Victor henri wrote:<br>> > > <br>> > > Hi Victor,<br>> > > <br>> > > > I have use playbin2 with Gstreamer-0.10 for my app and it could<br>> > read<br>> > > > any kind of file.<br>> > > > <br>> > > > I want to port it to Gstreamer1.0. I have made some adjustments,<br>> > as I<br>> > > > could find from the doc. It can read only wave files now, but<br>> > > > not .flac or .mp3 files! I have every possible plugins installed<br>> > (I<br>> > > > think). <br>> > > > <br>> > > > Could please help me with this?<br>> > > <br>> > > The code should continue to work as is, apart from the<br>> > playbin2->playbin<br>> > > change.<br>> > > <br>> > > It sounds like you're still missing some elements. Perhaps you could<br>> > > send us the output of gst-inspect-1.0 ?<br>> > > <br>> > > In particular, make sure you have parsers installed, in 1.0 we now<br>> > > require parsers in front of most decoders, so for FLAC you'd need<br>> > > flacparse and flacdec, and for mp3 you'd need mpegaudioparse. The<br>> > > audioparsers ship as part of gst-plugins-good, most video parsers<br>> > are in<br>> > > gst-plugins-bad (h264parse etc.)<br>> > > <br>> > > Cheers<br>> > > -Tim<br>> > <br></div> </div></body>
</html>