ffmpegcv icon indicating copy to clipboard operation
ffmpegcv copied to clipboard

OSError: [WinError 10038] 在一个非套接字上尝试了一个操作。

Open zhuyuhang4 opened this issue 6 months ago • 3 comments

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)

zhuyuhang4 avatar Jun 21 '25 05:06 zhuyuhang4

By the way, version 0.3.6 does not have this problem

zhuyuhang4 avatar Jun 23 '25 03:06 zhuyuhang4

这么诡异吗,我周末看看。谢谢反馈

---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 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: @.***>

chenxinfeng4 avatar Jun 23 '25 03:06 chenxinfeng4

I have experienced the same issue. Version 0.3.16 works fine.

naltmann avatar Oct 06 '25 02:10 naltmann