transitive-bullshit / ffmpeg-gl-transition

FFmpeg filter for applying GLSL transitions between video streams.
650 stars 126 forks source link

cannot compile vf-gltransition.c #10

Closed yongfengnice closed 6 years ago

yongfengnice commented 6 years ago

cannot compile vf-gltransition.c, how can I solve this problem?

transitive-bullshit commented 6 years ago

You're going to need to include a lot more details.

What platform? What's the error?

Make sure you can compile a fresh clone of ffmpeg before trying to compile with ffmpeg-gl-transition additions.

yongfengnice commented 6 years ago

I have compiled it successfully,but cannot use it. the problem is below:

when I input: ./ffmpeg -i out4.mp4 -i out5.mp4 -filter_complex gltransition -y out.mp4

it output errors:
[AVFilterGraph @ 0x3509500] Error initializing filter 'gltransition' Error initializing complex filters. Operation not permitted

when I type: ./ffmpeg -v 0 -filters | grep gltransition output is : T.. gltransition VV->V OpenGL blend transitions

is it normal ??

can you tell me how to solve?thanks

transitive-bullshit commented 6 years ago

it's an issue your your server's opengl setup. if it's headless, you need to run xvfb.

check this thread for details.

yongfengnice commented 6 years ago

But I want to migrate to android platform.Do you think it can be used in android platform? can you help compile a lib and use it in android?thanks!!!

FaithyQi commented 5 years ago

I also want to use this lib in my Android project , but it doesn't build success. The problem is I can not build libglvnd with ffmpeg in NDK environment , can you help me ? thanks!

transitive-bullshit commented 5 years ago

@FaithyQi make sure you can build normal ffmpeg (following the official ffmpeg Android docs) without this extension before trying to build with the extension added.

If that works for you and this extension doesn't work when applied, then please open a new issue with more details so we can investigate.

Thanks!

lasnow commented 5 years ago

Hi! I join this thread to see if we can make this work for Android. I was able to build ffmpeg and ran it in 3 different Android devices.

Now I am trying to put ffmpeg-gl-transition on top of my ffmpeg but the vf-gltransition.c file gives me compilation errors, there are some dependencies that don't exist or I don't know how to add them in the Android NDK compiler. libavfilter/vf_gltransition.c:18:11: fatal error: 'GL/glew.h' file not found I managed to solve this by changing the import with <GLES2/gl2.h>

But then I got this error: libavfilter/vf_gltransition.c:25:11: fatal error: 'GLFW/glfw3.h' file not found So far, I haven't found any solution for that... Did anyone progress building ffmpeg-gl-transition for Android?

Thanks

MotionDesignStudio commented 5 years ago

lasnow, I am struggling trying to get this to work for Debian. Ffmpeg compiles successfully. When I add gltransition it fails.