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

请问一段视频录制完成后,如何再次录制呢? #197

Open
bingaicao opened this issue Jul 19, 2017 · 14 comments
Open

请问一段视频录制完成后,如何再次录制呢? #197

bingaicao opened this issue Jul 19, 2017 · 14 comments

Comments

@bingaicao
Copy link

我通过mMediaObject.delete();删除了之前录制的资源,然后再次录制就出现闪退了。闪退日志也无法获得,麻烦有空回复下,谢谢!

@bingaicao
Copy link
Author

下面是保存的错误信息

#00 pc 0000000000016f74 /data/app/com.zijinph.crm.facedemo-1/lib/arm64/libjx_ffmpeg_jni.so (JXYUVEncodeH264::startSendOneFrame(unsigned char*)+20) [arm64-v8a]

#1 pc 0000000000018ab0 /data/app/com.zijinph.crm.facedemo-1/lib/arm64/libjx_ffmpeg_jni.so (Java_com_mabeijianxi_smallvideorecord2_jniinterface_FFmpegBridge_encodeFrame2H264+48) [arm64-v8a]
#2 pc 0000000000442bf8 /data/app/com.zijinph.crm.facedemo-1/oat/arm64/base.odex (oatexec+183288) [arm64-v8a]
4 java:
5 [Failed to get java stack]

@bingaicao
Copy link
Author

我使用
FFmpegBridge.nativeRelease();
// 初始化拍摄
JianXiCamera.initialize(true, null);
initMediaRecorder();
可以再次拍摄了,但是似乎转码的时候,一直停留在准备中...阶段。

@mabeijianxi
Copy link
Owner

看不懂你是什么操作,你录着录着把缓存目录删了,还怎么玩,你要删除什么自己指定啊,别一起删了

@bingaicao
Copy link
Author

bingaicao commented Jul 19, 2017 via email

@bingaicao
Copy link
Author

@mabeijianxi 就是我录制完,并且转码完成onEncodeComplete()调用之后,我还想重新录制,怎么样清空资源然后重新录制?

@HolickABC
Copy link

@bingaicao 你好 问题解决了吗 我刚好也碰到这个问题了

@HolickABC
Copy link

@bingaicao 你好 我暂时还是没有找到解决的办法 你解决了吗?

@bingaicao
Copy link
Author

bingaicao commented Aug 21, 2017 via email

@HolickABC
Copy link

@bingaicao 好吧 我再找找解决办法

@bingaicao
Copy link
Author

bingaicao commented Aug 21, 2017 via email

@HolickABC
Copy link

@bingaicao 多谢
@mabeijianxi 你好 如果我要实现再次录制 我应该更改哪些地方?

@bingaicao
Copy link
Author

bingaicao commented Aug 21, 2017 via email

@liuyi
Copy link

liuyi commented Mar 16, 2019

这是因为卡住了 你可以参考我这个帖子,修复下这个BUG
#375

@bingaicao
Copy link
Author

bingaicao commented Mar 16, 2019 via email

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

4 participants