RTSP stream for android devices
Chuck Crisler
ccrisler at mutualink.net
Thu Aug 16 09:35:55 PDT 2012
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?
On Thu, Aug 16, 2012 at 11:51 AM, John Ruemker <john.ruemker at gmail.com>wrote:
> On 08/15/2012 12:00 PM, John Ruemker wrote:
>
>> Hello,
>> 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:
>>
>> gst_rtsp_media_factory_set_**launch(factory, "( "
>> "filesrc location=/home/user/project/**spider.mkv ! "
>> "decodebin name=dec dec. ! queue ! x264enc ! "
>> "rtph264pay name=pay0 pt=96 dec. ! queue ! audioresample ! audioconvert
>> ! "
>> "alawenc ! rtppcmapay name=pay1 pt=97 "
>> ")");
>>
>> I'm guessing the way its encoded is not supported by android:
>>
>> http://developer.android.com/**guide/appendix/media-formats.**
>> html#recommendations<http://developer.android.com/guide/appendix/media-formats.html#recommendations>
>>
>> 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?
>>
>> Thanks for your help.
>>
>> -John
>>
>
> Hi,
> 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.
>
> Thanks
>
> -John
> ______________________________**_________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.**freedesktop.org<gstreamer-devel at lists.freedesktop.org>
> http://lists.freedesktop.org/**mailman/listinfo/gstreamer-**devel<http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20120816/ab572262/attachment.html>
More information about the gstreamer-devel
mailing list