sherlockchou86 / VideoPipe

A cross-platform video structuring (video analysis) framework. If you find it helpful, please give it a star: ) 跨平台的视频结构化(视频分析)框架,觉得有帮助的请给个星星 : )
http://www.videopipe.cool
Apache License 2.0
1.45k stars 214 forks source link

Can run on mac m1? #55

Closed kbscolin closed 2 months ago

kbscolin commented 3 months ago

Can VideoPipe run on mac m1?

Thanks!

taoxm commented 3 months ago

邮件已收到,谢谢!

sherlockchou86 commented 3 months ago

yeah, it depends on gstreamer and opencv which are portable on mac m1.

kbscolin commented 3 months ago

Ok, thanks! I compile according to the default way. An error happens: VideoPipe/nodes/infers/vp_face_swap_node.cpp:233:29: error: non-constant-expression cannot be narrowed from type 'int' to 'float' in initializer list [-Wc++11-narrowing] One/project/opensource/industry/ai/sherlockchou86/VideoPipe/nodes/infers/vp_sface_feature_encoder_node.cpp:57:43: {{kps[0].first, kps[0].second}, error: ^~~~~ non-constant-expression cannot be narrowed from type 'int' to 'float' in initializer list [-Wc++11-narrowing] {i->key_points[2].first, i->key_points[2].second},

VideoPipe/nodes/infers/vp_sface_feature_encoder_node.cpp:57:43: note: insert an explicit cast to silence this issue {i->key_points[2].first, i->key_points[2].second}, ^~~~~~~ static_cast( )

I use opencv 4.10.0 and gcc 14.1.0_2, the os is mac 12.7.5 (M1 Pro). Thanks!

sherlockchou86 commented 3 months ago

some syntax compatibility issues on mac os, fix it by google.

taoxm commented 2 months ago

邮件已收到,谢谢!