aboutsummaryrefslogtreecommitdiff
path: root/src/components/video.py
diff options
context:
space:
mode:
authortassaron2017-07-04 19:52:52 -0400
committertassaron2017-07-04 19:52:52 -0400
commitba0409829de62b745d6f87749572a416061a42b4 (patch)
tree9af0a727e1194432718012110760a5ffc57278fc /src/components/video.py
parent3a6d7ae421ad2b650cac7f17d43be313787f0e61 (diff)
moved functions into toolkit, fixed CMD appearing on Windows
Diffstat (limited to 'src/components/video.py')
-rw-r--r--src/components/video.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/video.py b/src/components/video.py
index 175cf29..19a9106 100644
--- a/src/components/video.py
+++ b/src/components/video.py
@@ -8,6 +8,7 @@ from queue import PriorityQueue
from component import Component, BadComponentInit
from frame import BlankFrame
+from toolkit import openPipe
class Video:
@@ -72,7 +73,7 @@ class Video:
self.frameBuffer.task_done()
def fillBuffer(self):
- pipe = subprocess.Popen(
+ pipe = openPipe(
self.command, stdout=subprocess.PIPE,
stderr=subprocess.DEVNULL, bufsize=10**8
)
@@ -217,7 +218,7 @@ class Component(Component):
'-ss', '90',
'-vframes', '1',
]
- pipe = subprocess.Popen(
+ pipe = openPipe(
command, stdout=subprocess.PIPE,
stderr=subprocess.DEVNULL, bufsize=10**8
)