Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Video processing with GPUImage Android

I want to use GPUImage Android to process video in real time. 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?

like image 580
Sayaki Avatar asked Sep 05 '14 14:09

Sayaki


2 Answers

android-gpuimage library does not support video recording but you can try using the android-gpuimage-videorecording library. It is a fork of the gpu-image for android that provides also the video recording functionality

android-gpuimage-videorecording

see the GPUImageMovieWriter class

It should point you in the right direction for developing your own video writer on top of 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

like image 99
cristallo Avatar answered Nov 13 '22 10:11

cristallo


GPUVideo-android

This library apply video filter on generate an Mp4 and on ExoPlayer video and Video Recording with Camera2. Android MediaCodec API is used this library.

This library has many types of filters. Filters link

like image 44
Masayuki Suda Avatar answered Nov 13 '22 11:11

Masayuki Suda