ffmpeg-build-script
ffmpeg-build-script copied to clipboard
Zscale filter needs zimg lib.
It would be great if libzimg is added to this script. This is needed for getting the new ZScale to work.
Here is the source https://github.com/sekrit-twc/zimg but I have little knowledge how to add this.
Would add as PR but has some things not sure how they want to address. First libtools must be installed (aka sudo apt install libtools) and then after this was run I had to run sudo ldconfig -v to regen library cache or else it couldn't find libzimg.so.2.
if build "zimg"; then
download "https://github.com/sekrit-twc/zimg/archive/refs/tags/release-3.0.3.tar.gz"
execute ./autogen.sh
execute ./configure --prefix="${WORKSPACE}"
execute make -j $MJOBS
execute make install
build_done "zimg"
fi
CONFIGURE_OPTIONS+=("--enable-libzimg")
Would add as PR but has some things not sure how they want to address. First
libtoolsmust be installed (akasudo apt install libtools) and then after this was run I had to runsudo ldconfig -vto regen library cache or else it couldn't findlibzimg.so.2.if build "zimg"; then download "https://github.com/sekrit-twc/zimg/archive/refs/tags/release-3.0.3.tar.gz" execute ./autogen.sh execute ./configure --prefix="${WORKSPACE}" execute make -j $MJOBS execute make install build_done "zimg" fi CONFIGURE_OPTIONS+=("--enable-libzimg")
I tested a static build of FFMPEG with libzimg and dav1d only. At first, I was also getting the above "library not found" error while running the statically built ffmpeg.
It has two fixes.
- Re-gen library cache where system-installed
libtoolis present - Build latest GNU
libtoolstatically + install it in workspace + uselibtoolizeinsidezimgrepo folder to fix some files, and thenautogen+ buildlibzimgfully static.
I added --enable-static --disable-shared flags with the ./configure part while building.
Any of the upper two fixes worked for me in Ubuntu and showed no missing library error.
Use Case 2: Where I built libtool statically and didn't refresh library cache
Previous Use Cases: With system-installed libtool, even if I build static or shared or static+shared libzimg, after building ffmpeg, while running the program, it showed library missing error. But re-generating library cache just before compiling ffmpeg (tried only for static ffmpeg build) with static libzimg works fine.
@rokibhasansagar https://github.com/markus-perl/ffmpeg-build-script/pull/106 was just merged and adds zimg support. Had to do what your second solution was, using libtoolize as well.
@rokibhasansagar #106 was just merged and adds zimg support. Had to do what your second solution was, using
libtoolizeas well.
Actually, that was originally your solution. I was following up your forked project to fix this in fully static build.