IENT / YUView

The Free and Open Source Cross Platform YUV Viewer with an advanced analytics toolset
http://ient.github.io/YUView
Other
1.88k stars 369 forks source link

Loading library /opt/homebrew/Cellar/ffmpeg/5.1.2_1/lib/libavutil.57.28.100.dylib failed #502

Open lbnb opened 1 year ago

lbnb commented 1 year ago

Hello ,when I try to specify custom ffmpeg libraries to use, Yuview show me

The selected file does not appear to be a usable ffmpeg avFormat library. We have collected a more detailed log. Do you want to save it to disk?

and the error log is

Checking versions avutil 57, swresample 4, avcodec 59, avformat 59 Unloading all loaded libraries
Checking versions avutil 56, swresample 3, avcodec 58, avformat 58 Unloading all loaded libraries Loading library /opt/homebrew/Cellar/ffmpeg/5.1.2_1/lib/libavutil.57.28.100.dylib failed Unloading all loaded libraries Checking versions avutil 55, swresample 2, avcodec 57, avformat 57 Unloading all loaded libraries Loading library /opt/homebrew/Cellar/ffmpeg/5.1.2_1/lib/libavutil.57.28.100.dylib failed Unloading all loaded libraries Checking versions avutil 54, swresample 1, avcodec 56, avformat 56 Unloading all loaded libraries Loading library /opt/homebrew/Cellar/ffmpeg/5.1.2_1/lib/libavutil.57.28.100.dylib failed Unloading all loaded libraries Unloading all loaded libraries

and Mac OS version is 12.5.1

and my ffmpeg is ➜ [/opt/homebrew/Cellar/ffmpeg/5.1.2_1/lib] git:(stable) ls -la total 79416 drwxrwxrwx 35 liangbin admin 1120 12 28 13:56 . drwxr-xr-x 16 liangbin admin 512 12 28 13:57 .. -r--r--r-- 1 liangbin admin 9872656 12 28 13:56 libavcodec.59.37.100.dylib lrwxr-xr-x 1 liangbin admin 26 12 28 13:56 libavcodec.59.dylib -> libavcodec.59.37.100.dylib -r--r--r-- 1 liangbin admin 13485600 12 28 13:56 libavcodec.a lrwxr-xr-x 1 liangbin admin 26 12 28 13:56 libavcodec.dylib -> libavcodec.59.37.100.dylib -r--r--r-- 1 liangbin admin 184928 12 28 13:56 libavdevice.59.7.100.dylib lrwxr-xr-x 1 liangbin admin 26 12 28 13:56 libavdevice.59.dylib -> libavdevice.59.7.100.dylib -r--r--r-- 1 liangbin admin 78728 12 28 13:56 libavdevice.a lrwxr-xr-x 1 liangbin admin 26 12 28 13:56 libavdevice.dylib -> libavdevice.59.7.100.dylib -r--r--r-- 1 liangbin admin 3007808 12 28 13:56 libavfilter.8.44.100.dylib lrwxr-xr-x 1 liangbin admin 26 12 28 13:56 libavfilter.8.dylib -> libavfilter.8.44.100.dylib -r--r--r-- 1 liangbin admin 4941144 12 28 13:56 libavfilter.a lrwxr-xr-x 1 liangbin admin 26 12 28 13:56 libavfilter.dylib -> libavfilter.8.44.100.dylib -r--r--r-- 1 liangbin admin 2206992 12 28 13:56 libavformat.59.27.100.dylib lrwxr-xr-x 1 liangbin admin 27 12 28 13:56 libavformat.59.dylib -> libavformat.59.27.100.dylib -r--r--r-- 1 liangbin admin 3991784 12 28 13:56 libavformat.a lrwxr-xr-x 1 liangbin admin 27 12 28 13:56 libavformat.dylib -> libavformat.59.27.100.dylib -r--r--r-- 1 liangbin admin 525696 12 28 13:56 libavutil.57.28.100.dylib lrwxr-xr-x 1 liangbin admin 25 12 28 13:56 libavutil.57.dylib -> libavutil.57.28.100.dylib -r--r--r-- 1 liangbin admin 737080 12 28 13:56 libavutil.a lrwxr-xr-x 1 liangbin admin 25 12 28 13:56 libavutil.dylib -> libavutil.57.28.100.dylib -r--r--r-- 1 liangbin admin 85872 12 28 13:56 libpostproc.56.6.100.dylib lrwxr-xr-x 1 liangbin admin 26 12 28 13:56 libpostproc.56.dylib -> libpostproc.56.6.100.dylib -r--r--r-- 1 liangbin admin 32064 12 28 13:56 libpostproc.a lrwxr-xr-x 1 liangbin admin 26 12 28 13:56 libpostproc.dylib -> libpostproc.56.6.100.dylib -r--r--r-- 1 liangbin admin 122240 12 28 13:56 libswresample.4.7.100.dylib lrwxr-xr-x 1 liangbin admin 27 12 28 13:56 libswresample.4.dylib -> libswresample.4.7.100.dylib -r--r--r-- 1 liangbin admin 122360 12 28 13:56 libswresample.a lrwxr-xr-x 1 liangbin admin 27 12 28 13:56 libswresample.dylib -> libswresample.4.7.100.dylib -r--r--r-- 1 liangbin admin 503648 12 28 13:56 libswscale.6.7.100.dylib lrwxr-xr-x 1 liangbin admin 24 12 28 13:56 libswscale.6.dylib -> libswscale.6.7.100.dylib -r--r--r-- 1 liangbin admin 735632 12 28 13:56 libswscale.a lrwxr-xr-x 1 liangbin admin 24 12 28 13:56 libswscale.dylib -> libswscale.6.7.100.dylib

ChristianFeldmann commented 1 year ago

Hmm that is very hard to tell from the logs. But I just checked with FFmpeg version 5.1.2 and it works for me on windows. What version of YUView did you use? The current way to load the libraries is bad. I admit that. You have to select all 4 libraries in the right order.

FumasterLin commented 1 year ago

@ChristianFeldmann Hi,I use YUVView with version v.2.13. i download ffmpeg share lib, but there are only xxx.dll.a files in the lib path, and YUVView needs xxx.dll files.

Could help me how to configured correctly

jiemi commented 1 year ago

YUView is x86-64 arch in mac plarform .We need a arm64 arch in mac plarform

ChristianFeldmann commented 1 year ago

@ChristianFeldmann Hi,I use YUVView with version v.2.13. i download ffmpeg share lib, but there are only xxx.dll.a files in the lib path, and YUVView needs xxx.dll files.

Could help me how to configured correctly

I think you got the wrong libs. The .a libs are static libs.

ChristianFeldmann commented 1 year ago

YUView is x86-64 arch in mac plarform .We need a arm64 arch in mac plarform

I don't fully get what you mean. I think qt does not support native arm builds yet. So far yuview is x86 64 bit only.