SSffmpegVideoOperation icon indicating copy to clipboard operation
SSffmpegVideoOperation copied to clipboard

Unable to open file

Open Pantyhose-X opened this issue 4 years ago • 6 comments

Describe the bug Unable to open file

To Reproduce Steps to reproduce the behavior:

https://user-images.githubusercontent.com/42504385/141647829-41d83384-ca30-4abd-99fa-86c32b0f16ba.mp4

Expected behavior A clear and concise description of what you expected to happen. use Amaze File Manager and Simple File Manager

Pantyhose-X avatar Nov 13 '21 14:11 Pantyhose-X

Which device are you using?

AshvinVavaliya avatar Nov 24 '21 06:11 AshvinVavaliya

Which device are you using?

Mobile phone Sony Xperia 10 III

Pantyhose-X avatar Nov 24 '21 07:11 Pantyhose-X

@Pantyhose-X Okay, There is crash happening in your device right? Can you send me crash logs report because I can't re-generate this type of issue.

AshvinVavaliya avatar Nov 29 '21 03:11 AshvinVavaliya

@Pantyhose-X Okay, There is crash happening in your device right? Can you send me crash logs report because I can't re-generate this type of issue.

l don't know how to make a collapse diary

Pantyhose-X avatar Nov 30 '21 03:11 Pantyhose-X

On Android 11 Crash When try to open Image ore Video as in above Video

--------- beginning of crash

2021-11-30 14:32:53.150 595-595/? A/libc: crash_dump helper failed to exec 2021-11-30 14:32:53.276 27176-27279/? E/CheckPermission: _bluetooth code = 1 2021-11-30 14:32:53.322 27176-27176/? E/cr_CompositorSurfaceMgr: Transitioning to surface with format : -1 2021-11-30 14:32:54.100 27331-27370/? E/libEGL: Invalid file path for libcolorx-loader.so 2021-11-30 14:32:54.113 27176-27266/? E/Parcel: Reading a NULL string not supported here. 2021-11-30 14:32:54.116 1632-5204/? E/OppoBaseDisplayPowerController2: can't get service binder: oppposcreenmode 2021-11-30 14:32:57.350 626-631/? E/[email protected]: Error opening kernel wakelock stats for: wakeup41: Permission denied Error opening kernel wakelock stats for: wakeup11: Permission denied Reason: Input dispatching timed out (2a40710 com.simform.videoimageeditor/com.simform.videoimageeditor.videoProcessActivity.CombineImageAndVideoActivity (server) is not responding. Waited 5000ms for FocusEvent(hasFocus=false)) Parent: com.simform.videoimageeditor/.videoProcessActivity.CombineImageAndVideoActivity Load: 0.0 / 0.04 / 0.09 ----- Output from /proc/pressure/memory ----- some avg10=0.19 avg60=0.50 avg300=0.33 total=2709896345 full avg10=0.06 avg60=0.19 avg300=0.13 total=1110446703 ----- End output from /proc/pressure/memory -----

CPU usage from 0ms to 8228ms later (2021-11-30 14:32:47.301 to 2021-11-30 14:32:55.529) with 99% awake:

adilomatom avatar Nov 30 '21 09:11 adilomatom

The way I solved this is using the system media picker instead of the one that this library provides. It's the safest option out there and you don't have to worry about the policy related stuff on google play store.

ActivityResultLauncher<String> videoPickerLauncher =
            registerForActivityResult(new ActivityResultContracts.GetContent(),
                    uri -> {
                        videoUri = uri;
                        //Use this uri to geta file from uri & then proceed with ffmpeg using that file
                    });

To launch the picker,

videoPickerLauncher.launch("video/*");

You can use videoUri to get file from your selected location, make the file object using the uri & use it with FFMPEG, It will work flowlessly!

SweetD3v avatar Dec 10 '21 10:12 SweetD3v