[FFmpeg-user] ffmpeg with Red5
Ricardo Kleemann
ricardo at americasnet.com
Tue May 7 02:45:19 CEST 2013
Hi,
I'm trying to get ffmpeg working with Red5.
I have a stream being captured by Red5 and made available via rtmp.
ffmpeg works fine if I try to read an rtmp stream from Flash Media Server.
However if I use the same command attempting to connect to Red5, I just get
an error "Operation not permitted" without any additional clues in the
debug.
The Red5 log shows that the connection from ffmpeg was made and the play
command was received, then nothing else.
Here's the ffmpeg output:
ffmpeg -loglevel debug -i "rtmp://server2/live/livestream" -y -c:v libx264
-b:v 512k -vprofile baseline -preset medium -x264opts level=41 -threads 4
-s 480x270 -map 0:v -map 0:a:0 -c:a libfaac -b:a 160000 -ac 2 -hls_time 10
-hls_list_size 6 -hls_wrap 18 -start_number 1 live.m3u8
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'.
Reading option '-y' ... matched as option 'y' (overwrite output files) with
argument '1'.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument
'libx264'.
Reading option '-b:v' ... matched as option 'b' (video bitrate (please use
-b:v)) with argument '512k'.
Reading option '-vprofile' ... matched as AVOption 'vprofile' with argument
'baseline'.
Reading option '-preset' ... matched as AVOption 'preset' with argument
'medium' .
Reading option '-x264opts' ... matched as AVOption 'x264opts' with argument
'level=41'.
Reading option '-threads' ... matched as AVOption 'threads' with argument
'4'.
Reading option '-s' ... matched as option 's' (set frame size (WxH or
abbreviation)) with argument '480x270'.
Reading option '-map' ... matched as option 'map' (set input stream
mapping) with argument '0:v'.
Reading option '-map' ... matched as option 'map' (set input stream
mapping) with argument '0:a:0'.
Reading option '-c:a' ... matched as option 'c' (codec name) with argument
'libfaac'.
Reading option '-b:a' ... matched as option 'b' (video bitrate (please use
-b:v)) with argument '160000'.
Reading option '-ac' ... matched as option 'ac' (set number of audio
channels) with argument '2'.
Reading option '-hls_time' ... matched as AVOption 'hls_time' with argument
'10' .
Reading option '-hls_list_size' ... matched as AVOption 'hls_list_size'
with argument '6'.
Reading option '-hls_wrap' ... matched as AVOption 'hls_wrap' with argument
'18' .
Reading option '-start_number' ... matched as AVOption 'start_number' with
argument '1'.
Reading option 'live.m3u8' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Applying option y (overwrite output files) with argument 1.
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 @ 0x1535240] Handshaking...
[rtmp @ 0x1535240] Type answer 3
[rtmp @ 0x1535240] Server version 1.2.3.4
[rtmp @ 0x1535240] Proto = rtmp, path = /live/livestream, app = live, fname
= livestream
[rtmp @ 0x1535240] Server bandwidth = 10000000
[rtmp @ 0x1535240] Client bandwidth = 10000000
[rtmp @ 0x1535240] Creating stream...
[rtmp @ 0x1535240] Sending play command for 'livestream'
[rtmp @ 0x1535240] Server error:
rtmp://server2/live/livestream: Operation not permitted
More information about the ffmpeg-user
mailing list