简体   繁体   English

Android ffmpgeg-什么也没发生

[英]Android ffmpgeg - Nothing happens

for my current project I compiled myself ffmpeg together with the x264 libary, following this 我目前的项目,我自己编与X264 libary在一起的ffmpeg,以下

tutorial. 教程。 I already saw many questions regarding this topic, but none of the really helped me. 我已经看到许多有关此主题的问题,但没有一个真正帮助我。 Before that I tried many other things which resulted in many .so files (libavcodec etc.). 在此之前,我尝试了许多其他操作,这些操作导致产生许多.so文件(libavcodec等)。 Since I don't have the time (yet) to work with JNI in depth I wanted to rely to the command line, which the tutorial above seemed to provide. 由于我还没有时间深入研究JNI,因此我想依靠上面的教程似乎提供的命令行。 But here comes the problem: the generated file doesn't do anything (no output and no error messages) when I run it with Process on my Android device. 但是问题来了:当我在Android设备上使用Process运行生成的文件时,它什么也不做(没有输出,也没有错误消息)。 I've come to the conclusion, that the generated file still is a .so file (it is readable with readelf). 我得出的结论是,生成的文件仍然是.so文件(readelf可以读取)。 So far I haven't found a solution to run ffmpeg on my device with the command-line. 到目前为止,我还没有找到使用命令行在设备上运行ffmpeg的解决方案。 Do you know if I did something wrong? 你知道我做错了吗?

Thanks, Daniel 谢谢,丹尼尔

I asked this some time ago but for anyone having problems, here is the solution: 我前段时间问过这个问题,但是对于任何有问题的人,下面是解决方法:

  • I tried this which seemed to create ffmpeg binary executables for x86, armeabi-v7a and armeabi-v7a-neon 我尝试了这个似乎为x86,armeabi-v7a和armeabi-v7a-neon创建ffmpeg二进制可执行文件
  • Next I copied them on my phone and set the file's permission to 775 with chmod but it wasn't executable. 接下来,我将它们复制到手机上,并使用chmod将文件的权限设置为775,但该文件不可执行。 It turns out that no file on the external storage can be executable. 事实证明,外部存储器上没有文件可以执行。 After copying it to the internal storage - /data/local/tmp for instance - and setting the permissions it was executable and worked 将其复制到内部存储-例如/ data / local / tmp-并设置权限后,该可执行文件便可以执行并工作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM