Thursday, June 24, 2010

[android-developers] Re: Playing live stream (RTP) in MediaPlayer

This might not be the right forum for this question, but I am
struggling for some days to get the right combination in
ffserver.conf
Could you please share the ffserver configuration file that you used?

I have tried using ffserver on Ubuntu 8.04 and get a sedmentation
fault

Using ffserver on the adb shell shows following "Could not open output
feed file '/tmp/feed1.ffm.ffm'" error.

All suggestions to resolve/work around this error are welcome :)

Regards,
Yadnesh

On Jun 22, 7:02 am, Andy Savage <a...@bluewire.net.nz> wrote:
> *Hi Everyone,*
>
> This problem is *really* bugging me. It's a lot bigger than a few of us not
> being able to receive RTP.
>
> It's the fact that Android currently *does not support incoming real time
> streaming*! This is a *huge* problem for a new platform that wants to really
> become the device people buy. Real time video streaming is a huge
> industry... what a big oversight??!! I've posted a bug
> report<http://code.google.com/p/android/issues/detail?id=8959&q=rtp&colspec=...>
> but
> I don't expect it to get fixed anytime soon as nobody has posted any
> comments or even starred it.
>
> However, there is an upside many people say that the beauty about
> open-source is that you can fix it yourself. Sadly I'm not a C-coder and
> would spend months just learning it. So, is anybody able to help me with the
> required patches to OpenCore? I am sure for somebody with some experience
> then it shouldn't be a big deal (I see that RTP is supported using RTSP so
> to pass in a native RTP stream or to support SDP's from SIP shouldn't be too
> hard I guess).
>
> In the meantime I have been working to overcome this problem, I've attempted
> a solution running FFMpeg & FFServer on the phone itself to stream out RTSP
> (no transcoding just streaming).
>
> My plan was to use this to stream to the video to the local MediaPlayer...
> Unfortunately the RTSP playing code is very picky on Android. It wouldn't
> play the stream.  However I have successfully gotten VLC to play the stream
> from the phone (although this doesn't help me so much), so I know it works.
> I'm a bit stuck on what to try next!
>
> Any ideas would be appreciated.
>
> Kind regards,
> Andy Savage
>
> --
> "The greatest challenge to any thinker is stating the problem in a way that
> will allow a solution"
> - Bertrand Russell
>
> Andy Savage
> Cell Phone:+852 936 34341begin_of_the_skype_highlighting              +852 936 34341      end_of_the_skype_highlighting
> Skype ID: andy_savage
> Linked In:http://www.linkedin.com/in/andysavage
>
> On Thu, Jun 17, 2010 at 3:21 PM, Jez <jeremy.a.co...@baesystems.com> wrote:
> > Thanks,
>
> > I'll give this a try on the 2.1 (Desire) and see if it'll work - as
> > I'm slightly suspiscious that
> > it may have problems with TRUE live video (aka from an encoder) but
> > will post here with what I find.
>
> > Hoping always
>
> > On Jun 9, 9:00 am, Andy Savage <a...@bluewire.net.nz> wrote:
> > > On the subject of this thread I have submitted a bug report... For those
> > > interested you may want to star it or add any useful comments:
> >http://code.google.com/p/android/issues/detail?id=8959&q=rtp&colspec=...
>
> > > I hope we can get this resolved. I'm not really a skilled enough coder to
> > > fix this issue myself (in the C sources). But anybody who could help
> > would
> > > be much appreciated.
>
> > > --
> > > "The greatest challenge to any thinker is stating the problem in a way
> > that
> > > will allow a solution"
> > > - Bertrand Russell
>
> > > Andy Savage
> > > Cell Phone: +852 936 34341
> > > Skype ID: andy_savage
> > > Linked In:http://www.linkedin.com/in/andysavage
>
> > > On Wed, Jun 9, 2010 at 3:58 PM, Andy Savage <a...@bluewire.net.nz>
> > wrote:
> > > > You simply pass the RTSP url to MediaPlayer (although I think this
> > > > functionality was somewhat broken before 2.1 so I can't be certain that
> > it
> > > > will work in 1.6-2.0).
>
> > > > You can play it in the same way that you would play a file (but instead
> > of
> > > > passing the file descriptor pass the URL as a string).
>
> > > > --
> > > > "The greatest challenge to any thinker is stating the problem in a way
> > that
> > > > will allow a solution"
> > > > - Bertrand Russell
>
> > > > Andy Savage
> > > > Cell Phone: +852 936 34341
> > > > Skype ID: andy_savage
> > > > Linked In:http://www.linkedin.com/in/andysavage
>
> > > > On Mon, Jun 7, 2010 at 5:35 PM, Jez <jeremy.a.co...@baesystems.com>
> > wrote:
>
> > > >> I'm confused by RTSP streaming - I've been trying to stream a LIVE
> > > >> video to Android (2.1)
> > > >> and not sure from the discussion here and previous posts that I've
> > > >> seen if Android can actually receive and play
> > > >> a LIVE video stream? I don't need any control of the video at all so
> > > >> just need to stream it.
>
> > > >> Jez
>
> > > >> On Jun 1, 2:30 am, Andy Savage <a...@bluewire.net.nz> wrote:
> > > >> > In my example I am using SIP, so the SDP information is actually
> > > >> exchanged
> > > >> > this way.
>
> > > >> > The RTSP is simply for receiving as a hack to Android's built in
> > > >> (arbitrary)
> > > >> > limitations. So the idea is to take the SDP for receiving and wrap
> > it
> > > >> over
> > > >> > RTSP.
>
> > > >> > --
> > > >> > "The greatest challenge to any thinker is stating the problem in a
> > way
> > > >> that
> > > >> > will allow a solution"
> > > >> > - Bertrand Russell
>
> > > >> > Andy Savage
> > > >> > Cell Phone: +852 936 34341
> > > >> > Skype ID: andy_savage
> > > >> > Linked In:http://www.linkedin.com/in/andysavage
>
> > > >> > On Mon, May 31, 2010 at 9:26 AM, Ignas <ignas.limanaus...@gmail.com
>
> > > >> wrote:
> > > >> > > There is a technical limitation to what SDP can legally convey. A
> > > >> > > single SDP document can contain only one end of media
> > "conversation".
> > > >> > > Therefore it is technically impossible to setup streaming with
> > just
> > > >> > > one SDP document there have to be an exchange. When using RTSP or
> > SIP
> > > >> > > terminals exchange their SDP information and thus get to know
> > where to
> > > >> > > stream to and from where to accept the stream.
>
> > > >> > > MediaPlayer could accept just one SDP (i.e. streamer's), but then
> > how
> > > >> > > would streamer would know where to transmit? Both of them have to
> > > >> > > exchange at least supported CODEC information and connection
> > > >> > > information (port and IP).
>
> > > >> > > Maybe I am just not aware of SDP format with two node's
> > information.
> > > >> > > Can someone share an example?
>
> > > >> > > On May 27, 3:22 pm, debelyoo <jean.ross...@gmail.com> wrote:
> > > >> > > > I agree with Andy's comment:
>
> > > >> > > > On May 25, 8:36 am, Andy Savage <a...@bluewire.net.nz> wrote:
>
> > > >> > > > > There seems to be a limitation that means that it will only
> > accept
> > > >> SDP
> > > >> > > > > information with RTP streams inside if it gets them from the
> > RTSP
> > > >> > > stream
> > > >> > > > > (e.g. it gets this information from SETUP in the RTSP
> > protocal).
>
> > > >> > > > It is possible to play a stream by requesting it via a RTSP
> > request
> > > >> > > > (both audio and video are sent over RTP and the MediaPlayer is
> > able
> > > >> to
> > > >> > > > decode and play them).
> > > >> > > > But it is not possible to play live RTP stream by requesting the
> > SDP
> > > >> > > > file directly (via an HTTP request). The RTP streams (audio and
> > > >> video)
> > > >> > > > are sent to the device from the server. The MediaPlayer should
> > > >> "just"
> > > >> > > > get the SDP file, listen on the proper ports and decode the
> > streams.
> > > >> > > > But it generates an error and do not play the streams.
>
> > > >> > > > Jean
>
> > > >> > > --
> > > >> > > 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+unsubscribe@googlegroups.com<android-developers%2Bunsubscribe@googlegroups.com>> <android-developers%2Bunsubs­cribe@googlegroups.com>> > >> <android-developers%2Bunsubs­cribe@googlegroups.com>
> > > >> > > For more options, visit this group at
> > > >> > >http://groups.google.com/group/android-developers?hl=en-Hidequoted
> > > >> text -
>
> > > >> > - Show quoted text -
>
> > > >> --
> > > >> 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+unsubscribe@googlegroups.com<android-developers%2Bunsubscribe@googlegroups.com>> <android-developers%2Bunsubs­cribe@googlegroups.com>
> > > >> For more options, visit this group at
> > > >>http://groups.google.com/group/android-developers?hl=en-Hide quoted
> > text -
>
> > > - Show quoted text -
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.> To post to this group, send email toandroid-developers@googlegroups.com
> > To unsubscribe from this group, send email to>android-developers+unsubscribe@googlegroups.com<android-developers%2Bunsubscribe@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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment