WyattBlue / auto-editor

Auto-Editor: Efficient media analysis and rendering
https://auto-editor.com
The Unlicense
2.93k stars 425 forks source link

Library not loaded: /usr/local/opt/libx11/lib/libX11.6.dylib #291

Closed Lawliet01 closed 2 years ago

Lawliet01 commented 2 years ago

What's your platform?

Python Version: 3.9.5 64-bit
Platform: Darwin 21.0.1 x86_64
FFmpeg Version: dyld[36565]:
FFmpeg Path: /opt/homebrew/Caskroom/miniconda/base/lib/python3.9/site-packages/auto_editor/ffmpeg/Darwin/ffmpeg
Auto-Editor Version: 22w22a

Bug description

I used below command:

auto-editor example.mp4

and got this error:

Error! Could not read ffprobe JSON: Expecting value: line 1 column 1 (char 0) 

then I downloaded the source code and tried to find the error. I printed the info variable and turn out it is not a json but text with following message:

dyld[36549]: Library not loaded: /usr/local/opt/libx11/lib/libX11.6.dylib                                                                                                                                             
  Referenced from: /Users/wuzhiyu/Downloads/auto-editor-master/auto_editor/ffmpeg/Darwin/ffprobe
  Reason: tried: '/usr/local/opt/libx11/lib/libX11.6.dylib' (no such file), '/usr/local/lib/libX11.6.dylib' (no such file), '/usr/lib/libX11.6.dylib' (no such file)

Any help would be appreciated.

What command did you use

auto-editor example.mp4
python3 -m auto_editor example.mp4

What properties does your input video have?

just the example video

Comments

No response

WyattBlue commented 2 years ago

Use your own ffmpeg, or upgrade your MacOS

WyattBlue commented 2 years ago

Actually, it appears that libx isn't really needed for our use case, so we can remove support from it in ffmpeg.