Last updated:
0 purchases
gpu video flutter kz
GPU Video Flutter #
GPU Video Flutter in Android
Base on source GPU Video Flutter : https://github.com/MasayukiSuda/GPUVideo-android
We create a Plugin for Flutter Developer who want to apply filter in their own images, videos but can not find any library for it
About #
What is it, what does it do
Customize filter in your own video
Record videos, take images with many filters
Work with flash, camera back of front, ...
Support landscape or portrait or square camera type
Project status: working/prototype
Done 3/3 Function
Next Clean and Re-Arrange Code
Table of contents #
Use for instance https://github.com/ekalinin/github-markdown-toc:
About
Table of contents
Installation
Usage
Features
Content
Requirements
Resources (Documentation and other links)
License
Installation #
Add this library into your pubspec.yaml file:
gpu_video_flutter_kz: ^0.0.4
copied to clipboard
Open Project Android in new screen
Change your minSDKVersion to 21
defaultConfig {
minSdkVersion 21
}
copied to clipboard
Add to your build.gradle (Project:android)
maven {
url 'https://jitpack.io'
}
copied to clipboard
Usage #
Movie Preview
GPUMoviePreview(
videoUrl:
"https://test-videos.co.uk/vids/bigbuckbunny/mp4/h264/360/Big_Buck_Bunny_360_10s_1MB.mp4",
)
copied to clipboard
To use Filter for this video you can use:
GpuVideoFlutterKz.filterVideo(FilterType.BILATERAL_BLUR);
copied to clipboard
Set Filter's Percentage:
GpuVideoFlutterKz.setFilterPercentage(int percent);
copied to clipboard
Camera Recorder
Init
GPUCameraRecord(
cameraViewType: CameraViewType.square),
)
copied to clipboard
You can change type of camera to portrait or landscape otherwise.
To add filter for your preview camera, just use:
GpuVideoFlutterKz.filterCameraRecorder(filterType);
copied to clipboard
To start record:
GpuVideoFlutterKz.recordCameraVideo();
copied to clipboard
To end record:
String videoPath = GpuVideoFlutterKz.stopRecordCameraVideo();
// Return of stop record video is video's path
copied to clipboard
To switch between front and back camera:
GpuVideoFlutterKz.switchCamera();
copied to clipboard
To turn on or off flash:
GpuVideoFlutterKz.turnOnOffFlash();
copied to clipboard
To capture an image:
String imagePath = GpuVideoFlutterKz.captureImage();
//Return of this function is image's path
copied to clipboard
Mp4 Compose
Get All Video In Gallery:
List<VideoItem> videos = await GpuVideoFlutterKz.getListVideo();
// return list of VideoItem (which is in my lib)
copied to clipboard
Start CodeC:
GpuVideoFlutterKz.startCodec(isMute, isFlipHorizontal,
isFlipVertical, videoSelectedPath, filterType);
// Apply 5 properties to your video and save the new video into your gallery
copied to clipboard
Screenshots #
Features #
Content #
Description, sub-modules organization...
Requirements #
Require Android Min SDK 21
Resources (Documentation and other links) #
https://github.com/MasayukiSuda/GPUVideo-android
https://developer.android.com/guide/topics/media/exoplayer
https://developer.android.com/kotlin/coroutines
https://github.com/google/gson
License #
Apache License, Version 2.0
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.