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. Anybody else getting "document.body is null" JS error when loading Market Dashboard?

When I hit the URL "", I get an
infinite "Loading" spinner as well as a "document.body is null" JS error
within the following file:

Anyone else having this problem?


2. Button placement problems


I could find anything similar so I decided to open a new thread.
However if there already is a similar answer please post the link.

I need to place my buttons in a little unconventional way shown here
(dkw I could post the message with an imageshack link so an ASCI

|                                |
|                                |
|                                |
|                                |
|                                |
|                                |
|                                |
|________   ________ |
|___B2___|_|___ B3__ |

In fact I need it working in a second screen without B2.

So far my code is the following:

<?xml version="1.0" encoding="utf-8"?>
android:background="@drawable/id_app2" android:orientation="vertical"

<Button android:id="@+id/button1"

<Button android:id="@+id/button3"

(for simplicity I have removed the B2 from the code) An it worked on
my Samsung Galaxy. However I tried the same app on my friends acer
phone and the buttons were higher that should be. This is a little bit
strange since everything on other screens works fine (as you can see I
use dp not px) - I only have problem with this one. How to place them
so they would be the same at every device?

PS: For clarity B1 is a  below the center of the screen.


3. Streaming mp3 file with RTSP protocol

4. Using SQLite in with few activities

5. Android onKey is not fired for soft keyboard on a nexus one

6. Total and free Memory Usage

7. Animated-Rotate