RTSP stream for android devices

John Ruemker john.ruemker at gmail.com
Thu Aug 16 08:51:07 PDT 2012


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 
>
>
> 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


More information about the gstreamer-devel mailing list