transitive-bullshit / ffmpeg-gl-transition

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

Platform:Centos; Error initializing filter 'gltransition' with args #55

Closed numberwolf closed 3 years ago

numberwolf commented 4 years ago

Here's my extra-libs :

--extra-libs='-lpthread -lm -lXrandr -lXinerama -lXi -lXxf86vm -lX11 -lGLEW -lglfw'

I have install xvfb

Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
Package xorg-x11-server-Xvfb-1.20.4-10.el7.x86_64 already installed and latest version

and I am sure filter existed

$ ./bin/ffmpeg -v 0 -filters | grep gltransition
 T.. gltransition      VV->V      OpenGL blend transitions

Here's my ffmpeg cmd:

./bin/ffmpeg -v level+debug \
-i head.mp4 \
-i head.mp4 \
-safe 0 \
-filter_complex "gltransition=offset=0.5:duration=0.5:source=crosswarp.glsl" \
-y out.mp4

output

[debug] Successfully opened the file.
[Parsed_gltransition_0 @ 0x33c8440] [debug] Setting 'offset' to value '0.5'
[Parsed_gltransition_0 @ 0x33c8440] [debug] Setting 'duration' to value '0.5'
[Parsed_gltransition_0 @ 0x33c8440] [debug] Setting 'source' to value 'crosswarp.glsl'
[AVFilterGraph @ 0x33f3440] [error] Error initializing filter 'gltransition' with args 'offset=0.5:duration=0.5:source=crosswarp.glsl'
[fatal] Error initializing complex filters.
[fatal] Operation not permitted
[AVIOContext @ 0x33cd4c0] [verbose] Statistics: 206564 bytes read, 2 seeks
[AVIOContext @ 0x33fb900] [verbose] Statistics: 206564 bytes read, 2 seeks

I have been use chmod setted, but still error

How can I resolve it?

yinjiaoyuan commented 3 years ago

/usr/bin/X :0 & and export DISPLAY=:0