How does a pipeline look that plays LPCM files

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How does a pipeline look that plays LPCM files

danielkun

Mike,

> > I wrote a Gstreamer plugin that converts network byte order to little
> > endian to be able to play LPCM files.
>
> audioconvert can do that, you don't need to write a new plugin.

Thank you. It played back just fine with audioconvert.

I still get the error message below though,
(gst-launch-0.10:2321) GStreamer-CRITICAL **: gst_segment_clip:
assertion 'segment->format == format' failed

using the following pipeline:
gst-launch filesrc location=B-LPCM-1.pcm !
audio/x-raw-int,width=16,rate=44100,channels=1,depth=16,signed=true,endianness=4321
! audioconvert ! alsasink

What have I missed?

Thank you,

Daniel


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How does a pipeline look that plays LPCM files

Michael Smith-32
On Sun, 2008-03-02 at 19:07 -0700, [hidden email] wrote:

> Mike,
>
> > > I wrote a Gstreamer plugin that converts network byte order to little
> > > endian to be able to play LPCM files.
> >
> > audioconvert can do that, you don't need to write a new plugin.
>
> Thank you. It played back just fine with audioconvert.
>
> I still get the error message below though,
> (gst-launch-0.10:2321) GStreamer-CRITICAL **: gst_segment_clip:
> assertion 'segment->format == format' failed

Yes, you can't just put capsfilter after a filesrc and have things work
correctly.

You could look at using the audioparse element for this case, that does
what you need (but may require a newer set of plugins).

Your original mail said you wanted to play LPCM files - do you mean the
DVD LPCM format? If so, then that's a little more complex, but there's
already a dvdlpcmdec element you can use.

Mike

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How does a pipeline look that plays LPCM files

danielkun
In reply to this post by danielkun
Mike,

Once again, Thank you!

> > > > I wrote a Gstreamer plugin that converts network byte order to little
> > > > endian to be able to play LPCM files.
> > >
> > > audioconvert can do that, you don't need to write a new plugin.
> >
> > Thank you. It played back just fine with audioconvert.
> >
> > I still get the error message below though,
> > (gst-launch-0.10:2321) GStreamer-CRITICAL **: gst_segment_clip:
> > assertion 'segment->format == format' failed
>
> Yes, you can't just put capsfilter after a filesrc and have things work
> correctly.
>
> You could look at using the audioparse element for this case, that does
> what you need (but may require a newer set of plugins).

Thanks, audioparse got rid of the error message.

> Your original mail said you wanted to play LPCM files - do you mean the
> DVD LPCM format? If so, then that's a little more complex, but there's
> already a dvdlpcmdec element you can use.

I need to play back plain .pcm files, but thank you anyway.

Daniel



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel