alsasrc to avenc_g726 to RTSP

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

alsasrc to avenc_g726 to RTSP

bomba
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


This pipeline works, but unfortunately, Milestone server cannot handle speex:

gst-launch-1.0 alsasrc device=hw:sndrpiwsp ! audioconvert ! audioresample ! audio/x-raw,rate=8000,width=16,channels=1 ! speexenc ! rtpspeexpay name=pay1


Any hints?
J
Reply | Threaded
Open this post in threaded view
|

Re: alsasrc to avenc_g726 to RTSP

Sebastian Dröge-3
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.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (968 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: alsasrc to avenc_g726 to RTSP

Nicolas Dufresne-4
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

signature.asc (188 bytes) Download Attachment