Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kerwinxu opened this issue Aug 28, 2022 · 16 comments
Open

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

kerwinxu opened this issue Aug 28, 2022 · 16 comments

Comments

@kerwinxu
Copy link

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

@HowToLoveChina
Copy link

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

@webryan
Copy link

webryan commented Oct 31, 2022

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
Copy link
Contributor

4n70w4 commented Nov 15, 2022

git apply ~/ffmpeg-gl-transition/ffmpeg.diff
error: patch failed: libavfilter/allfilters.c:357
error: libavfilter/allfilters.c: patch does not apply

@4n70w4 4n70w4 mentioned this issue Nov 15, 2022
@transitive-bullshit
Copy link
Owner

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
Copy link

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
Copy link

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
Copy link

Trway commented Mar 21, 2023

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

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

@Trway
Copy link

Trway commented Mar 21, 2023

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

请问如何打这个补丁 谢谢

@Trway
Copy link

Trway commented Mar 21, 2023

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
Copy link

Trway commented Mar 21, 2023

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
Copy link

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

@Trway
Copy link

Trway commented Mar 21, 2023

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

@dingring
Copy link

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

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

@Trway
Copy link

Trway commented Mar 22, 2023

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

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

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

@dingring
Copy link

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

@huqilong
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants