Android的视频通过ffmpeg的微调 [英] Android video trimming via ffmpeg

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

问题描述

我已下载的视频从此链接。

它的工作完美的第一次,但是当我尝试没有任何异常的code崩溃然后再运行它的第二次,当我尝试运行它为它工作在崩溃后的第三次!  没有任何一个有任何想法的这种行为?

It’s working perfectly for the first time, but when I try to run it for the second time the code crashes without any exception then again when I try to run it for the 3rd time after the crash it works! Does any one have any idea for this kind of behaviour?

我也开发有微调视频中的一个模块的应用程序。 我真的AP preciate它,如果任何人能帮助我。

I am also developing an application which has one module of trimming videos. I would really appreciate it, if any one could help me .

推荐答案

https://lists.ffmpeg.org/pipermail/libav-user/2012-May/001964.html

<一个href="http://stackoverflow.com/questions/10649119/calling-native-method-twice-of-third-party-library-in-an-activity-causes-the-and">Calling在活动的第三方库的两倍本地方法会导致Android应用程序,以关闭

阅读有关问题静态瓦尔在ffmpeg.c......

read about the issue with static vars in 'ffmpeg.c' ...

我敢打赌,ü有同样的问题,需要做一些事情(3复选)重置或GC的增值经销商:

I would bet that u have the same problem and need to do something (3 alternate choices) to reset or GC those vars:

  1. 获取加载的lib和GC在Java类加载器它

  1. get the java classloader that loaded the lib and GC it

在C层做什么的OP做在上面的链接

in the c-layer do what the OP did in above link

编写使用对dlsym,并在第一库dlclose每次调用周期内第2共享库

write a 2nd shared lib that uses 'dlsym' and 'dlclose' on the first library during each call cycle

github上,看到自述这里

github , see the 'README' here

,美ř有同样的问题。

这篇关于Android的视频通过ffmpeg的微调的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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