gstreamer 1.0 pipeline for make Wave CCITT A-Law

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

gstreamer 1.0 pipeline for make Wave CCITT A-Law

felipeaf
Hi! I need some help with gstreamer pipe:

In gstreamer 0.10 this works:
gst-launch-0.10 -v -m filesrc location=input.wav ! decodebin ! audioconvert ! audioresample ! alawenc ! wavenc !  filesink location=output.wav

But the same pipeline in gstreamer 1.0 don't works. Not negotiated error.

gst-launch-1.0 -v -m filesrc location=input.wav ! decodebin ! audioconvert ! audioresample ! alawenc ! wavenc !  filesink location=output.wav

Obtida a mensagem #88 do elemento "wavparse0" (error): GstMessageError, gerror=(GError)NULL, debug=(string)"gstwavparse.c\(2386\):\ gst_wavparse_loop\ \(\):\ /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstWavParse:wavparse0:\012streaming\ task\ paused\,\ reason\ not-negotiated\ \(-4\)";
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/ADPCMDec:adpcmdec0.GstPad:src: caps = audio/x-raw, format=(string)S16LE, layout=(string)interleaved, rate=(int)8000, channels=(int)1
ERRO: do elemento /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstWavParse:wavparse0: Erro interno no fluxo de dados.
Informação adicional de depuração:
gstwavparse.c(2386): gst_wavparse_loop (): /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstWavParse:wavparse0:
streaming task paused, reason not-negotiated (-4)
ERRO: a fila de processamento não quer preparar.
Definindo a fila de processamento para NULO...
Liberando a fila de processamento...


Please, somebody can help me? sorry for my bad english
Reply | Threaded
Open this post in threaded view
|

Re: gstreamer 1.0 pipeline for make Wave CCITT A-Law

harishjennykn
Hi,

Looks like there is a bug in gstreamer-1.0
The following pipeline does not work
gst-launch-1.0  audiotestsrc ! alawenc    !  wavenc ! filesink location=~/output.wav  -v

The reason for this is GST_EVENT_CAPS is not being sent to wavenc which is need to set caps and negotiation.

I have created a gstreamer bug
https://bugzilla.gnome.org/show_bug.cgi?id=709614

and also the patch for the fix.



@Gst developers! Please check the patch if it is proper.

Thanks,
HJ
Reply | Threaded
Open this post in threaded view
|

Re: gstreamer 1.0 pipeline for make Wave CCITT A-Law

harishjennykn
In reply to this post by felipeaf