Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

希望提高opencv版本 对M1更友好 #178

Closed
mainlxl opened this issue Jun 2, 2022 · 4 comments
Closed

希望提高opencv版本 对M1更友好 #178

mainlxl opened this issue Jun 2, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@mainlxl
Copy link

mainlxl commented Jun 2, 2022

M1 目前可用的版本最低4.5
image
目前我 添加--no-dependencies 跳过依赖安装 然后手动安装依赖
opencv使用4.5.5版本 可以跑起来

@williamfzc
Copy link
Owner

hi
手边没有M1机器,可以看看是否有 #167 提到的问题
之前因此做了限制

@williamfzc
Copy link
Owner

2022-06-03 14:56:11.919 | DEBUG    | stagesepx.toolbox:video_jump:43 - previous pointer: 18(0.68)
2022-06-03 14:56:11.962 | DEBUG    | stagesepx.toolbox:video_jump:43 - previous pointer: 19(0.7200000000000001)
2022-06-03 14:56:12.010 | DEBUG    | stagesepx.toolbox:video_jump:43 - previous pointer: 20(0.76)
2022-06-03 14:56:12.055 | DEBUG    | stagesepx.toolbox:video_jump:43 - previous pointer: 21(0.8)
2022-06-03 14:56:12.099 | DEBUG    | stagesepx.toolbox:video_jump:43 - previous pointer: 22(0.8400000000000001)
2022-06-03 14:56:12.144 | DEBUG    | stagesepx.toolbox:video_jump:43 - previous pointer: 23(0.88)
2022-06-03 14:56:12.190 | DEBUG    | stagesepx.toolbox:video_jump:43 - previous pointer: 24(0.92)
2022-06-03 14:56:12.241 | DEBUG    | stagesepx.toolbox:video_jump:43 - previous pointer: 25(0.0)
2022-06-03 14:56:12.289 | DEBUG    | stagesepx.toolbox:video_jump:43 - previous pointer: 26(0.0)
2022-06-03 14:56:12.340 | DEBUG    | stagesepx.toolbox:video_jump:43 - previous pointer: 27(0.0)
2022-06-03 14:56:12.386 | DEBUG    | stagesepx.toolbox:video_jump:43 - previous pointer: 28(0.0)
2022-06-03 14:56:12.432 | DEBUG    | stagesepx.toolbox:video_jump:43 - previous pointer: 29(0.0)
2022-06-03 14:56:12.481 | DEBUG    | stagesepx.toolbox:video_jump:43 - previous pointer: 29(0.0)

目测该问题依旧存在,4.5.5.64

@williamfzc williamfzc added the enhancement New feature or request label Aug 4, 2022
@williamfzc
Copy link
Owner

新增时间戳重同步功能解决该问题

video = VideoObject(video_path)
video.load_frames()

# 同步时间戳
video.sync_timestamp()

该方法需要安装 moviepy(https://github.com/Zulko/moviepy)
同步后时间戳为0问题可修复

该功能稳定后再进版本,目前需要从源码安装:

pip install --upgrade git+https://github.com/williamfzc/stagesepx.git

williamfzc added a commit that referenced this issue Aug 13, 2022
for newer version opencv
see #178 #181
@williamfzc
Copy link
Owner

在 0.18.0 版本内置了 moviepy 解决该问题,在 load_frames 时自动利用内置的 ffmpeg 对齐时间戳。
在该版本后,其他架构机器自行选择对应版本的opencv即可,不再做版本上限的控制。

涉及issues:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants