<div dir="ltr">Thank you *VERY MUCH* for the help. I suspected that the SDK was old. It would be helpful if there was a note added to the (real) GStreamer website to that effect.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 20, 2015 at 4:54 AM, Sérgio Agostinho <span dir="ltr"><<a href="mailto:sergio.r.agostinho@gmail.com" target="_blank">sergio.r.agostinho@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi Chuck, </div><div><br></div><div>This might also be useful. I remember I struggled for a while to properly build Gstreamer with Android Studio. Place your Android.mk and Application.mk inside src/main/jni</div><div>Add these snippets to your local.properties file</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><font face="monospace, monospace">android{</font><font face="monospace, monospace"><br></font><font face="monospace, monospace"> //otherstuff</font><font face="monospace, monospace"><br></font><font face="monospace, monospace"> sourceSets.main {<br></font><font face="monospace, monospace"> jniLibs.srcDir 'src/main/libs'<br></font><font face="monospace, monospace"> jni.srcDirs = [];<br></font><font face="monospace, monospace"> }</font><font face="monospace, monospace"><br></font><font face="monospace, monospace"> tasks.withType(JavaCompile) {<br></font><font face="monospace, monospace"> compileTask -> compileTask.dependsOn ndkBuild<br></font><font face="monospace, monospace"> }</font><font face="monospace, monospace"><br></font><font face="monospace, monospace"> task('ndkBuild', type: Exec) {<br></font><font face="monospace, monospace"> // normal building tool<br></font><font face="monospace, monospace"> commandLine 'ndk-build', 'clean'<br></font><font face="monospace, monospace"> commandLine 'ndk-build', 'APP_PLATFORM=<i><replace with target version e.g. android-19></i>', '-C', file('src/main').absolutePath<br></font><font face="monospace, monospace"> }<br></font><font face="monospace, monospace">}</font></blockquote><div><br></div><div>This ensures your ndk code will always be compiled before your java code, and that the Gstreamer.java will be already in your src folder. </div><div><br></div><div>Cheers</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">2015-03-20 9:41 GMT+01:00 Sebastian Dröge <span dir="ltr"><<a href="mailto:sebastian@centricular.com" target="_blank">sebastian@centricular.com</a>></span>:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><span>On Do, 2015-03-19 at 22:30 -0400, Chuck Crisler wrote:<br>
> I am trying to learn Java and Android development at the same time.<br>
> Fortunately, I know GStreamer fairly well. I have the Android Studio, the<br>
> SDK and the NDK installed on my Linux system and have downloaded the<br>
> GStreamer 1.4.5 ARM v7 binaries. I have also downloaded the GStreamer SDK<br>
> and have been looking at ~slomo/gst-sdk-tutorials. I am confused and can't<br>
> seem to 'put it all together'. I have read and built and executed (on my<br>
> Android phone) some of the pure Android samples, including JNI samples. I<br>
> feel that I could convert a GStreamer Android SDK based tutorial to the<br>
> Android Studio structure.<br>
><br>
> Here are the questions that I immediately don't understand.<br>
> 1. Do I need both the 1.4.5 binaries and the GStreamer SDK?<br>
<br>
</span>The GStreamer 1.4.5 binaries contain everything that the "GStreamer SDK"<br>
contains, just 3 years newer.<br>
<span><br>
> 2. Do I need to build anything to get started working with the GStreamer<br>
> tutorials?<br>
<br>
</span>You just need to extract the binaries to some please and then set<br>
GSTREAMER_ROOT_ANDROID in the environment to that place. Then you can<br>
just build them like any other Android project.<br>
<span><br>
> 3. Tutorial #1 imports package org.freedesktop.gstreamer.GStreamer, which I<br>
> don't think that I have. How should I build it, or where is it?<br>
<br>
</span>That's autogenerated by ndk-build.<br>
<span><br>
> 4. Which tutorials are more current, ~slomo or the GStreamer SDK?<br>
<br>
</span>See above :)<br>
<span><br>
> 5. Is it possible to run something like the command line gst-launch<br>
> application on Android to test pipelines and installations?<br>
<br>
</span>Yes but command line applications don't have access to the hardware<br>
codecs and other things, and you need a rooted device.<br>
<br>
See<br>
<a href="https://coaxion.net/blog/2014/10/gstreamer-remote-controlled-testing-application-for-android-ios-and-more/" target="_blank">https://coaxion.net/blog/2014/10/gstreamer-remote-controlled-testing-application-for-android-ios-and-more/</a><br>
for some gst-launch style application for Android/iOS.<br>
<br>
Also see<br>
<a href="https://github.com/sdroege/gst-player" target="_blank">https://github.com/sdroege/gst-player</a><br>
for some (hopefully) cleaner code (than the tutorials) for how to do<br>
GStreamer Android development by properly splitting the backend (C) and<br>
the frontend (Java).<br>
<span><font color="#888888"><br>
--<br>
Sebastian Dröge, Centricular Ltd · <a href="http://www.centricular.com" target="_blank">http://www.centricular.com</a><br>
</font></span><br></div></div>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><span style="color:rgb(102,102,102);font-family:verdana,sans-serif">___________________________________________________</span><br></div><div><span style="color:rgb(68,68,68);font-weight:bold;font-family:arial,helvetica,sans-serif">Name</span><br></div><div><font face="arial, helvetica, sans-serif"><span style="color:rgb(102,102,102)"><i>Chuck Crisler</i></span><br style="color:rgb(102,102,102)"></font></div><div dir="ltr"><font face="arial, helvetica, sans-serif"><br style="color:rgb(102,102,102)"><span style="color:rgb(102,102,102);font-weight:bold">Mutualink, Inc.</span><br style="color:rgb(102,102,102)"></font></div><div><font face="arial, helvetica, sans-serif"><span style="color:rgb(102,102,102)">3 Lan Dr.</span><br style="color:rgb(102,102,102)"></font></div><div dir="ltr"><font face="arial, helvetica, sans-serif"><span style="color:rgb(102,102,102)">Westford, MA 01886</span><br style="color:rgb(102,102,102)"><br style="color:rgb(102,102,102)"><span style="color:rgb(102,102,102)">Direct: <a href="tel:%28866%29%20957-5465" value="+18669575465" target="_blank">(978) 490-3006</a> Ext: 118<br></span></font></div><div dir="ltr"><span style="color:black"><font face="arial, helvetica, sans-serif"><span style="color:rgb(102,102,102)"><br></span></font></span></div><div dir="ltr"><span style="color:black"><font face="arial, helvetica, sans-serif"><span style="color:rgb(102,102,102)"></span></font></span><span style="color:rgb(102,102,102);font-family:arial,helvetica,sans-serif"></span></div><font face="arial, helvetica, sans-serif"><font color="#666666">E-Mail: </font><font color="#3d85c6"><a href="mailto:employeer@mutualink.net" target="_blank">ccrisler@mutualink.net</a> </font><br style="color:rgb(102,102,102)"><br style="color:rgb(102,102,102)"><span style="color:rgb(102,102,102)">Web: </span><a href="http://www.mutualink.net/" target="_blank"><font color="#3d85c6">www.mutualink.net</font></a><br style="color:rgb(102,102,102)"><br><img src="https://www.google.com/a/mutualink.net/images/logo.gif?service=writely" border="0"><br><div dir="ltr" style="color:black"><font style="color:rgb(102,102,102)" size="1">The information in this email, and subsequent attachments, may contain confidential information that is </font></div><div dir="ltr" style="color:black"><font style="color:rgb(102,102,102)" size="1">intended solely for the attention and use of the named addressee(s). This message or any part thereof </font></div><div dir="ltr" style="color:black"><font style="color:rgb(102,102,102)" size="1">must not be disclosed, copied, distributed or retained by any person without authorization from the addressee.</font></div></font></div></div></div></div></div></div>
</div>