[gst-devel] problem using alawdec

Tiago Katcipis katcipis at inf.ufsc.br
Mon Jul 13 17:54:36 CEST 2009


I have a file that is alaw encoded, but the file has the bytes swaped, every
two bytes must be swaped so the alaw decoder can decode properly. I started
to try to build a pipe but i got stuck.

The pipe:

gst-launch -v filesrc location=alaw_inv.dat ! audio/x-raw-int,
endianness=4321, channels=1, rate=8000, width=16, depth=16, signed=false !
audioconvert ! audio/x-raw-int, endianess=1234, channels=1, rate=8000,
width=16, depth=16, signed=false ! queue ! audio/x-alaw, rate=8000,
channels=1 ! alawdec ! audioconvert ! wavenc ! filesink
location=exemplo_convertido.wav

I basically use audioconvert to make the swap, my problem was that the
audioconvert cant connect to the alawdec, so i got the idea to use a queue
to conect the audioconvert output to the alawdec. But it simply does not
connect, and dont gives any good error msg, its just "ATENTION: wrong
connection: it is not possible to connect queue0 to alawdec0". If i take out
the alawdec and try to connect to audioconvert it works just fine (but the
audio is a mess because i didnt decoded the alaw).

any hint of what im doing wrong? queue documentation does not have any
example :-(.

http://gstreamer.freedesktop.org/data/doc/gstreamer/0.10.1/gstreamer-plugins/html/gstreamer-plugins-queue.html

best regards,
Katcipis

-- 
"it might be a profitable thing to learn Java, but it has no intellectual
value whatsoever" Alexander Stepanov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20090713/86cae698/attachment.htm>


More information about the gstreamer-devel mailing list