<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">I was wondering if the alawenc audio
      encoder is the problem, considering the android doc states you
      should use AAC-LC.  However if I try to switch to ffenc_aac I
      can't get a stream that even vlc will play.  I'm not really sure
      with rtp payloader goes with ffenc_aac.  So ultimately, I decided
      to just remove the audio stream for now and see if I could get
      video working.  VLC plays it fine, but android still won't, so the
      issue is likely somewhere in the x264enc part. <br>
      <br>
      The logs from the android MediaPlayer and VideoView classes are
      not very specific. <br>
      <br>
      <br>
      08-16 13:12:39.320: D/OpenGLRenderer(30587): Flushing caches (mode
      0)<br>
      08-16 13:12:39.350: D/OpenGLRenderer(30587): Flushing caches (mode
      1)<br>
      08-16 13:12:45.555: D/libEGL(30783): loaded
      /system/lib/egl/libEGL_mali.so<br>
      08-16 13:12:45.555: D/libEGL(30783): loaded
      /system/lib/egl/libGLESv1_CM_mali.so<br>
      08-16 13:12:45.560: D/libEGL(30783): loaded
      /system/lib/egl/libGLESv2_mali.so<br>
      08-16 13:12:45.635: D/OpenGLRenderer(30783): Enabling debug mode 0<br>
      08-16 13:12:45.645: D/MediaPlayer(30783): Couldn't open file on
      client side, trying server side<br>
      08-16 13:12:45.800: D/MediaPlayer(30783): getMetadata<br>
      08-16 13:12:45.905: E/MediaPlayer(30783): error (1, -2147483648)<br>
      08-16 13:12:45.905: E/MediaPlayer(30783): Error (1,-2147483648)<br>
      08-16 13:12:45.905: D/VideoView(30783): Error: 1,-2147483648<br>
      <br>
      I guess I'll have to try and play around with the resolution,
      bitrates, etc as you pointed out and see if I can make any
      progress there.<br>
      <br>
      Thanks for your help.  <br>
      <br>
      -John<br>
      <br>
      <br>
      On 08/16/2012 12:35 PM, Chuck Crisler wrote:<br>
    </div>
    <blockquote
cite="mid:CALXOHKoxfn73tkgtVbiHj=gKudyrGRwMD6vHF9XUO-QKsCTBcA@mail.gmail.com"
      type="cite">I am not sure about the default x264enc parameters,
      but you need to insure that it is using baseline,
      width/height/frame/bit rates all as specified by the android. I
      suspect that the defaults are not what the Android wants and
      probably if any is wrong the Android would reject it but VLC will
      deal with it. Can you get a log from the Android to see what it
      doesn't like?<br>
      <br>
      <div class="gmail_quote">On Thu, Aug 16, 2012 at 11:51 AM, John
        Ruemker <span dir="ltr"><<a moz-do-not-send="true"
            href="mailto:john.ruemker@gmail.com" target="_blank">john.ruemker@gmail.com</a>></span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div class="im">On 08/15/2012 12:00 PM, John Ruemker wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              Hello,<br>
              I am trying to figure out a way to take a local video
              which may be in one of a few different formats (mkv, mp4,
              avi) and create an rtsp stream that can be viewed by
              android devices.  I've been playing around with
              gstreamer-rtsp-server, and using the test-readme.c example
              can create a stream from an mkv that is watchable in vlc,
              but android cannot process it:<br>
              <br>
                gst_rtsp_media_factory_set_launch(factory, "( "<br>
                "filesrc location=/home/user/project/spider.mkv ! "<br>
                "decodebin name=dec dec. ! queue ! x264enc ! "<br>
                "rtph264pay name=pay0 pt=96 dec. ! queue ! audioresample
              ! audioconvert ! "<br>
                "alawenc ! rtppcmapay name=pay1 pt=97 "<br>
                ")");<br>
              <br>
              I'm guessing the way its encoded is not supported by
              android:<br>
              <br>
              <a moz-do-not-send="true"
href="http://developer.android.com/guide/appendix/media-formats.html#recommendations"
                target="_blank">http://developer.android.com/guide/appendix/media-formats.html#recommendations</a>
              <br>
              <br>
              While I have done a good bit of reading through the
              gstreamer docs and understand pipelines and such, I'll
              admit I don't know much about formats and codecs.  What
              sort of pipeline should I use to encode the video and
              audiostreams such that an android device would be able to
              play it back, per the requirements listed in the above
              link?<br>
              <br>
              Thanks for your help.<br>
              <br>
              -John<br>
            </blockquote>
            <br>
          </div>
          Hi,<br>
          Anyone have any ideas on the above?  I'm just not sure how to
          go about encoding to meet the requirements that are laid out
          in the Android development guide.  Any assistance would be
          greatly appreciated.<br>
          <br>
          Thanks
          <div class="HOEnZb">
            <div class="h5"><br>
              -John<br>
              _______________________________________________<br>
              gstreamer-devel mailing list<br>
              <a moz-do-not-send="true"
                href="mailto:gstreamer-devel@lists.freedesktop.org"
                target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
              <a moz-do-not-send="true"
                href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel"
                target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
            </div>
          </div>
        </blockquote>
      </div>
      <br>
      <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>
  </body>
</html>