Commit b82c5516 authored by liyuanhong's avatar liyuanhong

增加了拉流压力测试脚本

parent ccbbb77a
...@@ -134,7 +134,6 @@ class StreamH264Flv(): ...@@ -134,7 +134,6 @@ class StreamH264Flv():
# 发送视频帧 # 发送视频帧
#################################################### ####################################################
def sendVideoFrame(self,fra,timeStamp): def sendVideoFrame(self,fra,timeStamp):
print(fra)
protocal_1078 = Protocal_1078() protocal_1078 = Protocal_1078()
protocal_1078.setSim(self.mobile) protocal_1078.setSim(self.mobile)
protocal_1078.setLogcC(self.channel) protocal_1078.setLogcC(self.channel)
...@@ -271,7 +270,7 @@ class StreamH264Flv(): ...@@ -271,7 +270,7 @@ class StreamH264Flv():
if __name__ == "__main__": if __name__ == "__main__":
obj = StreamH264Flv() obj = StreamH264Flv()
obj.setSendDur(0.01) obj.setSendDur(0.005)
obj.setIsSendAudio(1) obj.setIsSendAudio(1)
# obj.setMobile("013146201117") # obj.setMobile("013146201117")
obj.setMobile("142043390091") obj.setMobile("142043390091")
...@@ -280,7 +279,7 @@ if __name__ == "__main__": ...@@ -280,7 +279,7 @@ if __name__ == "__main__":
obj.setHost("10.100.11.125") obj.setHost("10.100.11.125")
# obj.setHost("video-test.vandyo.com") # obj.setHost("video-test.vandyo.com")
obj.setPort(1078) obj.setPort(1078)
obj.setVideoPath("../../flv/aaa3.flv") obj.setVideoPath("../../flv/yyy.flv")
obj.connectServer() obj.connectServer()
obj.readFlvAndSend() obj.readFlvAndSend()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment