* Question about hdmi audio playback
@ 2014-12-17 10:42 Ray・Bloodworth
2014-12-17 10:52 ` Marco Trillo
0 siblings, 1 reply; 5+ messages in thread
From: Ray・Bloodworth @ 2014-12-17 10:42 UTC (permalink / raw)
To: meta-freescale
[-- Attachment #1: Type: text/plain, Size: 718 bytes --]
Hi, everyone
I'm trying play wav files with hdmi monitor.
Platform: MCIMX6Q-SDP
I checked sound card with command line:
# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: wm8962audio [wm8962-audio], device 0: HiFi wm8962-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: imxhdmisoc [imx-hdmi-soc], device 0: i.MX HDMI Audio Tx hdmi-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
routing sound stream to wm8962audio is fine:
aplay -t wav -D hw:0,0 Noise.wav
But a error occured with hdmi:
aplay -t wav -D hw:1,0 Noise.wav
aplay: main:696: audio open error: Invalid argument
Could anyone help me with this issue?
BR
Ray・Bloodworth
[-- Attachment #2: Type: text/html, Size: 1868 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Question about hdmi audio playback
2014-12-17 10:42 Question about hdmi audio playback Ray・Bloodworth
@ 2014-12-17 10:52 ` Marco Trillo
2014-12-17 11:07 ` Ray·Bloodworth
0 siblings, 1 reply; 5+ messages in thread
From: Marco Trillo @ 2014-12-17 10:52 UTC (permalink / raw)
To: Ray·Bloodworth; +Cc: meta-freescale
Hello,
On 12/17/2014 11:42 AM, Ray·Bloodworth wrote:
> routing sound stream to wm8962audio is fine:
> aplay -t wav -D hw:0,0 Noise.wav
>
> But a error occured with hdmi:
> aplay -t wav -D hw:1,0 Noise.wav
> aplay: main:696: audio open error: Invalid argument
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).
Kind regards
Marco/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Question about hdmi audio playback
2014-12-17 10:52 ` Marco Trillo
@ 2014-12-17 11:07 ` Ray·Bloodworth
2014-12-17 11:12 ` Marco Trillo
0 siblings, 1 reply; 5+ messages in thread
From: Ray·Bloodworth @ 2014-12-17 11:07 UTC (permalink / raw)
To: Marco Trillo; +Cc: meta-freescale
[-- Attachment #1: Type: text/plain, Size: 1202 bytes --]
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?
BR,
Ray·Bloodworth
From: Marco Trillo
Date: 2014-12-17 18:52
To: Ray·Bloodworth
CC: meta-freescale
Subject: Re: [meta-freescale] Question about hdmi audio playback
Hello,
On 12/17/2014 11:42 AM, Ray·Bloodworth wrote:
> routing sound stream to wm8962audio is fine:
> aplay -t wav -D hw:0,0 Noise.wav
>
> But a error occured with hdmi:
> aplay -t wav -D hw:1,0 Noise.wav
> aplay: main:696: audio open error: Invalid argument
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).
Kind regards
Marco/
[-- Attachment #2: Type: text/html, Size: 3741 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Question about hdmi audio playback
2014-12-17 11:07 ` Ray·Bloodworth
@ 2014-12-17 11:12 ` Marco Trillo
2014-12-17 11:53 ` Ray·Bloodworth
0 siblings, 1 reply; 5+ messages in thread
From: Marco Trillo @ 2014-12-17 11:12 UTC (permalink / raw)
To: Ray·Bloodworth; +Cc: meta-freescale
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Question about hdmi audio playback
2014-12-17 11:12 ` Marco Trillo
@ 2014-12-17 11:53 ` Ray·Bloodworth
0 siblings, 0 replies; 5+ messages in thread
From: Ray·Bloodworth @ 2014-12-17 11:53 UTC (permalink / raw)
To: Marco Trillo; +Cc: meta-freescale
[-- Attachment #1: Type: text/plain, Size: 2126 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 4369 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-12-17 11:53 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-17 10:42 Question about hdmi audio playback Ray・Bloodworth
2014-12-17 10:52 ` Marco Trillo
2014-12-17 11:07 ` Ray·Bloodworth
2014-12-17 11:12 ` Marco Trillo
2014-12-17 11:53 ` Ray·Bloodworth
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.