Comments (11)
@Tourenathan-G5organisation can u pls look into it ?
from silicompressor.
@engr-erum Are you sure the source file exist? have you added the android.permission.WRITE_EXTERNAL_STORAGE to your application? Are you sure your paths are well formulated?
from silicompressor.
@Tourenathan-G5organisation i am not sure about paths but have given write external storage permission and had added source file as well
from silicompressor.
i can add complete zip file of my project please check is this the issue with path ?
https://drive.google.com/a/arpatech.com/file/d/0B4yf4j9pXergRHFiVjRVSTk3R00/view?usp=sharing @Tourenathan-G5organisation
from silicompressor.
Same error here:
-android.permission.WRITE_EXTERNAL_STORAGE is added
-File Path and Destination directories in place
Error remains: setSource is NULL?
IllegalArgumentException at android.media.MediaMetadataRetriever.setDataSource
from silicompressor.
The library is trying to access to extract the absolute file path from a String URI and since you are sending an actual absolute file path the error occurrs..
@Tourenathan-G5organisation It would be good if you could add the compressVideo method that accepts an absolute file path.
from silicompressor.
Hello @engr-erum @muvans @engineers-bojan ,
The new version of this library has solved this problem.
Now you can passed either the video path or Uri as source of the video.
from silicompressor.
I am trying to compress video , but got this output, Please get me out of this trouble.
new VideoCompressAsyncTask(this).execute(data.getData().toString(), f.getPath());
from silicompressor.
I also try to compress video from file path using below code snippet-
new VideoCompressAsyncTask(SelectPictureActivity.this).execute(sourceFilePath, destinationFilePath);
But unfortunately getting this exception.
Here destinationFilePath is directory in which I want to save compressed file. I have also tried to pass the exact file path but still getting same error.
Caused by: java.lang.RuntimeException: setDataSource failed: status = 0x80000000
at android.media.MediaMetadataRetriever.setDataSource(Native Method)
at android.media.MediaMetadataRetriever.setDataSource(MediaMetadataRetriever.java:71)
at com.iceteck.silicompressorr.videocompression.MediaController.convertVideo(MediaController.java:272)
at com.iceteck.silicompressorr.SiliCompressor.compressVideo(SiliCompressor.java:353)
at com.iceteck.silicompressorr.SiliCompressor.compressVideo(SiliCompressor.java:301)
at com.gopromanager.activity.GoproActivity$VideoCompressAsyncTask.doInBackground(GoproActivity.java:242)
at com.gopromanager.activity.GoproActivity$VideoCompressAsyncTask.doInBackground(GoproActivity.java:226)
at android.os.AsyncTask$2.call(AsyncTask.java:295)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
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)
from silicompressor.
Hello
Please try on a real device with the latest version 2.2.3
from silicompressor.
@Tourenathan-G5organisation Still getting the above eror in latest version(2.2.3)
Caused by: java.lang.IllegalArgumentException
at android.media.MediaMetadataRetriever.setDataSource(MediaMetadataRetriever.java:71)
from silicompressor.
Related Issues (20)
- Implementation error HOT 6
- The library I'm using, which compresses video on the phone, is fine. However, on the tablet, this is not possible, and there is an exception: start failed. Who can help me? Thank you HOT 1
- bug
- Directory issue HOT 1
- Documentation issue
- How long will it take to compress an mp4 file?
- 视频进度监听误差,有什么好的解决方案?
- Silicompressor compress video results with no sound HOT 6
- Can't play by ExoPlayer after compress (system video player can play but no sound) HOT 3
- ClassNotFoundException: com.googlecode.mp4parser.util.Matrix
- @ankitbatra11 library not working in exoplayer after upload to the server HOT 6
- How to set compress video size is less than 10mb HOT 1
- Change video resolution HOT 1
- Getting NumberFormatException in some cases HOT 1
- Crashing on Android 12 HOT 1
- ERROR : destination file path
- 视频压缩完方向变了
- Screen recording video compression is damaged
- 此库和贵州公安app冲突,谨慎使用
- Windows - File not found error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from silicompressor.