ffmpeg -loglevel debug -i "rtmp://server2/live/livestream"
ffmpeg version git-Sat Apr 20 21:31:19 2013 +0200-4824aea Copyright (c) 2000-2013 the FFmpeg developers
built on Apr 20 2013 17:10:14 with gcc 4.2.4 (GCC) (Ubuntu 4.2.4-1ubuntu4)
configuration: --enable-gpl --enable-nonfree --enable-pthreads --enable-libx264 --enable-libfaac --enable-libmp3lame
libavutil 52. 27.100 / 52. 27.100
libavcodec 55. 5.100 / 55. 5.100
libavformat 55. 3.100 / 55. 3.100
libavdevice 55. 0.100 / 55. 0.100
libavfilter 3. 58.100 / 3. 58.100
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 3.100 / 52. 3.100
Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
Reading option '-i' ... matched as input file with argument 'rtmp://server2/live/livestream'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input file rtmp://server2/live/livestream.
Successfully parsed a group of options.
Opening an input file: rtmp://server2/live/livestream.
[rtmp @ 0x1535500] Handshaking...
[rtmp @ 0x1535500] Type answer 3
[rtmp @ 0x1535500] Server version 1.2.3.4
[rtmp @ 0x1535500] Proto = rtmp, path = /live/livestream, app = live, fname = livestream
[rtmp @ 0x1535500] Server bandwidth = 10000000
[rtmp @ 0x1535500] Client bandwidth = 10000000
[rtmp @ 0x1535500] Creating stream...
[rtmp @ 0x1535500] Sending play command for 'livestream'
[rtmp @ 0x1535500] Server error:
rtmp://server2/live/livestream: Operation not permitted