Code Monkey home page Code Monkey logo

android-ffmpeg-camerarecord's Introduction

简介

New - A better version: android-gpuimage-plus

安卓下实现的 实时相机滤镜显示 + 拍照 + 处理结果视频音频录制 demo (需要 javacv, 已配置好)

截屏

wysaid

wysaid

开发中, 功能不全

目前仅是demo, 仅供参考, 本repo的代码请随意使用, 我无所谓😋, 当然对你有帮助的地方你要注明一下本人, 我也是非常高兴的。

Just a demo.

android-ffmpeg-camerarecord's People

Contributors

wysaid avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

android-ffmpeg-camerarecord's Issues

请问下javacv是怎么编译出来的

现在最新的javacv已经移动到了github,但是我从github编译出的so库并没有ffmpegInvoke和neno的so库,你的库代码应该是googlecode的;
github的库编译之后出现录制过程中会出现闪退的情况,请问你的库是怎么编译出来的

数组越界

CameraDemoActivity中的FilterNames只有四种,FilterTypes有五种,所以在:
for(int i = 0; i != FilterTypes.length; ++i) {
MyButtons button = new MyButtons(this);
button.filterType = FilterTypes[i];
button.setText(FilterNames[i]);
button.setOnClickListener(mFilterSwitchListener);
layout.addView(button);
}
中出现了越界

拍照,第一张正常,连拍第二张报运行时错误

具体日志:

07-17 14:25:38.494 19070-19180/com.example.mickys.javacv I/wysaid: Taking shot...
07-17 14:25:38.500 19070-19180/com.example.mickys.javacv A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0xcb480000 in tid 19180 (GLThread 5242)
                                                                 
                                                                 [ 07-17 14:25:38.501   393:  393 W/         ]
                                                                 debuggerd: handling request: pid=19070 uid=10354 gid=10354 tid=19180

分析原因是由于拍照方法里面的 Buffer 未及时释放导致内存占用增加,最终在拍照线程中溢出,这里给出一点儿改进建议,希望作者更新代码,感谢~

改进方法:在照线程中增加释放Buffer的语句:mBuffer.clear();
原代码:

                bmp.copyPixelsFromBuffer(mBuffer);
                ImageUtil.saveBitmap(bmp);

改进代码:

                 bmp.copyPixelsFromBuffer(mBuffer);
                 ImageUtil.saveBitmap(bmp);
                 mBuffer.clear();

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.