tanersener / mobile-ffmpeg

FFmpeg for Android, iOS and tvOS. Not maintained anymore. Superseded by FFmpegKit.
https://tanersener.github.io/mobile-ffmpeg
GNU General Public License v3.0
3.85k stars 787 forks source link

[Android] Android 11 compatibility #716

Closed jseisson closed 3 years ago

jseisson commented 3 years ago

I merged an image with a video all seems good except for Android 11.

The only output i have is : mobile-ffmpeg: /storage/emulated/0/Movies/video_to_share.mp4: File exists

When i check if the file exist before FFmpeg.executeAsync, the file.exist() return false. The uri of my file is provided by the Media API. Because i want to share the video after the merging.

Here is my command :

-y -i /storage/emulated/0/Android/data/com.package.app/files/Movies/original_video.mp4 -i /storage/emulated/0/Android/data/com.package.app/files/Pictures/filigrane.png -filter_complex "[1:v] scale=1080:1920 [ol], [0:v] [ol] overlay" -vcodec libx264 -crf 27 -preset ultrafast -strict -2 /storage/emulated/0/Movies/video_to_share.mp4

Is it possible to be any issue with the new restriction and scoped storage for Android 11 ?

tanersener commented 3 years ago

This project will be retired. Please consider switching to FFmpegKit.