transitive-bullshit / ffmpeg-gl-transition

FFmpeg filter for applying GLSL transitions between video streams.
640 stars 123 forks source link

setup_gl ERRORFailed to configure input pad on Parsed_gltransition_0 #31

Open tidus30691nexus5 opened 5 years ago

tidus30691nexus5 commented 5 years ago

install without EGL have run Xvfb :1 -screen srcn 1280x1024x16 export DISPLAY=:99

But till have errror

errro12

[auto_scaler_0 @ 0x7fffda741600] w:iw h:ih flags:'bilinear' interl:0 [Parsed_gltransition_0 @ 0x7fffda73db00] auto-inserting filter 'auto_scaler_0' between the filter 'graph 0 input from stream 0:0' and the filter 'Parsed_gltransition_0' [auto_scaler_1 @ 0x7fffda742600] w:iw h:ih flags:'bilinear' interl:0 [Parsed_gltransition_0 @ 0x7fffda73db00] auto-inserting filter 'auto_scaler_1' between the filter 'graph 0 input from stream 1:0' and the filter 'Parsed_gltransition_0' [auto_scaler_2 @ 0x7fffda7440c0] w:iw h:ih flags:'bilinear' interl:0 [format @ 0x7fffda73c800] auto-inserting filter 'auto_scaler_2' between the filter 'Parsed_gltransition_0' and the filter 'format' [AVFilterGraph @ 0x7fffda73cf40] query_formats: 5 queried, 1 merged, 3 already done, 0 delayed [auto_scaler_2 @ 0x7fffda7440c0] picking yuv444p out of 8 ref:rgb24 alpha:0 [auto_scaler_0 @ 0x7fffda741600] w:640 h:360 fmt:yuv420p sar:1/1 -> w:640 h:360 fmt:rgb24 sar:1/1 flags:0x2 [Parsed_gltransition_0 @ 0x7fffda73db00] setup_gl ERRORFailed to configure input pad on Parsed_gltransition_0 Error reinitializing filters! Failed to inject frame into filter network: Operation not permitted Error while processing the decoded data for stream #1:0 [AVIOContext @ 0x7fffda49c600] Statistics: 0 seeks, 0 writeouts [AVIOContext @ 0x7fffda4790c0] Statistics: 65536 bytes read, 0 seeks [AVIOContext @ 0x7fffda4990c0] Statistics: 65536 bytes read, 0 seeks Conversion failed!

INFO ffmpeg

ffmpeg version N-92314-g323c2cf Copyright (c) 2000-2018 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-27ubuntu1~18.04) configuration: --prefix=/home/noboro/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/noboro/ffmpeg_build/include --extra-ldflags=-L/home/noboro/ffmpeg_build/lib --extra-libs='-lpthread -lm' --bindir=/home/noboro/bin --enable-gpl --enable-libaom --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-opengl --enable-filter=gltransition --extra-libs='-lGLEW -lglfw' --enable-nonfree libavutil 56. 21.100 / 56. 21.100 libavcodec 58. 34.100 / 58. 34.100 libavformat 58. 19.102 / 58. 19.102 libavdevice 58. 4.106 / 58. 4.106 libavfilter 7. 39.100 / 7. 39.100 libswscale 5. 2.100 / 5. 2.100 libswresample 3. 2.100 / 3. 2.100 libpostproc 55. 2.100 / 55. 2.100 Hyper fast Audio and Video encoder usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'

liule-pi commented 5 years ago

I have the same problem with non-EGL building and for EGL building , I got Segmentation fault (core dumped)

edit: https://github.com/openai/gym/issues/366 re-installing the nvidia driver with --no-opengl-libs works for me.

Archangelsg commented 5 years ago

Try to add before executing the command xvfb-run --server-args="-screen 0, 1280x1024x16" Instead of Xvfb :1 -screen srcn 1280x1024x16 export DISPLAY=:99

owen-m1 commented 4 years ago

@Archangelsg Running that command just gives me the error xvfb-run: usage error: need a command to run. Are you sure the command you put in your comment is the exact command you used?

tellamon commented 4 years ago

@owen-m1 you need to give the command you want to execute after xvfb-run as follows

xvfb-run --server-args="-screen 0, 1280x1024x16" ffmpeg -i /test/input1.mp4 /test/input2.mp4 -filter_complex gltransition -y /test/out.mp4

clickear commented 3 years ago

run cmd /usr/bin/Xorg -noreset +extension GLX +extension RANDR +extension RENDER -logfile ./xdummy.log -config /etc/X11/xorg.conf :1 & it work for me! see https://github.com/clofus/ffmpeg-gl/blob/master/init.sh