-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Scoped storage #32
Comments
Scoped storage changes are implemented in |
@tanersener Hi yes I started to use 4.4.LTS I am using your command given in your sample code " exe="-y -i " +videoPath+" -filter_complex [0:v]trim=0:"+startMs/1000+",setpts=PTS-STARTPTS[v1];[0:v]trim="+startMs/1000+":"+endMs/1000+",setpts=0.5*(PTS-STARTPTS)[v2];[0:v]trim="+(endMs/1000)+",setpts=PTS-STARTPTS[v3];[0:a]atrim=0:"+(startMs/1000)+",asetpts=PTS-STARTPTS[a1];[0:a]atrim="+(startMs/1000)+":"+(endMs/1000)+",asetpts=PTS-STARTPTS,atempo=2[a2];[0:a]atrim="+(endMs/1000)+",asetpts=PTS-STARTPTS[a3];[v1][a1][v2][a2][v3][a3]concat=n=3:v=1:a=1 "+"-b:v 2097k -vcodec mpeg4 -crf 0 -preset superfast "+filePath;" but I am getting errors below. Is der any change in the command format????? [[2021-04-27 10:17:28.647 2664-3612/pixelsdev.videomaker.videoeditor E/FileUtils: android.permission.WRITE_EXTERNAL_STORAGE permission not available
2021-04-27 10:17:49.973 2664-4217/pixelsdev.videomaker.videoeditor E/mobile-ffmpeg: /storage/emulated/0/Movies/Folder/fastforward1619498869009.mp4: File exists](url) ](url) |
I am using this command for changing the color of video "String cmd = ("-y -i "+videoPath+" -t "+ getDurationString(duration)+" -vf transpose hue=h=0:s=2.5 -metadata:s:v rotate=0 -c:v libx264 -preset ultrafast -ar 44100 -c:a aac -ab 128k -strict -2" +filePath);" below out put of ffmpeg. [](Copyright (c) 2000-2020 the FFmpeg developers
I/mobile-ffmpeg: Stream #0:1 |
The first command fails because of The second issue happens because your command is wrong. There are two video filters after |
Your logs have a different error |
@tanersener In first comment u told after -vf there are two video filters, so I changed the command
Second command is working below 11 but in 11 it is giving error. |
This is your message.
And this is the error message in your logs. What I'm trying to say is, I don't get whether your file is created with zero size or your command fails with |
@tanersener my command fails with File exists error (returnCode 1) only in android 11 below 11 command is working. |
|
@tanersener yes that command is having "-y". |
Then you have another problem. I'll suggest deleting the file manually and running the command again. |
@tanersener creating file was the problem. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This is the solution for Scoped Storage (Android 10+) |
Description
Hi Working on android 11 OS. As I was using your ffmpeg libray 4.2.2.LTS library every thing is working perfectly. Now as we have to use scope storage, can I use the same version 4.2.2.LTS or I have to use your latest 4.4.LTS ?
Current behavior
Now I am using 4.4.LTS for testing purpose and the command is "String cmommand = ("-y -i " + videoPath + " -t -vf hue=h=0:s=2.5 metadata:s:v rotate=0 -c:v libx264 -preset ultrafast -ar 44100 -c:a aac -ab 128k -strict -2 "+filePath);" its giving error like "Invalid duration specification for t: -vf". Please let me know which one I have to use 4.2.2.LTS or 4.4.LTS
The text was updated successfully, but these errors were encountered: