Parcourir la source

更新

tags/V2.7.6^2^2
chenyukun il y a 1 an
Parent
révision
8b44cfbf6a
2 fichiers modifiés avec 7 ajouts et 5 suppressions
  1. +4
    -4
      .idea/workspace.xml
  2. +3
    -1
      util/Cv2Utils.py

+ 4
- 4
.idea/workspace.xml Voir le fichier

@@ -6,8 +6,6 @@
<component name="ChangeListManager">
<list default="true" id="4f7dccd9-8f92-4a6e-90cc-33890d102263" name="Changes" comment="Changes">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/test/设计模式/简单工厂模式/demo1.py" beforeDir="false" afterPath="$PROJECT_DIR$/test/设计模式/简单工厂模式/demo1.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/util/AliyunSdk.py" beforeDir="false" afterPath="$PROJECT_DIR$/util/AliyunSdk.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/util/Cv2Utils.py" beforeDir="false" afterPath="$PROJECT_DIR$/util/Cv2Utils.py" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
@@ -137,7 +135,7 @@
&quot;WebServerToolWindowPanel.toolwindow.show.date&quot;: &quot;false&quot;,
&quot;WebServerToolWindowPanel.toolwindow.show.permissions&quot;: &quot;false&quot;,
&quot;WebServerToolWindowPanel.toolwindow.show.size&quot;: &quot;false&quot;,
&quot;last_opened_file_path&quot;: &quot;D:/tuoheng/codenew/tuoheng_alg&quot;,
&quot;last_opened_file_path&quot;: &quot;D:/tuoheng/codenew/tuoheng_dsp&quot;,
&quot;node.js.detected.package.eslint&quot;: &quot;true&quot;,
&quot;node.js.detected.package.tslint&quot;: &quot;true&quot;,
&quot;node.js.selected.package.eslint&quot;: &quot;(autodetect)&quot;,
@@ -507,7 +505,9 @@
<workItem from="1685367595669" duration="1105000" />
<workItem from="1685405545435" duration="5540000" />
<workItem from="1685929597469" duration="1586000" />
<workItem from="1686009758832" duration="3104000" />
<workItem from="1686009758832" duration="4033000" />
<workItem from="1686099127317" duration="8648000" />
<workItem from="1686181421528" duration="587000" />
</task>
<servers />
</component>

+ 3
- 1
util/Cv2Utils.py Voir le fichier

@@ -193,6 +193,7 @@ class Cv2Util():
command.extend(['-i', self.pullUrl,
'-f', 'rawvideo',
'-pix_fmt', 'bgr24',
'-r', '30',
'-an',
'-'])
self.pull_p = sp.Popen(command, stdout=sp.PIPE)
@@ -262,6 +263,7 @@ class Cv2Util():
'-i', self.pullUrl,
'-f', 'rawvideo',
'-pix_fmt', 'bgr24',
'-r', '30',
'-an',
'-'])
self.pull_p = sp.Popen(command, stdout=sp.PIPE)
@@ -415,7 +417,7 @@ class Cv2Util():
'-s', "{}x{}".format(self.w * 2, self.h),
'-r', str(self.fps),
'-i', '-', # 指定输入文件
'-g', str(self.fps),
'-g', str(30),
'-maxrate', '6000k',
# '-profile:v', 'high',
'-b:v', '5000k',

Chargement…
Annuler
Enregistrer