Hi ,<br><br>Thanks for the updates.<br><br>I really tried to build the gstreamer on ICS version and I couldn't get the build success for the ICS version.<br><br>Iused this link for building the gstreamer<br><br><a href="http://gstreamer.freedesktop.org/wiki/GstreamerAndroid_InstallInstructions">http://gstreamer.freedesktop.org/wiki/GstreamerAndroid_InstallInstructions</a><br>
<br><pre><a href="http://cgit.collabora.com/git/android/gstreamer_ndk_bundle.git/">http://cgit.collabora.com/git/android/gstreamer_ndk_bundle.git/</a><br><br>Is any one having the success for the gstreamer in ICS?<br><br>
Thanks & Regards<br>Anees<br></pre><br><br><div class="gmail_quote">On Fri, Aug 3, 2012 at 9:58 PM, <span dir="ltr"><<a href="mailto:gstreamer-android-request@lists.freedesktop.org" target="_blank">gstreamer-android-request@lists.freedesktop.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send gstreamer-android mailing list submissions to<br>
<a href="mailto:gstreamer-android@lists.freedesktop.org">gstreamer-android@lists.freedesktop.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-android" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-android</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:gstreamer-android-request@lists.freedesktop.org">gstreamer-android-request@lists.freedesktop.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:gstreamer-android-owner@lists.freedesktop.org">gstreamer-android-owner@lists.freedesktop.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of gstreamer-android digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: gstreamer-android Digest, Vol 14, Issue 1 (Stefan Sauer)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Fri, 03 Aug 2012 18:21:52 +0200<br>
From: Stefan Sauer <<a href="mailto:ensonic@hora-obscura.de">ensonic@hora-obscura.de</a>><br>
To: <a href="mailto:gstreamer-android@lists.freedesktop.org">gstreamer-android@lists.freedesktop.org</a><br>
Subject: Re: gstreamer-android Digest, Vol 14, Issue 1<br>
Message-ID: <<a href="mailto:501BFAA0.5060408@hora-obscura.de">501BFAA0.5060408@hora-obscura.de</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
On 08/03/2012 10:53 AM, Anees Alappat wrote:<br>
> Hi,<br>
><br>
> I tried to play mpeg/mp4 files as an Application using eclipse<br>
> environment by loading some of the libraries from Gstreamer. The main<br>
> limitation is that it requires both audio sink(audioflinger.so) and<br>
> video sink(surfaceflinger.so) to play the files and display it on the<br>
> screen, When we tested it on the phone. we are able to hear mp4 audio<br>
> perfectly but video is not displayed on screen. This is due to a<br>
> permission error on video sink - surfaceflingersink.<br>
> 08-01 16:11:31.335: W/ServiceManager(1542): Permission failure:<br>
> android.permission.ACCESS_SURFACE_FLINGER from uid=10076 pid=15466<br>
> 08-01 16:11:31.335: E/SurfaceFlinger(1542): Permission Denial: can't<br>
> access SurfaceFlinger pid=15466, uid=10076<br>
><br>
surfaceflinger can only be used when bilding a system image. In the ndk<br>
version, one cannot easily access surfaceflinger (in gingerbread). Not<br>
sure if this has been relaxed in newer versions.<br>
<br>
Stefan<br>
<br>
> How to resolve this permission error?<br>
><br>
> Regards<br>
> Anees<br>
><br>
> On Tue, Jul 3, 2012 at 7:23 PM, Anees Alappat <<a href="mailto:aneesalappatt@gmail.com">aneesalappatt@gmail.com</a><br>
> <mailto:<a href="mailto:aneesalappatt@gmail.com">aneesalappatt@gmail.com</a>>> wrote:<br>
><br>
> Thanks for your help.<br>
><br>
> We tried to write a script and used setenv to set the PATH for<br>
> environment variable but it is not working.<br>
> We tried to call setenv inside gst-launch.c and also inside the<br>
> script file to set the PATH for the environment variables but it<br>
> did not work.<br>
> From the JNI layer from the native code from we tried to call the<br>
> main function of the gst-launch.c passing the command line<br>
> arguments for gst-launch command as string variables. Before<br>
> calling the main function we have set all the environment<br>
> variables using setenv.But still this option also didn't work.<br>
><br>
> This is the code snippet for the caling the gst-launc main<br>
> function inside JNI layer<br>
><br>
> JNIEXPORT void JNICALL Java_uk_co_videokit_gstreamer_<br>
><br>
> Gstreamer_run(JNIEnv *env, jobject obj, jobjectArray args)<br>
> {<br>
> LOGD("run() called");<br>
> int i = 0;<br>
> int argc = 0;<br>
> char **argv = NULL;<br>
> setenv ("GST_REGISTRY",<br>
> "/data/data/videokit.gstream/cache/registry.bin", 1);<br>
> setenv ("GST_PLUGIN_PATH",<br>
> "/data/data/videokit.gstream/lib", 1);<br>
> setenv ("LD_LIBRARY_PATH",<br>
> "/data/data/videokit.gstream/lib",1);<br>
> setenv ("PATH", "/data/data/videokit.gstream/bin",1);<br>
> setenv<br>
> ("GST_PLUGIN_SCANNER","/data/data/videokit.gstream/bin/gst-plugin-scanner",1);<br>
> setenv<br>
> ("GST_OMX_CONFIG_DIR","/data/data/videokit.gstream/conf",1);<br>
><br>
> if (args != NULL) {<br>
> argc = (*env)->GetArrayLength(env, args);<br>
> argv = (char **) malloc(sizeof(char *) * argc);<br>
><br>
> for(i=0;i<argc;i++)<br>
> {<br>
> jstring str =<br>
> (jstring)(*env)->GetObjectArrayElement(env, args, i);<br>
> argv[i] = (char<br>
> *)(*env)->GetStringUTFChars(env, str, NULL);<br>
> }<br>
> }<br>
><br>
> LOGD("run passing off to main()");<br>
> main(argc,argv);<br>
> }<br>
><br>
><br>
><br>
> Regards<br>
> Anees<br>
><br>
><br>
><br>
> On Tue, Jul 3, 2012 at 7:13 PM, Anees Alappat<br>
> <<a href="mailto:aneesalappatt@gmail.com">aneesalappatt@gmail.com</a> <mailto:<a href="mailto:aneesalappatt@gmail.com">aneesalappatt@gmail.com</a>>> wrote:<br>
><br>
> Thanks for your help.<br>
><br>
> We tried to write a script and used setenv to set the PATH<br>
> for environment variable but it is not working.<br>
> We tried to call setenv inside gst-launch.c and also inside<br>
> the script file to set the PATH for the environment variables<br>
> but it did not work.<br>
> From the JNI layer from the native code from we tried to call<br>
> the main function of the gst-launch.c passing the command line<br>
> arguments for gst-launch command as string variables. Before<br>
> calling the main function we have set all the environment<br>
> variables using setenv.But still this option also didn't work.<br>
><br>
> This is the code snippet for the caling the gst-launc main<br>
> function inside JNI layer<br>
><br>
> JNIEXPORT void JNICALL<br>
> Java_uk_co_videokit_gstreamer_Gstreamer_run(JNIEnv *env,<br>
> jobject obj, jobjectArray args)<br>
> {<br>
> LOGD("run() called");<br>
> int i = 0;<br>
> int argc = 0;<br>
> char **argv = NULL;<br>
> setenv ("GST_REGISTRY",<br>
> "/data/data/videokit.gstream/cache/registry.bin", 1);<br>
> setenv ("GST_PLUGIN_PATH",<br>
> "/data/data/videokit.gstream/lib", 1);<br>
> setenv ("LD_LIBRARY_PATH",<br>
> "/data/data/videokit.gstream/lib",1);<br>
> setenv ("PATH", "/data/data/videokit.gstream/bin",1);<br>
> setenv<br>
> ("GST_PLUGIN_SCANNER","/data/data/videokit.gstream/bin/gst-plugin-scanner",1);<br>
> setenv<br>
> ("GST_OMX_CONFIG_DIR","/data/data/videokit.gstream/conf",1);<br>
><br>
> if (args != NULL) {<br>
> argc = (*env)->GetArrayLength(env, args);<br>
> argv = (char **) malloc(sizeof(char *) * argc);<br>
><br>
> for(i=0;i<argc;i++)<br>
> {<br>
> jstring str =<br>
> (jstring)(*env)->GetObjectArrayElement(env, args, i);<br>
> argv[i] = (char<br>
> *)(*env)->GetStringUTFChars(env, str, NULL);<br>
> }<br>
> }<br>
><br>
> LOGD("run passing off to main()");<br>
> main(argc,argv);<br>
> }<br>
><br>
><br>
><br>
> Regards<br>
> Anees<br>
><br>
><br>
> On Tue, Jul 3, 2012 at 10:11 AM, Anees Alappat<br>
> <<a href="mailto:aneesalappatt@gmail.com">aneesalappatt@gmail.com</a> <mailto:<a href="mailto:aneesalappatt@gmail.com">aneesalappatt@gmail.com</a>>> wrote:<br>
><br>
><br>
><br>
> ---------- Forwarded message ----------<br>
> From: <<a href="mailto:gstreamer-android-request@lists.freedesktop.org">gstreamer-android-request@lists.freedesktop.org</a><br>
> <mailto:<a href="mailto:gstreamer-android-request@lists.freedesktop.org">gstreamer-android-request@lists.freedesktop.org</a>>><br>
> Date: Tue, Jul 3, 2012 at 12:30 AM<br>
> Subject: gstreamer-android Digest, Vol 14, Issue 1<br>
> To: <a href="mailto:gstreamer-android@lists.freedesktop.org">gstreamer-android@lists.freedesktop.org</a><br>
> <mailto:<a href="mailto:gstreamer-android@lists.freedesktop.org">gstreamer-android@lists.freedesktop.org</a>><br>
><br>
><br>
> Send gstreamer-android mailing list submissions to<br>
> <a href="mailto:gstreamer-android@lists.freedesktop.org">gstreamer-android@lists.freedesktop.org</a><br>
> <mailto:<a href="mailto:gstreamer-android@lists.freedesktop.org">gstreamer-android@lists.freedesktop.org</a>><br>
><br>
> To subscribe or unsubscribe via the World Wide Web, visit<br>
><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-android" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-android</a><br>
> or, via email, send a message with subject or body 'help' to<br>
> <a href="mailto:gstreamer-android-request@lists.freedesktop.org">gstreamer-android-request@lists.freedesktop.org</a><br>
> <mailto:<a href="mailto:gstreamer-android-request@lists.freedesktop.org">gstreamer-android-request@lists.freedesktop.org</a>><br>
><br>
> You can reach the person managing the list at<br>
> <a href="mailto:gstreamer-android-owner@lists.freedesktop.org">gstreamer-android-owner@lists.freedesktop.org</a><br>
> <mailto:<a href="mailto:gstreamer-android-owner@lists.freedesktop.org">gstreamer-android-owner@lists.freedesktop.org</a>><br>
><br>
> When replying, please edit your Subject line so it is more<br>
> specific<br>
> than "Re: Contents of gstreamer-android digest..."<br>
><br>
><br>
> Today's Topics:<br>
><br>
> 1. gstreamer running on Android app? (Anees Alappat)<br>
> 2. Re: gstreamer running on Android app? (Enrique Oca?a<br>
> Gonz?lez)<br>
><br>
><br>
> ----------------------------------------------------------------------<br>
><br>
> Message: 1<br>
> Date: Mon, 2 Jul 2012 17:42:15 +0530<br>
> From: Anees Alappat <<a href="mailto:aneesalappatt@gmail.com">aneesalappatt@gmail.com</a><br>
> <mailto:<a href="mailto:aneesalappatt@gmail.com">aneesalappatt@gmail.com</a>>><br>
> To: <a href="mailto:gstreamer-android@lists.freedesktop.org">gstreamer-android@lists.freedesktop.org</a><br>
> <mailto:<a href="mailto:gstreamer-android@lists.freedesktop.org">gstreamer-android@lists.freedesktop.org</a>><br>
> Subject: gstreamer running on Android app?<br>
> Message-ID:<br>
><br>
> <<a href="mailto:CAJYLsdkBszkZzyCPuWuQtO0GMtG4oQGj8u%2BGggOh3gpuVz_gig@mail.gmail.com">CAJYLsdkBszkZzyCPuWuQtO0GMtG4oQGj8u+GggOh3gpuVz_gig@mail.gmail.com</a><br>
> <mailto:<a href="mailto:CAJYLsdkBszkZzyCPuWuQtO0GMtG4oQGj8u%252BGggOh3gpuVz_gig@mail.gmail.com">CAJYLsdkBszkZzyCPuWuQtO0GMtG4oQGj8u%2BGggOh3gpuVz_gig@mail.gmail.com</a>>><br>
> Content-Type: text/plain; charset="iso-8859-1"<br>
><br>
> Hi,<br>
> We could succesfully port Gstreamer framework to Android<br>
> going through the<br>
> link<br>
> <a href="http://gstreamer.freedesktop.org/wiki/GstreamerAndroid_InstallInstructions" target="_blank">http://gstreamer.freedesktop.org/wiki/GstreamerAndroid_InstallInstructions</a><br>
><br>
> Through adb shell, we could run gstreamer commands to view<br>
> mp4 files as<br>
> well as mpegts files using gst-launch command. To view the<br>
> video/ausio, we<br>
> used audioflingersink as well as surfaceflingersink.<br>
> For this purpose, all the gstreamer related environment<br>
> variables have to<br>
> be exported manually through the adb shell.<br>
> We would like to run the gst-launch as an application in<br>
> the Android phone<br>
> without exporting the variables using adb shell. Is there<br>
> any method for<br>
> this?<br>
><br>
> I am exporting the following below mentioned environment<br>
> variables in the<br>
> adb shell.<br>
><br>
> export<br>
> LD_LIBRARY_PATH=/data/data/com.android.freedesktop.gstreamer/lib/<br>
><br>
> export<br>
> PATH=/data/data/com.android.freedesktop.gstreamer/bin:$PATH<br>
><br>
> export<br>
> GST_PLUGIN_PATH=/data/data/com.android.freedesktop.gstreamer/lib/<br>
><br>
> export<br>
> GST_PLUGIN_SCANNER=/data/data/com.android.freedesktop.gstreamer/bin/gst-plugin-scanner<br>
><br>
> export<br>
> GST_OMX_CONFIG_DIR=/data/data/com.android.freedesktop.gstreamer/conf/<br>
><br>
> export GST_REGISTRY_REUSE_PLUGIN_SCANNER=no<br>
><br>
> Thanks & Regards<br>
> Anees<br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL:<br>
> <<a href="http://lists.freedesktop.org/archives/gstreamer-android/attachments/20120702/24f4c169/attachment-0001.html" target="_blank">http://lists.freedesktop.org/archives/gstreamer-android/attachments/20120702/24f4c169/attachment-0001.html</a>><br>
><br>
> ------------------------------<br>
><br>
> Message: 2<br>
> Date: Mon, 2 Jul 2012 15:53:00 +0200<br>
> From: Enrique Oca?a Gonz?lez <<a href="mailto:eocanha@igalia.com">eocanha@igalia.com</a><br>
> <mailto:<a href="mailto:eocanha@igalia.com">eocanha@igalia.com</a>>><br>
> To: <a href="mailto:gstreamer-android@lists.freedesktop.org">gstreamer-android@lists.freedesktop.org</a><br>
> <mailto:<a href="mailto:gstreamer-android@lists.freedesktop.org">gstreamer-android@lists.freedesktop.org</a>><br>
> Subject: Re: gstreamer running on Android app?<br>
> Message-ID: <<a href="mailto:201207021553.00470.eocanha@igalia.com">201207021553.00470.eocanha@igalia.com</a><br>
> <mailto:<a href="mailto:201207021553.00470.eocanha@igalia.com">201207021553.00470.eocanha@igalia.com</a>>><br>
> Content-Type: Text/Plain; charset="iso-8859-15"<br>
><br>
> On Lunes, 2 de Julio de 2012 14:12:15 Anees Alappat escribi?:<br>
><br>
> > For this purpose, all the gstreamer related environment<br>
> variables have to<br>
> > be exported manually through the adb shell.<br>
> > We would like to run the gst-launch as an application in<br>
> the Android phone<br>
> > without exporting the variables using adb shell. Is<br>
> there any method for<br>
> > this?<br>
><br>
> Maybe some of these suggestions could be useful to you:<br>
><br>
> - Writing a wrapper in shell script (eg: gst-launch.sh)<br>
> that does the variable<br>
> exports before calling the actual gst-launch executable.<br>
> Execute the script<br>
> invoking /system/bin/sh <script-name>.<br>
> - Writing a wrapper C program that does the variable<br>
> exports using setenv()<br>
> and then exec() the actual executable.<br>
> - Modify the gst-launch sources to add the setenv()s there.<br>
><br>
> Cheers.<br>
><br>
> --<br>
> Enrique Oca?a<br>
><br>
><br>
> ------------------------------<br>
><br>
> _______________________________________________<br>
> gstreamer-android mailing list<br>
> <a href="mailto:gstreamer-android@lists.freedesktop.org">gstreamer-android@lists.freedesktop.org</a><br>
> <mailto:<a href="mailto:gstreamer-android@lists.freedesktop.org">gstreamer-android@lists.freedesktop.org</a>><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-android" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-android</a><br>
><br>
><br>
> End of gstreamer-android Digest, Vol 14, Issue 1<br>
> ************************************************<br>
><br>
><br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> gstreamer-android mailing list<br>
> <a href="mailto:gstreamer-android@lists.freedesktop.org">gstreamer-android@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-android" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-android</a><br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.freedesktop.org/archives/gstreamer-android/attachments/20120803/a1b70173/attachment.html" target="_blank">http://lists.freedesktop.org/archives/gstreamer-android/attachments/20120803/a1b70173/attachment.html</a>><br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
gstreamer-android mailing list<br>
<a href="mailto:gstreamer-android@lists.freedesktop.org">gstreamer-android@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-android" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-android</a><br>
<br>
<br>
End of gstreamer-android Digest, Vol 15, Issue 2<br>
************************************************<br>
</blockquote></div><br>