Maintenance Notice: As of May 2025, this repository (https://github.com/gstreamer101/gst-android-camera) will be actively maintained as the official fork of the original gst-android-camera project. We will provide regular updates, bug fixes, and support for modern Android versions. All future development and improvements for GStreamer Android camera integration will happen here.
If you're using the previous repository, we recommend updating your references to this one. Feel free to open issues or contribute via pull requests to help improve this project.
- Gstreamer SDK for Android (>=1.7.1)
- Android Studio (>=2.3.3)
- Android NDK (>=r15b)
- Gradle (>=2.3.3)
- Set GSTREAMER_ROOT_ANDROID evironment varible
$ export GSTREAMER_ROOT_ANDROID=/path/to/gstreamer/sdk
-
Create
local.properties
and addsdk.dir
andndk.dir
properties -
Build with gradle
$ gradle build
- Install with gradle
$ gradle installDebug
-
ahcsrc element is a child element of GstPushSrc so it cannot be compatible with camerabin2 as it is.
-
No properties to set camera options like resolution, video formats. Each option can be set by caps filter. The options of real camera may vary on different android devices, so supported options should be analyzed on android application side.