mediapipe: [autoflip] : Segmentation fault (core dumped) issue when running autoflip on CentOs 8,with opencv 3.4

Dear All , When I tried to use the solution autoflip to automatically crop the video snowboarding.mp4 provided by this link https://drive.google.com/corp/drive/u/0/folders/1KK9LV--Ey0UEVpxssVLhVl7dypgJSQgk into aspect ratio 1:1 I run into a Segmentation fault ,and I cannot get across it by all the way I tried ! I tried to run the solution on different server ,U can’t image it has been suffering me for almost two weeks ! Please ! HELP!!!

The command I use : image

What the terminal say: image

I meet this issue on every server I use ,I’ll list the information of one of them:

System information

  • Have I written custom code: NO
  • OS Platform and Distribution: Linux CentOs 8 64-bit , and uname -a result is below :
Linux localhost.localdomain 4.18.0-193.el8.x86_64 
  • MediaPipe version:latest (v0.8.8)
  • Bazel version: 3.7.2
  • Solution (e.g. FaceMesh, Pose, Holistic): autoflip
  • Programming Language and version ( e.g. C++, Python, Java): C++
  • gcc version : 8.5.0 20210514 (Red Hat 8.5.0-4)
  • g++ version : 8.5.0 20210514 (Red Hat 8.5.0-4)
  • Cmake version : 3.22.0 (I built it from source ,and installed it to the user path,I am not a sudoer of my server)
  • x264 version : 0.164.3075 66a5bc1 (also built from source)
  • ffmpeg version : 4.4.1 (built from source with x264 enabled)
  • Opencv version : 3.4.14 (build from source with the ffmpeg above)

Describe the expected behavior:

I run the command suggested by this link https://google.github.io/mediapipe/solutions/autoflip.html And it’s expected to generate cropped video with aspect ratio of 1:1

Standalone code you may have used to try to get what you need :

I uploaded the WORKSPACE file and opencv_linux.BUILD and ffmpeg_linux.BUILD files ,you can find them on the tail of this issue. For some issues of the internet,I downloaded many files and put them on my local system ,so you may see many urls of the third party resources are replaced by my local file path ,and you konw that doesn’t matter.

If there is a problem, provide a reproducible test case that is the bare minimum necessary to generate the problem. If possible, please share a link to Colab/repo link /any notebook: It’s easy to reproduce this error ,once I run the command below ,it occurs!

bazel-bin/mediapipe/examples/desktop/autoflip/run_autoflip  \
  --calculator_graph_config_file=mediapipe/examples/desktop/autoflip/autoflip_graph.pbtxt \
--input_side_packets=input_video_path=/home/wyn/codes/mediapipe/cacheFiles/snowboarding.mp4,\
output_video_path=/home/wyn/codes/mediapipe/cacheFiles/snowboarding_res.mp4,aspect_ratio=1:1

oh , by the way , the command i used to build autoflip is the same as the official document suggested :

bazel build -c opt --define MEDIAPIPE_DISABLE_GPU=1 mediapipe/examples/desktop/autoflip:run_autoflip

The related files, github doesn’t support .BUILD type ,so I appended .txt to finish the upload .

opencv_linux.BUILD.txt ffmpeg_linux.BUILD.txt WORKSPACE.txt

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 23

Most upvoted comments

Hi @ithanwu, Thank you for being patience. We have already added owners on this issue. You will be receiving the update very soon.

Are you satisfied with the resolution of your issue? Yes No