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

Creating this as documentation for anyone else who may need it #1

Open
Schaka opened this issue Sep 8, 2023 · 6 comments
Open

Creating this as documentation for anyone else who may need it #1

Schaka opened this issue Sep 8, 2023 · 6 comments

Comments

@Schaka
Copy link

Schaka commented Sep 8, 2023

On MacOS, brew downloads opencv 4.8.0 This leads to issues with the CLI looking for 4.0.7 files in the 4.8.0 installation folders.
You can find the last version of 4.7.0 here: https://raw.githubusercontent.com/Homebrew/homebrew-core/1f177f4241acf66504cb08fa0fe29a32793660ec/Formula/opencv.rb

Download it to a folder as opencv.rb, then execute

brew install opencv.rb
rm opencv.rb

For ffmpeg, make sure to get 5.1.3 via

brew uninstall ffmpeg
brew install [email protected]
@eritpchy
Copy link
Owner

eritpchy commented Sep 8, 2023 via email

@Schaka
Copy link
Author

Schaka commented Sep 8, 2023

VideoSubFinderCli -h
dyld[13232]: Library not loaded: /usr/local/opt/ffmpeg/lib/libavcodec.59.dylib
  Referenced from: <0EAAD0C1-BB4A-3F2B-BADB-4E6ACF8E5F57> /Users/jonas.taenzer/Documents/ytl-dlp/VideoSubFinderCli
  Reason: tried: '/usr/local/opt/ffmpeg/lib/libavcodec.59.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/ffmpeg/lib/libavcodec.59.dylib' (no such file), '/usr/local/opt/ffmpeg/lib/libavcodec.59.dylib' (no such file), '/usr/local/lib/libavcodec.59.dylib' (no such file), '/usr/lib/libavcodec.59.dylib' (no such file, not in dyld cache), '/usr/local/Cellar/ffmpeg/6.0_1/lib/libavcodec.59.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/Cellar/ffmpeg/6.0_1/lib/libavcodec.59.dylib' (no such file), '/usr/local/Cellar/ffmpeg/6.0_1/lib/libavcodec.59.dylib' (no such file), '/usr/local/lib/libavcodec.59.dylib' (no such file), '/usr/lib/libavcodec.59.dylib' (no such file, not in dyld cache)
zsh: abort      VideoSubFinderCli -h

The file in that directory is libavcodec.60.dylib.

Similar to this, except looking for opencv. I'm gonna grab ffmpeg 5.9 and post the info here too so you can add it to the readme if needed.

@eritpchy
Copy link
Owner

eritpchy commented Sep 9, 2023

This is caused by brew upgrading ffmpeg to version 6.0 and opencv 4.8.0. Under normal circumstances, the program needs to be recompiled. I will update this project later when I have free time.

@eritpchy
Copy link
Owner

fixed in v5.70.1
You can try the static build version, it does not require other dynamic libraries.
videosubfinder-cli-cpu-static-linux-x64.tar.gz

@Schaka
Copy link
Author

Schaka commented Sep 19, 2023

I'm on MacOS, where I decided to upgrade the dependencies again and still get this error afterwards:

dyld[4429]: Library not loaded: /usr/local/opt/opencv/lib/libopencv_videoio.407.dylib
  Referenced from: <0EAAD0C1-BB4A-3F2B-BADB-4E6ACF8E5F57> /Users/jonas.taenzer/Documents/ytl-dlp/VideoSubFinderCli
  Reason: tried: '/usr/local/opt/opencv/lib/libopencv_videoio.407.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/opencv/lib/libopencv_videoio.407.dylib' (no such file), '/usr/local/opt/opencv/lib/libopencv_videoio.407.dylib' (no such file), '/usr/local/lib/libopencv_videoio.407.dylib' (no such file), '/usr/lib/libopencv_videoio.407.dylib' (no such file, not in dyld cache), '/usr/local/Cellar/opencv/4.8.0_6/lib/libopencv_videoio.407.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/Cellar/opencv/4.8.0_6/lib/libopencv_videoio.407.dylib' (no such file), '/usr/local/Cellar/opencv/4.8.0_6/lib/libopencv_videoio.407.dylib' (no such file), '/usr/local/lib/libopencv_videoio.407.dylib' (no such file), '/usr/lib/libopencv_videoio.407.dylib' (no such file, not in dyld cache)
zsh: abort      VideoSubFinderCli -h

I appreciate you fixing up the Linux version. I've since done the work I needed to do on another machine.

@eritpchy
Copy link
Owner

Sorry, I forgot you are macOS system, try videosubfinder-cli-v5.70.1-darwin-x64.tar.gz
run ./VideoSubFinderCli.run

The relevant dynamic libraries are all in the lib directory.

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

No branches or pull requests

2 participants