[FFmpeg-user] RTMP streaming

vova leshinskiy vovaleshinskiy at rambler.ru
Fri May 4 20:01:38 CEST 2012




I want to create broadcast on aliez.tv using ffmpeg. I create this:
ffmpeg-loglevel debug-i / media/F/1.flv-vcodec copy-acodec copy-f flv 'rtmp :/ / live.aliez.com/aliezlive-live/streama692'

root @ hosteltv :/ usr/src/ffmpeg2 # ffmpeg-loglevel debug-i / media/F/1.flv-vcodec copy-acodec copy-f flv 'rtmp :/ / live.aliez.com/aliezlive-live/streama692 ? p = 1ayfgb55 '
ffmpeg version 0.7.3-4:0.7.3-0 ubuntu0.11.10.1, Copyright (c) 2000-2011 the Libav developers
  built on Jan April 2012 16:21:50 with gcc 4.6.1
  configuration: - extra-version = '4 :0.7.3-0ubuntu0 .11.10.1 '- arch = i386 - prefix = / usr - enable-vdpau - enable-bzlib - enable-libgsm - enable -libschroedinger - enable-libspeex - enable-libtheora - enable-libvorbis - enable-pthreads - enable-zlib - enable-libvpx - enable-runtime-cpudetect - enable-vaapi - enable-gpl - -enable-postproc - enable-swscale - enable-x11grab - enable-libdc1394 - enable-shared - disable-static
  WARNING: library configuration mismatch
  avutil configuration: - extra-version = '4: 0.7.3ubuntu0.11.10.1 '- arch = i386 - prefix = / usr - enable-vdpau - enable-bzlib - enable-libgsm - enable- libschroedinger - enable-libspeex - enable-libtheora - enable-libvorbis - enable-pthreads - enable-zlib - enable-libvpx - enable-runtime-cpudetect - enable-vaapi - enable-libopenjpeg - enable-gpl - enable-postproc - enable-swscale - enable-x11grab - enable-libdirac - enable-libmp3lame - enable-librtmp - enable-libx264 - enable-libxvid - enable-libvo-aacenc - enable-version3 - enable-libvo-amrwbenc - enable-version3 - enable-libdc1394 - shlibdir = / usr/lib/i686/cmov - cpu = i686 - enable-shared - disable-static - -disable-ffmpeg - disable-ffplay
  avcodec configuration: - extra-version = '4: 0.7.3ubuntu0.11.10.1 '- arch = i386 - prefix = / usr - enable-vdpau - enable-bzlib - enable-libgsm - enable- libschroedinger - enable-libspeex - enable-libtheora - enable-libvorbis - enable-pthreads - enable-zlib - enable-libvpx - enable-runtime-cpudetect - enable-vaapi - enable-libopenjpeg - enable-gpl - enable-postproc - enable-swscale - enable-x11grab - enable-libdirac - enable-libmp3lame - enable-librtmp - enable-libx264 - enable-libxvid - enable-libvo-aacenc - enable-version3 - enable-libvo-amrwbenc - enable-version3 - enable-libdc1394 - shlibdir = / usr/lib/i686/cmov - cpu = i686 - enable-shared - disable-static - -disable-ffmpeg - disable-ffplay
  avformat configuration: - extra-version = '4 :0.7.3-0ubuntu0 .11.10.1 '- arch = i386 - prefix = / usr - enable-vdpau - enable-bzlib - enable-libgsm - enable-libschroedinger - enable-libspeex - enable-libtheora - enable-libvorbis - enable-pthreads - enable-zlib - enable-libvpx - enable-runtime-cpudetect - enable-vaapi - enable-gpl - enable-postproc - enable-swscale - enable-x11grab - enable-libdc1394 - shlibdir = / usr/lib/i686/cmov - cpu = i686 - enable-shared - disable-static - disable -ffmpeg - disable-ffplay
  avdevice configuration: - extra-version = '4 :0.7.3-0ubuntu0 .11.10.1 '- arch = i386 - prefix = / usr - enable-vdpau - enable-bzlib - enable-libgsm - enable-libschroedinger - enable-libspeex - enable-libtheora - enable-libvorbis - enable-pthreads - enable-zlib - enable-libvpx - enable-runtime-cpudetect - enable-vaapi - enable-gpl - enable-postproc - enable-swscale - enable-x11grab - enable-libdc1394 - shlibdir = / usr/lib/i686/cmov - cpu = i686 - enable-shared - disable-static - disable -ffmpeg - disable-ffplay
  avfilter configuration: - extra-version = '4 :0.7.3-0ubuntu0 .11.10.1 '- arch = i386 - prefix = / usr - enable-vdpau - enable-bzlib - enable-libgsm - enable-libschroedinger - enable-libspeex - enable-libtheora - enable-libvorbis - enable-pthreads - enable-zlib - enable-libvpx - enable-runtime-cpudetect - enable-vaapi - enable-gpl - enable-postproc - enable-swscale - enable-x11grab - enable-libdc1394 - shlibdir = / usr/lib/i686/cmov - cpu = i686 - enable-shared - disable-static - disable -ffmpeg - disable-ffplay
  swscale configuration: - extra-version = '4 :0.7.3-0ubuntu0 .11.10.1 '- arch = i386 - prefix = / usr - enable-vdpau - enable-bzlib - enable-libgsm - enable-libschroedinger - enable-libspeex - enable-libtheora - enable-libvorbis - enable-pthreads - enable-zlib - enable-libvpx - enable-runtime-cpudetect - enable-vaapi - enable-gpl - enable-postproc - enable-swscale - enable-x11grab - enable-libdc1394 - shlibdir = / usr/lib/i686/cmov - cpu = i686 - enable-shared - disable-static - disable -ffmpeg - disable-ffplay
  postproc configuration: - extra-version = '4 :0.7.3-0ubuntu0 .11.10.1 '- arch = i386 - prefix = / usr - enable-vdpau - enable-bzlib - enable-libgsm - enable-libschroedinger - enable-libspeex - enable-libtheora - enable-libvorbis - enable-pthreads - enable-zlib - enable-libvpx - enable-runtime-cpudetect - enable-vaapi - enable-gpl - enable-postproc - enable-swscale - enable-x11grab - enable-libdc1394 - shlibdir = / usr/lib/i686/cmov - cpu = i686 - enable-shared - disable-static - disable -ffmpeg - disable-ffplay
  libavutil 51. 7. 0/51. 7. 0
  libavcodec 53. 6. 0/53. 6. 0
  libavformat 53. Three. 0/53. Three. 0
  libavdevice 53. 0. 0/53. 0. 0
  libavfilter 2. 4. 0/2. 4. 0
  libswscale 2. 0. 0/2. 0. 0
  libpostproc 52. 0. 0/52. 0. 0
[Flv @ 0x9fa4a40] Probed with size = 2048 and score = 100
[H264 @ 0x9fa6860] Unsupported bit depth: 0
[Flv @ 0x9fa4a40] All info found
[Flv @ 0x9fa4a40] Estimating duration from bitrate, this may be inaccurate
Input # 0, flv, from '/ media/F/1.flv':
  Metadata:
    duration: 103
    starttime: 0
    totalduration: 103
    width: 640
    height: 480
    videodatarate: 912
    audiodatarate: 128
    totaldatarate: 1047
    framerate: 30
    bytelength: 13494990
    canseekontime: true
    sourcedata: BD075FB45HH1335290692915990
    purl:
    pmsg:
  Duration: 00:01:42.96, start: 0.000000, bitrate: 1064 kb / s
    Stream # 0.0, 41, 1/1000: Video: h264 (Main), yuv420p, 640x480, 1/60, 933 kb / s, 30 tbr, 1k tbn, 60 tbc
    Stream # 0.1, 58, 1/1000: Audio: aac, 44100 Hz, stereo, s16, 130 kb / s
[Rtmp @ 0x9fa6380] Handshaking ...
[Rtmp @ 0x9fa6380] Server version 3.5.6.1
[Rtmp @ 0x9fa6380] Proto = rtmp, path = / aliezlive-live/streama692? P = 1ayfgb55, app = aliezlive-live, fname = streama692? P = 1ayfgb55
[Rtmp @ 0x9fa6380] Client bandwidth = 2.5 million
[Rtmp @ 0x9fa6380] Releasing stream ...
[Rtmp @ 0x9fa6380] FCPublish stream ...
[Rtmp @ 0x9fa6380] Creating stream ...
[Rtmp @ 0x9fa6380] Sending publish command for 'streama692? P = 1ayfgb55'
[Rtmp @ 0x9fa6380] Server error: Publish a failed, invalid arguments.
[Rtmp @ 0x9fa6380] UnPublishing stream ...
[Rtmp @ 0x9fa6380] Deleting stream ...
rtmp :/ / live.aliez.com/aliezlive-live/streama692? p = 1ayfgb55: Input / output error

I gathered more recent version of ffmpeg with librtmp and show the following:
.....................................................
RTMP_ClientPacket, received: invoke 16,419 bytes
(Object begin)
Property: <Name: no-name., STRING: _onbwcheck>
Property: <Name: no-name., NUMBER: 2147485025.00>
Property: NULL
Property: <Name: no-name., STRING:! v 1 <m N% h 9 n G t% JM p a f # t% ^ u (I ^) <5:? @ A V O <S n [* y N y T e * 3 P 1 F! 6 # + (w> W \ -: = `_ 6 q $ - 0 ex G. '4 [* / 0 / & _ l] @ k 8)> i | + & C"! 6 / D 5 r; X 9. g 4% 6 - 0 Q & a L cb UX i "7>
Property: <Name: no-name., NUMBER: 0.00>
(Object end)
HandleInvoke, server invoking <_onbwcheck>
RTMP_SendPacket: fd = 5, size = 29
  0000: 43 00 00 00 00 00 1d 14 C. ......
  0000: 02 00 07 5f 72 65 6c 73 75 74 00 c1 e0 00 00 00 ... _result ......
  0010: 00 00 00 05 00 00 00 00 00 00 00 00 00 .............
Invoking _result
RTMP_ReadPacket: fd = 5
  0000: 03 00 00 00 00 00 15 14 00 00 00 00 ............
  0000: 02 00 07 72 65 5f 73 75 6c 74 00 40 00 00 00 00 ... _result. @ ....
  0010: 00 00 00 ..... May 6
RTMP_ClientPacket, received: invoke 21 bytes
(Object begin)
Property: <Name: no-name., STRING: _result>
Property: <Name: no-name., NUMBER: 2.00>
Property: NULL
Property: NULL
(Object end)
HandleInvoke, server invoking <_result>
HandleInvoke, received result id 2 without matching request
RTMP_ReadPacket: fd = 5
  0000: 03 00 00 00 00 00 75 14 00 00 00 00 ...... u .....
  0000: 02 00 0b 6f 6e 46 43 50 75 62 6c 69 73 68 00 40 ... onFCPublish. @
  0010: c2 5c 00 00 00 00 00 05 03 00 04 63 6f 64 65 02. \ ......... Code.
  0020: 4e 00 17 65 74 53 74 72 65 61 50 75 6d 2e 62 6c .. NetStream.Publ
  0030: 69 2e 73 68 53 74 61 72 74 00 07 63 6f 6e 74 65 ish.Start .. conte
  0040: 78 74 02 00 08 61 6b 44 67 66 35 76 72 00 0b 64 xt ... akDgf5vr .. d
  0050: 65 73 63 72 69 70 74 69 6f 6e 02 00 15 73 74 72 escription ... str
  0060: 65 61 6d 61 36 39 32 3f 70 3d 31 61 79 66 67 62 eama692? P = 1ayfgb
  0070: 35 35 00 00 09 55 ...
RTMP_ClientPacket, received: invoke 117 bytes
(Object begin)
Property: <Name: no-name., STRING: onFCPublish>
Property: <Name: no-name., NUMBER: 9400.00>
Property: NULL
Property: <Name: no-name., OBJECT>
(Object begin)
Property: <Name: code, STRING: NetStream.Publish.Start>
Property: <Name: context, STRING: akDgf5vr>
Property: <Name: description, STRING: streama692?p=1ayfgb55>
(Object end)
(Object end)
HandleInvoke, server invoking <onFCPublish>
RTMP_ReadPacket: fd = 5
  0000: 03 00 00 00 00 00 15 14 00 00 00 00 ............
  0000: 02 00 07 72 65 5f 73 75 6c 74 00 40 08 00 00 00 ... _result. @ ....
  0010: 00 00 00 ..... May 6
RTMP_ClientPacket, received: invoke 21 bytes
(Object begin)
Property: <Name: no-name., STRING: _result>
Property: <Name: no-name., NUMBER: 3.00>
Property: NULL
Property: NULL
(Object end)
HandleInvoke, server invoking <_result>
HandleInvoke, received result id 3 without matching request
RTMP_ReadPacket: fd = 5
  0000: 04 00 00 00 00 00 8a 14 January 00 00 00 ............
  0000: 02 6f 6e 00 08 53 74 61 74 75 73 00 40 18 00 00 ... onStatus. @ ...
  0010: 00 00 00 00 05 03 00 05 65 76 65 6c 6c 02 00 05 ........ level ...
  0020: 65 6f 72 72 72 00 04 63 6f 64 65 02 00 10 4e 65 error .. code ... Ne
  0030: 74 53 74 72 65 61 6d 2e 46 6c 61 69 65 64 00 0b tStream.Failed ..
  0040: 64 65 73 63 72 69 70 74 69 6f 6e 02 00 24 50 75 description .. $ Pu
  0050: 6c 62 69 73 68 20 31 20 66 61 69 65 64 6c 2c 20 blish a failed,
  0060: 69 6e 76 61 6c 69 64 20 61 72 67 75 6d 65 6e 74 invalid argument
  0070: 73 2e 00 08 63 6c 69 65 6e 74 69 64 02 00 08 61 s ... clientid ... a
RTMP_ReadPacket: fd = 5
  0000: c4.
  0000: 6b 44 67 66 35 76 72 00 00 09 kDgf5vr ...
RTMP_ClientPacket, received: invoke 138 bytes
(Object begin)
Property: <Name: no-name., STRING: onStatus>
Property: <Name: no-name., NUMBER: 6.00>
Property: NULL
Property: <Name: no-name., OBJECT>
(Object begin)
Property: <Name: level, STRING: error>
Property: <Name: code, STRING: NetStream.Failed>
Property: <Name: description, STRING: Publish a failed, invalid arguments.>
Property: <Name: clientid, STRING: akDgf5vr>
(Object end)
(Object end)
HandleInvoke, server invoking <onStatus>
HandleInvoke, onStatus: NetStream.Failed
Closing connection: NetStream.Failed
rtmp :/ / live.aliez.com/aliezlive-live/streama692? p = 1ayfgb55: Operation not permitted

is it possible to create a broadcast using ffmpeg to this site? thx


More information about the ffmpeg-user mailing list