Fix FFmpeg Library Not Loaded: dyld
Just got macOS upgraded to Ventura and found that FFmpeg is not working and throwing the following error:
dyld[54425]: Library not loaded: /opt/homebrew/opt/rav1e/lib/librav1e.0.5.dylib
Referenced from: <D4B0734B-405C-3440-A545-A06D935C834D> /opt/homebrew/Cellar/ffmpeg/5.1.2/bin/ffmpeg
Reason: tried: '/opt/homebrew/opt/rav1e/lib/librav1e.0.5.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/rav1e/lib/librav1e.0.5.dylib' (no such file), '/opt/homebrew/opt/rav1e/lib/librav1e.0.5.dylib' (no such file), '/usr/local/lib/librav1e.0.5.dylib' (no such file), '/usr/lib/librav1e.0.5.dylib' (no such file, not in dyld cache), '/opt/homebrew/Cellar/rav1e/0.5.1/lib/librav1e.0.5.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/rav1e/0.5.1/lib/librav1e.0.5.dylib' (no such file), '/opt/homebrew/Cellar/rav1e/0.5.1/lib/librav1e.0.5.dylib' (no such file), '/usr/local/lib/librav1e.0.5.dylib' (no such file), '/usr/lib/librav1e.0.5.dylib' (no such file, not in dyld cache)
fish: Job 1, 'ffmpeg' terminated by signal SIGABRT (Abort)
It's obviously a dependency problem.
According to this issue, reinstalling rav1e
shall fix it:
brew reinstall rav1e