We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3b0bae commit 3a19a1aCopy full SHA for 3a19a1a
funscript_editor/data/ffmpegstream.py
@@ -366,12 +366,15 @@ def run(self) -> None:
366
self.logger.error("FFmpeg Frame Buffer overrun!!!")
367
368
if 'zoom' in self.config.keys():
369
- self.frame_buffer.put(frame[
+ frame = frame[
370
int(self.config['zoom'][1]):int(self.config['zoom'][1]+self.config['zoom'][3]),
371
int(self.config['zoom'][0]):int(self.config['zoom'][0]+self.config['zoom'][2])
372
- ])
373
- else:
374
- self.frame_buffer.put(frame)
+ ]
+
+ if 'resize' in self.config.keys():
375
+ frame = cv2.resize(frame, self.config['resize'])
376
377
+ self.frame_buffer.put(frame)
378
self.current_frame += 1
379
380
self.stopped = True
0 commit comments