IENT / YUView

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

"error opening file using libavcodec" message could be improved #520

Open voltagex opened 1 year ago

voltagex commented 1 year ago

I tried to open an MKV file and got "error opening file using libavcodec". The links for Windows on https://github.com/IENT/YUView/wiki/FFmpeg#install-ffmpeg are broken it seems.

I am using the v2.13 zip file version.

voltagex commented 1 year ago

I tried putting the ffmpeg files from https://www.gyan.dev/ffmpeg/builds/packages/ffmpeg-6.0-full_build-shared.7z in:

The directory that was set in "File" -> "Settings"
The subdirectory "ffmpeg" in the place where the YUView executable is located.

like the wiki says.

Using the ffmpeg subdirectory failed silently, but when I pointed to it in settings, a log was generated that tells me that FFmpeg 6.0 is too new.

log.txt

voltagex commented 1 year ago

https://www.gyan.dev/ffmpeg/builds/packages/ffmpeg-5.1.2-full_build-shared.7z does work though.

ChristianFeldmann commented 1 year ago

Yes so far we have no support for FFmpeg 6.0.

giantcow commented 2 months ago

I ran into the same issue, docs are not mentioning the requirement that FFmpeg < 6.

Sharing in case it helps anyone else running into this issue. I was able to solve this by using the 4.4.1 version branch in scoop:

PS C:\Users\kayoc> scoop install git
...
PS C:\Users\kayoc> scoop bucket add versions
...
PS C:\Users\kayoc> scoop install versions/ffmpeg-shared-4.4.1
...
PS C:\Users\kayoc> dir C:\Users\kayoc\scoop\apps\ffmpeg-shared-4.4.1\4.4.1\bin\

    Directory: C:\Users\kayoc\scoop\apps\ffmpeg-shared-4.4.1\4.4.1\bin

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
-a----        10/25/2021   4:25 AM       65213440 avcodec-58.dll
-a----        10/25/2021   4:25 AM        3524096 avdevice-58.dll
-a----        10/25/2021   4:25 AM       35974656 avfilter-7.dll
-a----        10/25/2021   4:25 AM       14860288 avformat-58.dll
-a----        10/25/2021   4:25 AM        1228800 avutil-56.dll
-a----        10/25/2021   4:25 AM         353280 ffmpeg.exe
-a----        10/25/2021   4:25 AM        1536000 ffplay.exe
-a----        10/25/2021   4:25 AM         188416 ffprobe.exe
-a----        10/25/2021   4:25 AM         133632 postproc-55.dll
-a----        10/25/2021   4:25 AM         433664 swresample-3.dll
-a----        10/25/2021   4:25 AM         562688 swscale-5.dll

4.4.1 looks to be the only built version available: https://scoop.sh/#/apps?q=ffmpeg-shared