[Libav-user] Fwd: need tp play rtsp stream

Anshul Maheshwari er.anshul.maheshwari at gmail.com
Mon Oct 14 07:00:26 CEST 2013


Hi guys

I need to play an rtsp stream, whose url is something like this
rtsp://10.110.1.158:554/StreamingSetting?version=1.0&ChannelID=1&ChannelName=Channel1&action=getRTSPStream&sessionID=7936398

The above url is playable in vlc as it is, but using ffmpeg or fflay ,
i am not able
to get stream, does any change is required in above url.

I think ffplay or ffmpeg does not take the parameter passed using &


Any One if interested in logs of ffplay
[1] 6284
[2] 6285
[3] 6286
[4] 6287
[5] 6288
[2]   Done                    action=getRTSPStream
[3]   Done                    ChannelID=1
[4]-  Done                    ChannelName=Channel1
[5]+  Done                    EncoderPort=0
ffplay version 2.0.1 Copyright (c) 2003-2013 the FFmpeg developers
  built on Oct 12 2013 18:55:47 with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl --enable-nonfree --enable-libx264
--enable-libmp3lame --enable-libfaac --enable-static --enable-shared
--enable-pthreads --enable-x11grab
  libavutil      52. 38.100 / 52. 38.100
  libavcodec     55. 18.102 / 55. 18.102
  libavformat    55. 12.100 / 55. 12.100
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 79.101 /  3. 79.101
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
just an log tcp://10.110.1.158:554?timeout=0 failed:::::::::115/0
(this print is added by me, if some one need error number)
[rtsp @ 0xafd025c0] method DESCRIBE failed: 404 Stream Not Found
rtsp://10.110.1.158:554/StreamingSetting?version=1.0: Invalid data
found when processing input

the above case was very bad of me, that problem was of bash not ffplay
any thing after & were considered as different process(program), that
was the only reason
that my stream was not playing in ffplay, but in vlc (because there
was an gui for opening a network stream)
and bash does not come in picture in case of vlc,

Cheers
Anshul


More information about the Libav-user mailing list