mirror of
https://github.com/k4yt3x/video2x.git
synced 2024-12-29 16:09:10 +00:00
added kill method to encoder
This commit is contained in:
parent
737646a248
commit
4b0ab5382c
@ -119,6 +119,9 @@ class VideoEncoder:
|
|||||||
self.pipe_printer = PipePrinter(self.encoder.stderr)
|
self.pipe_printer = PipePrinter(self.encoder.stderr)
|
||||||
self.pipe_printer.start()
|
self.pipe_printer.start()
|
||||||
|
|
||||||
|
def kill(self):
|
||||||
|
self.encoder.send_signal(signal.SIGKILL)
|
||||||
|
|
||||||
def write(self, frame: Image.Image) -> None:
|
def write(self, frame: Image.Image) -> None:
|
||||||
"""
|
"""
|
||||||
write a frame into FFmpeg encoder's STDIN
|
write a frame into FFmpeg encoder's STDIN
|
||||||
|
Loading…
Reference in New Issue
Block a user