OSError: [WinError 10038] 在一个非套接字上尝试了一个操作。
Hello, my platform is Windows 11, and I'm using ffmpeg version 0.3.18. After commenting out this part, the program runs successfully, and the results are correct.
def write(self, img: np.ndarray):
if self.waitInit:
if self.pix_fmt in ("nv12", "yuv420p", "yuvj420p"):
height_15, width = img.shape[:2]
assert width % 2 == 0 and height_15 * 2 % 3 == 0
height = int(height_15 / 1.5)
else:
height, width = img.shape[:2]
self.width, self.height = width, height
self.in_numpy_shape = img.shape
self.size = (width, height)
self.resize = self.size if self.resize is None else tuple(self.resize)
self._init_video_stream()
self.waitInit = False
self.iframe += 1
assert self.in_numpy_shape == img.shape
img = img.astype(np.uint8).tobytes()
self.process.stdin.write(img)
# stderrreadable, _, _ = select.select([self.process.stderr], [], [], 0)
# if stderrreadable:
# data = self.process.stderr.read(1024)
# sys.stderr.buffer.write(data)
By the way, version 0.3.6 does not have this problem
这么诡异吗,我周末看看。谢谢反馈
---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2025年06月23日 11:18 | | 收件人 | @.> | | 抄送至 | @.***> | | 主题 | Re: [chenxinfeng4/ffmpegcv] OSError: [WinError 10038] 在一个非套接字上尝试了一个操作。 (Issue #73) | zhuyuhang4 left a comment (chenxinfeng4/ffmpegcv#73)
By the way, version 0.3.6 does not have this problem
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>
I have experienced the same issue. Version 0.3.16 works fine.