<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 07/20/2015 03:18 PM, Alicia Romero
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAKjtJDUF+BVCLpC4va1ZD300+=_9uyAb76jjvd9xAwpjd682tg@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>
                <div>Hi List,<br>
                </div>
                I want to start an audio stream with format S16LE.<br>
              </div>
              If I use this pipeline:<br>
              <br>
              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<br>
              <br>
            </div>
            The format of the audio stream is format=(string)S16BE.<br>
          </div>
          Is there a way to change this?<br>
          <br>
        </div>
        Thanks!<br>
        <div>
          <div>
            <div>
              <div><br>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
    </blockquote>
    <br>
    The L16 RTP payload is required by the spec to use big endian a.k.a.
    network byte order (
    <a class="moz-txt-link-freetext" href="https://tools.ietf.org/html/rfc1890#section-4.4.8">https://tools.ietf.org/html/rfc1890#section-4.4.8</a> ). If you want to
    force the input audio stream to be S16LE, you need to do this:<br>
    <br>
    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<br>
    <br>
    Then, audioconvert will convert from little to big endian
    automatically.<br>
  </body>
</html>