<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sat, Oct 11, 2014 at 11:59 PM, Andy Shaules <span dir="ltr"><<a href="mailto:bowljoman@gmail.com" target="_blank">bowljoman@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000"><div><div class="h5">
    <div>On 10/11/2014 3:05 AM, Taha Ansari
      wrote:<br>
    </div>
    </div></div><blockquote type="cite"><div><div class="h5">
      <div dir="ltr">Hi,
        <div><br>
        </div>
        <div>Is there anybody out there who has faced a similar issue?
          I'm sure there would be... any feedback would be highly
          appreciated...<br>
          <div class="gmail_extra"><br>
            <div class="gmail_quote">On Fri, Oct 10, 2014 at 2:47 PM,
              Taha Ansari <span dir="ltr"><<a href="mailto:mtaha.ansari@gmail.com" target="_blank">mtaha.ansari@gmail.com</a>></span>
              wrote:<br>
              <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
                <div dir="ltr">
                  <div>
                    <div class="gmail_extra">
                      <div>
                        <div><br>
                          <div class="gmail_quote">On Thu, Oct 9, 2014
                            at 6:02 PM, Taha Ansari <span dir="ltr"><<a href="mailto:mtaha.ansari@gmail.com" target="_blank">mtaha.ansari@gmail.com</a>></span>
                            wrote:<br>
                            <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
                              <div dir="ltr">
                                <div>
                                  <div>
                                    <div>
                                      <div>
                                        <div>
                                          <div>
                                            <div>Hi,<br>
                                              <br>
                                            </div>
                                            I have a specific scenario:
                                            in a restricted network
                                            environment, I have
                                            discovered sometimes there
                                            is problem with live
                                            reception of data via RTSP
                                            protocol. Reading at mailing
                                            list and other locations got
                                            me to a point where I
                                            discovered I could use HTTP
                                            tunneling to bypass proxies
                                            etc. I have upcoming two
                                            streams:<br>
                                          </div>
                                          <br>
                                          1- RTSP live h264 stream<br>
                                        </div>
                                        2- RTSP live AAC stream<br>
                                        <br>
                                      </div>
                                      When I apply HTTP tunneling method
                                      with h264 data, it works without
                                      any problem. But, if I try it with
                                      AAC data, audio never gets
                                      through.<br>
                                      <br>
                                      Here is uncut console output when
                                      trying to fetch such AAC streams
                                      via RTSP protocol, while the
                                      server is at a remote location
                                      (some portions are changed to
                                      protect privacy):<br>
                                      <br>
--------------*************--------------*************--------------*************<br>
D:\....\ffmpeg-20141009-git-f6777ce-win32-shared\bin>ffpla<br>
                                      y -rtsp_transport http -loglevel
                                      debug rtsp://<a href="http://143.115.111.123:1943/a.aac" target="_blank">143.115.111.123:1943/a.aac</a><br>
                                      ffplay version N-66742-gf6777ce
                                      Copyright (c) 2003-2014 the FFmpeg
                                      developers<br>
                                        built on Oct  8 2014 22:05:56
                                      with gcc 4.9.1 (GCC)<br>
                                        configuration: --disable-static
                                      --enable-shared --enable-gpl
                                      --enable-version3<br>
                                       --disable-w32threads
                                      --enable-avisynth --enable-bzlib
                                      --enable-fontconfig --ena<br>
                                      ble-frei0r --enable-gnutls
                                      --enable-iconv --enable-libass
                                      --enable-libbluray --e<br>
                                      nable-libbs2b --enable-libcaca
                                      --enable-libfreetype
                                      --enable-libgme --enable-lib<br>
                                      gsm --enable-libilbc
                                      --enable-libmodplug
                                      --enable-libmp3lame
                                      --enable-libopencor<br>
                                      e-amrnb --enable-libopencore-amrwb
                                      --enable-libopenjpeg
                                      --enable-libopus --enabl<br>
                                      e-librtmp --enable-libschroedinger
                                      --enable-libsoxr --enable-libspeex
                                      --enable-l<br>
                                      ibtheora --enable-libtwolame
                                      --enable-libvidstab
                                      --enable-libvo-aacenc --enable-<br>
                                      libvo-amrwbenc --enable-libvorbis
                                      --enable-libvpx
                                      --enable-libwavpack --enable-l<br>
                                      ibwebp --enable-libx264
                                      --enable-libx265 --enable-libxavs
                                      --enable-libxvid --ena<br>
                                      ble-zlib<br>
                                        libavutil      54. 10.100 / 54.
                                      10.100<br>
                                        libavcodec     56.  4.101 / 56. 
                                      4.101<br>
                                        libavformat    56.  9.100 / 56. 
                                      9.100<br>
                                        libavdevice    56.  1.100 / 56. 
                                      1.100<br>
                                        libavfilter     5.  1.103 /  5. 
                                      1.103<br>
                                        libswscale      3.  1.100 /  3. 
                                      1.100<br>
                                        libswresample   1.  1.100 /  1. 
                                      1.100<br>
                                        libpostproc    53.  1.100 / 53. 
                                      1.100<br>
                                      [http @ 01d798e0] request: GET
                                      /a.aac HTTP/1.10KB sq=    0B f=0/0<br>
                                      User-Agent: Lavf/56.9.100<br>
                                      Range: bytes=0-<br>
                                      Connection: close<br>
                                      Host: <a href="http://143.115.111.123:1943" target="_blank">143.115.111.123:1943</a><br>
                                      Icy-MetaData: 1<br>
                                      x-sessioncookie: 85cc4e8bbbeffd24<br>
                                      Accept:
                                      application/x-rtsp-tunnelled<br>
                                      Pragma: no-cache<br>
                                      Cache-Control: no-cache<br>
                                      <br>
                                      <br>
                                      [http @ 01d798e0] header='HTTP/1.1
                                      200 OK'    0KB sq=    0B f=0/0<br>
                                      [http @ 01d798e0] http_code=200<br>
                                      [http @ 01d798e0] header='Date:
                                      Thu, 9 Oct 2014 12:46:10 GMT'<br>
                                      [http @ 01d798e0] header='Server:
                                      [some server name]'<br>
                                      [http @ 01d798e0]
                                      header='Connection: Close'<br>
                                      [http @ 01d798e0]
                                      header='Content-Type:
                                      application/x-rtsp-tunnelled'<br>
                                      [http @ 01d798e0] header='Expires:
                                      -1'<br>
                                      [http @ 01d798e0]
                                      header='Cache-Control: private,
                                      max-age=0'<br>
                                      [http @ 01d798e0] header=''<br>
                                      [http @ 01d7e420] request: POST
                                      /a.aac HTTP/1.1KB sq=    0B f=0/0<br>
                                      User-Agent: Lavf/56.9.100<br>
                                      Accept: */*<br>
                                      Connection: close<br>
                                      Host: <a href="http://143.115.111.123:1943" target="_blank">143.115.111.123:1943</a><br>
                                      Icy-MetaData: 1<br>
                                      x-sessioncookie: 85cc4e8bbbeffd24<br>
                                      Content-Type:
                                      application/x-rtsp-tunnelled<br>
                                      Pragma: no-cache<br>
                                      Cache-Control: no-cache<br>
                                      Content-Length: 32767<br>
                                      Expires: Sun, 9 Jan 1972 00:00:00
                                      GMT<br>
                                      <br>
                                      <br>
                                      [rtsp @ 01d79d00] SDP:=   0 aq=   
                                      0KB vq=    0KB sq=    0B f=0/0<br>
                                      v=0<br>
                                      o=- 1951159390 1412858771 IN IP4
                                      143.115.111.123<br>
                                      s=<br>
                                      c=IN IP4 0.0.0.0<br>
                                      t=0 0<br>
                                      m=audio 0 RTP/AVP 96<br>
                                      a=rtpmap:96 MPEG4-GENERIC/22050/2<br>
                                      a=fmtp:96
                                      profile-level-id=1;mode=AAC-hbr;sizelength=13;indexlength=3;indexdelta<br>
                                      length=3;config=1390;<br>
                                      a=control:trackID=2<br>
                                      <br>
                                      [rtsp @ 01d79d00] audio codec set
                                      to: aac<br>
                                      [rtsp @ 01d79d00] audio samplerate
                                      set to: 22050<br>
                                      [rtsp @ 01d79d00] audio channels
                                      set to: 2<br>
                                      [rtsp @ 01d79d00] hello state=0   
                                      0KB vq=    0KB sq=    0B f=0/0<br>
                                      [rtsp @ 01d79d00] method PLAY
                                      failed: 500 SERVER ERROR   0B
                                      f=0/0<br>
                                      [rtsp @ 01d79d00] Server: [some
                                      server name]<br>
                                      CSeq: 4<br>
                                      Cache-Control: no-cache<br>
                                      Date: Thu, 9 Oct 2014 12:46:12 GMT<br>
                                      Expires: Thu, 9 Oct 2014 12:46:12
                                      GMT<br>
                                      Session: 31565451546595;timeout=30<br>
                                      x-Error: Failed to create audio<br>
                                      <br>
                                      rtsp://<a href="http://143.115.111.123:1943/a.aac" target="_blank">143.115.111.123:1943/a.aac</a>:
                                      Invalid data found when processing
                                      input<br>
                                      <br>
                                      <br>
D:\....\ffmpeg-20141009-git-f6777ce-win32-shared\bin><br>
--------------*************--------------*************--------------*************<br>
                                    </div>
                                    <br>
                                    As can be seen, it fails somewhere
                                    at " method PLAY failed: 500 SERVER
                                    ERROR". Searching online for this
                                    does not give me much help, except
                                    that 500 SERVER ERROR is a general
                                    kind of error (without any details).<br>
                                    <br>
                                  </div>
                                  This is the latest version of FFmpeg I
                                  downloaded from zeranoe builds page
                                  today...<br>
                                  <br>
                                  Has anyone experienced anything this
                                  sort before? Is there any remedy?<br>
                                  <br>
                                </div>
                                Thanks in advance for any guidance...<br>
                              </div>
                            </blockquote>
                          </div>
                          <br>
                          <br>
                        </div>
                      </div>
                      Hi, <br>
                      <br>
                      I have made little progress: if I specify
                      "-initial_pause 1 " at command line, then after
                      waiting for about 40 seconds, I am able to see new
                      window pop up (the FFplay black window that shows
                      white stuff depending upon audio signal), but this
                      window is totally black, and even after waiting
                      for some time, audio is never audible.<br>
                      <br>
                      Do I need to signal initial_pause to 'off',
                      somehow?<br>
                      <br>
                    </div>
                    <div class="gmail_extra">Here is updated command
                      line with debug output (again some stuff like
                      server IP changed intentionally):<br>
                      <br>
--------------*************--------------*************--------------*************<br>
                      <br>
                      D:\ffmpeg-20141009-git-f6777ce-win32-shared\bin>ffplay
                      -loglevel debug -rtsp_transport http
                      -initial_pause 1 rtsp://<a href="http://144.122.222.22:2757/a.aac" target="_blank">144.122.222.22:2757/a.aac</a><span><br>
                        ffplay version N-66742-gf6777ce Copyright (c)
                        2003-2014 the FFmpeg developers<br>
                          built on Oct  8 2014 22:05:56 with gcc 4.9.1
                        (GCC)<br>
                          configuration: --disable-static
                        --enable-shared --enable-gpl --enable-version3<br>
                         --disable-w32threads --enable-avisynth
                        --enable-bzlib --enable-fontconfig --ena<br>
                        ble-frei0r --enable-gnutls --enable-iconv
                        --enable-libass --enable-libbluray --e<br>
                        nable-libbs2b --enable-libcaca
                        --enable-libfreetype --enable-libgme
                        --enable-lib<br>
                        gsm --enable-libilbc --enable-libmodplug
                        --enable-libmp3lame --enable-libopencor<br>
                        e-amrnb --enable-libopencore-amrwb
                        --enable-libopenjpeg --enable-libopus --enabl<br>
                        e-librtmp --enable-libschroedinger
                        --enable-libsoxr --enable-libspeex --enable-l<br>
                        ibtheora --enable-libtwolame --enable-libvidstab
                        --enable-libvo-aacenc --enable-<br>
                        libvo-amrwbenc --enable-libvorbis
                        --enable-libvpx --enable-libwavpack --enable-l<br>
                        ibwebp --enable-libx264 --enable-libx265
                        --enable-libxavs --enable-libxvid --ena<br>
                        ble-zlib<br>
                          libavutil      54. 10.100 / 54. 10.100<br>
                          libavcodec     56.  4.101 / 56.  4.101<br>
                          libavformat    56.  9.100 / 56.  9.100<br>
                          libavdevice    56.  1.100 / 56.  1.100<br>
                          libavfilter     5.  1.103 /  5.  1.103<br>
                          libswscale      3.  1.100 /  3.  1.100<br>
                          libswresample   1.  1.100 /  1.  1.100<br>
                          libpostproc    53.  1.100 / 53.  1.100<br>
                      </span>[http @ 02239a20] request: GET /a.aac
                      HTTP/1.10KB sq=    0B f=0/0<span><br>
                        User-Agent: Lavf/56.9.100<br>
                        Range: bytes=0-<br>
                        Connection: close<br>
                      </span>Host: <a href="http://144.122.222.22:2757" target="_blank">144.122.222.22:2757</a><br>
                      Icy-MetaData: 1<br>
                      x-sessioncookie: 5210038d40d12611<span><br>
                        Accept: application/x-rtsp-tunnelled<br>
                        Pragma: no-cache<br>
                        Cache-Control: no-cache<br>
                        <br>
                        <br>
                      </span>[http @ 02239a20] header='HTTP/1.1 200
                      OK'    0KB sq=    0B f=0/0<br>
                      [http @ 02239a20] http_code=200<br>
                      [http @ 02239a20] header='Date: Fri, 10 Oct 2014
                      09:39:29 GMT'<br>
                      [http @ 02239a20] header='Server: [some streaming
                      server]'<br>
                      [http @ 02239a20] header='Connection: Close'<br>
                      [http @ 02239a20] header='Content-Type:
                      application/x-rtsp-tunnelled'<br>
                      [http @ 02239a20] header='Expires: -1'<br>
                      [http @ 02239a20] header='Cache-Control: private,
                      max-age=0'<br>
                      [http @ 02239a20] header=''<br>
                      [http @ 0223d560] request: POST /a.aac HTTP/1.1KB
                      sq=    0B f=0/0<span><br>
                        User-Agent: Lavf/56.9.100<br>
                        Accept: */*<br>
                        Connection: close<br>
                      </span>Host: <a href="http://144.122.222.22:2757" target="_blank">144.122.222.22:2757</a><br>
                      Icy-MetaData: 1<br>
                      x-sessioncookie: 5210038d40d12611<span><br>
                        Content-Type: application/x-rtsp-tunnelled<br>
                        Pragma: no-cache<br>
                        Cache-Control: no-cache<br>
                        Content-Length: 32767<br>
                        Expires: Sun, 9 Jan 1972 00:00:00 GMT<br>
                        <br>
                        <br>
                      </span>[rtsp @ 02239e20] SDP:=   0 aq=    0KB
                      vq=    0KB sq=    0B f=0/0<br>
                      v=0<br>
                      o=- 545483151 1412933970 IN IP4 144.122.222.22<span><br>
                        s=<br>
                        c=IN IP4 0.0.0.0<br>
                        t=0 0<br>
                        m=audio 0 RTP/AVP 96<br>
                        a=rtpmap:96 MPEG4-GENERIC/22050/2<br>
                        a=fmtp:96
                        profile-level-id=1;mode=AAC-hbr;sizelength=13;indexlength=3;indexdelta<br>
                        length=3;config=1390;<br>
                        a=control:trackID=2<br>
                        <br>
                      </span>[rtsp @ 02239e20] audio codec set to: aac<br>
                      [rtsp @ 02239e20] audio samplerate set to: 22050<br>
                      [rtsp @ 02239e20] audio channels set to: 2<br>
                      Input #0, rtsp, from 'rtsp://<a href="http://144.122.222.22:2757/a.aac%27:0B" target="_blank">144.122.222.22:2757/a.aac':0B</a>
                      f=0/0<br>
                        Metadata:<br>
                          title           :<br>
                        Duration: N/A, bitrate: N/A<br>
                          Stream #0:0, 0, 1/22050: Audio: aac, 22050 Hz,
                      stereo, fltp<br>
                      detected 4 logical cores<br>
                      [ffplay_abuffer @ 022bb880] Setting 'sample_rate'
                      to value '22050'<br>
                      [ffplay_abuffer @ 022bb880] Setting 'sample_fmt'
                      to value 'fltp'<br>
                      [ffplay_abuffer @ 022bb880] Setting 'channels' to
                      value '2'<br>
                      [ffplay_abuffer @ 022bb880] Setting 'time_base' to
                      value '1/22050'<br>
                      [ffplay_abuffer @ 022bb880] Setting
                      'channel_layout' to value '0x3'<br>
                      [ffplay_abuffer @ 022bb880] tb:1/22050
                      samplefmt:fltp samplerate:22050 chlayout:<br>
                      0x3<br>
                      [ffplay_abuffersink @ 022d1100] auto-inserting
                      filter 'auto-inserted resampler 0<br>
                      ' between the filter 'ffplay_abuffer' and the
                      filter 'ffplay_abuffersink'<br>
                      [AVFilterGraph @ 0221e860] query_formats: 2
                      queried, 0 merged, 3 already done, 0<br>
                       delayed<br>
                      [auto-inserted resampler 0 @ 022d2d00] ch:2
                      chl:stereo fmt:fltp r:22050Hz -> ch:<br>
                      2 chl:stereo fmt:s16 r:22050Hz<br>
                          nan M-A:    nan fd=   0 aq=    0KB vq=    0KB
                      sq=    0B f=0/0<br>
                      <br>
D:\ffmpeg-20141009-git-f6777ce-win32-shared\bin><br>
                      <br>
--------------*************--------------*************--------------*************<br>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
            <br>
          </div>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><pre>_______________________________________________
Libav-user mailing list
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a>
</pre>
    </blockquote>
    AAC works for me, but we use transport -rtsp_transport tcp flag.
    Maybe your server is serving RTSP TCP over HTTP.<br>
    <br></div></blockquote></div><br></div><div class="gmail_extra">Hi,<br><br></div><div class="gmail_extra">Many thanks for the reply... I tried with -rtsp_transport tcp, but all i get is: <br><br>Invalid data found when processing input.<br><br></div><div class="gmail_extra">So if the server is causing this to happen, then maybe I have to change my server? That seems a lot of work...<br></div></div>