Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to open file #27

Open
Pantyhose-X opened this issue Nov 13, 2021 · 6 comments
Open

Unable to open file #27

Pantyhose-X opened this issue Nov 13, 2021 · 6 comments
Labels
bug Something isn't working

Comments

@Pantyhose-X
Copy link

Pantyhose-X commented Nov 13, 2021

Describe the bug
Unable to open file

To Reproduce
Steps to reproduce the behavior:

bug.mp4

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

@AshvinVavaliya
Copy link
Collaborator

Which device are you using?

@Pantyhose-X
Copy link
Author

Which device are you using?

Mobile phone Sony Xperia 10 III

@AshvinVavaliya
Copy link
Collaborator

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

@Pantyhose-X
Copy link
Author

@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

@adilomatom
Copy link

adilomatom commented Nov 30, 2021

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:

@SweetD3v
Copy link

SweetD3v commented Dec 10, 2021

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!

@shwetachauhan-simform shwetachauhan-simform added the bug Something isn't working label Feb 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants