[FFmpeg-user] FFmpeg error while streaming to RTSP server

sujith supretsonu99 at gmail.com
Thu Sep 20 12:28:46 CEST 2012


Hi All,

I am very much new to Streaming.  what I am trying to do is to stream a
static file over RTSP server.

Steps that I am doing.
*
1) My config file for the ffserver is as below:*
RTSPPort 8544
<Feed feed2.ffm>
   File /home/xyz/tmp/feed2.ffm
   FileMaxSize 200K
   ACL allow 127.0.0.1
</Feed>
<Stream test.sdp>
   File "/home/user/test.mp4"
   Format rtsp
   StartSendOnKey
</Stream>
*Note:* Some of the things are omitted.

2) I started the FFserver, and then try to connect to the server using below
command from my vlc client"
    with command: rtsp://xxx.xxx.xxx.xxx:8544/test.sdp

*I get the logs as:*

    ffserver version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers
      built on Sep 17 2012 19:46:38 with gcc 4.1.2 20080704 (Red Hat
4.1.2-52)
      configuration: --enable-gpl --enable-libmp3lame --enable-libtheora
--enable-libvo-aacenc --enable-libvorbis --enable-libvpx --enable-libx264
--enable-version3
      libavutil      51. 54.100 / 51. 54.100
      libavcodec     54. 23.100 / 54. 23.100
      libavformat    54.  6.100 / 54.  6.100
      libavdevice    54.  0.100 / 54.  0.100
      libavfilter     2. 77.100 /  2. 77.100
      libswscale      2.  1.100 /  2.  1.100
      libswresample   0. 15.100 /  0. 15.100
      libpostproc    52.  0.100 / 52.  0.100
    Thu Sep 20 12:08:05 2012 Opening file '/home/sujith/test.mp4'
    Thu Sep 20 12:08:05 2012 FFserver started.
    Thu Sep 20 12:08:12 2012 192.168.1.198 - - [DESCRIBE]
"rtsp://xxx.xxx.xxx.xxx:8554/test.sdp RTSP/1.0" 200 167
    Thu Sep 20 12:08:12 2012 192.168.1.198 - - [OPTIONS]
"rtsp://xxx.xxx.xxx.xxx:8554 RTSP/1.0" 200 85

But, my VLC client is not able to connect and it says: "You input cannot be
opened."


##################################################################

Second thing that I was trying to do was to provide the feed to the ffserver
through ffmpeg
for that,* I was using the config file as:*

    Port 8090
    RTSPPort 8544

    <Feed feed2.ffm>
       File /home/xyz/tmp/feed2.ffm
       FileMaxSize 200K
       ACL allow 127.0.0.1
    </Feed>

    <Stream test.sdp>
       Feed feed2.ffm
       Format rtsp
       VideoFrameRate 15
       VideoSize 352x240
       VideoBitRate 256
       VideoBufferSize 40
       VideoGopSize 30
       AudioBitRate 64
       StartSendOnKey
    </Stream>

*Note:* some of the things are omitted.

1) start the server
2) ffmpeg -i /home/user/test.mp4 http://localhost:8888/feed2.ffm

*It gives the error:*

    ffmpeg version 0.10 Copyright (c) 2000-2012 the FFmpeg developers
      built on Apr  5 2012 15:17:16 with gcc 4.1.2 20080704 (Red Hat
4.1.2-52)
      configuration: --cxx=CXX
      libavutil      51. 34.101 / 51. 34.101
      libavcodec     53. 60.100 / 53. 60.100
      libavformat    53. 31.100 / 53. 31.100
      libavdevice    53.  4.100 / 53.  4.100
      libavfilter     2. 60.100 /  2. 60.100
      libswscale      2.  1.100 /  2.  1.100
      libswresample   0.  6.100 /  0.  6.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/sujith/test.mp4':
      Metadata:
        major_brand     : mp42
        minor_version   : 1
        compatible_brands: mp42avc1
        creation_time   : 2012-04-27 08:20:10
      Duration: 00:02:08.28, start: 0.000000, bitrate: 539 kb/s
        Stream #0:0(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo,
s16, 104 kb/s
        Metadata:
          creation_time   : 2012-04-27 08:20:10
          handler_name    : Apple Sound Media Handler
        Stream #0:1(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p,
320x240, 429 kb/s, 25 fps, 25 tbr, 2500 tbn, 5k tbc
        Metadata:
          creation_time   : 2012-04-27 08:20:10
          handler_name    : Apple Video Media Handler
    [buffer @ 0x116b0c60] w:320 h:240 pixfmt:yuv420p tb:1/1000000 sar:0/1
sws_param:
    [scale @ 0x116abd60] w:320 h:240 fmt:yuv420p -> w:352 h:240 fmt:yuv420p
flags:0x4
    [NULL @ 0x1168dd80] Codec is experimental but experimental codecs are
not enabled, see -strict -2
    Output #0, ffm, to 'protocol://localhost:8888/feed2.ffm':
      Metadata:
        major_brand     : mp42
        minor_version   : 1
        compatible_brands: mp42avc1
        creation_time   : 2012-04-27 08:20:10
        Stream #0:0(eng): Audio: aac, 22050 Hz, 1 channels, flt, 64 kb/s
        Metadata:
          creation_time   : 2012-04-27 08:20:10
          handler_name    : Apple Sound Media Handler
        Stream #0:1(eng): Video: mpeg4 (hq), yuv420p, 352x240, q=2-31, 256
kb/s, 1000k tbn, 25 tbc
        Metadata:
          creation_time   : 2012-04-27 08:20:10
          handler_name    : Apple Video Media Handler
    Stream mapping:
      Stream #0:0 -> #0:0 (aac -> aac)
      Stream #0:1 -> #0:1 (h264 -> mpeg4)
    Error while opening encoder for output stream #0:0 - maybe incorrect
parameters such as bit_rate, rate, width or height





--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/FFmpeg-error-while-streaming-to-RTSP-server-tp4653590.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.


More information about the ffmpeg-user mailing list