[android-developers] Re: rtsp client?

2010-07-07 Thread hyc


On Jun 28, 6:10 pm, Andy Savage a...@bluewire.net.nz wrote:
 With certain types of well formed RTSP streams the mediaplayer class can
 play it directly.

 http://m.youtube.comis a great example of some well formed feeds, but most
 RTSP feeds from the net seem to work fine.

 I've also managed to get ffserver streaming fine to it using H.264.

I was having a lot of problems getting RTSP working over EDGE or 3G.
Finally I figured out that
it only works when your rtsp server is actually on port 554. I was
testing with ffserver on 5454
before, which worked over my local wifi but never over the GSM
network. I guess that makes
sense since everything is being NAT'd or proxied, and the proxy
servers will only recognize the
traffic if it's on a standard port.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: rtsp client?

2010-07-07 Thread hyc


On Jun 28, 3:47 am, u1663097 u1663097 u1663...@gmail.com wrote:
 The openCore platform in Android supports rtsp stack as a rtsp client.
 It is possible to support stream video.

Unfortunately it only supports RTP over UDP. From
android/external/opencore/protocols/rtsp_client_engine/src/
pvrtsp_client_engine_node.cpp
line 3534 or so:
   //For transport options, we only let server
choose
//between RTP/AVP/UDP or x-pn-tng/tcp;
and for x-pn-tng/tcp,
//we only do http cloaking. 06/03/21

Kinda sad that they've let such an old restriction remain for so long.
RTP/AVP/UDP on
cellular networks tends to lose a lot of packets. It would have been
nice to have a way
to use TCP instead.

 On Mon, Jun 28, 2010 at 6:33 PM, chas__123 charlie.nug...@gmail.com wrote:
  Hi

  could someone say if android supports an RTSP stack? We've an RTSP
  server that we'd like to stream video to an android rtsp client if
  thats possible

  thanks in advance

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: rtsp client?

2010-07-05 Thread Yadnesh
Hi,

I am trying to stream media containing mpeg4 video and AAC audio over
RTSP using ffserver.  When I try to connect to the server using VLC
player I get the message:
   Your input can't be opened:
   VLC is unable to open the MRL 'rtsp://
192.168.1.122:5454/test1.mp4'. Check the log for details.

Terminal running FFserver shows following
[OPTIONS] rtsp://192.168.1.122:5454 RTSP/1.0 200
85
- - PLAY test1.mp4/streamid=0 RTP/UDP
[TEARDOWN] rtsp://192.168.1.122:5454/test1.mp4/
RTSP/1.0 200 792
[OPTIONS] rtsp://192.168.1.122:5454 RTSP/1.0 200
85

I did a packet capture, and I see that, in response to the PLAY
request the FFServer returns following:
RTSP/1.0 454 Session Not Found..
CSeq: 11..Date: Mon Jul  5 17:12:54 2010 GMT


I don't know what I am doing wrong.  Could you please share some
ideas?   Andy, Could you please share your ffserver configuration that
you used to RTSP stream to Android?


ffmpeg:
==
./ffmpeg -i ~/Media/fileSequence0.mp4 -s 160x128 -r 15 -flags
+global_header -ac 2 -ar 48000 -vglobal 2 -acodec copy -vcodec copy
http://127.0.0.1:8090/feed1.ffm
FFmpeg version 0.6, Copyright (c) 2000-2010 the FFmpeg developers
  built on Jul  2 2010 17:43:50 with gcc 4.2.4 (Ubuntu 4.2.4-1ubuntu4)
  configuration:
  libavutil 50.15. 1 / 50.15. 1
  libavcodec52.72. 2 / 52.72. 2
  libavformat   52.64. 2 / 52.64. 2
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale 0.11. 0 /  0.11. 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x8ac1420]multiple edit list entries, a/v
desync might occur, patch welcome
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/yadnesh/Media/
fileSequence0.mp4':
  Metadata:
major_brand : isom
minor_version   : 0
compatible_brands: mp41
encoder : vlc 1.0.1 stream output
encoder-eng : vlc 1.0.1 stream output
  Duration: 00:00:09.80, start: 0.00, bitrate: 456 kb/s
Stream #0.0(eng): Audio: aac, 44100 Hz, mono, s16, 18 kb/s
Stream #0.1(eng): Video: mpeg4, yuv420p, 192x144 [PAR 3:4 DAR
1:1], 432 kb/s, 14.99 fps, 25 tbr, 1001 tbn, 25 tbc
Output #0, ffm, to 'http://127.0.0.1:8090/feed1.ffm':
  Metadata:
encoder : Lavf52.64.2
Stream #0.0(eng): Video: mpeg4, yuv420p, 192x144, q=2-31, 432 kb/
s, 1000k tbn, 25 tbc
Stream mapping:
  Stream #0.1 - #0.0
Press [q] to stop encoding
frame=  147 fps=  0 q=-1.0 Lsize= 528kB time=9.78 bitrate=
442.2kbits/s
video:518kB audio:0kB global headers:0kB muxing overhead 1.887475%
==

FFmpeg does not show Audio output.  And also no error/warning about
it.   Do you see any reason?


ffserver config:
==
Stream test1.mp4
Feed feed1.ffm
Format rtp
VideoFrameRate 15
VideoCodec mpeg4
VideoSize qvga
VideoBitRate 256
VideoBufferSize 4
VideoGopSize 12
#AudioCodec aac
NoAudio
AudioBitRate 8
AudioChannels 1

/Stream

==


Regards,
Yadnesh


On Jun 29, 6:10 am, Andy Savage a...@bluewire.net.nz wrote:
 With certain types of well formed RTSP streams the mediaplayer class can
 play it directly.

 http://m.youtube.comis a great example of some well formed feeds, but most
 RTSP feeds from the net seem to work fine.

 I've also managed to get ffserver streaming fine to it using H.264.



 On Mon, Jun 28, 2010 at 7:28 PM, MobDev developm...@mobilaria.com wrote:
  afaik you can directly feed that trsp url to the MediaPlayer class...

  On 28 jun, 12:33, chas__123 charlie.nug...@gmail.com wrote:
   Hi

   could someone say if android supports an RTSP stack? We've an RTSP
   server that we'd like to stream video to an android rtsp client if
   thats possible

   thanks in advance

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs 
  cr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: rtsp client?

2010-06-28 Thread MobDev
afaik you can directly feed that trsp url to the MediaPlayer class...

On 28 jun, 12:33, chas__123 charlie.nug...@gmail.com wrote:
 Hi

 could someone say if android supports an RTSP stack? We've an RTSP
 server that we'd like to stream video to an android rtsp client if
 thats possible

 thanks in advance

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: rtsp client?

2010-06-28 Thread Andy Savage
With certain types of well formed RTSP streams the mediaplayer class can
play it directly.

http://m.youtube.com is a great example of some well formed feeds, but most
RTSP feeds from the net seem to work fine.

I've also managed to get ffserver streaming fine to it using H.264.

On Mon, Jun 28, 2010 at 7:28 PM, MobDev developm...@mobilaria.com wrote:

 afaik you can directly feed that trsp url to the MediaPlayer class...

 On 28 jun, 12:33, chas__123 charlie.nug...@gmail.com wrote:
  Hi
 
  could someone say if android supports an RTSP stack? We've an RTSP
  server that we'd like to stream video to an android rtsp client if
  thats possible
 
  thanks in advance

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: rtsp client?

2010-06-28 Thread Alex Xin
Hi, folks

Are there any media player in Android can play HTTP stream media files?

thanks

On Tue, Jun 29, 2010 at 9:10 AM, Andy Savage a...@bluewire.net.nz wrote:

 With certain types of well formed RTSP streams the mediaplayer class can
 play it directly.

 http://m.youtube.com is a great example of some well formed feeds, but
 most RTSP feeds from the net seem to work fine.

 I've also managed to get ffserver streaming fine to it using H.264.


 On Mon, Jun 28, 2010 at 7:28 PM, MobDev developm...@mobilaria.com wrote:

 afaik you can directly feed that trsp url to the MediaPlayer class...

 On 28 jun, 12:33, chas__123 charlie.nug...@gmail.com wrote:
  Hi
 
  could someone say if android supports an RTSP stack? We've an RTSP
  server that we'd like to stream video to an android rtsp client if
  thats possible
 
  thanks in advance

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en