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

Crash invalid vertex shader, built for Android #36

Open
lasnow opened this issue Apr 2, 2019 · 5 comments
Open

Crash invalid vertex shader, built for Android #36

lasnow opened this issue Apr 2, 2019 · 5 comments

Comments

@lasnow
Copy link

lasnow commented Apr 2, 2019

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:

  • the patch file with the changes applied to the vf_gltransition.c file
  • the script I use to build the FFmpeg library

Note: I just tried to build for arm64-v8a

Thanks

@lasnow lasnow changed the title Crash Crash invalid vertex shader, built for Android Apr 2, 2019
@liangzs
Copy link

liangzs commented Apr 16, 2019

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

lasnow commented Apr 16, 2019

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

liangzs commented Apr 17, 2019

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

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

po1xiao commented Jan 16, 2021

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库了吗,可以分享一下吗?搞了三天了,都没成功。

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

4 participants