alsasrc to avenc_g726 to RTSP

Nicolas Dufresne nicolas.dufresne at gmail.com
Thu Mar 3 14:07:56 UTC 2016


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160303/b984c550/attachment.sig>


More information about the gstreamer-devel mailing list