ffmpeg文本重定位问题 [英] ffmpeg text relocations issues on

查看:74
本文介绍了ffmpeg文本重定位问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在开发一个小应用程序,该应用程序依次使用 FFMPEG Android库转换一些视频文件.但是,该应用程序在> = 23的任何设备上崩溃.我了解到,可以通过将SDK降级到22或使用-disable-asm (非常慢)来解决此问题.我想测试第二种情况,但是找不到很好的文档,说明如何在Android上实现它.这是我的cmd:

I have been working on a little app that use FFMPEG Android library in order to convert some videos files. However, the app is crashing on any devices >= 23. I read that this can be fixed either by downgrading your SDK to 22 or using --disable-asm (make it very slow). I want to test the second case but I could not find a good documentation how to implement it on Android. Here my cmd:

String cmd="--disable-asm -i " + videoName + "-i watermark.jpg -filter_complex " + overlay + " -vcodec libx264 -crf 28 -preset ultrafast -c:a copy " +"repostvideo.mp4";

不幸的是,这不起作用.所以我的问题是如何或如何在我的cmd中放置-disable-asm 以便使其正常工作?

Unfortunately this is not working. So my question how or where would I put --disable-asm in my cmd in order to make it work?

谢谢.

Logcat错误

无法链接可执行的"/data/user/0/xxxx":"/data/data/xxxx"具有文本重定位.

CANNOT LINK EXECUTABLE "/data/user/0/xxxx": "/data/data/xxxx" has text relocations.

版本:

实现'com.writingminds:FFmpegAndroid:0.3.2'

implementation 'com.writingminds:FFmpegAndroid:0.3.2'

推荐答案

这是 WritingMinds 的已知问题.
此处

我自己还没有尝试过,但是请尝试使用以下ffmpeg库版本;它声称已经解决了这个问题.

I haven't tried it myself, but try using the following ffmpeg library version; it claims to have solved this issue.

https://github.com/bravobit/FFmpeg-Android

编辑

检查存储库的关于"部分,它具体说来

Check the repository's about section, it specifically says

该项目是WritingMinds继续开发的FFmpeg Android Java分支.该fork修复了无法链接的可执行ffmpeg:x86设备上的文本重定位问题以及其他一些错误修复,新功能和最新的FFmpeg构建.

This project is a continued fork of FFmpeg Android Java by WritingMinds. This fork fixes the CANNOT LINK EXECUTABLE ffmpeg: has text relocations issue on x86 devices along with some other bugfixes, new features and the newest FFmpeg builds.

我认为只有可能的解决方案正在更改库.请了解没有与此方法相关的代码.而且我只能附加回购的链接.

Only possible solution I think is changing library. Please understand there is no code associated with this approach. And I can only attach link of the repo.

我认为,WritingMinds的修复尚待解决.

Fix from WritingMinds is pending I think.

这篇关于ffmpeg文本重定位问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆