All Projects → MasayukiSuda → Camerarecorder Android

MasayukiSuda / Camerarecorder Android

Licence: mit
Video Recording with Camera2 and apply video filter.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Camerarecorder Android

deffx
A collection of useful shader effects made ready to be used with the Defold game engine
Stars: ✭ 33 (-84.65%)
Mutual labels:  glsl-shaders
Shader Toy
Shadertoy-like live preview for GLSL shaders in Visual Studio Code
Stars: ✭ 349 (+62.33%)
Mutual labels:  glsl-shaders
Exoplayerfilter
This library uses OpenGL Shaders to apply effects on ExoPlayer video at Runtime
Stars: ✭ 738 (+243.26%)
Mutual labels:  glsl-shaders
YALCT
Yet Another Live Coding Tool - Powered by Veldrid and elbow grease
Stars: ✭ 25 (-88.37%)
Mutual labels:  glsl-shaders
Vuh
Vulkan compute for people
Stars: ✭ 264 (+22.79%)
Mutual labels:  glsl-shaders
Gpuvideo Android
This library apply video filter on generate an Mp4 and on ExoPlayer video and Video Recording with Camera2.
Stars: ✭ 403 (+87.44%)
Mutual labels:  glsl-shaders
kotlin-glsl
Write your GLSL shaders in Kotlin.
Stars: ✭ 30 (-86.05%)
Mutual labels:  glsl-shaders
Radiance
Radiance is video art software for VJs. It supports beat detection, animated GIFs, YouTube video, OpenGL shader effects. It is designed for live performance and runs on Linux and MacOS.
Stars: ✭ 109 (-49.3%)
Mutual labels:  glsl-shaders
Webgl Fundamentals
WebGL lessons that start with the basics
Stars: ✭ 3,315 (+1441.86%)
Mutual labels:  glsl-shaders
Pixi Filters
Collection of community-authored custom display filters for PixiJS
Stars: ✭ 524 (+143.72%)
Mutual labels:  glsl-shaders
OptimisedCentresOfRotationSkinning
Library to Compute Centres of Rotation for Optimised Centres of Rotation Skinning by Le and Hodgins 2016 "Real-time Skeletal Skinning with Optimized Centers of Rotation"
Stars: ✭ 28 (-86.98%)
Mutual labels:  glsl-shaders
Blotter
A JavaScript API for drawing unconventional text effects on the web.
Stars: ✭ 2,833 (+1217.67%)
Mutual labels:  glsl-shaders
Urweatherview
Show the weather effects onto view written in Swift4.2
Stars: ✭ 439 (+104.19%)
Mutual labels:  glsl-shaders
30-days-of-shade
30 days of shaders in GLSL using GLSLCanvas
Stars: ✭ 134 (-37.67%)
Mutual labels:  glsl-shaders
Simplepbr
A Processing library providing physically based rendering and materials
Stars: ✭ 39 (-81.86%)
Mutual labels:  glsl-shaders
ShaderView
ShaderView is an Android View that makes it easy to use GLSL shaders for your app. It's the modern way to use shaders for Android instead of RenderScript.
Stars: ✭ 53 (-75.35%)
Mutual labels:  glsl-shaders
Thebookofshaders
Step-by-step guide through the abstract and complex universe of Fragment Shaders.
Stars: ✭ 4,070 (+1793.02%)
Mutual labels:  glsl-shaders
React Regl
React Fiber Reconciler Renderer for Regl WebGL
Stars: ✭ 171 (-20.47%)
Mutual labels:  glsl-shaders
3d Game Shaders For Beginners
🎮 A step-by-step guide to implementing SSAO, depth of field, lighting, normal mapping, and more for your 3D game.
Stars: ✭ 11,698 (+5340.93%)
Mutual labels:  glsl-shaders
Shaderkit
A library of fragment shaders you can use in any SpriteKit project.
Stars: ✭ 488 (+126.98%)
Mutual labels:  glsl-shaders

Platform API


Video Recording with Camera2 and apply video filter.

Gradle

Step 1. Add the JitPack repository to your build file

allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}

Step 2. Add the dependency

dependencies {
	 implementation 'com.github.MasayukiSuda:CameraRecorder-android:v0.1.5'
}

Usage

SetUp on onResume method.

  sampleGLView = new GLSurfaceView(getApplicationContext());
  FrameLayout frameLayout = findViewById(R.id.wrap_view);
  frameLayout.addView(sampleGLView);
  
  cameraRecorder = new CameraRecorderBuilder(activity, sampleGLView)
    .lensFacing(LensFacing.BACK)
    .build();

Release on onPause method.

  sampleGLView.onPause();      

  cameraRecorder.stop();
  cameraRecorder.release();
  cameraRecorder = null;

  ((FrameLayout) findViewById(R.id.wrap_view)).removeView(sampleGLView);
  sampleGLView = null;

Start and Stop Video record.

  // record start.
  cameraRecorder.start(filepath);
  // record stop.
  cameraRecorder.stop();

This filter is OpenGL Shaders to apply effects on camera preview. Custom filters can be created by inheriting GlFilter.java. , default GlFilter(No filter). Filters is here.

  cameraRecorder.setFilter(GlFilter);

Other methods.

  // if flash enable, turn on or off camera flash. 
  cameraRecorder.switchFlashMode();
  // autofocus change.
  cameraRecorder.changeAutoFocus();
  // set focus point at manual.
  cameraRecorder.changeManualFocusPoint(float eventX, float eventY, int viewWidth, int viewHeight); 
  // scale camera preview
  cameraRecorder.setGestureScale(float scale);

Builder Method

method description
cameraRecordListener onGetFlashSupport, onRecordComplete, onError, and onCameraThreadFinish. Detail is here.
filter This filter is OpenGL Shaders to apply effects on camera preview. Custom filters can be created by inheriting GlFilter.java. , default GlFilter(No filter). Filters is here.
videoSize Resolution of the movie, default width=720, height=1280.
cameraSize Preview size.
lensFacing Select back or front camera. Default LensFacing.FRONT.
flipHorizontal Flip Horizontal on recorded video. Default flipHorizontal = false.
flipVertical Flip Vertical on recorded video. Default flipVertical = false.
mute Mute audio track on recorded video. Default mute = false.
recordNoFilter No Filter on recorded video although preview apply a filter. Default recordNoFilter = false.

References And Special Thanks to

License

MIT License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].