FFmpeg-Android icon indicating copy to clipboard operation
FFmpeg-Android copied to clipboard

error=13, Permission denied in Android Q 10

Open khushalvaghasiya opened this issue 4 years ago • 10 comments

Caused by: java.io.IOException: error=13, Permission denied

java.io.IOException: Cannot run program "/data/user/0/com.xyz.video/files/ffmpeg": error=13, Permission denied

khushalvaghasiya avatar Sep 22 '20 05:09 khushalvaghasiya

me too, plz help me check it?

hamaianh avatar Oct 29 '20 06:10 hamaianh

Check this pull by scmfaria, as its fixed the error library is working fine with android 29, but i am not sure about its working on play store 64 bit requirements if anyone check this up will be a great help!

https://github.com/scmfaria/FFmpeg-Android/tree/bug_fix

BilalAsif25 avatar Nov 13 '20 04:11 BilalAsif25

i have face this issue but in my case the issue was in command. i was using wrong command for video speed up and slow motion after placing this command issue was resolved: "-i", videoInputPath, "-filter:v", "setpts=0.25*PTS", VideoOutPutPath you can cahnge setpts(set presentation time stamp) as per your requirments.

Yousaf128 avatar Nov 24 '20 07:11 Yousaf128

I'm also having this problem. Does anyone have a solution, even if it's a workaround? @BilalAsif25 is there a way to use this fix already?

L30D3V avatar Nov 25 '20 12:11 L30D3V

@L30D3V which command do you have running at this scenario. can you show your command please?

Yousaf128 avatar Nov 25 '20 12:11 Yousaf128

arrayOf("-i", videoPath, "-r", "10", "-qscale:v", "${configuration.jpegCompression}", "${fileDir.absolutePath}/frames_%03d.jpg")

I'm extracting image frames from a video. The variable videoPath is from a video either selected from a user dialog or a video recorded with the camera. All the data is being saved inside my own app storage, so it shouldn't have any permission problems, but I still requested WRITE_STORAGE and READ_STORAGE permissions.

On my tests, I also added android:requestLegacyExternalStorage="true" even though I rather not use it on production.

L30D3V avatar Nov 25 '20 13:11 L30D3V

Did you found a solution ?

walidatef avatar Feb 12 '21 14:02 walidatef

not use it on pro

Did you find a solution?

walidatef avatar Feb 12 '21 14:02 walidatef

bravobit/FFmpeg-Android-- this library support only build verstion upto 28 , this will be working fine when your sdk version is 28. try below answer

https://stackoverflow.com/a/59683008/8416317

VineshChauhan24 avatar Apr 08 '21 04:04 VineshChauhan24

Bug Fixes : Permission denied in Android Q 1

Try This : implementation 'com.github.Piyushkapadia31:FFmpeg:1.0.0'

Piyushkapadia31 avatar Jun 28 '21 08:06 Piyushkapadia31