[FFmpeg-user] Help With rtmp for ffmpeg
桃源老師
xanadu6291 at dream.jp
Mon Dec 21 12:13:46 CET 2015
> 2015/12/21 6:45P.M. wikieonline <at> gmail.com wrote:
>
> Hello Miya,
>
> Thank for your answer.
> Yes me too, my problem is just can't save the stream with ffmpeg,I want save the stream for watch locally or re encode again.
>
> Thanks
>
> Sent from my iPhone
Hello,
I compared ffmpeg and ffplay output by adding -loglevel debug. The portion where error might occur is:
ffmpeg:
RTMP_ReadPacket: fd=4
0000: 03 00 00 00 00 00 bc 14 00 00 00 00 ............
0000: 02 00 06 5f 65 72 72 6f 72 00 3f f0 00 00 00 00 ..._error.?.....
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 1e 4e 65 74 43 ror..code...NetC
0030: 6f 6e 6e 65 63 74 69 6f 6e 2e 43 6f 6e 6e 65 63 onnection.Connec
0040: 74 2e 52 65 6a 65 63 74 65 64 00 0b 64 65 73 63 t.Rejected..desc
0050: 72 69 70 74 69 6f 6e 02 00 33 43 6f 6e 6e 65 63 ription..3Connec
0060: 74 69 6f 6e 20 66 61 69 6c 65 64 3a 20 41 70 70 tion failed: App
0070: 6c 69 63 61 74 69 6f 6e 20 72 65 6a 65 63 74 65 lication rejecte
0080: 64 20 63 6f 6e 6e 65 63 74 69 6f 6e 2e 00 0e 6f d connection...o
0090: 62 6a 65 63 74 45 6e 63 6f 64 69 6e 67 00 40 08 bjectEncoding. at .
00a0: 00 00 00 00 00 00 00 08 63 6c 69 65 6e 74 69 64 ........clientid
00b0: 00 41 c9 c6 10 51 80 00 00 00 00 09 .A...Q......
RTMP_ClientPacket, received: invoke 188 bytes
(object begin)
Property: <Name: no-name, STRING: _error>
Property: <Name: no-name, NUMBER: 1.00>
Property: NULL
Property: <Name: no-name, OBJECT>
(object begin)
Property: <Name: level, STRING: error>
Property: <Name: code, STRING: NetConnection.Connect.Rejected>
Property: <Name: description, STRING: Connection failed: Application rejected connection.>
Property: <Name: objectEncoding, NUMBER: 3.00>
Property: <Name: clientid, NUMBER: 864821411.00>
(object end)
(object end)
HandleInvoke, server invoking <_error>
rtmp server sent error
ffplay:
RTMP_ReadPacket: fd=9
0000: 03 00 00 00 00 01 05 14 00 00 00 00 ............
0000: 02 00 07 5f 72 65 73 75 6c 74 00 3f f0 00 00 00 ..._result.?....
0010: 00 00 00 03 00 06 66 6d 73 56 65 72 02 00 0e 46 ......fmsVer...F
0020: 4d 53 2f 33 2c 35 2c 35 2c 32 30 30 34 00 0c 63 MS/3,5,5,2004..c
0030: 61 70 61 62 69 6c 69 74 69 65 73 00 40 3f 00 00 apabilities.@?..
0040: 00 00 00 00 00 04 6d 6f 64 65 00 3f f0 00 00 00 ......mode.?....
0050: 00 00 00 00 00 09 03 00 05 6c 65 76 65 6c 02 00 .........level..
0060: 06 73 74 61 74 75 73 00 04 63 6f 64 65 02 00 1d .status..code...
0070: 4e 65 74 43 6f 6e 6e 65 63 74 69 6f 6e 2e 43 6f NetConnection.Co
0080: 6e 6e 65 63 74 2e 53 75 63 63 65 73 73 00 0b 64 nnect.Success..d
0090: 65 73 63 72 69 70 74 69 6f 6e 02 00 15 43 6f 6e escription...Con
00a0: 6e 65 63 74 69 6f 6e 20 73 75 63 63 65 65 64 65 nection succeede
00b0: 64 2e 00 04 64 61 74 61 08 00 00 00 00 00 07 76 d...data.......v
00c0: 65 72 73 69 6f 6e 02 00 0a 33 2c 35 2c 35 2c 32 ersion...3,5,5,2
00d0: 30 30 34 00 00 09 00 08 63 6c 69 65 6e 74 69 64 004.....clientid
00e0: 00 41 c7 7c 19 52 00 00 00 00 0e 6f 62 6a 65 63 .A.|.R.....objec
00f0: 74 45 6e 63 6f 64 69 6e 67 00 40 08 00 00 00 00 tEncoding. at .....
0100: 00 00 00 00 09 .....
RTMP_ClientPacket, received: invoke 261 bytes
(object begin)
Property: <Name: no-name, STRING: _result>
Property: <Name: no-name, NUMBER: 1.00>
Property: <Name: no-name, OBJECT>
(object begin)
Property: <Name: fmsVer, STRING: FMS/3,5,5,2004>
Property: <Name: capabilities, NUMBER: 31.00>
Property: <Name: mode, NUMBER: 1.00>
(object end)
Property: <Name: no-name, OBJECT>
(object begin)
Property: <Name: level, STRING: status>
Property: <Name: code, STRING: NetConnection.Connect.Success>
Property: <Name: description, STRING: Connection succeeded.>
Property: <Name: data, ECMA_ARRAY>
(object begin)
Property: <Name: version, STRING: 3,5,5,2004>
(object end)
Property: <Name: clientid, NUMBER: 788017828.00>
Property: <Name: objectEncoding, NUMBER: 3.00>
(object end)
(object end)
HandleInvoke, server invoking <_result>
HandleInvoke, received result for method call <connect>
Sorry I can't understand what the log mean...
My alternate suggestion is to use rtmpdump to record this stream and process result file with ffmpeg. How do you think?
Or all the experts on this list help me and him!!
Best Regards,
// Miya
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3577 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20151221/20eda5b7/attachment.bin>
More information about the ffmpeg-user
mailing list