transitive-bullshit / ffmpeg-gl-transition

FFmpeg filter for applying GLSL transitions between video streams.
647 stars 125 forks source link

git apply ~/ffmpeg-gl-transition/ffmpeg.diff error #71

Open kerwinxu opened 2 years ago

kerwinxu commented 2 years ago

git apply ~/ffmpeg-gl-transition/ffmpeg.diff error: 打补丁失败 libavfilter/allfilters.c:357 error:libavfilter/allfilters.c:补丁未应用

HowToLoveChina commented 2 years ago

版本问题,需要手动打补丁 修改 Makefile 和 allfilters.c

webryan commented 1 year ago

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.

4n70w4 commented 1 year ago
git apply ~/ffmpeg-gl-transition/ffmpeg.diff
error: patch failed: libavfilter/allfilters.c:357
error: libavfilter/allfilters.c: patch does not apply
transitive-bullshit commented 1 year ago

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.

longlhdev commented 1 year ago
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

dingring commented 1 year ago

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;
Trway commented 1 year ago

git apply ~/ffmpeg-gl-transition/ffmpeg.diff error: 打补丁失败 libavfilter/allfilters.c:357 error:libavfilter/allfilters.c:补丁未应用

请问您解决了这个问题了吗

Trway commented 1 year ago

版本问题,需要手动打补丁 修改 Makefile 和 allfilters.c

请问如何打这个补丁 谢谢

Trway commented 1 year ago

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 请问您知道怎么解决吗

Trway commented 1 year ago

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

dingring commented 1 year ago

你看下报错那两个文件,把需要的那两句加进去就行了,然后格式要一样.

Trway commented 1 year ago

OBJS-$(CONFIG_GLTRANSITION_FILTER) += vf_gltransition.o extern const AVFilter ff_vf_gltransition 这两句吗

dingring commented 1 year ago

OBJS-$(CONFIG_GLTRANSITION_FILTER) += vf_gltransition.o extern const AVFilter ff_vf_gltransition 这两句吗

是的,然后行数那里的格式也要保持一致

Trway commented 1 year ago

OBJS-$(CONFIG_GLTRANSITION_FILTER) += vf_gltransition.o extern const AVFilter ff_vf_gltransition 这两句吗

是的,然后行数那里的格式也要保持一致

我这边添加了,格式行数也一致,却依然报一样的错误

dingring commented 1 year ago

你直接修改文件的话就不需要执行那个apply了

huqilong commented 4 months ago

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