Audio Stream format S16LE

Carlos Rafael Giani dv at pseudoterminal.org
Mon Jul 20 06:35:25 PDT 2015


On 07/20/2015 03:18 PM, Alicia Romero wrote:
> Hi List,
> I want to start an audio stream with format S16LE.
> If I use this pipeline:
>
> gst-launch-1.0 -v audiotestsrc wave=0 ! audioconvert ! 
> audio/x-raw,rate=16000 ! rtpL16pay ! udpsink host=127.0.0.1 
> auto-multicast=true port=4300
>
> The format of the audio stream is format=(string)S16BE.
> Is there a way to change this?
>
> Thanks!
>
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

The L16 RTP payload is required by the spec to use big endian a.k.a. 
network byte order ( https://tools.ietf.org/html/rfc1890#section-4.4.8 
). If you want to force the input audio stream to be S16LE, you need to 
do this:

gst-launch-1.0 -v audiotestsrc wave=0 ! 
audio/x-raw,format=S16LE,rate=16000 ! audioconvert ! rtpL16pay ! udpsink 
host=127.0.0.1 auto-multicast=true port=4300

Then, audioconvert will convert from little to big endian automatically.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150720/b38ca761/attachment.html>


More information about the gstreamer-devel mailing list