audio - gst-launch won't play to alsasink device=hw:2 -


using following works fine

gst-launch-0.10 filesrc location=temp.wav ! wavparse ! audioconvert ! alsasink device=hw:0 

as does

gst-launch-1.0 filesrc location=temp.wav ! wavparse ! audioconvert ! alsasink device=hw:0 

when use hw:2, device busy error if player using , internal data flow error otherwise.

if enable debugging

gst_debug=2 

i following

         alsa pcm_hw.c:1693:_snd_pcm_hw_open: alsalib error: invalid value card basetransform gstbasetransform.c:1414:gst_base_transform_setcaps:<audioconvert0> transform not transform audio/x-raw, format=(string)s16le, layout=(string)interleaved, channels=(int)2, channel-mask=(bitmask)0x0000000000000003, rate=(int)44100 in support basetransform gstbasetransform.c:1414:gst_base_transform_setcaps:<audioconvert0> transform not transform audio/x-raw, format=(string)s16le, layout=(string)interleaved, channels=(int)2, channel-mask=(bitmask)0x0000000000000003, rate=(int)44100 in support basetransform gstbasetransform.c:1414:gst_base_transform_setcaps:<audioconvert0> transform not transform audio/x-raw, format=(string)s16le, layout=(string)interleaved, channels=(int)2, channel-mask=(bitmask)0x0000000000000003, rate=(int)44100 in support basetransform gstbasetransform.c:1414:gst_base_transform_setcaps:<audioconvert0> transform not transform audio/x-raw, format=(string)s16le, layout=(string)interleaved, channels=(int)2, channel-mask=(bitmask)0x0000000000000003, rate=(int)44100 in support      wavparse gstwavparse.c:2249:gst_wavparse_loop:<wavparse0> error: internal data flow error.      wavparse gstwavparse.c:2249:gst_wavparse_loop:<wavparse0> error: streaming task paused, reason not-negotiated (-4) basetransform gstbasetransform.c:1414:gst_base_transform_setcaps:<audioconvert0> transform not transform audio/x-raw, format=(string)s16le, layout=(string)interleaved, channels=(int)2, channel-mask=(bitmask)0x0000000000000003, rate=(int)44100 in support error: element /gstpipeline:pipeline0/gstwavparse:wavparse0: internal data flow error. 

i sound both of following

gst123 -a alsa=hw:2 temp.wav aplay -d hw:2 temp.wav 

am missing additional arguments gst-launch?

any appreciated!

while writing question found answer, figured i'd go ahead , post question in case else ever encounters same. there indeed missing argument... audioresample.

gst-launch-1.0 filesrc location=temp.wav ! wavparse ! audioconvert ! audioresample ! alsasink device=hw:2 

Comments