Open kerwinxu opened 2 years ago
版本问题,需要手动打补丁 修改 Makefile 和 allfilters.c
I met the problem too.
First I try to modify libavfilter/Makefile at line 556
556 OBJS-$(CONFIG_GLTRANSITION_FILTER) += vf_gltransition.o
then 'libavfilter/allfilters.c'
521 extern const AVFilter ff_vf_gltransition;
but still get the error msg
ibavfilter/vf_gltransition.c:583:4: error: field designator 'query_formats' does not refer to any field in type 'AVFilter' (aka 'struct AVFilter') .query_formats = gl_query_formats, ^ 68 warnings and 6 errors generated.
git apply ~/ffmpeg-gl-transition/ffmpeg.diff
error: patch failed: libavfilter/allfilters.c:357
error: libavfilter/allfilters.c: patch does not apply
This project is from a few years ago, so I'm sure the diffs and some deps are out-of-date.
With that being said, the same underlying technique can be applied with the latest ffmpeg
sources, so it's still a useful resource — though it won't be as plug & play as you might want.
git apply ~/ffmpeg-gl-transition/ffmpeg.diff
error: patch failed: libavfilter/allfilters.c:357 error: libavfilter/allfilters.c: patch does not apply
It's still not working. I install ffmpeg with version tag realease/4.4
. Please help me
modify ffmpeg.diff file can help you
@@ -357,6 +357,7 @@ extern AVFilter ff_vf_yadif_cuda;
extern AVFilter ff_vf_zmq;
extern AVFilter ff_vf_zoompan;
extern AVFilter ff_vf_zscale;
+extern AVFilter ff_vf_gltransition;
extern AVFilter ff_vsrc_allrgb;
extern AVFilter ff_vsrc_allyuv;
git apply ~/ffmpeg-gl-transition/ffmpeg.diff error: 打补丁失败 libavfilter/allfilters.c:357 error:libavfilter/allfilters.c:补丁未应用
请问您解决了这个问题了吗
版本问题,需要手动打补丁 修改 Makefile 和 allfilters.c
请问如何打这个补丁 谢谢
modify ffmpeg.diff file can help you
@@ -357,6 +357,7 @@ extern AVFilter ff_vf_yadif_cuda; extern AVFilter ff_vf_zmq; extern AVFilter ff_vf_zoompan; extern AVFilter ff_vf_zscale; +extern AVFilter ff_vf_gltransition; extern AVFilter ff_vsrc_allrgb; extern AVFilter ff_vsrc_allyuv;
修改了,但依然报错 error: patch failed: libavfilter/Makefile:367 error: libavfilter/Makefile: patch does not apply error: patch failed: libavfilter/allfilters.c:357 error: libavfilter/allfilters.c: patch does not apply 请问您知道怎么解决吗
I met the problem too.
First I try to modify libavfilter/Makefile at line 556
556 OBJS-$(CONFIG_GLTRANSITION_FILTER) += vf_gltransition.o
then 'libavfilter/allfilters.c'
521 extern const AVFilter ff_vf_gltransition;
but still get the error msg
ibavfilter/vf_gltransition.c:583:4: error: field designator 'query_formats' does not refer to any field in type 'AVFilter' (aka 'struct AVFilter') .query_formats = gl_query_formats, ^ 68 warnings and 6 errors generated.
can you solve this error? thanks
你看下报错那两个文件,把需要的那两句加进去就行了,然后格式要一样.
OBJS-$(CONFIG_GLTRANSITION_FILTER) += vf_gltransition.o extern const AVFilter ff_vf_gltransition 这两句吗
OBJS-$(CONFIG_GLTRANSITION_FILTER) += vf_gltransition.o extern const AVFilter ff_vf_gltransition 这两句吗
是的,然后行数那里的格式也要保持一致
OBJS-$(CONFIG_GLTRANSITION_FILTER) += vf_gltransition.o extern const AVFilter ff_vf_gltransition 这两句吗
是的,然后行数那里的格式也要保持一致
我这边添加了,格式行数也一致,却依然报一样的错误
你直接修改文件的话就不需要执行那个apply了
libavfilter
git apply ~/ffmpeg-gl-transition/ffmpeg.diff 错误:打补丁失败:libavfilter/Makefile:367 错误:libavfilter/Makefile:补丁未应用 错误:打补丁失败:libavfilter/allfilters.c:357 错误:libavfilter/allfilters.c:补丁未应用
the smae error,who can repair this problem
git apply ~/ffmpeg-gl-transition/ffmpeg.diff error: 打补丁失败 libavfilter/allfilters.c:357 error:libavfilter/allfilters.c:补丁未应用