使用rtmpdump对CrtmpServer服务器进行拉流时出错

佷山事桑麻 2014-07-08 10:55:32
现在要对视频直播类的服务器进行性能测试,服务器使用的是CrtmpServer,从网上下载了rtmpdump-2.3.tgz开源代码,编译完成,用rtmpdump工具进行拉流。
已经成功使用rtmpdump对一些直播视频网站拉流成功,并保存到本地可以正常播放,但是对我们自己的CrtmpServer服务器进行拉流时却出现错误,不知道有没有大侠有这方面的经验的。
详细日志如下:

[***** rtmpdump-2.3]$ ./rtmpdump -r rtmp://192.168.10.40:1936/live/str0010 -z
RTMPDump v2.3
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
WARNING: You haven't specified an output file (-o filename), using stdout
DEBUG: Protocol : RTMP
DEBUG: Hostname : 192.168.10.40
DEBUG: Port : 1936
DEBUG: Playpath : str0010
DEBUG: tcUrl : rtmp://192.168.10.40:1936/live
DEBUG: app : live
DEBUG: live : no
DEBUG: timeout : 30 sec
DEBUG: Setting buffer time to: 36000000ms
Connecting ...
DEBUG: RTMP_Connect1, ... connected, handshaking
DEBUG: HandShake: Type Answer : 03
DEBUG: HandShake: Server Uptime : 1404785734
DEBUG: HandShake: FMS Version : 0.0.0.0
WARNING: HandShake: client signature does not match!
DEBUG: HandShake: Handshaking finished....
DEBUG: RTMP_Connect1, handshaked
DEBUG2: RTMP_SendPacket: fd=3, size=201
DEBUG2: 0000: 03 00 00 00 00 00 c9 14 00 00 00 00 ............
DEBUG2: 0000: 02 00 07 63 6f 6e 6e 65 63 74 00 3f f0 00 00 00 ...connect.?....
DEBUG2: 0010: 00 00 00 03 00 03 61 70 70 02 00 04 6c 69 76 65 ......app...live
DEBUG2: 0020: 00 08 66 6c 61 73 68 56 65 72 02 00 0e 4c 4e 58 ..flashVer...LNX
DEBUG2: 0030: 20 31 30 2c 30 2c 33 32 2c 31 38 00 05 74 63 55 10,0,32,18..tcU
DEBUG2: 0040: 72 6c 02 00 1e 72 74 6d 70 3a 2f 2f 31 39 32 2e rl...rtmp://192.
DEBUG2: 0050: 31 36 38 2e 31 30 2e 34 30 3a 31 39 33 36 2f 6c 168.10.40:1936/l
DEBUG2: 0060: 69 76 65 00 04 66 70 61 64 01 00 00 0c 63 61 70 ive..fpad....cap
DEBUG2: 0070: 61 62 69 6c 69 74 69 65 73 00 40 2e 00 00 00 00 abilities.@.....
DEBUG2: 0000: c3 .
DEBUG2: 0000: 00 00 00 0b 61 75 64 69 6f 43 6f 64 65 63 73 00 ....audioCodecs.
DEBUG2: 0010: 40 a8 ee 00 00 00 00 00 00 0b 76 69 64 65 6f 43 @.........videoC
DEBUG2: 0020: 6f 64 65 63 73 00 40 6f 80 00 00 00 00 00 00 0d odecs.@o........
DEBUG2: 0030: 76 69 64 65 6f 46 75 6e 63 74 69 6f 6e 00 3f f0 videoFunction.?.
DEBUG2: 0040: 00 00 00 00 00 00 00 00 09 .........
DEBUG: Invoking connect
INFO: Connected...
DEBUG2: RTMP_ReadPacket: fd=3
DEBUG2: 0000: 02 00 00 00 00 00 04 05 00 00 00 00 ............
DEBUG2: 0000: 00 26 25 a0 .&%.
DEBUG: HandleServerBW: server BW = 2500000
DEBUG2: RTMP_ReadPacket: fd=3
DEBUG2: 0000: 02 00 00 00 00 00 05 06 00 00 00 00 ............
DEBUG2: 0000: 00 26 25 a0 02 .&%..
DEBUG: HandleClientBW: client BW = 2500000 2
DEBUG2: RTMP_ReadPacket: fd=3
DEBUG2: 0000: 02 00 00 00 00 00 06 04 00 00 00 00 ............
DEBUG2: 0000: 00 00 00 00 00 00 ......
DEBUG: HandleCtrl, received ctrl. type: 0, len: 6
DEBUG: HandleCtrl, Stream Begin 0
DEBUG2: RTMP_ReadPacket: fd=3
DEBUG2: 0000: 03 00 00 00 00 00 bd 14 00 00 00 00 ............
DEBUG2: 0000: 02 00 07 5f 72 65 73 75 6c 74 00 3f f0 00 00 00 ..._result.?....
DEBUG2: 0010: 00 00 00 03 00 06 66 6d 73 56 65 72 02 00 0d 46 ......fmsVer...F
DEBUG2: 0020: 4d 53 2f 33 2c 30 2c 31 2c 31 32 33 00 0c 63 61 MS/3,0,1,123..ca
DEBUG2: 0030: 70 61 62 69 6c 69 74 69 65 73 00 40 3f 00 00 00 pabilities.@?...
DEBUG2: 0040: 00 00 00 00 00 09 03 00 05 6c 65 76 65 6c 02 00 .........level..
DEBUG2: 0050: 06 73 74 61 74 75 73 00 04 63 6f 64 65 02 00 1d .status..code...
DEBUG2: 0060: 4e 65 74 43 6f 6e 6e 65 63 74 69 6f 6e 2e 43 6f NetConnection.Co
DEBUG2: 0070: 6e 6e 65 63 74 2e 53 75 63 63 65 73 73 00 0b 64 nnect.Success..d
DEBUG2: RTMP_ReadPacket: fd=3
DEBUG2: 0000: c3 .
DEBUG2: 0000: 65 73 63 72 69 70 74 69 6f 6e 02 00 14 43 6f 6e escription...Con
DEBUG2: 0010: 6e 65 63 74 69 6f 6e 20 73 75 63 63 65 65 64 65 nection succeede
DEBUG2: 0020: 64 00 0e 6f 62 6a 65 63 74 45 6e 63 6f 64 69 6e d..objectEncodin
DEBUG2: 0030: 67 00 00 00 00 00 00 00 00 00 00 00 09 g............
DEBUG: RTMP_ClientPacket, received: invoke 189 bytes
DEBUG: (object begin)
DEBUG: Property: <Name: no-name., STRING: _result>
DEBUG: Property: <Name: no-name., NUMBER: 1.00>
DEBUG: Property: <Name: no-name., OBJECT>
DEBUG: (object begin)
DEBUG: Property: <Name: fmsVer, STRING: FMS/3,0,1,123>
DEBUG: Property: <Name: capabilities, NUMBER: 31.00>
DEBUG: (object end)
DEBUG: Property: <Name: no-name., OBJECT>
DEBUG: (object begin)
DEBUG: Property: <Name: level, STRING: status>
DEBUG: Property: <Name: code, STRING: NetConnection.Connect.Success>
DEBUG: Property: <Name: description, STRING: Connection succeeded>
DEBUG: Property: <Name: objectEncoding, NUMBER: 0.00>
DEBUG: (object end)
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <_result>
DEBUG: HandleInvoke, received result for method call <connect>
DEBUG2: RTMP_SendPacket: fd=3, size=4
DEBUG2: 0000: 02 00 00 00 00 00 04 05 00 00 00 00 ............
DEBUG2: 0000: 00 26 25 a0 .&%.
DEBUG: sending ctrl. type: 0x0003
DEBUG2: RTMP_SendPacket: fd=3, size=10
DEBUG2: 0000: 42 00 00 00 00 00 0a 04 B.......
DEBUG2: 0000: 00 03 00 00 00 00 00 00 01 2c .........,
DEBUG2: RTMP_SendPacket: fd=3, size=25
DEBUG2: 0000: 43 00 00 00 00 00 19 14 C.......
DEBUG2: 0000: 02 00 0c 63 72 65 61 74 65 53 74 72 65 61 6d 00 ...createStream.
DEBUG2: 0010: 40 00 00 00 00 00 00 00 05 @........
DEBUG: Invoking createStream
DEBUG2: RTMP_ReadPacket: fd=3
DEBUG2: 0000: 43 00 00 00 00 00 1e 14 C.......
DEBUG2: 0000: 02 00 08 6f 6e 42 57 44 6f 6e 65 00 00 00 00 00 ...onBWDone.....
DEBUG2: 0010: 00 00 00 00 05 00 40 c0 00 00 00 00 00 00 ......@.......
DEBUG: RTMP_ClientPacket, received: invoke 30 bytes
DEBUG: (object begin)
DEBUG: Property: <Name: no-name., STRING: onBWDone>
DEBUG: Property: <Name: no-name., NUMBER: 0.00>
DEBUG: Property: NULL
DEBUG: Property: <Name: no-name., NUMBER: 8192.00>
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <onBWDone>
DEBUG2: RTMP_ReadPacket: fd=3
DEBUG2: 0000: 43 00 00 00 00 00 1d 14 C.......
DEBUG2: 0000: 02 00 07 5f 72 65 73 75 6c 74 00 40 00 00 00 00 ..._result.@....
DEBUG2: 0010: 00 00 00 05 00 3f f0 00 00 00 00 00 00 .....?.......
DEBUG: RTMP_ClientPacket, received: invoke 29 bytes
DEBUG: (object begin)
DEBUG: Property: <Name: no-name., STRING: _result>
DEBUG: Property: <Name: no-name., NUMBER: 2.00>
DEBUG: Property: NULL
DEBUG: Property: <Name: no-name., NUMBER: 1.00>
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <_result>
DEBUG: HandleInvoke, received result for method call <createStream>
DEBUG: SendPlay, seekTime=0, stopTime=0, sending play: str0010
DEBUG2: RTMP_SendPacket: fd=3, size=36
DEBUG2: 0000: 08 00 00 00 00 00 24 14 01 00 00 00 ......$.....
DEBUG2: 0000: 02 00 04 70 6c 61 79 00 40 08 00 00 00 00 00 00 ...play.@.......
DEBUG2: 0010: 05 02 00 07 73 74 72 30 30 31 30 00 00 00 00 00 ....str0010.....
DEBUG2: 0020: 00 00 00 00 ....
DEBUG: Invoking play
DEBUG: sending ctrl. type: 0x0003
DEBUG2: RTMP_SendPacket: fd=3, size=10
DEBUG2: 0000: c2 .
DEBUG2: 0000: 00 03 00 00 00 01 02 25 51 00 .......%Q.
DEBUG2: RTMP_ReadPacket: fd=3
DEBUG2: RTMP_SendPacket: fd=3, size=34
DEBUG2: 0000: 43 00 00 00 00 00 22 14 C.....".
DEBUG2: 0000: 02 00 0c 64 65 6c 65 74 65 53 74 72 65 61 6d 00 ...deleteStream.
DEBUG2: 0010: 40 10 00 00 00 00 00 00 05 00 3f f0 00 00 00 00 @.........?.....
DEBUG2: 0020: 00 00 ..
DEBUG: Invoking deleteStream
ERROR: RTMP_ReadPacket, failed to read RTMP packet header
DEBUG: Closing connection.
...全文
277 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
就想叫yoko 2014-07-08
  • 打赏
  • 举报
回复
加 -v 试试 再试试 -o
佷山事桑麻 2014-07-08
  • 打赏
  • 举报
回复
引用 1 楼 q191201771 的回复:
加 -v 试试 再试试 -o
确实是加个-v就可以了,这里面的道道要详细研究下代码才知道了

64,281

社区成员

发帖
与我相关
我的任务
社区描述
C++ 语言相关问题讨论,技术干货分享,前沿动态等
c++ 技术论坛(原bbs)
社区管理员
  • C++ 语言社区
  • encoderlee
  • paschen
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
  1. 请不要发布与C++技术无关的贴子
  2. 请不要发布与技术无关的招聘、广告的帖子
  3. 请尽可能的描述清楚你的问题,如果涉及到代码请尽可能的格式化一下

试试用AI创作助手写篇文章吧