yovenny / videocompress Goto Github PK
View Code? Open in Web Editor NEWandroid video compress base&update telegram android
License: GNU General Public License v2.0
android video compress base&update telegram android
License: GNU General Public License v2.0
java.lang.Throwable: Explicit termination method 'release' not called
at dalvik.system.CloseGuard.open(CloseGuard.java:223)
at android.view.Surface.setNativeObjectLocked(Surface.java:554)
at android.view.Surface.(Surface.java:194)
at android.media.MediaCodec.createInputSurface(Native Method)
at co.astrnt.qasdk.videocompressor.VideoController.convertVideo(VideoController.java:441)
at co.astrnt.qasdk.videocompressor.VideoCompress$VideoCompressTask.doInBackground(VideoCompress.java:74)
at co.astrnt.qasdk.videocompressor.VideoCompress$VideoCompressTask.doInBackground(VideoCompress.java:55)
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/ru.mobiledev.badfit-2/base.apk", zip file "/data/app/ru.mobiledev.badfit-2/split_lib_dependencies_apk.apk", zip file "/data/app/ru.mobiledev.badfit-2/split_lib_slice_0_apk.apk", zip file "/data/app/ru.mobiledev.badfit-2/split_lib_slice_1_apk.apk", zip file "/data/app/ru.mobiledev.badfit-2/split_lib_slice_2_apk.apk", zip file "/data/app/ru.mobiledev.badfit-2/split_lib_slice_3_apk.apk", zip file "/data/app/ru.mobiledev.badfit-2/split_lib_slice_4_apk.apk", zip file "/data/app/ru.mobiledev.badfit-2/split_lib_slice_5_apk.apk", zip file "/data/app/ru.mobiledev.badfit-2/split_lib_slice_6_apk.apk", zip file "/data/app/ru.mobiledev.badfit-2/split_lib_slice_7_apk.apk", zip file "/data/app/ru.mobiledev.badfit-2/split_lib_slice_8_apk.apk", zip file "/data/app/ru.mobiledev.badfit-2/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/ru.mobiledev.badfit-2/lib/arm64, /data/app/ru.mobiledev.badfit-2/base.apk!/lib/arm64-v8a, /data/app/ru.mobiledev.badfit-2/split_lib_dependencies_apk.apk!/lib/arm64-v8a, /data/app/ru.mobiledev.badfit-2/split_lib_slice_0_apk.apk!/lib/arm64-v8a, /data/app/ru.mobiledev.badfit-2/split_lib_slice_1_apk.apk!/lib/arm64-v8a, /data/app/ru.mobiledev.badfit-2/split_lib_slice_2_apk.apk!/lib/arm64-v8a, /data/app/ru.mobiledev.badfit-2/split_lib_slice_3_apk.apk!/lib/arm64-v8a, /data/app/ru.mobiledev.badfit-2/split_lib_slice_4_apk.apk!/lib/arm64-v8a, /data/app/ru.mobiledev.badfit-2/split_lib_slice_5_apk.apk!/lib/arm64-v8a, /data/app/ru.mobiledev.badfit-2/split_lib_slice_6_apk.apk!/lib/arm64-v8a, /data/app/ru.mobiledev.badfit-2/split_lib_slice_7_apk.apk!/lib/arm64-v8a, /data/app/ru.mobiledev.badfit-2/split_lib_slice_8_apk.apk!/lib/arm64-v8a, /data/app/ru.mobiledev.badfit-2/split_lib_slice_9_apk.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]]] couldn't find "libcompress.so"
at java.lang.Runtime.loadLibrary0(Runtime.java:972)
at java.lang.System.loadLibrary(System.java:1530)
Compiler allocated 6MB to compile boolean com.yovenny.videocompress.MediaController.convertVideo
Android version : 7.1.1
Model : Nexus 5x
String width = retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_VIDEO_HEIGHT);
String height = retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_VIDEO_WIDTH);
Log issue:- Pls Help
2019-10-10 16:50:32.736 25603-25627/com.smm.videocompressapplication E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #1
Process: com.smm.videocompressapplication, PID: 25603
java.lang.RuntimeException: An error occurred while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:353)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:383)
at java.util.concurrent.FutureTask.setException(FutureTask.java:252)
at java.util.concurrent.FutureTask.run(FutureTask.java:271)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:764)
Caused by: java.lang.IllegalArgumentException
at android.media.MediaMetadataRetriever.setDataSource(MediaMetadataRetriever.java:74)
at com.yovenny.videocompress.MediaController.convertVideo(MediaController.java:225)
at com.smm.videocompressapplication.MainActivity$VideoCompressor.doInBackground(MainActivity.java:150)
at com.smm.videocompressapplication.MainActivity$VideoCompressor.doInBackground(MainActivity.java:139)
at android.os.AsyncTask$2.call(AsyncTask.java:333)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:764)
/lib/arm64-v8a, /system/lib64, /product/lib64]]] couldn't find "libcompress.so"
unable to move 32 bit to 64 bit, my app is live and i have to make an update a much as possible/
这个压缩完成后,视频画面损坏的太大了
I get this error on the startup of my app ,,, it's sames that's this error comes from native libs "NDK", and the only lib in my app that uses libs built by ndk is this lib "VideoCompress" you should recompile the ndk code with a newer ndk version
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.hojrenama-1/base.apk"],nativeLibraryDirectories=[/data/app/com.hojrenama-1/lib/x86, /vendor/lib, /system/lib]]] couldn't find "libcompress.so" java.lang.Runtime.loadLibrary(Runtime.java:366) java.lang.System.loadLibrary(System.java:989) com.yovenny.videocompress.MediaController.(MediaController.java:31) com.hojrenama.MainActivity$VideoCompressor.doInBackground(MainActivity.java:589) com.hojrenama.MainActivity$VideoCompressor.doInBackground(MainActivity.java:578) android.os.AsyncTask$2.call(AsyncTask.java:288) java.util.concurrent.FutureTask.run(FutureTask.java:237) android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) java.lang.Thread.run(Thread.java:818)
hi, why return this exception ?
play store has made 64 bit libraries mandatory along with 32 bit libraries for further app updates.
final boolean isSuccess = MediaController.getInstance().convertVideo(videoFile.getAbsolutePath(),FileUtil.getExternalVideoDirectory().getPath());
This is not saving video in external storage. Even is returning true.
decoder.configure(inputFormat, outputSurface.getSurface(), null, 0);
这个代码报 IllegalStateException 错误 求解决。
com.samuel.OvationTube E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #3
Process: com.samuel.OvationTube, PID: 19957
java.lang.RuntimeException: An error occurred while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:309)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)
at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
at java.util.concurrent.FutureTask.run(FutureTask.java:242)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)
Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: "/data/app/package-name/lib/arm64/libcompress.so" is 32-bit instead of 64-bit
at java.lang.Runtime.loadLibrary(Runtime.java:372)
at java.lang.System.loadLibrary(System.java:1076)
at com.yovenny.videocompress.MediaController.(MediaController.java:31)
Is there any solution for this problem?
or you send me "libcompress.so" file for 64bit version of 'arm64-v8a'.
Thanks.
Hi,
the project works good but I'm wondering if there is a way to compress the video and keep the voice too.
Thank you
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.