Commit b0be6402 authored by liyuanhong's avatar liyuanhong

去掉了aacpkg 为0的音频数据

parent e6bd02ab
......@@ -312,6 +312,9 @@ class StreamH264Flv():
def getAudioFrame(self,AVTag):
frameData = {}
frames = []
if AVTag[2:4] == "00":
frameData["frames"] = []
else:
AVdata = AVTag[4:]
cp_id_bit = 0 << 27
cp_id_start = 0 << 26
......@@ -340,7 +343,7 @@ class StreamH264Flv():
if __name__ == "__main__":
obj = StreamH264Flv()
obj.setSendDur(0.001)
obj.setSendDur(0.007)
obj.setIsSendAudio(1)
# obj.setMobile("013146201117")
obj.setMobile("142043390091")
......@@ -348,7 +351,7 @@ if __name__ == "__main__":
obj.setHost("10.100.11.125")
# obj.setHost("video-test.vandyo.com")
obj.setPort(1078)
obj.setVideoPath("../../flv/yyy.flv")
obj.setVideoPath("../../flv/bbb3.flv")
obj.connectServer()
obj.readFlvAndSend()
......
......@@ -304,10 +304,7 @@ class CameraArea():
try:
timeCur = self.getCurTime()
if self.pushObj != None:
if self.getOsName() == "Windows":
threadObj = threading.Thread(target=self.pushStream)
else:
threadObj = threading.Thread(target=self.pushStream())
threadObj.start()
self.logTextCtr.WriteText(timeCur + "推流成功!\n")
self.pushStatusText.SetValue("推流中")
......
......@@ -38,6 +38,7 @@ class MainWindow():
nodeBook = wx.Notebook(mainPanel)
cameraArea1 = CameraArea(nodeBook)
page1 = cameraArea1.create()
nodeBook.AddPage(page1,"摄像头1")
......
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