diff --git a/.gitignore b/.gitignore index e5895a4..53544f2 100644 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,7 @@ ### JetBrains template # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 - +**/.DS_Store # User-specific stuff: .idea/workspace.xml .idea/tasks.xml diff --git a/README.md b/README.md index 28a1283..0f1e690 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,12 @@ [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-VidEffects-green.svg?style=true)](https://android-arsenal.com/details/1/4029) 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. +![Img](https://github.com/krazykira/VidEffects/blob/master/videffects/screenshot/library_demo.gif) +### Change Log +``` +1.1.0 - Now using this library, you can also save video once you apply a Filter (not EFFECT), Updated Sample app, +``` ## Supported Effects The following list of effects are currently avaialble and can be applied using VidEffects @@ -30,12 +35,13 @@ The following list of effects are currently avaialble and can be applied using V - ## Limitations +- The effects applied using this library are temporary. What that means is that the original video doesn't change. Effects are only applied during video playback and once the video ends the effects end with it. +- Minimum Supported Android version is 21 (Lollipop) +- Saving video available only for Filters and requires Android 23 min api version.For more information check the file [VideoController](https://github.com/krazykira/VidEffects/blob/master/app/src/main/java/com/videffects/sample/controller/VideoController.kt). +- Other ways to save video once effect/filter is applied [FFmpeg](https://ffmpeg.org/) to apply effects on videos. Details about how to do that can be seen on this [wiki page](https://github.com/krazykira/VidEffects/wiki/Permanent-video-effects) +- Some emulators have problems during video playback so try on real device when that happens e.g: Android Lollipop emulators don't show video. -The effects applied using this library are temporary. What that means is that the orignal video doesn't change. Effects are only applied during video playback and once the video ends the effects end with it. In the future, i am aiming to apply permanant effect to videos. You guys are welcome to help out using PRs. -
For now, if you are really desperate and want to apply effects then you can use [FFmpeg](https://ffmpeg.org/) to apply effects on videos. Details about how to do that can be seen on this [wiki page](https://github.com/krazykira/VidEffects/wiki/Permanent-video-effects) -Saving video available only for Filters and requires Android 23 min api version. ## How to use it - Add the following code to your project's `build.gradle` file @@ -50,7 +56,7 @@ Saving video available only for Filters and requires Android 23 min api version. ```sh dependencies { // Gradle path for VidEffects - compile 'com.sherazkhilji.videffects:videffects:1.0.2' + implementation "com.sherazkhilji.videffects:videffects:1.1.0" } ``` @@ -105,7 +111,8 @@ dependencies { ``` -- Incase of any confusion, checkout the [SamplePlayerActivity](https://github.com/krazykira/VidEffects/blob/master/app/src/main/java/com/videffects/sample/SamplePlayerActivity.java) for a complete example on how to apply different `Effects` on your videos. +- Incase of any confusion, check the file [SamplePlayerActivity](https://github.com/krazykira/VidEffects/blob/master/app/src/main/java/com/videffects/sample/view/SamplePlayerActivity.java) for a complete example on how to apply different `Effects` on your videos. +- For Advance implementation and saving Filters, check the file [VideoActivity](https://github.com/krazykira/VidEffects/blob/master/app/src/main/java/com/videffects/sample/view/VideoActivity.kt) ## See it in working @@ -141,13 +148,13 @@ Want to contribute or add some new Effects? Great! Fork it and send me a pull re Developed by ============ -* Sheraz Ahmad Khilji - +* Sheraz Ahmed Khilji - License ======= - Copyright 2016 Sheraz Ahmad Khilji + Copyright 2020 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. diff --git a/app/.DS_Store b/app/.DS_Store deleted file mode 100644 index ff2448a..0000000 Binary files a/app/.DS_Store and /dev/null differ diff --git a/app/build.gradle b/app/build.gradle index 0be1c30..2abef9b 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -26,6 +26,7 @@ android { dependencies { implementation project(":videffects") +// implementation "com.sherazkhilji.videffects:videffects:1.1.0" implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" implementation 'androidx.core:core-ktx:1.2.0' implementation 'com.google.android.material:material:1.1.0' diff --git a/app/src/.DS_Store b/app/src/.DS_Store deleted file mode 100644 index 56c523e..0000000 Binary files a/app/src/.DS_Store and /dev/null differ diff --git a/app/src/main/.DS_Store b/app/src/main/.DS_Store deleted file mode 100644 index fa50e05..0000000 Binary files a/app/src/main/.DS_Store and /dev/null differ diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 6e289bc..9325b16 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -21,12 +21,7 @@ android:name="com.videffects.sample.view.SamplePlayerActivity" android:configChanges="orientation|screenSize|smallestScreenSize|keyboard|keyboardHidden|navigation" android:label="@string/app_name" - android:screenOrientation="landscape"> - - - - - + android:screenOrientation="landscape" /> () { diff --git a/app/src/main/res/layout/activity_gallery.xml b/app/src/main/res/layout/activity_gallery.xml new file mode 100644 index 0000000..441a04f --- /dev/null +++ b/app/src/main/res/layout/activity_gallery.xml @@ -0,0 +1,20 @@ + + + + + +