Le jeudi 03 mars 2016 à 09:58 +0200, Sebastian Dröge a écrit :
> On Di, 2016-03-01 at 07:40 -0800, bomba wrote:
> >
> > Hello,
> >
> > I'm trying to stream audio from a capturing device to a remote
> > Milestone Systems server, which can handle g726.
> >
> > Currently trying this pipeline (which does not work):
> >
> > gst-launch-1.0 alsasrc device=hw:1 ! audioconvert ! audioresample !
> > audio/x-raw,rate=8000,width=16,channels=1 ! avenc_g726 bitrate=8000
> > !
> > rtpg726pay name=pay0
> How does it not work? What happens?
>
> The caps are wrong, that's probably one thing that doesn't work here.
> Instead of width=16 you probably want format=S16LE. But the
> capsfilter
> is not really necessary here.
Also, the avenc_g726 bitrate should not be the same as the rate. G726
supports 4 bitrates, 16000, 24000, 32000 and 40000. 32K is the default,
and will produce 4 bits per sample.
As Sebastian said, the filter is not useful, G726 CODEC only supports
mono at 8KHz, and the format will be negotiated automatically.
Nicolas
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel