<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>I found out the solution. It was in the code at the time of linking playbin with my pipeline.<br><br>My code was: <br><br>audiopad = gst_element_get_static_pad (audioconvert, "sink");<br>gst_element_add_pad (pipeline, gst_ghost_pad_new (NULL, audiopad));<br>g_object_set(G_OBJECT(playbin), "audio-sink", pipeline, NULL);<br>gst_object_unref (audiopad);<br><br>On the second line, I had to replace NULL by "sink" :<br><br>gst_element_add_pad (pipeline, gst_ghost_pad_new ("sink", audiopad));<br><br>And it works perfectly now<br><br>Thank you so much for your kind help<br><br>Victor<br><div> <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>