enable support for the .data.rel.ro section because the arm64
assembly code in ffmpeg depends on it in case of -pie and -fPIC
Reviewed by: jbeich
Differential Revision: https://reviews.freebsd.org/D41609
On FreeBSD requires nvidia-driver >= 495 for CUDA initialization fix
and linux-nvidia-libs + libc6-shim until nvidia-driver provides native
libcuda.so, libnvidia-encode.so, libnvcuvid.so.
PR: 264027
Since this is a patch that has already applied to the ffmpeg upstream,
we should either apply this patch or upgrade to an fixed upstream
version, see:
https://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff/e5163b1d3438
This issue has existed for some time and despite the port being
upgraded in between, therefore I'll commit the patch under the
"just fix it" exception granted by portmgr, it can be removed by
the maintainers when ffmpeg is upgraded to a fixed version.
PR: 266299
Reported by: m.ne@gmx.net (Martin Neubauer)
Approved by: portmgr (implicit)
$ aomenc --tune=vmaf --output=foo.mp4 foo.y4m
Pass 1/2 frame 1/0 0B 0 us 0.00 fpm [ETA unknown] libvmaf ERROR could not read model from path: "/usr/local/share/model/vmaf_v0.6.1.json"
Fatal error: Failed to load VMAF model.
$ ffmpeg -i foo.y4m -i bar.y4m -lavfi libvmaf -f null -
[...]
libvmaf INFO `compute_vmaf()` is deprecated and will be removed in a future libvmaf version
libvmaf ERROR could not read model from path: "/usr/local/share/model/vmaf_v0.6.1.pkl"
libvmaf ERROR support for pkl model files has been removed, use json
libvmaf ERROR problem loading model file: /usr/local/share/model/vmaf_v0.6.1.pkl
[Parsed_libvmaf_0 @ 0x8061b3b40] libvmaf encountered an error, check log for details
libavfilter/vf_lensfun.c:229:63: error: too many arguments to function call, expected 5, have 7
inlink->h, LF_PF_U8, lensfun->reverse);
^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/lensfun/lensfun.h:3075:11: note: 'lf_modifier_create' declared here
LF_EXPORT lfModifier *lf_modifier_create (
^
libavfilter/vf_lensfun.c:231:119: error: too few arguments to function call, expected 5, have 3
lf_modifier_enable_vignetting_correction(lensfun->modifier, lensfun->aperture, lensfun->focus_distance);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/usr/local/include/lensfun/lensfun.h:3097:11: note: 'lf_modifier_enable_vignetting_correction' declared here
LF_EXPORT int lf_modifier_enable_vignetting_correction (
^
libavfilter/vf_lensfun.c:233:75: error: too few arguments to function call, expected 3, have 1
lf_modifier_enable_distortion_correction(lensfun->modifier);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/usr/local/include/lensfun/lensfun.h:3091:11: note: 'lf_modifier_enable_distortion_correction' declared here
LF_EXPORT int lf_modifier_enable_distortion_correction (lfModifier *modifier, const lfLens* lens, float focal);
^
libavfilter/vf_lensfun.c:234:100: error: too few arguments to function call, expected 4, have 2
lf_modifier_enable_projection_transform(lensfun->modifier, lensfun->target_geometry);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/usr/local/include/lensfun/lensfun.h:3101:11: note: 'lf_modifier_enable_projection_transform' declared here
LF_EXPORT cbool lf_modifier_enable_projection_transform (
^
/usr/local/include/lensfun/lensfun.h:115:15: note: expanded from macro 'cbool'
#define cbool int
^
libavfilter/vf_lensfun.c:238:68: error: too few arguments to function call, expected 3, have 1
lf_modifier_enable_tca_correction(lensfun->modifier);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/usr/local/include/lensfun/lensfun.h:3094:11: note: 'lf_modifier_enable_tca_correction' declared here
LF_EXPORT int lf_modifier_enable_tca_correction (lfModifier *modifier, const lfLens* lens, float focal);
^
PR: 255035
vec_xl function is already defined in altivec.h. Don't redefine it.
While here, remove the previous patch that is no longer needed with LLVM 11.
Since for LTO LLVM 9 is used, switch to GCC for LTO option.