Sounds like a job for wireshark.<br><br><div class="gmail_quote">On Thu, Aug 16, 2012 at 1:29 PM, Loren Rogers <span dir="ltr"><<a href="mailto:loren.rogers@gmail.com" target="_blank">loren.rogers@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If the log is from the Android device, what it looks like is that the<br>
Android device is missing the caps negotiation (probably SDP) that's<br>
sent from the RTSP server.  OR the Android device is trying to open a<br>
file with poorly formed stream information.<br>
<div class="HOEnZb"><div class="h5"><br>
On Thu, Aug 16, 2012 at 1:15 PM, John Ruemker <<a href="mailto:john.ruemker@gmail.com">john.ruemker@gmail.com</a>> wrote:<br>
> I was wondering if the alawenc audio encoder is the problem, considering the<br>
> android doc states you should use AAC-LC.  However if I try to switch to<br>
> ffenc_aac I can't get a stream that even vlc will play.  I'm not really sure<br>
> with rtp payloader goes with ffenc_aac.  So ultimately, I decided to just<br>
> remove the audio stream for now and see if I could get video working.  VLC<br>
> plays it fine, but android still won't, so the issue is likely somewhere in<br>
> the x264enc part.<br>
><br>
> The logs from the android MediaPlayer and VideoView classes are not very<br>
> 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<br>
> /system/lib/egl/libGLESv1_CM_mali.so<br>
> 08-16 13:12:45.560: D/libEGL(30783): loaded<br>
> /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,<br>
> 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<br>
> as you pointed out and see if I can make any progress there.<br>
><br>
><br>
> Thanks for your help.<br>
><br>
> -John<br>
><br>
><br>
> On 08/16/2012 12:35 PM, Chuck Crisler wrote:<br>
><br>
> I am not sure about the default x264enc parameters, but you need to insure<br>
> that it is using baseline, width/height/frame/bit rates all as specified by<br>
> the android. I suspect that the defaults are not what the Android wants and<br>
> probably if any is wrong the Android would reject it but VLC will deal with<br>
> it. Can you get a log from the Android to see what it doesn't like?<br>
><br>
> On Thu, Aug 16, 2012 at 11:51 AM, John Ruemker <<a href="mailto:john.ruemker@gmail.com">john.ruemker@gmail.com</a>><br>
> wrote:<br>
>><br>
>> On 08/15/2012 12:00 PM, John Ruemker wrote:<br>
>>><br>
>>> Hello,<br>
>>> I am trying to figure out a way to take a local video which may be in one<br>
>>> of a few different formats (mkv, mp4, avi) and create an rtsp stream that<br>
>>> can be viewed by android devices.  I've been playing around with<br>
>>> gstreamer-rtsp-server, and using the test-readme.c example can create a<br>
>>> 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>
>>> ! "<br>
>>>   "alawenc ! rtppcmapay name=pay1 pt=97 "<br>
>>>   ")");<br>
>>><br>
>>> I'm guessing the way its encoded is not supported by android:<br>
>>><br>
>>><br>
>>> <a 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<br>
>>> understand pipelines and such, I'll admit I don't know much about formats<br>
>>> and codecs.  What sort of pipeline should I use to encode the video and<br>
>>> audiostreams such that an android device would be able to play it back, per<br>
>>> the requirements listed in the above link?<br>
>>><br>
>>> Thanks for your help.<br>
>>><br>
>>> -John<br>
>><br>
>><br>
>> Hi,<br>
>> Anyone have any ideas on the above?  I'm just not sure how to go about<br>
>> encoding to meet the requirements that are laid out in the Android<br>
>> development guide.  Any assistance would be greatly appreciated.<br>
>><br>
>> Thanks<br>
>><br>
>> -John<br>
>> _______________________________________________<br>
>> gstreamer-devel mailing list<br>
>> <a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
>> <a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> gstreamer-devel mailing list<br>
> <a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
><br>
><br>
><br>
> _______________________________________________<br>
> gstreamer-devel mailing list<br>
> <a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
><br>
<br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
"Some men see things as they are and say why. I dream things that<br>
never were and say why not?" - GBS<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a 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>