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. How to capture and save the image of Google Map(MapView)...

Dear Developers!

I'm trying to develop a map application which can save some part of
map inside a phone.

So, refering to the example of google developer site, I created my
activity that using the MapView class to display the location what I
want to see. It works.

And I attached some code to save that view into png format file using
Bitmap and Canvas classes. But it didn't work.

One image file was created but it didn't contain any information of
the map. I don't know the reason why those codes didn't work and
couldn't find any related information on the Web...

code is...

public class AndroidTest extends MapActivity {

        MapView mapView;
        List<Overlay> mapOverlays;
        Drawable drawable;
        HelloItemizedOverlay itemizedOverlay;

        /** Called when the activity is first created. */
        public void onCreate(Bundle savedInstanceState) {

                // build map and mark point
                mapView = (MapView) findViewById(;

                mapOverlays = mapView.getOverlays();
                drawable = this.getResources().getDrawable
                itemizedOverlay = new HelloItemizedOverlay(drawable);

                GeoPoint point = new GeoPoint(19240000, -99120000);
                OverlayItem overlayitem = new OverlayItem(point, "", "");


                // copy MapView to canvas
                Bitmap bitmap = Bitmap.createBitmap(400, 800,
                Canvas canvas = new Canvas(bitmap);

                // save it!
                FileOutputStream fo = null;

                try {
                        fo = this.openFileOutput("test.png", 
                } catch (FileNotFoundException e) {

                bitmap.compress(CompressFormat.PNG, 100, fo);

                try {
                } catch (IOException e) {

                try {
                } catch (IOException e) {

Please, help!


2. Triggering options list

Dear Friends,

I want to trigger the options list in Android phone when somebody
calls my cell number
ie to say different kinds of options we hear  when we call  t-mobile
customer service.

"Press 1 to pay bill"
"Press 2 for  Representative"
"Press 3 for Exit"
etc etc

Based on these options I need to trigger different operations.
Any pointers, links, examples on how it can be done

Thanks a lot


3. Android Animation. How to remove flashing effect ?

4. Monitoring cpu charge/usage : is it possible?

5. Receiving text from a remote source and pasting into the current application

6. Toggling clicked item icon in gridView

7. Nanya Android Handset