Giter Club home page Giter Club logo

Comments (11)

engr-erum avatar engr-erum commented on August 31, 2024

@Tourenathan-G5organisation can u pls look into it ?

from silicompressor.

Tourenathan-G5organisation avatar Tourenathan-G5organisation commented on August 31, 2024

@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.

engr-erum avatar engr-erum commented on August 31, 2024

@Tourenathan-G5organisation i am not sure about paths but have given write external storage permission and had added source file as well

from silicompressor.

engr-erum avatar engr-erum commented on August 31, 2024

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.

muvans avatar muvans commented on August 31, 2024

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.

engineers-bojan avatar engineers-bojan commented on August 31, 2024

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.

Tourenathan-G5organisation avatar Tourenathan-G5organisation commented on August 31, 2024

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.

sidAli1993 avatar sidAli1993 commented on August 31, 2024

sdfsdf

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.

rahulpatidar009 avatar rahulpatidar009 commented on August 31, 2024

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.

Tourenathan-G5organisation avatar Tourenathan-G5organisation commented on August 31, 2024

Hello
Please try on a real device with the latest version 2.2.3

from silicompressor.

Pankaj-Sati avatar Pankaj-Sati commented on August 31, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.