简体   繁体   English

使用GPUImage Android进行视频处理

[英]Video processing with GPUImage Android

I want to use GPUImage Android to process video in real time. 我想使用GPUImage Android实时处理视频。 I see example that creating pictures with different filters but I didnt find any example of recording video with filters. 我看到使用不同的滤镜创建图片的示例,但我没有找到任何使用滤镜录制视频的示例。 Is this possible with GPUImage Android? 这可能与GPUImage Android有关吗?

android-gpuimage library does not support video recording but you can try using the android-gpuimage-videorecording library. android-gpuimage库不支持视频录制,但您可以尝试使用android-gpuimage-videorecording库。 It is a fork of the gpu-image for android that provides also the video recording functionality 它是android的gpu-image的一个分支,它还提供视频录制功能

android-gpuimage-videorecording Android的gpuimage,录像

see the GPUImageMovieWriter class 请参阅GPUImageMovieWriter类

It should point you in the right direction for developing your own video writer on top of GPUImage. 它应该指出你在GPUImage上开发自己的视频编写器的正确方向。

The idea is to: 这个想法是:

  • draw on current screen surface 在当前屏幕表面上绘制
  • switch to encoder input surface and draw previous frame buffer again on it 切换到编码器输入表面并再次绘制前一帧缓冲区
  • switch back to screen surface 切换回屏幕表面

other useful links: EGL surface helper , Media encoder 其他有用的链接: EGL表面助手媒体编码器

GPUVideo-android GPUVideo,机器人

This library apply video filter on generate an Mp4 and on ExoPlayer video and Video Recording with Camera2. 此库应用视频过滤器生成Mp4和ExoPlayer视频以及使用Camera2进行视频录制。 Android MediaCodec API is used this library. Android MediaCodec API用于此库。

This library has many types of filters. 该库有许多类型的过滤器。 Filters link 过滤链接

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM