此库使用 OpenGL 着色器在运行时对视频应用效果
This is an Android library which can be used to apply different Filters/Effects on videos. It uses vertexShaders and fragmentShaders to apply effects on GLSurfaceView. It uses MediaPlayer instance for playing videos on GlSurfaceView. See the sample app in order to see a working demo.
1.1.0 - Added ability to save video once you apply a FILTER (not EFFECT), Updated Sample app with a detailed example, (Available on Jcenter)
1.1.1 - Updated Dependencies & Published the videffects to MavenCentral. All future versions from now onwards will be distributed via MavenCentral.The following list of effects are currently avaialble and can be applied using VidEffects
build.gradle file repositories {
mavenCentral()
}app/build.gradle filedependencies {
// Gradle path for VidEffects
implementation "com.github.krazykira:videffects:1.1.1"
}VideoSurfaceView either using java code or as xml in your layout file.VideoSurfaceView and call its init() method in your Activity or Fragment onCreate() supplying it with a MediaPlayer instance and a Video Effect. Also you would need to call VideoSurfaceView onResume() in your Activity or Fragment onResume() so that your video is rendered properly.…Effects on your videos.Sisik blog posts about converting video and audio files with MediaCodec and Muxer.
This blog post by Ashraff Hathibelagal for easing the process of learning Opengl and explaining how to apply effects on images.
GrepCode For providing me with Android source code which were helpful in writing video effects/filters.
MediaPlayerSurface by crossle It helped me in playing video using a GlsurfaceView.
Fadden who is the writer of grafika for pointing me towards right direction on how to apply effects on a video.
Intel INDE Media for Mobile Tutorials for the sample app and helping me getting familiar with how fragmentShaders work.
Umair Shafique for authoring How to apply permanent effect using FFmpeg wiki page
Want to contribute or add some new Effects? Great! Fork it and send me a pull request or contact me on the email below, if you want to become a permanant contributor.
Copyright 2022 Sheraz Ahmed Khilji
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.暂无开放 Issues,或尚未同步最近议题。