[meta-freescale] Question about hdmi audio playback
Ray·Bloodworth
k870818319 at outlook.com
Wed Dec 17 03:53:45 PST 2014
Hi, Marco
This command didn't work...
gst-launch-1.0 filesrc location=/usr/share/sounds/alsa/Noise.wav ! wavparse ! audioconvert ! alsasink device=hw:1,0
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstAlsaSink:alsasink0: Could not open audio device for playback.
Additional debug info:
cortexa9-vfp-neon-mx6qdl-poky-linux-gnueabi/gstreamer1.0-plugins-base/1.4.1-r0/gst-plugins-base-1.4.1/ext/alsa/gstalsasink.c(859): gst_alsasink_open (): /GstPipeline:pipeline0/GstAlsaSink:alsasink0:
Playback open error on device 'hw:1,0': Invalid argument
Setting pipeline to NULL ...
Freeing pipeline ...
I also tested "hw:0,0", it was fine...
gst-launch-1.0 filesrc location=/usr/share/sounds/alsa/Noise.wav ! wavparse ! audioconvert ! alsasink device=hw:0,0
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstAudioSinkClock
Got EOS from element "pipeline0".
Execution ended after 0:00:01.418903431
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
Ray·Bloodworth
From: Marco Trillo
Date: 2014-12-17 19:12
To: Ray·Bloodworth
CC: meta-freescale
Subject: Re: [meta-freescale] Question about hdmi audio playback
Hello,
On 12/17/2014 12:07 PM, Ray·Bloodworth wrote:
> Hi, Marco
> Thanks for your help!
> >In which format is the audio in this *.wav file? It's quite possible
> >that it is not supported by imx-hdmi-soc, in which case you can
> try with
> >gstreamer using audioconvert (gst-launch filesrc location=Noise.wav !
> >/wavparse/ ! audioconvert ! /alsasink).
>
> I have a question about this "gst-launch" command.
> How dose this command line routing sound stream to imx-hdmi-soc
> with alsasink?
Yeah, I forgot to include the `device' attribute. The correct command
would be:
gst-launch filesrc location=Noise.wav ! wavparse ! audioconvert !
alsasink device=hw:1,0
Kind regards
Marco
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20141217/8c3c43c8/attachment-0001.html>
More information about the meta-freescale
mailing list