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

AVI 转码失败 #9

Closed
mendax92 opened this issue Jan 16, 2019 · 10 comments
Closed

AVI 转码失败 #9

mendax92 opened this issue Jan 16, 2019 · 10 comments

Comments

@mendax92
Copy link

大神求指教 ,转到一半就失败了

cmd = {CmdList@4212} size = 4
0 = "ffmpeg"
1 = "-i"
2 = "/storage/emulated/0/DCIM/Camera/REC_1547559797_0.avi"
3 = "/storage/emulated/0/rxdrone/outPath/1547625392672.mp4"

A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0xc in tid 17292 (RxCachedThreadS)

@microshow
Copy link
Owner

给个视频地址我试试

@microshow
Copy link
Owner

或者试试这种同步的方式RxFFmpegInvoke.getInstance().runCommand(command, null);

@mendax92
Copy link
Author

mendax92 commented Jan 16, 2019

同步的方式刚刚试了也是一样
打开debug 显示:Too many packets buffered for output stream 0:0.
我看网上这样解决的

cmd = {CmdList@4212} size = 5
0 = "ffmpeg"
1 = "-i"
2 = "/storage/emulated/0/DCIM/Camera/REC_1547559797_0.avi"
3 = "-max_muxing_queue_size 9999"
4 = "/storage/emulated/0/rxdrone/outPath/1547625392672.mp4"

可是还是不行:Unrecognized option 'max_muxing_queue_size 9999'

https://pan.baidu.com/s/1zMpQamWt_eh1hQ4EScfRNw
https://pan.baidu.com/s/1q6pDlrYyx1Zkmf-JpyjvRA
https://pan.baidu.com/s/1pER-4_5lppWVuCrvx792oA

@microshow
Copy link
Owner

我刚试了下,avi 和mp4互转都没问题哦 或者你换个视频试试

@microshow
Copy link
Owner

ffmpeg -y -i /storage/emulated/0/1/test.avi -max_muxing_queue_size 1024 /storage/emulated/0/1/result.mp4 下载了你的视频 可以转码成功

@mendax92
Copy link
Author

我拉你最新的代码试试

@mendax92
Copy link
Author

是我指令写错了~~ 多谢了
大神什么时候把编译脚本 上传啊 ?

@microshow
Copy link
Owner

后续相对完善稳定后,编译脚本及JNI层代码,全部上传。

@microshow
Copy link
Owner

可以使用Gradle依赖:)
dependencies {
implementation 'com.github.microshow:RxFFmpeg:1.2.2'
}

@microshow
Copy link
Owner

可以更新V2.0.0版本,速度嗖嗖的

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

2 participants