Android 1.6, RTP live supported?

by Yadnesh Phadke » Mon, 26 Jul 2010 19:51:35 GMT

Sponsored Links
 Hi All,

For quiet some time now I am trying to stream over RTP files on my machine
to my Android device.  I am using FFMpeg to do the task of reading media
files and do the RTP packetization.  I am using the FFServer to work as RTSP
server for my stream.

The stream Video is in H.264 format and Audio is in AAC format.  See below
the SDP that is returned by FFServer.    H.264 and AAC are Android supported
media formats.  But I am getting error (see below) when trying to play the
RTSP stream using application developed using MediaPlayer class.

Is streaming of video and audio in separate streams packetized using RTP
format supported in Android 1.6?  If RTP live is supported by MediaPlayer,
Can anyone please give tips about which encoder variation does Android 1.6
expects to have been used?  Within H.246/AAC there are many variations,
probably Android does not like the encoder that I am using :)

I have already gone through a relevant post Playing live stream (RTP) in

Android 1.6, RTP live supported?

by Yadnesh » Mon, 26 Jul 2010 20:53:12 GMT

  came across a topic "RTP stream video decoding" (http://
f963e8f7ac35b75b/481c181362eaa66c?show_docid=481c181362eaa66c#) on
this forum.

Here I see a post stating:
Essentially it seems that at this stage the only way to get an RTP
stream to work is a couple of hacks

Using this information, may I conclude that playing RTP live stream
over RTSP is not supported by default?

But Again a Google search tells me that many users are playing live
stream from Wowza media server. Also there are notes suggesting that
users are watching RTP live streams on their Android G1.

Could anyone please clarify?


On Jul 26, 4:51pm, Yadnesh Phadke <> wrote:


Sponsored Links

Other Threads

1. ContentView gets all screwed up after making phone call

In my content view, I have built in the ability to call a number via
the Dialer when the user presses the CALL button.  The call works
fine, but when I back out of the Dialer and go back into my
application, the views and the redrawing mechanisms are completely
screwed up, and the application is unusable.

For instance, when I select one of my ImageButtons, the image usually
magnifies by 25%, but when I do this after entering the dialer app,
the image enlarges but the frame stays the exact same, meaning that I
only see a small section of the enlarged view.  Also, when I press the
RIGHT button, my ListView should display different text (as it does
pre-Dialer), but it fails to do so post-Dialer... it doesn't do
anything at the moment.

Just wondering if there's anything that causes this to occur and
whether or not they may be fixed.  Thanks.

2. What the heck is a task ?


This is a really excellent question and there's a document written to
cover the application model that talks about tasks that you can read at . After looking over
over that, please come back with any specific questions you have.

In terms of launch modes and Intent flags, remember, most of the time, the
default behavior is what you want. Try without setting launch modes or
flags and only then if it doesn't work as you want, start worrying about
these things.

Android Team @ Google

Original Message Follows:
From: Guillaume Perrot <[EMAIL PROTECTED]>
Subject: [android-developers] What the heck is a "task" ?
Date: Wed, 10 Sep 2008 08:17:45 -0700 (PDT)

In several parts of the API is mentioned the term "task":
* the singleTask activity launch mode,
* a flag to use with intent,
* other activity manifest flags
* getTaskID in Activity
* ActivityManager.RunningTaskInfo
and so on...

I checked the documentation but I didn't found any clear definition of
what is exactly a task.

I have several issues with relaunching activities with the desired
state and onNewIntent not called and I think it's because I don't
understand what is a task and how to manage this...

Someone can provide a definition a task and how to manage them ?


3. getFromLocation not returning street names

4. Looking for Android Developer in NYC and SF

5. Removal of javax.microedition.lcdui.Graphics

6. drawLine is broken

7. Trying to move from one Activity to a MapActivity -- and failing