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

Stuck on the trimming video dialog in Samsung phone. #56

Open
passenger-earth opened this issue Jun 10, 2020 · 11 comments
Open

Stuck on the trimming video dialog in Samsung phone. #56

passenger-earth opened this issue Jun 10, 2020 · 11 comments

Comments

@passenger-earth
Copy link

Thank you for the great project . I am facing a issue. The app remains stuck in the trimming video dialog after i click finish , i am testing it on a samsung galaxy s7 phone. Any suggestions on how to solve the problem?

@iknow4x
Copy link
Owner

iknow4x commented Jun 10, 2020

Can you collect some related logs? There may be an error during the trimming process.

@iamkdblue
Copy link

Thank for this great project.

I am running this example app in my Android 10 (k20 pro)
video stuck at dialog, and i got this error

2020-07-22 12:24:48.163 28283-29116/com.iknow.android E/FFmpeg: Exception while trying to run: [/data/user/0/com.iknow.android/files/ffmpeg, -ss, 00:00, -t, 00:00:10, -accurate_seek, -i, /storage/emulated/0/DCIM/Horizon/MOV_2020-07-20_at_15-42-27.mp4, -codec, copy, -avoid_negative_ts, 1, /storage/emulated/0/Android/data/com.iknow.android/cache/trimmedVideo_20200722_122448.mp4]
    java.io.IOException: Cannot run program "/data/user/0/com.iknow.android/files/ffmpeg": error=13, Permission denied
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1050)
        at nl.bravobit.ffmpeg.ShellCommand.run(ShellCommand.java:15)
        at nl.bravobit.ffmpeg.FFcommandExecuteAsyncTask.doInBackground(FFcommandExecuteAsyncTask.java:43)
        at nl.bravobit.ffmpeg.FFcommandExecuteAsyncTask.doInBackground(FFcommandExecuteAsyncTask.java:12)
        at android.os.AsyncTask$3.call(AsyncTask.java:378)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:919)
     Caused by: java.io.IOException: error=13, Permission denied
        at java.lang.UNIXProcess.forkAndExec(Native Method)
        at java.lang.UNIXProcess.<init>(UNIXProcess.java:133)
        at java.lang.ProcessImpl.start(ProcessImpl.java:141)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
        at nl.bravobit.ffmpeg.ShellCommand.run(ShellCommand.java:15) 
        at nl.bravobit.ffmpeg.FFcommandExecuteAsyncTask.doInBackground(FFcommandExecuteAsyncTask.java:43) 
        at nl.bravobit.ffmpeg.FFcommandExecuteAsyncTask.doInBackground(FFcommandExecuteAsyncTask.java:12) 
        at android.os.AsyncTask$3.call(AsyncTask.java:378) 
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) 
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) 
        at java.lang.Thread.run(Thread.java:919) 

@zxb123456
Copy link

您好,这个权限问题,解决了吗?有什么好方法吗?

@iamkdblue
Copy link

@zxb123456 i solved this issue by use SDK 28, this error comes in SDK 29, so its temporary solution.
Just change compileSdkVersion 29 to compileSdkVersion 28

@zxb123456
Copy link

zxb123456 commented Jul 22, 2020 via email

@iamkdblue
Copy link

Yes just remove android:requestLegacyExternalStorage and run.

@zxb123456
Copy link

zxb123456 commented Jul 22, 2020 via email

@iamkdblue
Copy link

WeChat or QQ ban in india😜 and remove this android:requestLegacyExternalStorage

@Mr-Ramzan
Copy link

image

** I am also facing similar Issue**

below log with no err
D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728 D/VideoTrimmerView: updateVideoProgress currentPosition = 9728

This just happen Infinitely

some time it gives 0 as the current position

@hamaianh
Copy link

hamaianh commented Nov 1, 2020

me too, I also have the same situation on some devices. Plz help me fix it if we use compileSdkVersion > 28!
java.io.IOException: Cannot run program "/data/user/0/com.iknow.android/files/ffmpeg": error=13, Permission denied
Thanks so much!

@lkhore
Copy link

lkhore commented Dec 29, 2023

any update on this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants