我是在Java层用onpreviewframe得到了yuv数据并实时传给jni,jni调用ffmpeg实现了编码,但这样得到的只是裸流,之后要如何封装成为mp4文件?我是自己写的jni,来实现与java层的交叉。
拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...
You can write your own container code in the java layer and package the naked buffer into mp4 files
https://github.com/a3349384/AndroidVideoRecordEx
It’s very simple, just check it out for yourself
You can write your own container code in the java layer and package the naked buffer into mp4 files
https://github.com/a3349384/AndroidVideoRecordEx
It’s very simple, just check it out for yourself