I am new to the media domain.  I am streaming using ffmpeg and
ffserver.
In ffserver configuration I choose format as RTP and video codec as
mpeg4 so I thought that mpeg4 is the codec that I am using.

My aim is to get the Audio/Video playback on Android when reading the
stream from RTSP.  So referring to the Android supported Media formats
(http://developer.android.com/guide/appendix/media-formats.html), I am
streaming AAC audio and MPEG4 video in RTP format ffmpeg and
ffserver.  The FFServer configuration provides access to the stream
over RTSP connection.

I am not able to hear any audio (I am struggling to find solution, but
currently focusing on the Video only).  When streaming only video it
seems to work fine on Android 2.2.  But shows error on Android 1.6.

I am testing only with Emulator.

Any suggestions/questions?  What audio/video codecs should I encode
the stream for smooth playback on Android 1.6 or later?

Regards,
Yadnesh

On Jul 20, 7:49 am, Indicator Veritatis <[email protected]> wrote:
> First suggestion: tell us more than 'MPEG4', which is only a container
> format. We need to know what is in the container, e.g., if the audio/
> video codecs are supported by your phone, too. The LogCat extract does
> not tell us.
>
> On Jul 18, 10:30 pm, Yadnesh <[email protected]> wrote:
>
>
>
> > Anybody any ideas or questions/suggestions?
>
> > Regards,
> > Yadnesh
>
> > On Jul 16, 3:30 pm, Yadnesh <[email protected]> wrote:> Hi,
>
> > > I am sending aMPEG4 videostreamin RTP format over RTSP to 
> > > myandroidemulator using ffmpeg and ffserver.  I use theAndroid
> > > VideoView toplaythe RTSPstream.  I do not see thevideo.  The error
> > > in LogCat is pasted below.  Is there some specific that I need to do?
>
> > > If I use theAndroid2.2 to run the same code, thevideoplays fine.
>
> > > I also tried codingvideousing H263, but thatstreamdoes notplayin1.6/2.2  
> > > emulator
> > > ===========================================================================
> > >  ========
> > > 07-16 15:50:46.073: DEBUG/PlayerDriver(554): buffering (6)
> > > 07-16 15:50:46.273: DEBUG/PlayerDriver(554): buffering (6)
> > > 07-16 15:50:46.474: DEBUG/PlayerDriver(554): buffering (73)
> > > 07-16 15:50:46.683: DEBUG/PlayerDriver(554): buffering (73)
> > > 07-16 15:50:46.884: DEBUG/PlayerDriver(554): buffering (73)
> > > 07-16 15:50:47.092: DEBUG/PlayerDriver(554): buffering (73)
> > > 07-16 15:50:47.293: DEBUG/PlayerDriver(554): buffering (73)
> > > 07-16 15:50:47.492: DEBUG/PlayerDriver(554): buffering (73)
> > > 07-16 15:50:47.703: DEBUG/PlayerDriver(554): buffering (73)
> > > 07-16 15:50:47.902: DEBUG/PlayerDriver(554): buffering (73)
> > > 07-16 15:50:48.113: DEBUG/PlayerDriver(554): buffering (73)
> > > 07-16 15:50:48.123: DEBUG/PlayerDriver(554): buffering (100)
> > > 07-16 15:50:48.162: ERROR/SW_DEC(554): PV SW DECODER is used forMPEG4
> > > 07-16 15:50:48.223: INFO/MP(807): onPrepared called
> > > 07-16 15:50:48.223: INFO/MP(807): vv start
> > > 07-16 15:50:48.252: INFO/mediaDuration3(807): -1
> > > 07-16 15:50:48.384: ERROR/PlayerDriver(554): HandleErrorEvent:
> > > PVMFErrCorrupt
> > > 07-16 15:50:48.652: WARN/PlayerDriver(554):
> > > PVMFInfoErrorHandlingComplete
> > > 07-16 15:50:48.652: ERROR/MediaPlayer(807): error (1, -10)
> > > 07-16 15:50:48.652: ERROR/MediaPlayer(807): Attempt to call
> > > getDuration without a valid mediaplayer
> > > 07-16 15:50:48.652: ERROR/MediaPlayer(807): error (-38, 0)
> > > 07-16 15:50:48.794: ERROR/MediaPlayer(807): Error (1,-10)
> > > 07-16 15:50:48.794: DEBUG/VideoView(807): Error: 1,-10
> > > 07-16 15:50:48.794: INFO/MP(807): onError called
> > > 07-16 15:50:49.063: ERROR/MediaPlayer(807): Error (-38,0)
> > > 07-16 15:50:49.072: DEBUG/VideoView(807): Error: -38,0
> > > 07-16 15:50:49.072: INFO/MP(807): onError called
> > > ===========================================================================
> > >  ========
>
> > > Regards,
> > > Yadnesh

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

Reply via email to