[FFmpeg-user] ffmpeg and rtmp fcsubscribe error
Madovsky
infos at madovsky.org
Fri Feb 1 16:21:15 CET 2013
Hi,
I'm trying to get a fms live stream
ffmpeg -re -i "rtmp://server/app/instance/mp4:live live=1 swfVfy=1" output
but failed since rtmp server (FMS) asks for FCSubscribe
here is the part of debug:
=================
Invoking play
sending ctrl. type: 0x0003
RTMP_SendPacket: fd=3, size=10
0000: c2 .
0000: 00 03 00 00 00 01 00 00 75 30 ........u0
RTMP_ReadPacket: fd=3
0000: 03 00 00 00 00 00 77 14 00 00 00 00 ......w.....
0000: 02 00 06 5f 65 72 72 6f 72 00 40 08 00 00 00 00 ..._error. at .....
0010: 00 00 05 03 00 05 6c 65 76 65 6c 02 00 05 65 72 ......level...er
0020: 72 6f 72 00 04 63 6f 64 65 02 00 19 4e 65 74 43 ror..code...NetC
0030: 6f 6e 6e 65 63 74 69 6f 6e 2e 43 61 6c 6c 2e 46 onnection.Call.F
0040: 61 69 6c 65 64 00 0b 64 65 73 63 72 69 70 74 69 ailed..descripti
0050: 6f 6e 02 00 1f 4d 65 74 68 6f 64 20 6e 6f 74 20 on...Method not
0060: 66 6f 75 6e 64 20 28 46 43 53 75 62 73 63 72 69 found (FCSubscri
0070: 62 65 29 2e 00 00 09 be)....
RTMP_ClientPacket, received: invoke 119 bytes
(object begin)
Property: <Name: no-name., STRING: _error>
Property: <Name: no-name., NUMBER: 3.00>
Property: NULL
Property: <Name: no-name., OBJECT>
(object begin)
Property: <Name: level, STRING: error>
Property: <Name: code, STRING: NetConnection.Call.Failed>
Property: <Name: description, STRING: Method not found (FCSubscribe).>
(object end)
(object end)
HandleInvoke, server invoking <_error>
rtmp server sent error
.....
RTMP_ReadPacket: fd=3
0000: 02 00 00 00 00 00 04 01 00 00 00 00 ............
0000: 00 00 05 a0 ....
HandleChangeChunkSize, received: chunk size change to 1440
RTMP_ReadPacket: fd=3
0000: 02 00 00 00 00 00 06 04 00 00 00 00 ............
0000: 00 00 00 00 00 01 ......
HandleCtrl, received ctrl. type: 0, len: 6
HandleCtrl, Stream Begin 1
RTMP_ReadPacket: fd=3
0000: 04 00 00 00 00 00 ce 14 01 00 00 00 ............
0000: 02 00 08 6f 6e 53 74 61 74 75 73 00 00 00 00 00 ...onStatus.....
0010: 00 00 00 00 05 03 00 05 6c 65 76 65 6c 02 00 06 ........level...
0020: 73 74 61 74 75 73 00 04 63 6f 64 65 02 00 14 4e status..code...N
0030: 65 74 53 74 72 65 61 6d 2e 50 6c 61 79 2e 52 65 etStream.Play.Re
0040: 73 65 74 00 0b 64 65 73 63 72 69 70 74 69 6f 6e set..description
0050: 02 00 37 50 6c 61 79 69 6e 67 20 61 6e 64 20 72 ..7Playing and r
0060: 65 73 65 74 74 69 6e 67 20 68 51 55 6c 39 57 6d esetting hQUl9Wm
0070: 74 30 75 75 55 43 6f 6e 50 4d 31 6a 34 67 51 56 t0uuUConPM1j4gQV
0080: 76 63 4c 6c 36 35 32 59 72 2e 00 07 64 65 74 61 vcLl652Yr...deta
0090: 69 6c 73 02 00 20 68 51 55 6c 39 57 6d 74 30 75 ils.. hQUl9Wmt0u
00a0: 75 55 43 6f 6e 50 4d 31 6a 34 67 51 56 76 63 4c uUConPM1j4gQVvcL
00b0: 6c 36 35 32 59 72 00 08 63 6c 69 65 6e 74 69 64 l652Yr..clientid
00c0: 02 00 08 6f 41 41 67 41 41 41 41 00 00 09 ...oAAgAAAA...
RTMP_ClientPacket, received: invoke 206 bytes
(object begin)
Property: <Name: no-name., STRING: onStatus>
Property: <Name: no-name., NUMBER: 0.00>
Property: NULL
Property: <Name: no-name., OBJECT>
(object begin)
Property: <Name: level, STRING: status>
Property: <Name: code, STRING: NetStream.Play.Reset>
Property: <Name: description, STRING: Playing and resetting hQUl9Wmt0uuUConPM1j4gQVvcLl652Yr.>
Property: <Name: details, STRING: hQUl9Wmt0uuUConPM1j4gQVvcLl652Yr>
Property: <Name: clientid, STRING: oAAgAAAA>
(object end)
(object end)
HandleInvoke, server invoking <onStatus>
HandleInvoke, onStatus: NetStream.Play.Reset
RTMP_ReadPacket: fd=3
0000: 04 00 00 00 00 00 c8 14 01 00 00 00 ............
0000: 02 00 08 6f 6e 53 74 61 74 75 73 00 00 00 00 00 ...onStatus.....
0010: 00 00 00 00 05 03 00 05 6c 65 76 65 6c 02 00 06 ........level...
0020: 73 74 61 74 75 73 00 04 63 6f 64 65 02 00 14 4e status..code...N
0030: 65 74 53 74 72 65 61 6d 2e 50 6c 61 79 2e 53 74 etStream.Play.St
0040: 61 72 74 00 0b 64 65 73 63 72 69 70 74 69 6f 6e art..description
0050: 02 00 31 53 74 61 72 74 65 64 20 70 6c 61 79 69 ..1Started playi
0060: 6e 67 20 68 51 55 6c 39 57 6d 74 30 75 75 55 43 ng hQUl9Wmt0uuUC
0070: 6f 6e 50 4d 31 6a 34 67 51 56 76 63 4c 6c 36 35 onPM1j4gQVvcLl65
0080: 32 59 72 2e 00 07 64 65 74 61 69 6c 73 02 00 20 2Yr...details..
0090: 68 51 55 6c 39 57 6d 74 30 75 75 55 43 6f 6e 50 hQUl9Wmt0uuUConP
00a0: 4d 31 6a 34 67 51 56 76 63 4c 6c 36 35 32 59 72 M1j4gQVvcLl652Yr
00b0: 00 08 63 6c 69 65 6e 74 69 64 02 00 08 6f 41 41 ..clientid...oAA
00c0: 67 41 41 41 41 00 00 09 gAAAA...
RTMP_ClientPacket, received: invoke 200 bytes
(object begin)
Property: <Name: no-name., STRING: onStatus>
Property: <Name: no-name., NUMBER: 0.00>
Property: NULL
Property: <Name: no-name., OBJECT>
(object begin)
Property: <Name: level, STRING: status>
Property: <Name: code, STRING: NetStream.Play.Start>
Property: <Name: description, STRING: Started playing hQUl9Wmt0uuUConPM1j4gQVvcLl652Yr.>
Property: <Name: details, STRING: hQUl9Wmt0uuUConPM1j4gQVvcLl652Yr>
Property: <Name: clientid, STRING: oAAgAAAA>
(object end)
(object end)
HandleInvoke, server invoking <onStatus>
HandleInvoke, onStatus: NetStream.Play.Start
RTMP_ReadPacket: fd=3
0000: 04 00 00 00 00 00 18 12 01 00 00 00 ............
0000: 02 00 11 7c 52 74 6d 70 53 61 6d 70 6c 65 41 63 ...|RtmpSampleAc
0010: 63 65 73 73 01 00 01 00 cess....
RTMP_ClientPacket, received: notify 24 bytes
(object begin)
Property: <Name: no-name., STRING: |RtmpSampleAccess>
Property: <Name: no-name., BOOLEAN: FALSE>
Property: <Name: no-name., BOOLEAN: FALSE>
(object end)
RTMP_ReadPacket: fd=3
RTMPSockBuf_Fill, recv returned -1. GetSockError(): 11 (Resource temporarily unavailable)
RTMP_ReadPacket, failed to read RTMP packet header
[AVIOContext @ 0x2403d40] Statistics: 0 bytes read, 0 seeks
RTMP_SendPacket: fd=3, size=34
0000: 43 00 00 00 00 00 22 14 C.....".
0000: 02 00 0c 64 65 6c 65 74 65 53 74 72 65 61 6d 00 ...deleteStream.
0010: 40 14 00 00 00 00 00 00 05 00 3f f0 00 00 00 00 @.........?.....
0020: 00 00 ..
Invoking deleteStream
=============
how to avoid this FCSubscribe request ?
Thanks
Franck
More information about the ffmpeg-user
mailing list