<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Thank you very much, it has worked out.<br>
    <br>
    [rtsp @ 0x7f35f00008c0] SDP:aq=    0KB vq=    0KB sq=    0B f=0/0  
    <br>
    v=0<br>
    o=- 137163047 1 IN IP4 0.0.0.0<br>
    s=Live session, streamed by LIVE555<br>
    i=live?token=1080p_noaudio<br>
    t=0 0<br>
    a=tool:LIVE555 Streaming Media v2015.07.23<br>
    a=type:broadcast<br>
    a=control:*<br>
    a=range:npt=0-<br>
    a=x-qt-text-nam:Live session, streamed by LIVE555<br>
    a=x-qt-text-inf:live?token=1080p_noaudio<br>
    m=video 0 RTP/AVP 96<br>
    c=IN IP4 0.0.0.0<br>
    b=AS:0<br>
    a=rtpmap:96 H264/90000<br>
    a=fmtp:96
packetization-mode=1;profile-level-id=640028;sprop-parameter-sets=Z2QAKK2EBUViuKxUdCAqKxXFYqOhAVFYrisVHQgKisVxWKjoQFRWK4rFR0ICorFcVio6ECSFITk8nyfk/k/J8nm5s00IEkKQnJ5Pk/J/J+T5PNzZprQDwBE/Kg==,aO48sA==<br>
    a=control:track1<br>
    m=audio 0 RTP/AVP 97<br>
    c=IN IP4 0.0.0.0<br>
    b=AS:0<br>
    a=rtpmap:97 L16/16000<br>
    a=control:track2<br>
    <br>
    Input #0, rtsp, from
    '<a class="moz-txt-link-freetext" href="rtsp://192.168.55.2:554/live?token=1080p_noaudio">rtsp://192.168.55.2:554/live?token=1080p_noaudio</a>':<br>
      Metadata:<br>
        title           : Live session, streamed by LIVE555<br>
        comment         : live?token=1080p_noaudio<br>
      Duration: N/A, start: 0.002375, bitrate: N/A<br>
        Stream #0:0: Video: h264 (High), yuv420p, 1920x1080 (1920x1088),
    25 tbr, 90k tbn, 180k tbc<br>
        Stream #0:1: Audio: pcm_s16be, 16000 Hz, 1 channels, s16, 256
    kb/s<br>
    <br>
    And yes, I've used htons() on the PCM buffer, thanks again.<br>
    <br>
    Best regards,<br>
    Max<br>
    <br>
    <div class="moz-cite-prefix">On 07/29/2015 11:05 PM, Ross Finlayson
      wrote:<br>
    </div>
    <blockquote
      cite="mid:4C45F939-938D-4223-8BC4-E51FA0F39C5A@live555.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <div>
        <blockquote type="cite" class="">
          <div class="">We need to broadcast the PCM (S16LE/16000) audio
            as a separate channel<br class="">
            with our RTSP-server.<br class="">
          </div>
        </blockquote>
        […]<br class="">
        <blockquote type="cite" class="">
          <div class="">What is a preferred RTPSink class that I should
            use for this audio<br class="">
            format in our OnDemandServerMediaSubsession?<br class="">
          </div>
        </blockquote>
        <div><br class="">
        </div>
        You should use a “SimpleRTPSink” - specifically:</div>
      <div><span class="Apple-tab-span" style="white-space:pre">        </span> 
          SimpleRTPSink::createNew(envir(), rtpGroupsock,<br class="">
                                            rtpPayloadTypeIfDynamic,
        16000,<br class="">
                                            "audio", “L16",
        numChannels);</div>
      <div>where “numChannels” is 1 for mono, and 2 for stereo.</div>
      <div><br class="">
      </div>
      <div>Note, however, that because your input source is in
        ‘little-endian’ form (I presume that’s what the “LE” stands
        for), you will need to byte-swap it before you feed it into your
        “SimpleRTPSink” (because the IETF standard RTP payload format
        for the “audio/L16” type specifies that the data be packed into
        RTP packets in big-endian form.</div>
      <div><br class="">
      </div>
      <div>Therefore, your implementation of the
        “createNewStreamSource()” virtual function should feed the input
        source into a new “EndianSwap16” filter object (and return a
        pointer to that filter object).</div>
      <br class="">
      <br class="">
      <div apple-content-edited="true" class="">
        <span class="Apple-style-span" style="border-collapse: separate;
          color: rgb(0, 0, 0); font-family: Helvetica; font-style:
          normal; font-variant: normal; font-weight: normal;
          letter-spacing: normal; line-height: normal; orphans: 2;
          text-align: -webkit-auto; text-indent: 0px; text-transform:
          none; white-space: normal; widows: 2; word-spacing: 0px;
          -webkit-border-horizontal-spacing: 0px;
          -webkit-border-vertical-spacing: 0px;
          -webkit-text-decorations-in-effect: none;
          -webkit-text-size-adjust: auto; -webkit-text-stroke-width:
          0px; "><span class="Apple-style-span" style="border-collapse:
            separate; color: rgb(0, 0, 0); font-family: Helvetica;
            font-style: normal; font-variant: normal; font-weight:
            normal; letter-spacing: normal; line-height: normal;
            orphans: 2; text-align: -webkit-auto; text-indent: 0px;
            text-transform: none; white-space: normal; widows: 2;
            word-spacing: 0px; -webkit-border-horizontal-spacing: 0px;
            -webkit-border-vertical-spacing: 0px;
            -webkit-text-decorations-in-effect: none;
            -webkit-text-size-adjust: auto; -webkit-text-stroke-width:
            0px; ">Ross Finlayson<br class="">
            Live Networks, Inc.<br class="">
            <a moz-do-not-send="true" href="http://www.live555.com/"
              class="">http://www.live555.com/</a></span></span>
      </div>
      <br class="">
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
live-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:live-devel@lists.live555.com">live-devel@lists.live555.com</a>
<a class="moz-txt-link-freetext" href="http://lists.live555.com/mailman/listinfo/live-devel">http://lists.live555.com/mailman/listinfo/live-devel</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>