Tourenathan-G5organisation / SiliCompressor

A powerful, flexible and easy to use Video and Image compression library for Android.
Apache License 2.0
1.38k stars 292 forks source link

IllegalArgumentException in doInBackground() #144

Open badriancosmin21 opened 4 years ago

badriancosmin21 commented 4 years ago

I'm getting that error on the filepath.

@Override
        protected String doInBackground(String... paths) {
            String filePath = null;

            try {
                filePath = SiliCompressor.with(mContext).compressVideo("/storage/emulated/0/DCIM/Camera/test.mp4", "/storage/emulated/0/CompressedVids");
            } catch (URISyntaxException e) {
                e.printStackTrace();
            }

            return filePath;
        }

I'm using the latest version of the library as well. Anyone knows how to fix it?