@abcfy2 @nathanielcwm @ArchBoxHero
The dev / maintainer for ffmpeg-full-git has fixed it. I've uploaded the .patch to github, so replace the URL for SVT-VP9 with:
And the sha is:
ab62715392cb1aee475a95bbe4d4205552fe23e5dd50b85ca7be72a8fcd9fbfe
Git Clone URL: | https://aur.archlinux.org/ffmpeg-amd-full-git.git (read-only, click to copy) |
---|---|
Package Base: | ffmpeg-amd-full-git |
Description: | Complete solution to record, convert and stream audio and video (all possible features for AMD; git version) |
Upstream URL: | https://www.ffmpeg.org/ |
Keywords: | audio codec convert encoder media svt video |
Licenses: | custom: nonfree and unredistributable |
Conflicts: | ffmpeg |
Provides: | ffmpeg, ffmpeg-full, ffmpeg-git, libavcodec.so, libavdevice.so, libavfilter.so, libavformat.so, libavutil.so, libpostproc.so, libswresample.so, libswscale.so |
Submitter: | clap22 |
Maintainer: | nathanielcwm |
Last Packager: | nathanielcwm |
Votes: | 12 |
Popularity: | 0.000027 |
First Submitted: | 2018-11-20 15:20 (UTC) |
Last Updated: | 2024-04-10 23:13 (UTC) |
« First ‹ Previous 1 2 3 4 5 6 7 8 .. 10 Next › Last »
@abcfy2 @nathanielcwm @ArchBoxHero
The dev / maintainer for ffmpeg-full-git has fixed it. I've uploaded the .patch to github, so replace the URL for SVT-VP9 with:
And the sha is:
ab62715392cb1aee475a95bbe4d4205552fe23e5dd50b85ca7be72a8fcd9fbfe
Yea @abcfy2 same issues on my end when building either ffmpeg full git packages with or without AMD. Fails on the same patch. I'll poke around a bit in the meantime.
paching files failed:
patching file libavfilter/vf_libvmaf.c
patching file configure
Hunk #1 succeeded at 289 (offset 1 line).
Hunk #2 succeeded at 1821 with fuzz 1 (offset 2 lines).
Hunk #3 succeeded at 3293 (offset 20 lines).
Hunk #4 succeeded at 6501 (offset 21 lines).
patching file libavcodec/Makefile
Hunk #1 succeeded at 1070 (offset 24 lines).
patching file libavcodec/allcodecs.c
Hunk #1 succeeded at 765 (offset 18 lines).
patching file libavcodec/libsvt_hevc.c
patching file doc/encoders.texi
Hunk #1 succeeded at 1888 (offset 248 lines).
patching file doc/general_contents.texi
Hunk #1 succeeded at 267 with fuzz 2 (offset 24 lines).
patching file configure
Hunk #1 succeeded at 286 (offset 2 lines).
Hunk #2 succeeded at 1805 (offset 4 lines).
Hunk #3 succeeded at 3287 (offset 22 lines).
Hunk #4 succeeded at 6473 (offset 35 lines).
patching file libavcodec/Makefile
Hunk #1 succeeded at 1065 (offset 17 lines).
patching file libavcodec/allcodecs.c
Hunk #1 succeeded at 758 (offset 12 lines).
patching file libavcodec/avcodec.h
patching file libavcodec/libsvt_vp9.c
patching file libavformat/dashenc.c
Hunk #1 succeeded at 2271 (offset 1 line).
Hunk #2 succeeded at 2360 (offset 1 line).
Hunk #3 succeeded at 2452 (offset 1 line).
patching file libavformat/ivfenc.c
Hunk #1 succeeded at 81 with fuzz 1.
patching file libavformat/matroskaenc.c
Hunk #2 succeeded at 2111 (offset 24 lines).
Hunk #3 succeeded at 2310 (offset 33 lines).
Hunk #4 succeeded at 2321 (offset 33 lines).
Hunk #5 succeeded at 2340 (offset 33 lines).
Hunk #6 FAILED at 2329.
Hunk #7 succeeded at 2431 (offset 38 lines).
Hunk #8 succeeded at 2462 (offset 38 lines).
Hunk #9 succeeded at 2808 (offset 41 lines).
1 out of 9 hunks FAILED -- saving rejects to file libavformat/matroskaenc.c.rej
patching file libavformat/movenc.c
Hunk #1 succeeded at 5967 (offset 114 lines).
Hunk #2 succeeded at 7190 (offset 141 lines).
==> 错误: 在 prepare() 中发生一个错误。
正在放弃...
生成时出错: ffmpeg-amd-full-git
Manjaro unstable build failed:
CC libavfilter/vf_lumakey.o
In file included from libavfilter/vf_lensfun.c:40:
/usr/include/lensfun/lensfun.h:302:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
302 | DEPRECATED LF_EXPORT lfMount *lf_mount_new ();
| ^~~~~~~~~~
/usr/include/lensfun/lensfun.h:311:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
311 | LF_EXPORT lfMount *lf_mount_create();
| ^~~~~~~~~
/usr/include/lensfun/lensfun.h:464:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
464 | DEPRECATED LF_EXPORT lfCamera *lf_camera_new ();
| ^~~~~~~~~~
/usr/include/lensfun/lensfun.h:474:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
474 | LF_EXPORT lfCamera *lf_camera_create ();
| ^~~~~~~~~
In file included from libavfilter/vf_lensfun.c:40:
/usr/include/lensfun/lensfun.h:1550:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
1550 | DEPRECATED LF_EXPORT lfLens *lf_lens_new ();
| ^~~~~~~~~~
/usr/include/lensfun/lensfun.h:1560:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
1560 | LF_EXPORT lfLens *lf_lens_create ();
| ^~~~~~~~~
libavfilter/vf_lensfun.c: In function ‘config_props’:
libavfilter/vf_lensfun.c:225:59: error: incompatible type for argument 1 of ‘lf_modifier_create’
225 | lensfun->modifier = lf_modifier_create(lensfun->lens,
| ~~~~~~~^~~~~~
| |
| lfLens *
In file included from libavfilter/vf_lensfun.c:40:
/usr/include/lensfun/lensfun.h:3076:11: note: expected ‘float’ but argument is of type ‘lfLens *’
3076 | float imgcrop, int imgwidth, int imgheight, lfPixelFormat pixel_format, bool reverse);
| ~~~~~~^~~~~~~
libavfilter/vf_lensfun.c:225:33: error: too many arguments to function ‘lf_modifier_create’
225 | lensfun->modifier = lf_modifier_create(lensfun->lens,
| ^~~~~~~~~~~~~~~~~~
In file included from libavfilter/vf_lensfun.c:40:
/usr/include/lensfun/lensfun.h:3075:23: note: declared here
3075 | LF_EXPORT lfModifier *lf_modifier_create (
| ^~~~~~~~~~~~~~~~~~
libavfilter/vf_lensfun.c:231:84: error: incompatible type for argument 2 of ‘lf_modifier_enable_vignetting_correction’
231 | lf_modifier_enable_vignetting_correction(lensfun->modifier, lensfun->aperture, lensfun->focus_distance);
| ~~~~~~~^~~~~~~~~~
| |
| float
In file included from libavfilter/vf_lensfun.c:40:
/usr/include/lensfun/lensfun.h:3098:41: note: expected ‘const lfLens *’ but argument is of type ‘float’
3098 | lfModifier *modifier, const lfLens* lens, float focal, float aperture, float distance);
| ~~~~~~~~~~~~~~^~~~
libavfilter/vf_lensfun.c:231:17: error: too few arguments to function ‘lf_modifier_enable_vignetting_correction’
231 | lf_modifier_enable_vignetting_correction(lensfun->modifier, lensfun->aperture, lensfun->focus_distance);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from libavfilter/vf_lensfun.c:40:
/usr/include/lensfun/lensfun.h:3097:15: note: declared here
3097 | LF_EXPORT int lf_modifier_enable_vignetting_correction (
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libavfilter/vf_lensfun.c:233:17: error: too few arguments to function ‘lf_modifier_enable_distortion_correction’
233 | lf_modifier_enable_distortion_correction(lensfun->modifier);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from libavfilter/vf_lensfun.c:40:
/usr/include/lensfun/lensfun.h:3091:15: note: declared here
3091 | LF_EXPORT int lf_modifier_enable_distortion_correction (lfModifier *modifier, const lfLens* lens, float focal);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libavfilter/vf_lensfun.c:234:83: warning: passing argument 2 of ‘lf_modifier_enable_projection_transform’ makes pointer from integer without a cast [-Wint-conversion]
234 | lf_modifier_enable_projection_transform(lensfun->modifier, lensfun->target_geometry);
| ~~~~~~~^~~~~~~~~~~~~~~~~
| |
| int
In file included from libavfilter/vf_lensfun.c:40:
/usr/include/lensfun/lensfun.h:3102:41: note: expected ‘const lfLens *’ but argument is of type ‘int’
3102 | lfModifier *modifier, const lfLens* lens, float focal, lfLensType target_projection);
| ~~~~~~~~~~~~~~^~~~
libavfilter/vf_lensfun.c:234:17: error: too few arguments to function ‘lf_modifier_enable_projection_transform’
234 | lf_modifier_enable_projection_transform(lensfun->modifier, lensfun->target_geometry);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from libavfilter/vf_lensfun.c:40:
/usr/include/lensfun/lensfun.h:3101:17: note: declared here
3101 | LF_EXPORT cbool lf_modifier_enable_projection_transform (
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libavfilter/vf_lensfun.c:238:17: error: too few arguments to function ‘lf_modifier_enable_tca_correction’
238 | lf_modifier_enable_tca_correction(lensfun->modifier);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from libavfilter/vf_lensfun.c:40:
/usr/include/lensfun/lensfun.h:3094:15: note: declared here
3094 | LF_EXPORT int lf_modifier_enable_tca_correction (lfModifier *modifier, const lfLens* lens, float focal);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CC libavfilter/vf_lut.o
make: *** [ffbuild/common.mak:67: libavfilter/vf_lensfun.o] Error 1
make: *** Waiting for unfinished jobs....
CC libavfilter/vf_lut2.o
==> ERROR: A failure occurred in build().
Aborting...
Yeah. don't worry, the bug report is open in the ffmpeg site, so not this package's fault
https://www.phoronix.com/scan.php?page=news_item&px=FFmpeg-AMD-AMF-Vulkan
This dates back to 2019 but this phoronix article states that ffmpeg on linux only implements amf for avc.
Edit: Just checked and there have been no relevant commits to amf support since it was implemented for linux.
https://trac.ffmpeg.org/wiki/HWAccelIntro
Oh yeah according to the documentation amf is only supported on Windows.
Supposedly AMF support was added to Linux ffmpeg in 4.3 tho.
Could you check your inbox @Akrai?
Looks like no support to hevc_amf from ffmpeg on linux, or maybe from AMD drivers
Sorry i've and am going to be busy until around the end of January so i can't really help pursue this issue until then.
Is it an issue with the official ffmpeg package?
Pinned Comments
saburouta commented on 2023-04-26 18:45 (UTC)
I adopted this package to keep it from falling off, but I haven't had the chance to update it yet.
I think only patches 40 and 60 still work. I'm not sure the other even need to be updated. I've been building with just 40 and 60.