ALSA Compress Offload support
Sebastian Dröge
sebastian at centricular.com
Tue Jan 13 01:15:35 PST 2015
On Di, 2015-01-13 at 08:40 +0000, Qais Yousef wrote:
> On 01/09/2015 09:28 AM, Qais Yousef wrote:
> > On 01/09/2015 09:12 AM, Sebastian Dröge wrote:
> >> Search for "MPEG" in
> >> http://cgit.freedesktop.org/gstreamer/gst-plugins-base/tree/ext/alsa/gstalsasink.c
> >>
> >>
> >> At the sink pad template all the compressed formats that are supported
> >> are in the PASSTHROUGH_CAPS #define.
> >
> > OK that's awesome! I'll try it out.
> >
> >
>
> OK so I'm on gst v1.4.5, when I run this pipeline
>
>
> gst-launch-1.0 -v filesrc location=$mp3_file ! mpegaudioparse !
> alsasink
>
> I get the following error:
> Setting pipeline to PAUSED ...
> Pipeline is PREROLLING ...
> /GstPipeline:pipeline0/GstMpegAudioParse:mpegaudioparse0.GstPad:src:
> caps = "audio/mpeg\,\ mpegversion\=\(int\)1\,\
> mpegaudioversion\=\(int\)1\,\ layer\=\(int\)3\,\ rate\=\(int\)44100\,\
> channels\=\(int\)2\,\ parsed\=\(boolean\)true"
> ERROR: from element
> /GstPipeline:pipeline0/GstMpegAudioParse:mpegaudioparse0: GStreamer
> encountered a general stream error.
> Additional debug info:
> gstbaseparse.c(3264): gst_base_parse_loop ():
> /GstPipeline:pipeline0/GstMpegAudioParse:mpegaudioparse0:
> streaming stopped, reason not-negotiated
> ERROR: pipeline doesn't want to preroll.
> Setting pipeline to NULL ...
> /GstPipeline:pipeline0/GstMpegAudioParse:mpegaudioparse0.GstPad:src:
> caps = "NULL"
> Freeing pipeline ...
>
>
> Looking at PASSTHROUGH_CAPS #define alsasink should support these caps,
> no? Do I need to insert something else into the pipeline?
No, AFAIK that should just work. If your driver and hardware supports
MP3 passthrough. You might also need to select a different device on
alsasink.
If you get a debug log that might help.
--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150113/0dc94882/attachment.sig>
More information about the gstreamer-devel
mailing list