transitive-bullshit / ffmpeg-gl-transition

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

Crash invalid vertex shader, built for Android #36

Open lasnow opened 5 years ago

lasnow commented 5 years ago

Hello,

Finally, I was able to build the library for Android (I needed to change some includes in the vf_gltransition.c) and using this wrapper I can run the ffmpeg using the command line options.

So before I added this library the FFmpeg was working fine, in fact, the FFmpeg is working fine, but when I try to use some of the Transition features it crashes.

Here the crash for: ffmpeg -i path-to/0.mp4 -i path-to/1.mp4 -filter_complex gltransition -y out.mp4

Press [q] to stop, [?] for help
[swscaler @ 0x77bf6e1000] No accelerated colorspace conversion found from yuv420p to rgb24.
[Parsed_gltransition_0 @ 0x77cebd3ec0] invalid vertex shader
[Parsed_gltransition_0 @ 0x77cebd3ec0] Failed 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
Conversion failed!

Attached you'll find a zip that contains two files:

Note: I just tried to build for arm64-v8a

Thanks

liangzs commented 5 years ago

hi lasnow,may i ask you a quetion. it's i also build for android,then use "--cc=$TOOLCHAIN/bin/arm-linux-androideabi-gcc \" that was wrong,show bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lGLEW /home/liangzs/android/android-ndk-r14b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lglfw had you met it ,thank you!

lasnow commented 5 years ago

Yep, if you check my build script in the attached zip file you can see that I replaced -lglfw and -lGLEW for -lGLESv2 -lEGL because the NDK compiler does not find them and I didn't know how to include them. If you do that you'll have to apply some changes to the vf_gltransition.c file. Just read again my question and check the attached file to see the changes.

liangzs commented 5 years ago

appreciate for your reply! but i compile without --enable-opengl,it built sucessed. but test fail like #35 . when i add --enable-opengl will show no opengl environment . so sad.

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

po1xiao 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

请问您编译出安卓下使用的libffmpengso库了吗,可以分享一下吗?搞了三天了,都没成功。