RTSP stream for android devices

John Ruemker john.ruemker at gmail.com
Wed Aug 15 09:00:26 PDT 2012


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


More information about the gstreamer-devel mailing list