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
  libavcodec    52.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.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
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 40000
VideoGopSize 12
#AudioCodec aac
NoAudio
AudioBitRate 8
AudioChannels 1

</Stream>

==========================


Regards,
Yadnesh


On Jun 29, 6:10 am, Andy Savage <[email protected]> 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 <[email protected]> wrote:
> > afaik you can directly feed that trsp url to the MediaPlayer class...
>
> > On 28 jun, 12:33, chas__123 <[email protected]> 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 [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]<android-developers%2Bunsubs 
> > [email protected]>
> > 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 [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