GithubHelp home page GithubHelp logo

Comments (11)

geek-paulwong avatar geek-paulwong commented on June 19, 2024

求大神解答。我遇到同样的问题。;)

from android-gpuimage-plus.

wysaid avatar wysaid commented on June 19, 2024

@RockyLin @geek-paulwong libx264.142 这个文件是arm-v7a 架构的, 我看到你们的报错里面有 arm64-v8a 字样, 应该是加载的路径错误, 这个需要你们改正一下~~
这个编译用到armv7的neon指令, 只有 arm-v7a 版本。 对于64位的可以通用哦, 你们这只是没有加载到lib而已

from android-gpuimage-plus.

RockyLin avatar RockyLin commented on June 19, 2024

@wysaid 考虑到arm64-v8a里面没有libx264.142这个文件(解压apk后查看,确实没有),我把armeabi-v7a这个文件夹以及里面的so复制了好几份,并分别改名为:arm64-v8a, x86, x86_64, armeabi, 放在armeabi-v7a所在的lib下,运行报错如下:

java.lang.UnsatisfiedLinkError: dlopen failed: file offset for the library "/data/app/com.rocky.TestApp-1/lib/arm64/libx264.142.so" >= file size: 0 >= 0
at java.lang.Runtime.loadLibrary(Runtime.java:372)
at java.lang.System.loadLibrary(System.java:1076)
at org.wysaid.nativePort.NativeLibraryLoader.load(NativeLibraryLoader.java:15)
at org.wysaid.nativePort.CGEFrameRenderer.(CGEFrameRenderer.java:11)
at org.wysaid.view.CameraGLSurfaceView.onSurfaceCreated(CameraGLSurfaceView.java:413)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1503)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)

谢谢大神!

from android-gpuimage-plus.

geek-paulwong avatar geek-paulwong commented on June 19, 2024

请问大神,通用的话,应该怎么设置。谢谢。

from android-gpuimage-plus.

wysaid avatar wysaid commented on June 19, 2024

@RockyLin
首先, 你的方法是错误的, armv7的链接库乱甩目录本身就是盲目的。
你可以去下载一个 snow 的apk包, 然后解压看看它的 opencv, ffmpeg是不是只有 armv7a 这个目录下有。 而它也有其他架构的so, 混用的。
@geek-paulwong
这种问题请自行解决一下。
最简单的办法, 你们把所有非 armv7a 架构的目录全部删掉, 只保留 armv7a, 就像faceu那样

from android-gpuimage-plus.

silentsugar avatar silentsugar commented on June 19, 2024

长时间录制视频,会挂掉,不知道是否可以开源jni的代码,想研究下?

from android-gpuimage-plus.

wysaid avatar wysaid commented on June 19, 2024

@silentsugar
有这个问题哇, 我这边看到还好呀, 请问你用的是什么设备呢, 以及录制了多久

from android-gpuimage-plus.

silentsugar avatar silentsugar commented on June 19, 2024

一般12个小时以上,android国产平板定制出来的

from android-gpuimage-plus.

wysaid avatar wysaid commented on June 19, 2024

@silentsugar
确实有点长, 这种情况的话, 你肯定得分段啊, 正常情况也会分段的, 不会说一个文件十二个小时的, 你应该定时保存录制结果, 比如每半小时保存一次或者每十分钟保存一次

from android-gpuimage-plus.

wysaid avatar wysaid commented on June 19, 2024

@geek-paulwong see this: http://stackoverflow.com/questions/30782848/how-to-use-32-bit-native-libaries-on-64-bit-android-device

from android-gpuimage-plus.

geek-paulwong avatar geek-paulwong commented on June 19, 2024

@wysaid Thank you!!! 👍

from android-gpuimage-plus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.