We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello, I put the build/dist folder content in my jni folder and run the code below:
String abspath = getApplicationInfo().nativeLibraryDir;
// Change the permissions try { Runtime.getRuntime().exec("chmod -R 0750 "+ abspath).waitFor(); } catch (InterruptedException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); }
// String cameraPath = "/storage/emulated/0/DCIM/Camera/"; String cameraPath = String.valueOf(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES));
String cmd = "ffmpeg -i "+ cameraPath + "VID_20150723_172341494.mp4 -y "+ cameraPath + "output.mp4"; ProcessBuilder processBuilder = new ProcessBuilder(cmd); final Map<String, String> environment = processBuilder.environment(); environment.put("LD_LIBRARY_PATH", getDir("lib", 0).getAbsolutePath()); try { Process process = processBuilder.start(); } catch (IOException e) { e.printStackTrace(); }
And then I get IOException with the following message:
Error running exec(). Command: [ffmpeg -i /storage/emulated/0/PicturesVID_20150723_172341494.mp4 -y /storage/emulated/0/Picturesoutput.mp4] Working Directory: null Environment: [ANDROID_ROOT=/system, EMULATED_STORAGE_SOURCE=/mnt/shell/emulated, LOOP_MOUNTPOINT=/mnt/obb, LD_PRELOAD=/system/lib/libNimsWrap.so, ANDROID_BOOTLOGO=1, EMULATED_STORAGE_TARGET=/storage/emulated, LD_LIBRARY_PATH=/data/data/douglasanunciacao.ndksample/app_lib, EXTERNAL_STORAGE=/storage/emulated/legacy, SYSTEMSERVERCLASSPATH=/system/framework/services.jar:/system/framework/ethernet-service.jar:/system/framework/wifi-service.jar:/system/framework/pixelpipe.jar:/system/framework/WfdCommon.jar, ANDROID_SOCKET_zygote=11, PATH=/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin, ANDROID_DATA=/data, ANDROID_ASSETS=/system/app, ASEC_MOUNTPOINT=/mnt/asec, BOOTCLASSPATH=/system/framework/core-libart.jar:/system/framework/conscrypt.jar:/system/framework/okhttp.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/system/framework/mms-common.jar:/system/framework/android.policy.jar:/system/framework/apache-xml.jar:/system/framework/pixelpipe.jar:/system/framework/WfdCommon.jar, ANDROID_PROPERTY_WORKSPACE=9,0, ANDROID_STORAGE=/storage]
The text was updated successfully, but these errors were encountered:
Hello , have you find any solution for this issue ?
Sorry, something went wrong.
No branches or pull requests
Hello,
I put the build/dist folder content in my jni folder and run the code below:
String abspath = getApplicationInfo().nativeLibraryDir;
// String cameraPath = "/storage/emulated/0/DCIM/Camera/";
String cameraPath = String.valueOf(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES));
And then I get IOException with the following message:
Error running exec(). Command: [ffmpeg -i /storage/emulated/0/PicturesVID_20150723_172341494.mp4 -y /storage/emulated/0/Picturesoutput.mp4] Working Directory: null Environment: [ANDROID_ROOT=/system, EMULATED_STORAGE_SOURCE=/mnt/shell/emulated, LOOP_MOUNTPOINT=/mnt/obb, LD_PRELOAD=/system/lib/libNimsWrap.so, ANDROID_BOOTLOGO=1, EMULATED_STORAGE_TARGET=/storage/emulated, LD_LIBRARY_PATH=/data/data/douglasanunciacao.ndksample/app_lib, EXTERNAL_STORAGE=/storage/emulated/legacy, SYSTEMSERVERCLASSPATH=/system/framework/services.jar:/system/framework/ethernet-service.jar:/system/framework/wifi-service.jar:/system/framework/pixelpipe.jar:/system/framework/WfdCommon.jar, ANDROID_SOCKET_zygote=11, PATH=/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin, ANDROID_DATA=/data, ANDROID_ASSETS=/system/app, ASEC_MOUNTPOINT=/mnt/asec, BOOTCLASSPATH=/system/framework/core-libart.jar:/system/framework/conscrypt.jar:/system/framework/okhttp.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/system/framework/mms-common.jar:/system/framework/android.policy.jar:/system/framework/apache-xml.jar:/system/framework/pixelpipe.jar:/system/framework/WfdCommon.jar, ANDROID_PROPERTY_WORKSPACE=9,0, ANDROID_STORAGE=/storage]
The text was updated successfully, but these errors were encountered: