Gstreamer SDK Android Tutotrials with Android Studio

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Gstreamer SDK Android Tutotrials with Android Studio

de_ninja
Hey Guys,

I want to build an Android App with Anroid Studio that implements Gstreamer.

The SDK Android Tutorials only seem to work with Eclipse.
I want to use Android Studio 2.1 to build the app.
The problem is that the tutorials aren't built to work with 'Gradle'.
Do I have to make a new Gradle.build file or is there an easier way to implement Gstreamer in Android Stuido?
Maybe there are some Tutorials for Android Studio instead of Eclipse, but I didn't find one.
I have installed NDK in Android Studio by the way.

Thanks for any help!
Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer SDK Android Tutotrials with Android Studio

Chuck Crisler-3
I can give you some initial help. Here is the authoritative project reference -> https://github.com/sdroege/gst-player (Don't waste time on the SDK tutorials. They aren't connected with the GStreamer project - though they can help with some basic concepts.) This works with Android Studio. You will need to configure some properties in the app level build.gradle file, using the 'project.ext' extension. This allows app level custom extensions that can be imported at build time to your project. Google it - GIYF (google is your friend). The one thing that I haven't yet solved is specifying the target architecture, which is used to construct the GSTREAMER_ROOT (obviously pretty important). If you build GStreamer from cebero, then the default will work. Otherwise, you need to configure the architecture, which I haven't yet figured out. I think that an AS build will build everything for you, including the GStreamer native C libraries. You also need to download the GStreamer for Android files (on the GStreamer download page).

Chuck

On Wed, Jun 15, 2016 at 11:24 AM, de_ninja <[hidden email]> wrote:
Hey Guys,

I want to build an Android App with Anroid Studio that implements Gstreamer.

The SDK Android Tutorials only seem to work with Eclipse.
I want to use Android Studio 2.1 to build the app.
The problem is that the tutorials aren't built to work with 'Gradle'.
Do I have to make a new Gradle.build file or is there an easier way to
implement Gstreamer in Android Stuido?
Maybe there are some Tutorials for Android Studio instead of Eclipse, but I
didn't find one.
I have installed NDK in Android Studio by the way.

Thanks for any help!



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Gstreamer-SDK-Android-Tutotrials-with-Android-Studio-tp4678064.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer SDK Android Tutotrials with Android Studio

Sebastian Dröge-3
On Do, 2016-06-16 at 22:11 -0400, Chuck Crisler wrote:
> I can give you some initial help. Here is the authoritative project
> reference -> https://github.com/sdroege/gst-player 

I also have some other Android application here using gradle, in case
it helps:
https://github.com/sdroege/gst-launch-remote/tree/master/android-launch

--

Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (968 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer SDK Android Tutotrials with Android Studio

de_ninja
I tried to run this projekt: https://github.com/sdroege/gst-player with android studio. In android studio but the ndk-build fails. So I used the command line and looked for the error and it sais:

"Package gstreamer-player-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gstreamer-player-1.0.pc' "

I used "gstreamer-1.0-android-x86_64-1.8.2.tar.bz2" from this link: https://gstreamer.freedesktop.org/data/pkg/android/1.8.2/

But there isn't any "gstreamer-player-1.0.pc" file in the folder.
Which gstreamer-1.0 package do I have to use? Does someone have a link maybe?  
Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer SDK Android Tutotrials with Android Studio

Sebastian Dröge-3
On Mo, 2016-06-20 at 09:31 -0700, de_ninja wrote:

> I tried to run this projekt: https://github.com/sdroege/gst-player with
> android studio. In android studio but the ndk-build fails. So I used the
> command line and looked for the error and it sais:
>
> "Package gstreamer-player-1.0 was not found in the pkg-config search path.
> Perhaps you should add the directory containing `gstreamer-player-1.0.pc' "
>
> I used "gstreamer-1.0-android-x86_64-1.8.2.tar.bz2" from this link:
> https://gstreamer.freedesktop.org/data/pkg/android/1.8.2/
>
> But there isn't any "gstreamer-player-1.0.pc" file in the folder. 
> Which gstreamer-1.0 package do I have to use? Does someone have a
> link maybe?  
It's in lib/pkgconfig in those files. You need to make sure to
set gstAndroidRoot to the place where you extracted the tarball, inside
the gradle.properties file.

--

Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (968 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer SDK Android Tutotrials with Android Studio

Holger
I try to compile the gst-launch-remote project with Android Studio 2.2 but without success.

I downloaded gstreamer-1.0-android-armv7-1.8.3.tar.bz2 and extracted it to a folder. I also specified the folder in my
~/.gradle/gradle.properties file (gstAndroidRoot).
But now if I try to build the project I get many errors. As far as I can see it tries to compile the code for the aarch64-liunx-android-4.9 target, what results in errors like "incompatible target". Where can I specify the target, or how can I add different gstAndroidRoot paths for every target?

Regards,
Holger
Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer SDK Android Tutotrials with Android Studio

Holger
Ok, there is an easy solution I didn't know. I first did some tests with ndk.abiFilters....

Just add the variable APP_ABI to Application.mk and fill in the correct ABI
e.g.
APP_ABI := armeabi-v7a
Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer SDK Android Tutotrials with Android Studio

Sebastian Dröge-3
On Sun, 2016-10-02 at 08:32 -0700, Holger wrote:
> Ok, there is an easy solution I didn't know. I first did some tests
> with
> ndk.abiFilters.... 
>
> Just add the variable APP_ABI to Application.mk and fill in the
> correct ABI
> e.g. 
> APP_ABI := armeabi-v7a

If you use 1.9.2 or newer, you can also get the "universal" binaries
for Android, which contain everything needed for the 5 different
Android ABIs we support.

That's probably preferred in general, but requires also some minor
changes to the build system of the application, e.g.
  http://cgit.freedesktop.org/gstreamer/gst-examples/commit/?id=a5cdde9119f038a1eb365aca20faa9741a38e788

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (949 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer SDK Android Tutotrials with Android Studio

rrazavi
I'm trying to compile current gst-launch-remote master with gstreamer sdk 1.10.1 using Android studio 2.2.2,
After setting gradle properties to the gstreamer sdk path gradle will update successfully but when I try to compile it I'm getting this error :
Error:(42, 33) error: package org.freedesktop.gstreamer does not exist

from git commits I'm assuming
tasks.getByName('sourceSets').dependsOn 'externalNativeBuildDebug'
should bring gstreamer.java in but looks like it's not happening, any suggestion how to fix this issue ?
Thank you in advance
Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer SDK Android Tutotrials with Android Studio

Arun Raghavan-4
On Tue, 29 Nov 2016, at 04:00 AM, rrazavi wrote:

> I'm trying to compile current gst-launch-remote master with gstreamer sdk
> 1.10.1 using Android studio 2.2.2,
> After setting gradle properties to the gstreamer sdk path gradle will
> update
> successfully but when I try to compile it I'm getting this error :
> Error:(42, 33) error: package org.freedesktop.gstreamer does not exist
>
> from git commits I'm assuming
> tasks.getByName('sourceSets').dependsOn 'externalNativeBuildDebug'
> should bring gstreamer.java in but looks like it's not happening, any
> suggestion how to fix this issue ?

You need something like this:

  https://cgit.freedesktop.org/gstreamer/gst-examples/commit/?id=0ede8b3796ae35cf786fab0a02aea32ae438313a

-- Arun
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel