Hi, Yadnesh-

Now that you have provided the complete information, I think people
can solve your problem. But at this point, I still have only
suggestions: since (as you already pointed out in an earlier post),
LogCat is reporting as an error the fact that MPEG4 is software
decoded, try recoding it with another video codec, one your phone has
hardware support for. But you already tried H.263, didn't you? And
MPEG-4 IS a synonym for H.264. So that doesn't leave very many
options.

Then again, I am still not seeing any information concerning which
profile or level for H.264 your file's stream assumes. You should
probably stick to CBP profile, for example. What command-line options
did you use with 'ffprobe'? I am guessing that your phone does not
support the same MPEG-4 levels/profiles for streaming as for non-
streaming playback.

Now if only I knew how to figure out which codec/level/profile your
phone has support for...

On Jul 19, 10:44 pm, Yadnesh <[email protected]> wrote:
> I have transcoded media using ffmpeg to MP4 file, and these play well
> on Android.  But I want to playback streaming media over RTSP.
>
> Format of MP4 file that plays on android: (as shown by ffprobe)
> =======================================================================================
> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.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.000000, 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
> =======================================================================================
>
> The only difference that I am making is sending the audio and video
> streams over RTP using RTSP.  Now that refuses to play.
>
> Regards,
> Yadnesh
>
> On Jul 20, 10:34 am, Yadnesh <[email protected]> wrote:
>
>
>
>
>
> > 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