media-autobuild_suite icon indicating copy to clipboard operation
media-autobuild_suite copied to clipboard

Configure ffmpeg: ERROR: libplacebo >= 4.192.0 not found using pkg-config

Open rainman74 opened this issue 7 months ago • 4 comments

All dependencies and libs are compiled correctly, but in the last step, the configuration of FFmpeg, this message appears:

media-autobuild_suite  (64bit): Running configure in ffmpeg-git
ERROR: libplacebo >= 4.192.0 not found using pkg-config

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
[email protected] mailing list or IRC #ffmpeg on irc.libera.chat.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.
This is required for other packages, so this script will exit.

logs.zip

rainman74 avatar Nov 23 '23 15:11 rainman74

I fiddled with a few MABS options in files in the build subfolder to get it to build: ffmpeg_options.txt mpv_options.txt media-autobuild_suite.ini

It is possible those options may give you some or most of what you desire, take a look in them to see (eg I don't build mpv, for example).

To use those three options files,

  • remove any previous MABS folder structure
  • download a fresh copy of MABS and extract it into a new folder
  • unzip the 3 files into the build subfolder in the new MABS folder structure
  • run MABS as normal

Good luck.

build.zip

Edit: A thought. If you open a DOS box in the folder containing ffmpeg.exe and do the following, you'll likely get a reasonable indication of the capabilities of that ffmpeg build.

set "log_file=.\ffmpeg_list.log"
del "%log_file%"

echo ffmpeg.exe -version >>"%log_file%" 2>&1
ffmpeg.exe -version >>"%log_file%" 2>&1

echo ffmpeg.exe -hide_banner -codecs >>"%log_file%" 2>&1
ffmpeg.exe -hide_banner -codecs >>"%log_file%" 2>&1

echo ffmpeg.exe -hide_banner -decoders >>"%log_file%" 2>&1
ffmpeg.exe -hide_banner -decoders >>"%log_file%" 2>&1

echo ffmpeg.exe -hide_banner -encoders >>"%log_file%" 2>&1
ffmpeg.exe -hide_banner -encoders >>"%log_file%" 2>&1

echo ffmpeg.exe -hide_banner -hwaccels >>"%log_file%" 2>&1
ffmpeg.exe -hide_banner -hwaccels >>"%log_file%" 2>&1

echo ffmpeg.exe -hide_banner -init_hw_device opencl >>"%log_file%" 2>&1
ffmpeg.exe -hide_banner -init_hw_device opencl >>"%log_file%" 2>&1

echo ffmpeg.exe -hide_banner -h encoder=h264_nvenc >>"%log_file%" 2>&1
ffmpeg.exe -hide_banner -h encoder=h264_nvenc >>"%log_file%" 2>&1

echo ffmpeg.exe -hide_banner -h encoder=hevc_nvenc >>"%log_file%" 2>&1
ffmpeg.exe -hide_banner -h encoder=hevc_nvenc >>"%log_file%" 2>&1

echo ffmpeg.exe -hide_banner -filters >>"%log_file%" 2>&1
ffmpeg.exe -hide_banner -filters >>"%log_file%" 2>&1

echo ffmpeg.exe -hide_banner -bsfs >>"%log_file%" 2>&1
ffmpeg.exe -hide_banner -bsfs >>"%log_file%" 2>&1

notepad.exe "%log_file%"

hydra3333 avatar Nov 24 '23 07:11 hydra3333

I fiddled with a few MABS options in files in the build subfolder to get it to build: ffmpeg_options.txt mpv_options.txt media-autobuild_suite.ini

Thanks for the tips, but that doesn't solve the problem, it just avoids it.

--disable-libplacebo

rainman74 avatar Dec 06 '23 12:12 rainman74

Yes, sorry, I should have made that caveat explicit. It allows one to still build an ffmpeg using MABS with most other features ;)

hydra3333 avatar Dec 06 '23 22:12 hydra3333

Having the same issue with fresh mabs from two days ago. Still no solution or workaround found by myself.

WernMich avatar Feb 13 '24 11:02 WernMich

Should be fixed with https://github.com/m-ab-s/media-autobuild_suite/commit/e9fc1af2098bd3740b5391c658dc01e501b81d68

1480c1 avatar Mar 01 '24 22:03 1480c1

Yes, it is fixed! Thank you.

rainman74 avatar Mar 13 '24 14:03 rainman74