【发布时间】:2016-04-07 05:52:25
【问题描述】:
我使用了https://github.com/CyberAgent/android-gpuimage,但它只是保存图像。 如何使用 GLSurfaceview 录制视频?
【问题讨论】:
标签: android gpuimage android-gpuimageview
我使用了https://github.com/CyberAgent/android-gpuimage,但它只是保存图像。 如何使用 GLSurfaceview 录制视频?
【问题讨论】:
标签: android gpuimage android-gpuimageview
android-gpuimage 库不支持视频录制,但您可以尝试使用 android-gpuimage-videorecording 库。它是 android 的 gpu-image 的一个分支,还提供视频录制功能
android-gpuimage-videorecording
查看 GPUImageMovieWriter 类
它应该为您指明在 GPUImage 之上开发自己的视频编写器的正确方向。
这个想法是:
在当前屏幕表面上绘制
切换到编码器输入表面并在其上再次绘制上一个帧缓冲区
切换回屏幕表面
其他有用的链接:EGL surface helper、Media encoder
【讨论】: