Android-eye example Couldn't load Mp3Encoder error - opencv

Hi i am trying to stream video to http webpage, I have tried the following applications source code Android-eye project and im getting the following error.
03-23 17:12:47.672: E/AndroidRuntime(27063): java.lang.UnsatisfiedLinkError: Couldn't load mp3encoder from loader dalvik.system.PathClassLoader[dexPath=/data/app/teaonly.droideye-1.apk,libraryPath=/data/app-lib/teaonly.droideye-1]: findLibrary returned null
Any help would be gratefully appreciated..
If anyone can suggest a tutorial for streaming live camera android video to VLC or webpage that would be great .
Thanks

I resolved this issue by rebuild the JNI code for all those beginners like me who are not NDK friendly,
All you need to install the NDK from below URL:
http://developer.android.com/tools/sdk/ndk/index.html
Please make sure that you have set the environment variables like
NDK_HOME -- \android-ndk-r9 {directory must contain `ndk-build` file}
Path -- %NDK_HOME%
open the command prompt go to the directory where JNI code exist, mine under the below path
cd C:{rootpath}\android-eye-master\jni
C:{rootpath}\android-eye-master\jni>ndk-build
Then refresh your android project in eclipse and run as Android Application.

Fixed the problem, I didn't have the NDK installed .

Related

Is there other way to get the Microsoft Edge DevTools Preview without Microsoft store?

I always debug the WebView control with VS, I refer to the this official document Debug a WebView control in a UWP App.
Recently, I found there is a best way to debug the WebView control by using the
Microsoft Edge DevTools Preview App.
The problem is that it seems the only way to install the tools is Microsoft Store. Unfortunately the Miscrosoft Store is blocked on my machine, I want to know is there any other way to get the Microsoft Edge DevTools Preview tool? Any help would be appreciated, thank you in advance.
I found this article https://windowsreport.com/download-microsoft-store-apps-without-store which seems to show a way of doing this.
I cannot state if it definitely works yet as I have to wait for my IT to department to decide if it can be allowed.
Steps are:
Visit https://store.rg-adguard.net/
Enter https://www.microsoft.com/en-gb/p/microsoft-edge-devtools-preview/9mzbfrmz0mnj
Download the file ending in appxbundle (to it's own directory not just "downloads")
Open Powershell as Admin
Execute something like Add-AppxPackage -Path "C:\Users\WindowsReport\Downloads\ee2546d7-f0e5-4aa2-be54-032299162322" (change path to the download directory you used earlier)
If you get errors you may need to download additional files from the same place you got the appxbundle file

Angular 2 app not loading with Cordova on iOS

I am facing serious problems while developing an Angular 2 app and building it for iOS with Cordova. It kind of works when building and running it for Android (still there are some problems with routes on startup), but I can not get it running on iOS.
The app is developed with Angular 2.0.0-rc.1 and angular-cli.
Whenever I build the app with xcode for iOS, the app is stucked on Angular 2 loading - i guess it is a problem with the bootstrapping process, but I am not sure.
In console, I can see that it fails to load the component css files, like this error shows:
[Error] EXCEPTION: Failed to load file:///var/mobile/Containers/Bundle/Application/F325C057-2287-463A-ABF6-DB68944C63D9/Dooda.app/www/app/notifications/notifications.component.css
logError
logGroup
call
(anonyme Funktion)
invoke (zone.js:323)
onInvoke
invoke (zone.js:322)
run (zone.js:216)
(anonyme Funktion) (zone.js:571)
invokeTask (zone.js:356)
onInvokeTask
invokeTask (zone.js:355)
runTask (zone.js:256)
drainMicroTaskQueue (zone.js:474)
invoke (zone.js:426)
The path is correct, it just can not proceed to load the files. In my iindex.html, I can see that the Container is empty, thus the Angular 2 stuff is not loaded there.
I have set the base href in index as following:
<base href=".">
If you need further information or code, please ask.
Have anyone faced the same issue and can help me here? I am really clueless what to do now, I have no idea why the file loading fails here.
Any help would be highly appreciated!
Thanks in advance!
The solution is very simple, just use
<base href="./">
in index.html file. It will work
had the same problem with Cordova / Ionic on iOS. It was caused by an empty file.
I had a component without template markup, but only with SCSS for the :host-selector.
It seems like Safari doesn't recognize any empty files via XHR and encounters a 404-like error, which breaks the application. To fix that, I removed all empty files from my components. After that it did work for me on iOS-emulator and native iPhone 6.
I am not sure whether it is related with base url for you problem.
In the normal, we will build and package the app with angular-cli into www dir. And after that, you should not see separate css files anymore. Because all css files will be packed in one file, based on your webpack setting.

Paypal Direct Payment path errors

I'm using Paypal's Classic API to do Direct Payment on my site.
At the beginning of the DirectPayment sample on DoDirectPayment.php there is this line:
require_once('../PPBootStrap.php');
and it gives me this error:
Fatal error: require(): Failed opening required 'PPAutoloader.php' (include_path='.:/Applications/MAMP/bin/php/php5.4.4/lib/php') in /Users/jasonburton/Sites/georgetown/wp-content/themes/georgetown/paypal_direct_payment/samples/PPBootStrap.php on line 12
Now, that PPAutoloader.php call is an include within bootstrap. This doesn't just happen in bootstrap, it happens with all files that I try to include. The paths are just not right and I don't know what to do. I've echoed out my path in terminal and it just gives me:
/Applications/MAMP/bin/php/php5.4.4/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin
Any hints on how I can fix this problem? I know I'm not giving much information here but it's all I've got at the moment.
Any help is appreciated!
Did you run Composer ? We are using Composer for dependency management.
https://getcomposer.org/
Instructions are in the SDK Readme file too: https://github.com/paypal/merchant-sdk-php/blob/master/README.md

Media Garden (MediaGarden Module) Error in Orchard CMS 1.5

I'm running Orchard 1.5. I installed Media Garden module and I get this error:
The assembly reference 'Downplay.Mechanics' could not be loaded for module 'MediaGarden'.
I did check to install dependent modules when I installed Media Garden, so it actually installed Origami. Then I went and found Mechanics 0.9.0 (it installed Origami 0.9.0) and I installed that manually as well.
I'm still getting the error that Mechanics can't be found though. Can somebody advise as to how I can fix this or recommend another method for a video gallery? Ideally, I'd like to use flowplayer for a video gallery.
If there's a way you've set up individual pages for videos without a module that would be helpful to know too.
Thanks!

hdf viewer on windows for tables created using pyTables?

viTables only seems to work with python 2.5. I have downloaded HDFView, but when I try to open a table I created following this tutorial, I get the following error message:
Failed to open file C:\tutorial.h5
java.io.IOException: Unsupported fileformat - C:\tutorial.h5
Any ideas for getting HDFView to work?
Is there something I need to do when I'm using pyTables from python to make the format more generic?
Any other good HDF viewers?
Btw, I've just discovered PyTables, and I'm really excited about it.
ViTables works for me with python 2.6 on windows. It is supposed also to work with 2.7.
However the version on the official site did not work for me and crashed. In a mailinglist posting I found the link to the berlios ftp server where I got a version that works like a charm.
Have you seen ViTables?
http://vitables.berlios.de/

Resources